OSDN Git Service

* cgraphunit.c (handle_alias_pairs): Also handle wekref with destination
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-19  Jan Hubicka  <jh@suse.cz>
2
3         * cgraphunit.c (handle_alias_pairs): Also handle wekref with destination
4         declared.
5         (output_weakrefs): New function.
6         * varpool.c (varpool_create_variable_alias): Handle external aliases.
7
8 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
9
10         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
11         second argument instead of mode.
12
13 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
14
15         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
16         mode SUBREG of operands[0] as target.
17         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
18         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
19         (expand_vec_perm_1): Handle identity and some broadcast
20         permutations.
21         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
22         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
23         For d->testing_p return true earlier to avoid creating more GC
24         garbage.
25         (expand_vec_perm_vpermq_perm_1): New function.
26         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
27         earlier to avoid creating more GC garbage.  Fix handling of
28         V16HImode.  Avoid some SUBREGs in SET_DEST.
29         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
30         vector modes.
31         (expand_vec_perm_vpshufb4_vpermq2): New function.
32         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
33         and expand_vec_perm_vpshufb4_vpermq2.
34
35 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
36
37         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
38         before exiting.
39
40 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
41
42         PR tree-optimization/50717
43
44         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
45         parameter.  Calculate 'type' from stmt.
46         (convert_mult_to_widen): Update call the is_widening_mult_p.
47         (convert_plusminus_to_widen): Likewise.
48
49 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
50
51         * config/spu/spu.c (struct machine_function): New data structure.
52         (spu_init_machine_status): New function.
53         (spu_option_override): Install it.
54         (get_pic_reg): Set and use cfun->machine->pic_reg.
55         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
56         (need_to_save_reg): Use cfun->machine->pic_reg instead of
57         checking crtl->uses_pic_offset_table.
58         (spu_expand_prologue): Likewise.
59
60 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
61
62         PR tree-optimization/50735
63         * function.c (gimplify_parameters): Use create_tmp_var instead of
64         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
65         or vector type, set DECL_GIMPLE_REG_P.
66
67 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
68
69         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
70         * config/arm/arm.opt: Add 'native' processor_type and
71         arm_arch enum values.
72         * config/arm/arm.h (host_detect_local_cpu): New prototype.
73         (EXTRA_SPEC_FUNCTIONS): New define.
74         (MCPU_MTUNE_NATIVE_SPECS): New define.
75         (DRIVER_SELF_SPECS): New define.
76         * config/arm/driver-arm.c: New file.
77         * config/arm/x-arm: New file.
78         * doc/invoke.texi (ARM Options): Document -mcpu=native,
79         -mtune=native and -march=native.
80
81 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
82
83         PR rtl-optimization/50205
84         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
85         p->x is a register.  Forbid substitution when the same register is
86         found in a different mode.
87         (count_occurrences_equiv): Assert that 'what' is a register.
88
89 2011-10-18  Richard Guenther  <rguenther@suse.de>
90
91         PR tree-optimization/50767
92         * tree-ssa-pre.c (create_expression_by_pieces): Update the
93         folded statement.
94
95 2011-10-18  Julian Brown  <julian@codesourcery.com>
96
97         * config/arm/arm.c (arm_block_move_unaligned_straight)
98         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
99         (arm_movmemqi_unaligned): New.
100         (arm_gen_movmemqi): Support unaligned block copies.
101
102 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
103
104         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
105         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
106         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
107         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
108         (op_code_prio): Likewise.
109         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
110         * optabs.c (optab_for_tree_code): Handle
111         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
112         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
113         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
114         * genopinit.c (optabs): Initialize the new optabs.
115         * expr.c (expand_expr_real_2): Handle
116         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
117         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
118         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
119         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
120         VEC_WIDEN_LSHIFT_LO_EXPR): New.
121         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
122         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
123         vect_recog_widen_shift_pattern.
124         (vect_handle_widen_mult_by_const): Rename...
125         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
126         Add a new argument, update documentation.
127         (vect_recog_widen_mult_pattern): Assume that only second
128         operand can be constant.  Update call to
129         vect_handle_widen_op_by_const.
130         (vect_recog_over_widening_pattern): Fix typo.
131         (vect_recog_widen_shift_pattern): New.
132         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
133         widening shifts.
134         (supportable_widening_operation): Likewise.
135         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
136         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
137         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
138         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
139         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
140         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
141         Likewise.
142         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
143         New.
144         * config/arm/iterators.md (V_innermode): New.
145         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
146         for widening shift.
147
148 2011-10-18  Richard Guenther  <rguenther@suse.de>
149
150         * tree-ssa-alias.h (struct pt_solution): Remove
151         vars_contains_restrict member.
152         (pt_solutions_same_restrict_base): Remove.
153         (pt_solution_set): Adjust.
154         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
155         vars_contains_restrict handling.
156         (dump_points_to_solution): Likewise.
157         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
158         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
159         field.
160         (new_var_info): Do not initialize it.
161         (ipa_escaped_pt): Adjust.
162         (make_constraint_from_restrict): Make the tag global.
163         (make_constraint_from_global_restrict): New function.
164         (make_constraint_from_heapvar): Remove.
165         (create_variable_info_for): Do not make restrict vars point
166         to NONLOCAL.
167         (intra_create_variable_infos): Likewise.
168         (find_what_var_points_to): Remove vars_contains_restrict handling.
169         (pt_solution_set): Adjust.
170         (pt_solution_ior_into): Likewise.
171         (pt_solutions_same_restrict_base): Remove.
172         (compute_points_to_sets): Do not test is_restrict_var.
173         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
174         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
175
176 2011-10-18  Tom de Vries  <tom@codesourcery.com>
177
178         PR tree-optimization/50672
179         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
180         factored out of ...
181         (mark_virtual_phi_result_for_renaming): Use
182         mark_virtual_operand_for_renaming.
183         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
184         * tree-ssa-tail-merge.c (release_last_vdef): New function.
185         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
186         deleted basic block.
187         (tail_merge_optimize): Add argument to call to purge_bbs.
188
189 2011-10-18  Richard Guenther  <rguenther@suse.de>
190
191         PR middle-end/50716
192         * expr.c (get_object_or_type_alignment): New function.
193         (expand_assignment): Use it.
194         (expand_expr_real_1): Likewise.
195
196 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
197
198         PR bootstrap/50760
199         * input.c (dump_line_table_statistics): Use long, not size_t.
200
201 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
202
203         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
204
205 2011-10-17  Simon Baldwin  <simonb@google.com>
206             Ian Lance Taylor  <iant@google.com>
207
208         * configure.ac: Add --with-native-system-header-dir.  Set and
209         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
210         when setting target_header_dir.
211         * config.gcc: Always set native_system_header_dir.
212         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
213         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
214         use i386/t-djgpp.
215         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
216         native_system_header_dir.
217         (spu-*-elf*): Set native_system_header_dir.
218         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
219         @NATIVE_SYSTEM_HEADER_DIR@.
220         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
221         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
222         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
223         STANDARD_INCLUDE_COMPONENT.
224         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
225         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
226         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
227         STANDARD_INCLUDE_COMPONENT.
228         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
229         * config/i386/t-mingw-w32: Likewise.
230         * config/i386/t-mingw-w64: Likewise.
231         * config/spu/t-spu-elf: Likewise.
232         * config/i386/t-djgpp: Remove.
233         * config/t-gnu: Remove.
234         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
235         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
236         STANDARD_INCLUDE_COMPONENT.
237         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
238         * config/spu/spu-elf.h: Likewise.
239         * config/vms/xm-vms.h: Likewise.
240         * config/gnu.h: Likewise.
241         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
242         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
243         NATIVE_SYSTME_HEADER_COMPONENT.
244         * doc/install.texi (Configuration): Document
245         --with-native-system-header-dir.  Mention it in the documentation
246         for --with-sysroot and --with-build-sysroot.
247         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
248         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
249         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
250         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
251         * doc/fragments.texi (Target Fragment): Don't document
252         NATIVE_SYSTEM_HEADER_DIR.
253         * configure, doc/tm.texi: Rebuild.
254
255 2011-10-17  Richard Henderson  <rth@redhat.com>
256
257         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
258         is the constraint.
259
260         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
261         patterns.
262         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
263         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
264
265 2011-10-17  David S. Miller  <davem@davemloft.net>
266
267         * config/sparc/sparc-modes.def: Add single entry vector modes for
268         DImode and SImode.
269         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
270         mode iterators.
271         (mov<V32:mode>): Revert back to plain SFmode pattern.
272         (*movsf_insn): Likewise.
273         (mov<V64:mode>): Revert back to plain DFmode pattern.
274         (*movdf_insn_sp32): Likewise.
275         (*movdf_insn_sp32_v9): Likewise.
276         (*movdf_insn_sp64): Likewise.
277         (V64 mode splitters) Likewise.
278         (addsi3): Remove VIS alternatives.
279         (subsi3): Likewise.
280         (and<V64I:mode>3): Revert to DImode only pattern.
281         (and<V64I:mode>3_sp32): Likewise.
282         (*and<V64I:mode>3_sp64): Likewise.
283         (and<V32I:mode>3): Likewise.
284         (*and_not_<V64I:mode>_sp32): Likewise.
285         (*and_not_<V64I:mode>_sp64): Likewise.
286         (*and_not_<V32I:mode>): Likewise.
287         (ior<V64I:mode>3): Likewise.
288         (*ior<V64I:mode>3_sp32): Likewise.
289         (*ior<V64I:mode>3_sp64): Likewise.
290         (ior<V32I:mode>3): Likewise.
291         (*or_not_<V64I:mode>_sp32): Likewise.
292         (*or_not_<V64I:mode>_sp64): Likewise.
293         (*or_not_<V32I:mode>): Likewise.
294         (xor<V64I:mode>3): Likewise.
295         (*xor<V64I:mode>3_sp32): Likewise.
296         (*xor<V64I:mode>3_sp64): Likewise.
297         (xor<V32I:mode>3): Likewise.
298         (V64I mode splitters): Likewise.
299         (*xor_not_<V64I:mode>_sp32): Likewise.
300         (*xor_not_<V64I:mode>_sp64): Likewise.
301         (*xor_not_<V32I:mode>): Likewise.
302         (one_cmpl<V64I:mode>2): Likewise.
303         (*one_cmpl<V64I:mode>2_sp32): Likewise.
304         (*one_cmpl<V64I:mode>2_sp64): Likewise.
305         (one_cmpl<V32I:mode>2): Likewise.
306         (VM32, VM64, VMALL): New mode iterators.
307         (vbits, vconstr, vfptype): New mode attributes.
308         (mov<VMALL:mode>): New expander.
309         (*mov<VM32:mode>_insn): New insn.
310         (*mov<VM64:mode>_insn_sp64): New insn.
311         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
312         specifically for the register to memory case.
313         (vec_init<mode>): New expander.
314         (VADDSUB): New mode iterator.
315         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
316         with...
317         (<plusminus_insn><mode>3): New consolidated pattern.
318         (VL): New mode iterator for logical operations.
319         (vlsuf): New more attribute.
320         (vlop): New code iterator.
321         (vlinsn, vlninsn): New code attributes.
322         (<code><mode>3): New insn to non-negated vector logical ops.
323         (*not_<code><mode>3): Likewise for negated variants.
324         (*nand<mode>_vis): New insn.
325         (vlnotop): New code iterator.
326         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
327         (one_cmpl<mode>2): New insn.
328         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
329         (bshuffle<VM64:mode>_vis): Likewise.
330         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
331         (fp<plusminus_insn>64_vis): Use V1DI mode.
332         (VASS mode iterator): Use V1SI not SI mode.
333         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
334         single-entry vector mode changes.
335         (sparc_expand_builtin): Likewise.
336         (sparc_expand_vector_init): New function.
337         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
338
339 2011-10-17  Kai Tietz  <ktietz@redhat.com>
340
341         * fold-const.c (simple_operand_p_2): New function.
342         (fold_truthop): Rename to
343         (fold_truth_andor_1): function name.
344         Additionally remove branching creation for logical and/or.
345         (fold_truth_andor): Handle branching creation for logical and/or here.
346
347 2011-10-17  Andi Kleen  <ak@linux.intel.com>
348
349         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
350
351 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
352
353         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
354         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
355         (adjust_len): Add alternative "call".
356         (isa, enabled): New insn attributes.
357         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
358         mcu_mega attribute.
359         (*sbrx_branch<mode>): Ditto.
360         (*sbrx_and_branch<mode>): Ditto.
361         (*sbix_branch): Ditto.
362         (*sbix_branch_bit7): Ditto.
363         (*sbix_branch_tmp): Ditto.
364         (*sbix_branch_tmp_bit7): Ditto.
365         (jump): Ditto.
366         (negsi2): Use attribute "isa" instead of assembler dialect.
367         (extendhisi2): Ditto.
368         (call_insn, call_value_insn): Set adjust_len attribute.
369         (indirect_jump): Indent to coding rules.
370         (call_prologue_saves): Use isa attribute instead of mcu_mega.
371         (epilogue_restores): Ditto.  Fix setting of SP as described in the
372         RTX pattern.
373         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
374         and *indirect_jump_avr6.
375         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
376         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
377         (*tablejump_rjmp, *tablejump_lib): Remove.
378         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
379
380 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
381
382         PR c++/50757
383         * doc/invoke.texi ([Wnonnull]): Update.
384
385 2011-10-17  Richard Henderson  <rth@redhat.com>
386
387         PR 50746
388         * optabs.c (expand_vec_perm_expr): Fix indexing error.
389
390 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
391
392         * configure.ac: Display `yes' if the SystemTap header has been
393         found.
394         * configure: Regenerate.
395
396 2011-10-08  Andi Kleen  <ak@linux.intel.com>
397
398         PR other/50636
399         * config.in, configure: Regenerate.
400         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
401         * ggc-page.c (USING_MADVISE): Add.
402         (page_entry): Add discarded field.
403         (alloc_page): Check for discarded pages.
404         (release_pages): Add USING_MADVISE branch.
405
406 2011-10-17  Richard Guenther  <rguenther@suse.de>
407
408         PR tree-optimization/50729
409         * tree-vrp.c (extract_range_from_unary_expr_1): Remove
410         redundant test.
411         (simplify_conversion_using_ranges): Properly test the
412         intermediate result.
413
414 2011-10-15  Tom Tromey  <tromey@redhat.com>
415             Dodji Seketeli  <dodji@redhat.com>
416
417         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
418         * ggc-none.c (ggc_round_alloc_size): New public stub function.
419         * ggc-page.c (ggc_alloced_size_order_for_request): New static
420         function.  Factorized from ggc_internal_alloc_stat.
421         (ggc_round_alloc_size): New public function.  Uses
422         ggc_alloced_size_order_for_request.
423         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
424         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
425         from ggc_internal_alloc_zone_stat.
426         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
427         * toplev.c (general_init): Initialize
428         line_table->alloced_size_for_request.
429
430 2011-10-15  Tom Tromey  <tromey@redhat.com>
431             Dodji Seketeli  <dodji@redhat.com>
432
433         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
434         macros.
435         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
436         new counters.
437         (dump_line_table_statistics): Define new function.
438         * input.h (dump_line_table_statistics): Declare new function.
439         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
440
441 2011-10-15  Tom Tromey  <tromey@redhat.com>
442             Dodji Seketeli  <dodji@redhat.com>
443
444         * doc/cppopts.texi: Document -fdebug-cpp.
445         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
446         options.
447
448 2011-10-15  Tom Tromey  <tromey@redhat.com>
449             Dodji Seketeli  <dodji@redhat.com>
450
451         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
452         location parameter.
453         * diagnostic.c (diagnostic_report_current_module): Add a location
454         parameter to the function definition.  Use it instead of
455         input_location.  Resolve the virtual location rather than just
456         looking up its map and risking to touch a resulting macro map.
457         (default_diagnostic_starter): Pass the relevant diagnostic
458         location to diagnostic_report_current_module.
459         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
460         (virt_loc_aware_diagnostic_finalizer): Likewise.
461         (diagnostic_report_current_function): Pass the
462         relevant location to diagnostic_report_current_module.
463         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
464         new function.
465         * toplev.c (general_init): By default, use the new
466         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
467         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
468
469 2011-10-15  Tom Tromey  <tromey@redhat.com>
470             Dodji Seketeli  <dodji@redhat.com>
471
472         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
473         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
474         preprocessor related options.
475
476 2011-10-15  Tom Tromey  <tromey@redhat>
477             Dodji Seketeli  <dodji@redhat.com>
478
479         * input.h (struct expanded_location): Move to libcpp/line-map.h.
480         (LOCATION_COLUMN): New accessor
481         (in_system_header_at): Use linemap_location_in_system_header_p.
482         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
483         touching the internals of struct line_map.  Use the public API.
484         instead.
485         (diagnostic_report_diagnostic): Don't use relational operator '<'
486         on virtual locations.  Use linemap_location_before_p instead.
487         * input.c (expand_location): Adjust to expand to the tokens'
488         spelling location when macro location tracking is on.
489
490
491 2011-10-08  Andi Kleen  <ak@linux.intel.com>
492
493         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
494
495 2011-10-13  Andi Kleen  <ak@linux.intel.com>
496
497         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
498
499 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
500
501         PR tree-optimization/50727
502         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
503         DEF_STMT to the list of statements to be replaced by the
504         pattern statements.
505
506 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
507
508         PR rtl-optimization/50615
509         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
510
511 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
512
513         PR tree-optimization/50596
514         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
515         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
516         vect_recog_bool_pattern.
517         (check_bool_pattern, adjust_bool_pattern_cast,
518         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
519
520 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
521
522         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
523         treat the first load of the node as the first element in its
524         interleaving chain.
525         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
526         necessary and possible.
527         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
528         in basic blocks.  Keep all the loads for further permutation check.
529         Use the new argument to determine if there is a permutation.  Update
530         the recursive calls.
531         (vect_supported_load_permutation_p): Allow subchains of interleaving
532         chains in basic block vectorization.
533         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
534         Check load permutation based on the new parameter.
535         (vect_schedule_slp_instance): Don't start from the first element in
536         interleaving chain unless the loads are permuted.
537
538 2011-10-15  Jan Hubicka  <jh@suse.cz>
539
540         PR target/48668
541         PR target/50689
542         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
543         after function body.
544
545 2011-10-15  Richard Henderson  <rth@redhat.com>
546
547         * tree-vect-slp.c: Include langhooks.h.
548         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
549         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
550         mask creation for VEC_PERM_EXPR.
551         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
552         not the builtin.
553         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
554         * Makefile.in (tree-vect-slp.o): Update dependency.
555         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
556
557 2011-10-15  Alan Modra  <amodra@gmail.com>
558
559         PR bootstrap/50738
560         * ifcvt.c (dead_or_predicable): Revert accidental commit with
561         HAVE_simple_return test.
562
563 2011-10-15  Alan Modra  <amodra@gmail.com>
564
565         * ifcvt.c (dead_or_predicable): Disable if-conversion when
566         doing so is likely to kill a shrink-wrapping opportunity.
567
568         PR rtl-optimization/49941
569         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
570
571         * rtl.h (set_return_jump_label): Declare.
572         * function.c (set_return_jump_label): New function, extracted..
573         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
574         another instance to set return jump_label.
575         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
576         * reorg.c (find_end_label): Likewise.
577
578 2011-10-14  David S. Miller  <davem@davemloft.net>
579
580         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
581         with a more complete cpp test.
582         * config/sparc/linux64.h: Likewise.
583         * config/sparc/linux.h: Likewise.
584         * config/sparc/sparc.opt (sparc_debug): New target variable.
585         (mdebug): New target option.
586         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
587         TARGET_DEBUG_OPTIONS): New defines.
588         * config/sparc/sparc.c (debug_target_flag_bits,
589         debug_target_flags): New functions.
590         (sparc_option_override): Add name strings back to cpu_table[].
591         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
592         out the target flags before and after override processing as well
593         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
594         cpu is at least v9.
595
596 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
597
598         PR target/49263
599         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
600         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
601         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
602         and instruction commutative.
603         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
604         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
605         tstsi_t_zero_extract_subreg_xor_little,
606         tstsi_t_zero_extract_subreg_xor_big): New insns.
607         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
608         asm output.
609         (*andsi_compact): Reorder alternatives so that K08 is considered first.
610
611 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
612
613         PR target/50354
614         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
615         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
616
617 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
618
619         * invoke.texi (AVR Options): Avoid \leq{}.
620
621 2011-10-14  Kai Tietz  <ktietz@redhat.com>
622
623         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
624         transformation the operands have compatible types.
625
626 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
627
628         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
629         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
630         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
631         mode iterator and any_extend code iterator.
632         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
633         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
634         also for TARGET_SSE4_1 using pmuldq insn.
635         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
636         (sse2_sse4_1): New code attr.
637         (udot_prodv4si): Macroize using any_extend code iterator.
638         (<s>dot_prodv8si): New expander.
639
640 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
641
642         * config/i386/i386.c (atom_cost): Changed cost for loading
643         QImode using movzbl.
644
645 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
646
647         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
648         change on October 11th, 2011.
649
650 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
651
652         * config/i386/sse.md (vec_interleave_high<mode>,
653         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
654         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
655         (ix86_expand_vec_perm_builtin_1): Call it.
656
657 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
658
659         Fix thinko from r179765
660         * config/avr/avr.c (avr_option_override): Don't override
661         flag_omit_frame_pointer if not actually needed.
662
663 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
664
665         PR target/46278
666         * doc/invoke.texi (AVR Options): Document -mstrict-X.
667
668         * config/avr/avr.opt (-mstrict-X): New option.
669         (avr_strict_X): New variable reflecting -mstrict-X.
670         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
671         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
672         (avr_legitimate_address_p): Pass outer_code to
673         avr_reg_ok_for_addr_p and use that function in case PLUS.
674         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
675         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
676         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
677
678 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
679
680         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
681         of VI_128.
682
683         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
684         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
685         Use <sseinsnmode> instead of TI in mode attr.
686
687 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
688
689         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
690         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
691         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
692         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
693
694 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
695
696         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
697         (arm_output_strex): Support strexd.
698         (arm_output_it): New helper to output it in Thumb2 mode only.
699         (arm_output_sync_loop): Support DI mode.  Change comment to
700         not support const_int.
701         (arm_expand_sync): Support DI mode.
702         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
703         and LDREXD.
704         * config/arm/iterators.md (NARROW): move from sync.md.
705         (QHSD): New iterator for all current ARM integer modes.
706         (SIDI): New iterator for SI and DI modes only.
707         * config/arm/sync.md (sync_predtab): New mode_attr.
708         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
709         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
710         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
711         (sync_nandsi): Fold into sync_nand<mode>.
712         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
713         (sync_new_nandsi): Fold into sync_new_nand<mode>.
714         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
715         (sync_old_nandsi): Fold into sync_old_nand<mode>.
716         (sync_compare_and_swap<mode>): Support SI & DI.
717         (sync_lock_test_and_set<mode>): Likewise.
718         (sync_<sync_optab><mode>): Likewise.
719         (sync_nand<mode>): Likewise.
720         (sync_new_<sync_optab><mode>): Likewise.
721         (sync_new_nand<mode>): Likewise.
722         (sync_old_<sync_optab><mode>): Likewise.
723         (sync_old_nand<mode>): Likewise.
724         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
725         (arm_sync_lock_test_and_setsi): Likewise.
726         (arm_sync_new_<sync_optab>si): Likewise.
727         (arm_sync_new_nandsi): Likewise.
728         (arm_sync_old_<sync_optab>si): Likewise.
729         (arm_sync_old_nandsi): Likewise.
730         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
731         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
732         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
733         (arm_sync_new_nand<mode> NARROW): Likewise.
734         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
735         (arm_sync_old_nand<mode> NARROW): Likewise.
736
737 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
738
739         PR target/48126
740         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
741
742 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
743
744         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
745
746 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
747
748         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
749
750 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
751
752         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
753         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
754
755 2011-10-14  Richard Guenther  <rguenther@suse.de>
756
757         PR tree-optimization/50723
758         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
759
760 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
761
762         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
763         objc/objc-map.c.
764
765 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
766
767         PR c++/17212
768         * doc/invoke.texi ([Wformat-zero-length]): Update.
769
770 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
771
772         PR bootstrap/50699
773         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
774         build for powerpc targets.  (darwin_patch_builtins): Only build for
775         powerpc targets.
776
777 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
778
779         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
780         (avx_cvtdq2pd256_2): ... this.
781         (sseunpackfltmode): New mode attr.
782         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
783         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
784         using VI2_AVX2 iterator.
785         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
786
787 2011-10-13  David S. Miller  <davem@davemloft.net>
788
789         * config/sparc/sparc.md (plusminus): New code iterator.
790         (plusminus_insn): New code attr.
791         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
792         using plusminus and plusminus_insn.
793         (fpadd64_vis, fpsub64_vis): Likewise.
794
795 2011-10-13  Richard Henderson  <rth@redhat.com>
796
797         * doc/md.texi (vec_perm): Document fallback to byte permutation.
798         * genopinit.c (optabs): Add vec_perm_const.
799         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
800         Reject non-vector modes.  Allow fallback to byte permutation.
801         (expand_vec_perm_expr_1): Split out from ...
802         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
803         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
804         * tree-vect-generic.c (lower_vec_perm): Update for name change.
805
806 2011-10-13  Richard Henderson  <rth@redhat.com>
807
808         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
809
810         * config/rs6000/spu.md (vec_permv16qi): New pattern.
811
812         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
813         * config/i386/i386-protos.h: Update.
814         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
815         (vec_perm_const<VEC_PERM_CONST>): New expander.
816
817         * optabs.c (expand_vector_broadcast): New.
818         (expand_binop): Expand scalar shifts of vectors to vector shifts
819         of vectors, if the former isn't supported.
820         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
821         here; always simplify to scalar shift of vector if possible.
822
823         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
824         test for vector splat.
825
826 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
827
828         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
829
830 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
831             Richard Guenther  <rguenther@suse.de>
832
833         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
834         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
835
836 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
837
838         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
839         * config/i386/i386.c (ix86_build_const_vector): Handle
840         also V32QI, V16QI, V16HI and V8HI modes.
841         (emit_reduc_half): New function.
842         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
843         Use emit_reduc_half helper function.
844
845 2011-10-13  Lawrence Crowl  <crowl@google.com>
846             Diego Novillo  <dnovillo@google.com>
847
848         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
849         (input_function): ... here.
850         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
851         (output_function): ... here.
852
853 2011-10-13  Gabriel Charette  <gchare@google.com>
854             Diego Novillo  <dnovillo@google.com>
855
856         * streamer-hooks.h (struct streamer_hooks): Add hooks
857         input_location and output_location.
858         * lto-streamer-in.c (lto_input_location): Use
859         streamer_hooks.input_location, if set.
860         * lto-streamer-out.c (lto_output_location): Use
861         streamer_hooks.output_location, if set.
862
863 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
864
865         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
866         * config/sparc/sparc.opt (mfix-at697f): New option.
867         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
868         (sparc_reorg): New function.
869
870 2011-10-13  Richard Guenther  <rguenther@suse.de>
871
872         PR tree-optimization/50712
873         * ipa-split.c (split_function): Always re-gimplify parameters
874         when they are not gimple vals before passing them.  Properly
875         check for type compatibility.
876
877 2011-10-13  Tom de Vries  <tom@codesourcery.com>
878
879         * function.c (gimplify_parameters): Set number of arguments of call to
880         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
881
882 2011-10-13  Tom de Vries  <tom@codesourcery.com>
883
884         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
885         for static const strings.
886         * varasm.c (build_constant_desc): Generate the memory location of the
887         constant using gen_const_mem.
888
889 2011-10-13  Richard Guenther  <rguenther@suse.de>
890
891         PR tree-optimization/50698
892         * tree-data-ref.c (split_constant_offset_1): Also process
893         offsets of &MEM.
894
895 2011-10-12  David S. Miller  <davem@davemloft.net>
896
897         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
898         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
899         unspecs.
900         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
901         of a vec_concat.
902         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
903         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
904         Reimplement as unspecs and remove inaccurate comments.
905         (vis3_shift_patname): New code attr.
906         (<vis3_shift_insn><vbits>_vis): Rename to
907         "v<vis3_shift_patname><mode>3".
908         (vis3_addsub_ss_patname): New code attr.
909         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
910         "<vis3_addsub_ss_patname><mode>3".
911         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
912         accommodate pattern name changes.
913
914         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
915         to zero when assembler lacks support for such instructions.
916         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
917         and MASK_FMAF in defaults when assembler lacks necessary support.
918
919 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
920
921         * config/i386/sse.md (vec_unpacks_lo_<mode>,
922         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
923         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
924         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
925         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
926
927         * config/i386/sse.md (vec_avx2): New mode_attr.
928         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
929         (mul<mode>3): ... this.
930
931         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
932         * config/i386/i386.c (ix86_expand_vec_perm): Handle
933         V16QImode and V32QImode for TARGET_AVX2.
934         (MAX_VECT_LEN): Increase to 32.
935         (expand_vec_perm_blend): Add support for 32-byte integer
936         vectors with TARGET_AVX2.
937         (valid_perm_using_mode_p): New function.
938         (expand_vec_perm_pshufb): Add support for 32-byte integer
939         vectors with TARGET_AVX2.
940         (expand_vec_perm_vpshufb2_vpermq): New function.
941         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
942         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
943         with TARGET_AVX2.
944         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
945         and expand_vec_perm_vpshufb2_vpermq_even_odd.
946         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
947         32-byte integer vector modes.
948         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
949         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
950         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
951         4 new operands.
952         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
953         match_dup, instead add 4 new operands and require they have
954         right cross-lane values.
955         (avx2_permv4di): Change into define_expand.
956         (avx2_permv4di_1): New instruction.
957         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
958         for "xm" constrained operand.
959         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
960
961         * config/i386/sse.md (avx2_gathersi<mode>,
962         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
963         match_scratch, change memory_operand to register_operand,
964         add (mem:BLK (scratch)) use.
965         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
966         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
967         add earlyclobber to the output operand and match_scratch,
968         add (mem:BLK (scratch)) use, change the other mem to match_operand.
969         Use %p6 instead of %c6 in the pattern.
970         * config/i386/i386.c (ix86_expand_builtin): Adjust for
971         operand 2 being a Pmode register_operand instead of memory_operand.
972
973 2011-10-12  Kai Tietz  <ktietz@redhat.com>
974
975         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
976
977 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
978
979         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
980
981 2011-10-12  Richard Guenther  <rguenther@suse.de>
982
983         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
984         of the first store we visit in a basic-block.
985         (get_continuation_for_phi): Search for a candidate VUSE that
986         might dominates all others.  Do pairwise disambiguation against
987         that candidate.
988
989 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
990
991         PR tree-optimization/50189
992         * tree-vrp.c (extract_range_from_assert): Use the type of
993         the variable, not the limit.
994
995 2011-10-12  Richard Guenther  <rguenther@suse.de>
996
997         PR tree-optimization/50700
998         * tree-object-size.c (addr_object_size): Simplify and treat
999         MEM_REF bases consistently.
1000
1001 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
1002
1003         * function.c (prepare_shrink_wrap, bb_active_p): New function.
1004         (thread_prologue_and_epilogue_insns): Use bb_active_p.
1005         Call prepare_shrink_wrap, then recompute bb_active_p for the
1006         last block.
1007
1008 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
1009
1010         PR c/50565
1011         * convert.c (convert_to_integer): Do not narrow operands of
1012         pointer subtraction.
1013
1014 2011-10-12  Nick Clifton  <nickc@redhat.com>
1015
1016         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
1017         emit a .eabi_attribute assembler directive, possibly with a
1018         comment attached.
1019         * config/arm/arm.c (arm_file_start): Use the new macro.
1020         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
1021
1022 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
1023
1024         PR target/49939
1025         * config/avr/avr.md (*movqi): Rename to movqi_insn.
1026         (*call_insn): Rename to call_insn.
1027         (*call_value_insn): Rename to call_value_insn.
1028         * config/avr/avr.c (avr_2word_insn_p): New static function.
1029         (jump_over_one_insn_p): Use it.
1030
1031 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
1032
1033         * expr.h (copy_blkmode_to_reg): Declare.
1034         * expr.c (copy_blkmode_to_reg): New function.
1035         (expand_assignment): Don't expand register RESULT_DECLs before
1036         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
1037         RESULT_DECL register.
1038         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1039         * stmt.c (expand_return): Move BLKmode-to-register code into
1040         copy_blkmode_to_reg.
1041
1042 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1043
1044         PR target/49965
1045         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1046         (mov<F:mode>cc): Likewise.
1047
1048 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1049
1050         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1051
1052 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1053
1054         * tree.h (built_in_decls): Delete old interface with two parallel
1055         arrays to hold standard builtin declarations, and replace it with
1056         a function based interface that can support creating builtins on
1057         the fly in the future.  Change all uses, and poison the old
1058         names.  Make sure 0 is not a legitimate builtin index.
1059         (implicit_built_in_decls): Ditto.
1060         (built_in_info): Ditto.
1061         (BUILTIN_VALID_P): Ditto.
1062         (builtin_decl_explicit): Ditto.
1063         (builtin_decl_implicit): Ditto.
1064         (set_builtin_decl): Ditto.
1065         (set_builtin_decl_implicit_p): Ditto.
1066         (builtin_decl_explicit_p): Ditto.
1067         (builtin_decl_implicit_p): Ditto.
1068         * tree-complex.c (expand_complex_libcall): Ditto.
1069         * tree-loop-distribution.c (generate_memset_zero): Ditto.
1070         * tree-ssa-strlen.c (get_string_length): Ditto.
1071         (handle_builtin_strcpy): Ditto.
1072         (handle_builtin_strcat): Ditto.
1073         * tree.c (iterative_hash_expr): Ditto.
1074         (local_define_builtin): Ditto.
1075         (build_common_builtin_nodes): Ditto.
1076         * builtins.c (built_in_decls): Ditto.
1077         (implicit_built_in_decls): Ditto.
1078         (built_in_info): Ditto
1079         (expand_builtin_classify_type): Ditto.
1080         (mathfn_built_in_1): Ditto.
1081         (expand_builtin_cexpi): Ditto.
1082         (expand_builtin_mempcpy_args): Ditto.
1083         (expand_builtin_stpcpy): Ditto.
1084         (gimplify_va_arg_expr): Ditto.
1085         (expand_builtin_sync_operation): Ditto.
1086         (build_builtin_expect_predicate): Ditto.
1087         (fold_builtin_memory_op): Ditto.
1088         (fold_builtin_strcpy): Ditto.
1089         (fold_builtin_stpcpy): Ditto.
1090         (fold_builtin_strncpy): Ditto.
1091         (fold_builtin_interclass_mathfn): Ditto.
1092         (fold_builtin_classify): Ditto.
1093         (fold_builtin_2): Ditto.
1094         (fold_builtin_strstr): Ditto.
1095         (fold_builtin_strrchr): Ditto.
1096         (fold_builtin_strpbrk): Ditto.
1097         (fold_builtin_strcat): Ditto.
1098         (fold_builtin_strncat): Ditto.
1099         (fold_builtin_strcspn): Ditto.
1100         (fold_builtin_fputs): Ditto.
1101         (fold_builtin_sprintf): Ditto.
1102         (fold_builtin_snprintf): Ditto.
1103         (expand_builtin_memory_chk): Ditto.
1104         (fold_builtin_memory_chk): Ditto.
1105         (fold_builtin_stxcpy_chk): Ditto.
1106         (fold_builtin_strncpy_chk): Ditto.
1107         (fold_builtin_strcat_chk): Ditto.
1108         (fold_builtin_strncat_chk): Ditto.
1109         (fold_builtin_sprintf_chk_1): Ditto.
1110         (fold_builtin_snprintf_chk_1): Ditto.
1111         (fold_builtin_printf): Ditto.
1112         (fold_builtin_fprintf): Ditto.
1113         (fold_call_stmt): Ditto.
1114         (set_builtin_user_assembler_name): Ditto.
1115         * tree-emutls.c (emutls_common_1): Ditto.
1116         * omp-low.c (scan_omp): Ditto.
1117         (lower_rec_input_clauses): Ditto.
1118         (lower_reduction_clauses): Ditto.
1119         (expand_parallel_call): Ditto.
1120         (expand_task_call): Ditto.
1121         (maybe_catch_exception): Ditto.
1122         (optimize_omp_library_calls): Ditto.
1123         (expand_omp_for_generic): Ditto.
1124         (expand_omp_for_static_nochunk): Ditto.
1125         (expand_omp_for_static_chunk): Ditto.
1126         (expand_omp_sections): Ditto.
1127         (expand_omp_atomic_fetch_op): Ditto.
1128         (expand_omp_atomic_pipeline): Ditto.
1129         (expand_omp_atomic_mutex): Ditto.
1130         (lower_omp_single_simple): Ditto.
1131         (lower_omp_single_copy): Ditto.
1132         (lower_omp_master): Ditto.
1133         (lower_omp_ordered): Ditto.
1134         (lower_omp_critical): Ditto.
1135         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1136         * builtins.c (DEF_BUILTIN_STUB): Ditto.
1137         (BUILT_IN_NONE): Ditto.
1138         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1139         * gimple-low.c (lower_function_body): Ditto.
1140         (lower_builtin_setjmp): Ditto.
1141         * c-decl.c (merge_decls): Ditto.
1142         * tree-eh.c (lower_resx): Ditto.
1143         (lower_resx): Ditto.
1144         (lower_eh_dispatch): Ditto.
1145         * function (gimplify_parameters): Ditto.
1146         * c-typeck.c (build_function_call_vec): Ditto.
1147         * gimplify.c (build_stack_save_restore): Ditto.
1148         (gimplify_vla_decl): Ditto.
1149         (gimplify_modify_expr_to_memcpy): Ditto.
1150         (gimplify_modify_expr_to_memset): Ditto.
1151         (gimplify_variable_sized_compare): Ditto.
1152         (gimplify_function_tree): Ditto.
1153         * calls.c (emit_call_1): Ditto.
1154         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1155         * tree-nested.c (convert_nl_goto_reference): Ditto.
1156         (convert_tramp_reference_op): Ditto.
1157         (finalize_nesting_tree_1): Ditto.
1158         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1159         (tree_ssa_prefetch_arrays): Ditto.
1160         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1161         * system.h (built_in_decls): Ditto.
1162         (implicit_built_in_decls): Ditto.
1163         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1164         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1165         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1166         (ix86_veclibabi_svml): Ditto.
1167         (ix86_veclibabi_acml): Ditto.
1168         * config/vms/vms.c (vms_patch_builtins): Ditto.
1169         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1170         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1171         (rs6000_builtin_vectorized_libmass): Ditto.
1172         (rs6000_init_builtins): Ditto.
1173         * config/darwin.c (darwin_override_options): Ditto.
1174         (darwin_patch_builtin): Ditto.
1175         (darwin_rename_builtins): Ditto.
1176         * config/pa/pa.c (pa_init_builtins): Ditto.
1177
1178 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1179
1180         * tree.h (copy_ref_info): Expose existing function.
1181         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1182         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1183
1184 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1185
1186         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1187         prototype.
1188         (avr_regno_mode_code_ok_for_base_p): New prototype.
1189         * config/avr/avr.h (BASE_REG_CLASS): Remove.
1190         (REGNO_OK_FOR_BASE_P): Remove.
1191         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1192         (REG_OK_FOR_BASE_STRICT_P): Remove.
1193         (MODE_CODE_BASE_REG_CLASS): New define.
1194         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1195         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1196         (avr_regno_mode_code_ok_for_base_p): New function.
1197         (avr_reg_ok_for_addr_p): New static function.
1198         (avr_legitimate_address_p): Use it.  Beautify.
1199
1200 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1201
1202         PR target/50447
1203         * config/avr/avr.md (cc): Add out_plus attribute alternative.
1204         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
1205         avr_out_plus for all CONST_INT addends.
1206         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1207         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1208         CC_OUT_PLUS.
1209         (avr_out_plus_1): Change prototype and report effect on cc0.
1210         (avr_out_plus): Ditto.
1211         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1212
1213 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1214
1215         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1216         the extra break.
1217
1218 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1219
1220         * doc/invoke.texi: Document new warning.
1221         * common.opt (Wvector-operation-performance): Define new warning.
1222         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1223         vector operation.
1224         (exapnd_vector_parallel): Warn about expanded vector operation.
1225         (lower_vec_shuffle): Warn about expanded vector operation.
1226         * c-typeck.c (c_build_vec_perm_expr): Store correct location
1227         when creating VEC_PERM_EXPR.
1228
1229 2011-10-11  Richard Guenther  <rguenther@suse.de>
1230
1231         PR tree-optimization/50204
1232         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1233         two argument handling from ...
1234         (get_continuation_for_phi): ... here.  Handle arbitrary number
1235         of PHI args.
1236
1237 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
1238
1239         * modulo-sched.c: Fix comment typo.  Mention the possibility
1240         of using scheduling windows of II+1 cycles.
1241
1242 2011-10-11  Tristan Gingold  <gingold@adacore.com>
1243
1244         * doc/invoke.texi (C Dialect Options): Document
1245         -fallow-parameterless-variadic-functions.
1246         * c-parser.c (c_parser_parms_list_declarator): Handle it.
1247
1248 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1249
1250         * config/avr/avr.c (avr_option_override): Set
1251         flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1252
1253 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
1254
1255         PR bootstrap/50665
1256         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
1257         optab_index to enum direct_optab_index.
1258         (vec_perm_optab): Update.
1259
1260 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
1261
1262         * config/cris/cris.c (cris_preferred_reload_class): New function.
1263         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1264         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1265
1266 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1267
1268         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1269         !AVR_HAVE_JMP_CALL.
1270         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1271         (*tablejump_enh, *tablejump): Remove insns.
1272         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1273         EIJMP for indirect jump.  Use LPM Z+ where available.
1274
1275 2011-10-10  Richard Henderson  <rth@redhat.com>
1276
1277         * doc/md.texi (vec_perm_const): Fix typo in cindex.
1278
1279 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
1280             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
1281
1282         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1283
1284 2011-10-10  Richard Guenther  <rguenther@suse.de>
1285
1286         PR middle-end/50389
1287         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1288         mark symbols for renaming.  Append the VUSE to all statements
1289         that possibly can have one.
1290
1291 2011-10-10  Richard Guenther  <rguenther@suse.de>
1292
1293         * ipa-split.c (pass_split_functions): Add verification TODOs.
1294         (pass_feedback_split_functions): Likewise.
1295
1296 2011-10-10  Richard Guenther  <rguenther@suse.de>
1297
1298         PR middle-end/50195
1299         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1300         only when optimizing.
1301
1302 2011-10-10  Nick Clifton  <nickc@redhat.com>
1303
1304         PR middle-end/49801
1305         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1306         df_get_live_out instead of accessing the bitmaps directly.
1307         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1308         df_live_add_problem and df_analyze.
1309
1310 2011-10-10  Michael Matz  <matz@suse.de>
1311
1312         PR middle-end/50638
1313         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1314
1315 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1316
1317         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1318         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1319         (node_sched_params): Remove first_reg_move and nreg_moves.
1320         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1321         (update_node_sched_params): Move up file.
1322         (print_node_sched_params): Print the stage.  Don't dump info related
1323         to first_reg_move and nreg_moves.
1324         (set_columns_for_row): New function.
1325         (set_columns_for_ps): Move up file and use set_columns_for_row.
1326         (schedule_reg_move): New function.
1327         (schedule_reg_moves): Call extend_node_sched_params and
1328         schedule_reg_move.  Extend size of uses bitmap.  Initialize
1329         num_consecutive_stages.  Return false if a move could not be
1330         scheduled.
1331         (apply_reg_moves): Don't emit moves here.
1332         (permute_partial_schedule): Handle register moves.
1333         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
1334         to the same stage-count test as ddg nodes.
1335         (generate_prolog_epilog): Update calls accordingly.
1336         (sms_schedule): Allow move-scheduling to add a new first stage.
1337
1338 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1339
1340         * modulo-sched.c (ps_insn): Adjust comment.
1341         (ps_reg_move_info): New structure.
1342         (partial_schedule): Add reg_moves field.
1343         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1344         (node_sched_params): Turn first_reg_move into an identifier.
1345         (ps_reg_move): New function.
1346         (ps_rtl_insn): Cope with register moves.
1347         (ps_first_note): Adjust comment and assert that the instruction
1348         isn't a register move.
1349         (node_sched_params): Replace with...
1350         (node_sched_param_vec): ...this vector.
1351         (set_node_sched_params): Adjust accordingly.
1352         (print_node_sched_params): Take a partial schedule instead of a ddg.
1353         Use ps_rtl_insn and ps_reg_move.
1354         (generate_reg_moves): Rename to...
1355         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
1356         move in the partial schedule, but don't emit it here.  Don't perform
1357         register substitutions here either.
1358         (apply_reg_moves): New function.
1359         (duplicate_insns_of_cycles): Use register indices directly,
1360         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
1361         (sms_schedule): Call schedule_reg_moves before committing to
1362         a partial schedule.   Try the next ii if the schedule fails.
1363         Use apply_reg_moves instead of generate_reg_moves.  Adjust
1364         call to print_node_sched_params.  Free node_sched_param_vec
1365         instead of node_sched_params.
1366         (create_partial_schedule): Initialize reg_moves.
1367         (free_partial_schedule): Free reg_moves.
1368
1369 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1370
1371         * modulo-sched.c (ps_insn): Replace node field with an identifier.
1372         (SCHED_ASAP): Replace with..
1373         (NODE_ASAP): ...this macro.
1374         (SCHED_PARAMS): New macro.
1375         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1376         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1377         (node_sched_params): Remove asap.
1378         (ps_rtl_insn, ps_first_note): New functions.
1379         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
1380         asap values.
1381         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1382         (generate_reg_moves): Pass ids to the SCHED_* macros.
1383         (update_node_sched_params): Take a ps insn identifier rather than
1384         a node as parameter.  Use ps_rtl_insn.
1385         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1386         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1387         (optimize_sc): Update for above field and SCHED_* macro changes.
1388         Update calls to try_scheduling_node_in_cycle and
1389         update_node_sched_params.
1390         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1391         macro changes.  Use ps_rtl_insn and ps_first_note.
1392         (sms_schedule): Pass ids to the SCHED_* macros.
1393         (get_sched_window): Adjust for above field and SCHED_* macro changes.
1394         Use NODE_ASAP instead of SCHED_ASAP.
1395         (try_scheduling_node_in_cycle): Remove node parameter.  Update
1396         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
1397         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1398         (ps_insert_empty_row): Adjust for above field changes.
1399         (compute_split_row): Use ids rather than nodes.
1400         (verify_partial_schedule): Adjust for above field changes.
1401         (print_partial_schedule): Use ps_rtl_insn.
1402         (create_ps_insn): Take an id rather than a node.
1403         (ps_insn_find_column): Adjust for above field changes.
1404         Use ps_rtl_insn.
1405         (ps_insn_advance_column): Adjust for above field changes.
1406         (add_node_to_ps): Remove node parameter.  Update call to
1407         create_ps_insn.
1408         (ps_has_conflicts): Use ps_rtl_insn.
1409         (ps_add_node_check_conflicts): Replace node parameter than an id.
1410
1411 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1412
1413         * modulo-sched.c (undo_replace_buff_elem): Delete.
1414         (generate_reg_moves): Don't build and return an undo list.
1415         (free_undo_replace_buff): Delete.
1416         (sms_schedule): Adjust call to generate_reg_moves.
1417         Don't call free_undo_replace_buff.
1418
1419 2011-10-10  Matthias Klose <doko@ubuntu.com>
1420
1421         * common/config/m32c: Remove empty directory.
1422
1423 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1424
1425         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1426
1427 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1428
1429         PR target/50652
1430         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1431         atmega164a to 0x100.
1432
1433 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1434
1435         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1436         the replacement if the conversion to the LHS type is not useless.
1437
1438 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
1439
1440         PR tree-optimization/50635
1441         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1442         DEF_STMT to the list of statements to be replaced by the
1443         pattern statements.
1444         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1445
1446 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
1447
1448         * system.h: Commit forgotten hunk in previous patch.
1449         (OUTPUT_ADDR_CONST_EXTRA): Poison.
1450
1451 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1452
1453         PR libobjc/50428
1454         * doc/objc.texi (Garbage Collection): Updated example to protect
1455         +initialize against execution in subclasses.
1456
1457 2011-10-07  Richard Henderson  <rth@redhat.com>
1458
1459         * doc/extend.texi (__builtin_shuffle): Improve the description to
1460         include the modulus of the selector.  Mention OpenCL.
1461         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1462
1463         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1464         * genopinit.c (optabs): Rename vshuffle to vec_perm.
1465         * c-typeck.c (c_build_vec_perm_expr): Rename from
1466         c_build_vec_shuffle_expr.  Update for name changes.
1467         * optabs.c (expand_vec_perm_expr_p): Rename from
1468         expand_vec_shuffle_expr_p.
1469         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1470         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1471         (vec_perm_optab): Rename from vshuffle_optab.
1472         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1473         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1474         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1475
1476         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1477         ix86_expand_vshuffle.
1478         * config/i386/i386-protos.h: Update.
1479         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1480         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1481
1482 2011-10-07  Richard Henderson  <rth@redhat.com>
1483
1484         * config/i386/predicates.md (avx2_pblendw_operand): New.
1485         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1486         (avx2_pblendw, *avx2_pblendw): New expander and insn.
1487
1488 2011-10-07  Richard Henderson  <rth@redhat.com>
1489
1490         * config/i386/i386.c (bdesc_args): Update code for
1491         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
1492         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1493         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1494         * config/i386/sse.md (mode iterator V16): Add V2TI.
1495         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1496         (mode attr ssse3_avx2): Add V2TI.
1497         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1498
1499 2011-10-07  David S. Miller  <davem@davemloft.net>
1500
1501         PR 50655
1502         * configure.ac: Add .register directives to VIS3 test.
1503         * configure: Regenerate.
1504
1505 2011-10-07  Richard Henderson  <rth@redhat.com>
1506
1507         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1508
1509 2011-10-07  Richard Henderson  <rth@redhat.com>
1510
1511         PR 49752
1512         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1513
1514 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
1515
1516         * config/arm/predicates.md (shift_amount_operand): Remove constant
1517         range check.
1518         (shift_operator): Check range of constants for all shift operators.
1519
1520 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1521
1522         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1523         Load GOT pointer for non-pic builds.
1524         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1525         (s390_emit_call): Likewise.
1526
1527 2011-10-07  Tom de Vries  <tom@codesourcery.com>
1528
1529         PR middle-end/50527
1530         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1531         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1532         throw.
1533         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1534         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1535         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1536         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1537         * tree-ssa-ccp.c (evaluate_stmt): Set align for
1538         BUILT_IN_ALLOCA_WITH_ALIGN.
1539         (fold_builtin_alloca_for_var): Rename to ...
1540         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1541         BUILT_IN_ALLOCA_WITH_ALIGN argument.
1542         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1543         fold_builtin_alloca_with_align.
1544         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1545         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1546         DEF_BUILTIN_STUB.
1547         * ipa-pure-const.c (special_builtin_state): Handle
1548         BUILT_IN_ALLOCA_WITH_ALIGN.
1549         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1550         (call_may_clobber_ref_p_1): Same.
1551         * function.c (gimplify_parameters): Lower vla to
1552         BUILT_IN_ALLOCA_WITH_ALIGN.
1553         * gimplify.c (gimplify_vla_decl): Same.
1554         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1555         * tree-mudflap.c (mf_xform_statements): Same.
1556         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1557         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1558         * varasm.c (incorporeal_function_p): Same.
1559         * tree-object-size.c (alloc_object_size): Same.
1560         * gimple.c (gimple_build_call_from_tree): Same.
1561
1562 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
1563
1564         * function.c (frame_required_for_rtx): Remove function.
1565         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
1566         changed.  Compute a set of mentioned registers and compare against
1567         the new arg rather than calling frame_required_for_rtx.
1568         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1569         reg set.  Convert the unconverted_simple_returns mechanism to store
1570         jump insns rather than their basic blocks.  Also check the
1571         orig_entry_edge destination for new blocks.
1572
1573 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
1574
1575         PR tree-optimization/50650
1576         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1577         call vect_is_simple_cond here, instead fail if cond_expr isn't
1578         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1579         for cond_expr's first operand.
1580         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1581         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1582
1583 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1584
1585         * config/s390/s390.md (DWH, dwh): New mode macros.
1586         ("umulsidi3"): Extend to support "umulditi3" as well.
1587
1588 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
1589             H.J. Lu  <hongjiu.lu@intel.com>
1590
1591         PR target/50603
1592         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1593         integer PLUS RTX to a register to improve address combine.
1594
1595 2011-10-06  Richard Henderson  <rth@redhat.com>
1596
1597         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1598         parameter; use it to decide whether to merge two notes.
1599         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1600         for the deallocation case as well.
1601
1602 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
1603
1604         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1605         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1606         * doc/tm.texi: Regenerate.
1607         * target.def (output_addr_const_extra): Use
1608         hook_bool_FILEptr_rtx_false.
1609         * targhooks.c (default_asm_output_addr_const_extra): Remove.
1610         * targhooks.h (default_asm_output_addr_const_extra): Remove.
1611         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1612         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1613
1614 2011-10-06  David S. Miller  <davem@davemloft.net>
1615
1616         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1617         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1618         SI mode 64-bit code gen case explicitly zero-extend and truncate.
1619         (*popcount<mode>_sp64): Split up into...
1620         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1621         SImode case use truncate.
1622         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1623         subtract so the compiler can optimize it.
1624         (SIDI): Remove unused mode iterator.
1625
1626 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1627
1628         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1629         on the orig_entry_edge. Don't account for it in prologue_clobbered.
1630
1631 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1632
1633         PR tree-optimization/50596
1634         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1635         (NUM_PATTERNS): Change to 6.
1636         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1637         function.
1638         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1639         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1640         if it already has one, and don't set STMT_VINFO_VECTYPE in it
1641         if it is already set.
1642         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1643         COND_EXPR in pattern stmts.
1644         (vect_is_simple_cond): No longer static.
1645
1646 2001-10-06  Richard Henderson  <rth@redhat.com>
1647
1648         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1649         * config/i386/sse.md (sseshuffint): Remove.
1650         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1651         (VSHUFFLE_AVX2): New mode iterator.
1652         (vshuffle<mode>): Use it.
1653         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1654
1655         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1656         for vector_all_ones_operand.
1657         (ix86_expand_int_vcond): Distinguish between comparison mode
1658         and data mode.  Allow them to differ.
1659         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1660
1661 2001-10-06  Richard Henderson  <rth@redhat.com>
1662
1663         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1664         mask operand.  Tidy the code.
1665
1666 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1667
1668         * tree-vect-patterns.c (vect_pattern_recog_1): Use
1669         vect_recog_func_ptr typedef for the first argument.
1670         (vect_pattern_recog): Rename vect_recog_func_ptr variable
1671         to vect_recog_func, use vect_recog_func_ptr typedef for it.
1672
1673         PR tree-optimization/49279
1674         * tree-ssa-structalias.c (find_func_aliases): Don't handle
1675         CAST_RESTRICT.
1676         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1677         restrict propagation.
1678         * tree-ssa.c (useless_type_conversion_p): Don't return false
1679         if TYPE_RESTRICT differs.
1680
1681 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1682
1683         * function.c (thread_prologue_and_epilogue_insns): Build a vector
1684         of unconverted simple return blocks rather than trying to
1685         recompute them later based on bb_flags bitmap tests.
1686
1687 2011-10-06  Michael Matz  <matz@suse.de>
1688
1689         * tree-flow.h (get_var_ann): Don't declare.
1690         * tree-flow-inline.h (get_var_ann): Remove.
1691         (set_is_used): Use var_ann, not get_var_ann.
1692         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1693         * tree-profile.c (gimple_gen_edge_profiler): Call
1694         find_referenced_var_in.
1695         (gimple_gen_interval_profiler): Ditto.
1696         (gimple_gen_pow2_profiler): Ditto.
1697         (gimple_gen_one_value_profiler): Ditto.
1698         (gimple_gen_average_profiler): Ditto.
1699         (gimple_gen_ior_profiler): Ditto.
1700         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1701         (gimple_gen_ic_func_profiler): Call add_referenced_var.
1702         * tree-mudflap.c (execute_mudflap_function_ops): Call
1703         add_referenced_var.
1704
1705 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1706
1707         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1708         don't set SSA_NAME_DEF_STMT that has been already set by
1709         gimple_build_assign_with_ops.
1710         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1711         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1712         Likewise.
1713
1714         * tree.h (avoid_folding_inline_builtin): New prototype.
1715         * builtins.c (avoid_folding_inline_builtin): No longer static.
1716         * gimple-fold.c (gimple_fold_builtin): Give up if
1717         avoid_folding_inline_builtin returns true.
1718
1719 2011-10-06  Richard Guenther  <rguenther@suse.de>
1720
1721         * tree-vect-generic.c (vector_element): Look at previous
1722         generated results.
1723
1724 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
1725
1726         PR target/39950
1727         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1728         __powerpc__, __PPC__, __unix__.
1729
1730 2011-10-06  Michael Matz  <matz@suse.de>
1731
1732         * i386/i386.opt (recip_mask, recip_mask_explicit,
1733         x_recip_mask_explicit): New variables and cl_target member.
1734         (mrecip=): New option.
1735         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1736         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1737         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1738         TARGET_RECIP_VEC_SQRT): New tests.
1739         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1740         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1741         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1742         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1743         * i386/i386.c (ix86_option_override_internal): Set recip_mask
1744         for -mrecip and -mrecip=options.
1745         (ix86_function_specific_save): Save recip_mask_explicit.
1746         (ix86_function_specific_restore): Restore recip_mask_explicit.
1747
1748         * doc/invoke.texi (ix86 Options): Document the new option.
1749
1750 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1751
1752         PR target/49049
1753         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1754
1755 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
1756
1757         PR target/50305
1758         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1759         output of a previous pass through legitimize_reload_address.
1760         Do not attempt to optimize addresses if the base register is
1761         equivalent to a constant.
1762
1763 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1764
1765         * function.c (thread_prologue_and_epilogue_insns): Mark
1766         last_bb_active as possibly unused.  It is unused for targets which
1767         do neither have "return" nor "simple_return" expanders.
1768
1769 2011-10-06  Richard Guenther  <rguenther@suse.de>
1770
1771         * fold-const.c (fold_ternary_loc): Also fold non-constant
1772         vector CONSTRUCTORs.  Make more efficient.
1773         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1774         (cprop_into_stmt): Don't propagate into virtual operands.
1775         (optimize_stmt): Really dump original statement.
1776
1777 2011-10-06  Nick Clifton  <nickc@redhat.com>
1778
1779         * config/rx/rx.md (smin3): Revert previous delta.
1780
1781 2011-10-06  Richard Guenther  <rguenther@suse.de>
1782
1783         PR tree-optimization/38884
1784         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1785         reads from aggregate SSA names.
1786
1787 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1788
1789         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1790         argument, truncate it at the beginning instead of allocating there
1791         and freeing at the end.
1792         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1793         pass its address to vect_pattern_recog_1.
1794
1795 2011-10-05  David S. Miller  <davem@davemloft.net>
1796
1797         * config/sparc/sparc.opt (POPC): New option.
1798         * doc/invoke.texi: Document it.
1799         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1800         default on Niagara-2 and later.
1801         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1802         * config/sparc/sparc.md (SIDI): New mode iterator.
1803         (ffsdi2): Delete commented out pattern and comments.
1804         (popcount<mode>2, clz<mode>2): New expanders.
1805         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1806         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1807
1808 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1809
1810         PR middle-end/50607
1811         * c-tree.h (c_expr_t): New typedef for struct c_expr.
1812         (C_EXPR_APPEND): New macro.
1813         * c-parser.c (c_parser_get_builtin_args): Preserve
1814         original_tree_code of c_expr structure.
1815         (c_parser_postfix_expression): Adjust to the new function.
1816
1817 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1818
1819         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1820         if profiling after the prologue.
1821
1822 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1823
1824         PR tree-optimization/50613
1825         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1826         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1827         and if it is neither that not SSA_NAME, give up.
1828
1829 2011-10-05  Richard Henderson  <rth@redhat.com>
1830
1831         * tree-vect-generic.c (vector_element): Never fail.  Use
1832         build_zero_cst.  Tidy up type references.
1833         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
1834         code duplication.  Do update_stmt here ...
1835         (expand_vector_operations_1): ... not here.
1836
1837         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
1838         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
1839         duplication.  Handle V2DI without SSE4.1.
1840         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1841         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1842
1843 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1844
1845         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1846         of "found".  Simplify return value calculation.
1847         (distance_agu_use): Ditto.
1848
1849 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1850
1851         PR bootstrap/50621
1852         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1853         if the function was not shrink-wrapped.
1854         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1855         to an insn.
1856         * function.c (thread_prologue_and_epilogue_insns): Make sure the
1857         shrink_wrapped flag is set even if there is no dump file.
1858
1859 2011-10-05  DJ Delorie  <dj@redhat.com>
1860             Nick Clifton  <nickc@redhat.com>
1861
1862         * config/rx/rx.opt (mpid): Define.
1863         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1864         (MULTILIB_DIRNAMES): Add pid.
1865         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1866         (rx_num_interrupt_regs): New variable.
1867         (rx_gp_base_regnum): New function.  Returns the number of the
1868         small data area register.
1869         (rx_pid_base_regnum): New function.  Returns the number of the pid
1870         base register.
1871         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
1872         (rx_pid_data_operand): New function.  Returns whether an object is
1873         in the position independent data area.
1874         (rx_legitimize_address): New function.  Puts undecided PID
1875         objects in the PID data area.
1876         (rx_is_legitimate_address): Add support for PID operands.
1877         (rx_print_operand_address): Likewise.
1878         (rx_print_operand): Likewise.
1879         (rx_maybe_pidify_operand): New function.  Determine if an operand
1880         is suitable for PID addressing.
1881         (rx_gen_move_template): Add PID support.
1882         (rx_conditional_register_usage): Likewise.
1883         (rx_option_override): Initialise rx_num_interrupt_regs.
1884         (rx_is_legitimate_constant): Add support for PID constants.
1885         (TARGET_LEGITIMIZE_ADDRESS): Define.
1886         * config/rx/constraints.md (Rpid): Define.
1887         (Rpda): Define.
1888         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1889         (tablejump): Add PID support.
1890         (mov<>): Likewise.
1891         (mov<>_internal): Likewise.
1892         (addsi3): Convert to an expander.  Add PID support.
1893         (pid_addr): New pattern.
1894         * config/rx/rx.h (CPP_SPEC): Define.
1895         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1896         (CASE_VECTOR_PC_RELATIVE): Define.
1897         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1898         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1899         * doc/invoke.texi (RX Options): Document -mpid command line option.
1900
1901 2011-10-05  Richard Guenther  <rguenther@suse.de>
1902
1903         PR tree-optimization/38885
1904         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1905         from constants.
1906
1907 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1908
1909         * doc/invoke.texi (-fshrink-wrap): Document.
1910         * opts.c (default_options_table): Add it.
1911         * common.opt (fshrink-wrap): Add.
1912         * function.c (emit_return_into_block): Remove useless declaration.
1913         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1914         requires_stack_frame_p, gen_return_pattern): New static functions.
1915         (emit_return_into_block): New arg simple_p.  All callers changed.
1916         Use gen_return_pattern.
1917         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1918         * config/i386/i386.md (return): Expand into a simple_return.
1919         (simple_return): New expander):
1920         (simple_return_internal, simple_return_internal_long,
1921         simple_return_pop_internal_long, simple_return_indirect_internal):
1922         Renamed from return_internal, return_internal_long,
1923         return_pop_internal_long and return_indirect_internal; changed to use
1924         simple_return.
1925         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1926         simple returns.
1927         (ix86_pad_returns): Likewise.
1928         * function.h (struct rtl_data): Add member shrink_wrapped.
1929         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1930         are not jumps or sibcalls can't be compared.
1931
1932 2011-10-05  Richard Guenther  <rguenther@suse.de>
1933
1934         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1935         vector type.
1936         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1937         (try_to_simplify): Handle BIT_FIELD_REFs.
1938
1939 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1940
1941         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1942         * config/avr/avr.c (avr_out_addto_sp): New function.
1943         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1944         * config/avr/avr.md (adjust_len): Add "addto_sp".
1945         (*movhi_sp): Remove insn.
1946         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1947
1948 2011-10-05  Richard Guenther  <rguenther@suse.de>
1949
1950         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1951         with an embedded expression valueize and fold that as well.
1952         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1953         results from gimple_fold_stmt_to_constant_1.
1954
1955 2011-10-05  Nick Clifton  <nickc@redhat.com>
1956
1957         * config/rx/rx.md (tablejump): Add missing label.
1958         (adddi3_internal): Mark operand 0 as early-clobbered.
1959         (smaxsi3): Revert previous delta.
1960         (adc_internal): Fix whitespace in generated asm.
1961         (adc_flags): Likewise.
1962
1963 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1964
1965         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1966         with the new widening_optab_handler.
1967
1968 2011-10-05  Richard Guenther  <rguenther@suse.de>
1969
1970         PR tree-optimization/50609
1971         * gimple-fold.c (fold_array_ctor_reference): Also handle
1972         vector typed constructors.
1973         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1974         for vector typed constructors.
1975
1976 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1977
1978         * config/i386/i386.c (ix86_emit_binop): New static function.
1979         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1980         instructions.
1981         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1982
1983 2011-10-04  David S. Miller  <davem@davemloft.net>
1984
1985         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1986         UNSPEC_XMUL): New unspecs.
1987         (muldi3_v8plus): Use output_v8plus_mult.
1988         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1989         New VIS 3.0 combiner patterns.
1990         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1991         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1992         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1993         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1994         builtins patterns.
1995         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1996         (output_v8plus_mult): New function.
1997         * config/sparc/sparc-protos.h: Declare it.
1998         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1999         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
2000         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
2001         * doc/extend.texi: Document new builtins.
2002
2003 2011-10-04  Richard Henderson  <rth@redhat.com>
2004
2005         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
2006         Avoid save_expr unless two_arguments.
2007
2008 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
2009
2010         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
2011         * config/i386/mingw32.h (CPP_SPEC): Likewise.
2012
2013 2011-10-04  David S. Miller  <davem@davemloft.net>
2014
2015         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
2016         under Linux.
2017
2018 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
2019
2020         PR tree-optimization/50604
2021         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
2022         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
2023         last argument to memcpy has size_type_node type instead of ssizetype.
2024         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
2025         instead of TREE_TYPE (len) as type for newlen.
2026
2027         PR tree-optimization/50522
2028         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
2029         TYPE_RESTRICT.
2030         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
2031         unconditionally.
2032
2033         * fold-const.c (fold_unary_loc): Don't optimize
2034         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
2035         casting the inner pointer if it isn't TYPE_RESTRICT.
2036         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
2037         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
2038
2039 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
2040
2041         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2042
2043 2011-10-04  Jan Hubicka  <jh@suse.cz>
2044
2045         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2046         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2047         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2048         * lto-cgraph.c (order_base): New static var.
2049         (lto_output_node): Stream in order.
2050         (lto_output_varpool_node): Stream out order.
2051         (input_node): Stream in order.
2052         (input_varpool_node): Stream out order.
2053         (input_cgraph_1): Initialize order base; update call of
2054         lto_input_toplevel_asms.
2055
2056 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
2057
2058         PR target/50566
2059         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2060         prototype.
2061         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2062         from here...
2063         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2064         function.  Log if avr_log.legitimize_reload_address.
2065
2066 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2067
2068         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2069
2070 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2071
2072         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2073         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
2074
2075 2011-10-03  David S. Miller  <davem@davemloft.net>
2076
2077         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2078         GSR_REG an input operand to UNSPEC instead of a parallel USE.
2079         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2080         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2081         Reference GSR_REG in DI mode, simplify convoluted expressions by using
2082         zero_extract.
2083         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2084
2085 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
2086
2087         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2088
2089 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2090             Ian Lance Taylor  <iant@google.com>
2091
2092         * godump.c (go_output_typedef): Support printing enum values that
2093         don't fit in a signed HOST_WIDE_INT.
2094
2095 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2096
2097         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2098         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2099         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2100         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2101
2102 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2103
2104         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2105         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2106         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2107         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2108
2109 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
2110
2111         PR target/49967
2112         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2113         (gcc_cv_ld_static_option): Ditto.
2114         (gcc_cv_ld_dynamic_option): Ditto.
2115         * configure: Regenerate.
2116
2117 2011-10-03  David S. Miller  <davem@davemloft.net>
2118
2119         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2120         and 'si' patterns which describe the GSR changes explicitly in the
2121         RTL using zero_extract.
2122         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2123
2124         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2125         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2126
2127 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2128
2129         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2130         if given expression can be expanded by the target.
2131         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2132         using target vector instructions.
2133         * optabs.h: New optab vshuffle.
2134         (expand_vec_shuffle_expr_p): New prototype.
2135         (expand_vec_shuffle_expr): New prototype.
2136         (vshuffle_optab): New optab.
2137         * genopinit.c: Adjust to support vecshuffle.
2138         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2139         * expr.c (expand_expr_real_2): Adjust.
2140         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2141         recognizing the cases of two and three arguments.
2142         (convert_arguments) (build_binary_op)
2143         (scalar_to_vector) (build_array_ref): Spurious whitespace.
2144         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2145         * tree.def: New tree code VEC_SHUFFLE_EXPR.
2146         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2147         * tree-vect-generic.c (vector_element): New function. Returns an
2148         element of the vector at the given position.
2149         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2150         by the backend or expand an expression piecewise.
2151         (expand_vector_operations_1): Adjusted.
2152         (gate_expand_vector_operations_noop): New gate function.
2153         * Makefile.in (tree-vect-generic.o): New include.
2154         * gimple.c (get_gimple_rhs_num_ops): Adjust.
2155         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2156         * passes.c: Move veclower down.
2157         * tree-pretty-print.c (dump_generic_node): Recognize
2158         VEC_SHUFFLE_EXPR as valid expression.
2159         * c-parser.c (c_parser_get_builtin_args): Helper function for the
2160         builtins with variable number of arguments.
2161         (c_parser_postfix_expression): Use a new helper function for
2162         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2163         * tree-ssa-operands: Adjust.
2164         * c-family/c-common.c: New __builtin_shuffle keyword.
2165         * c-family/c-common.h: New __builtin_shuffle keyword.
2166         * gcc/doc/extend.texi: Adjust.
2167
2168         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
2169         between the vector and the type of the mask when shuffling.
2170         (vecshuffle<mode>): New expansion.
2171         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2172         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2173         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2174
2175 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2176
2177         PR tree-optimization/50587
2178         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2179         arg0 is not a SSA_NAME.
2180
2181 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
2182
2183         * ipa-inline-analysis.c (MAX_TIME): Update comment.
2184
2185 2011-10-02  Richard Henderson  <rth@redhat.com>
2186             David S. Miller  <davem@davemloft.net>
2187
2188         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2189         conditional insn type setting, we always emit a shift.
2190         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2191         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2192         * config/sparc/predicates.md (const_one_operand): Delete.
2193
2194 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
2195
2196         * invoke.texi (SPARC Options): Refer to GNU/Linux.
2197
2198 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2199
2200         * config/mips/mips.c (mips_frame_barrier): New function.
2201         (mips_expand_prologue): Call it after allocating stack space.
2202         (mips_deallocate_stack): New function.
2203         (mips_expand_epilogue): Call mips_frame_barrier and
2204         mips_deallocate_stack.
2205
2206 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2207
2208         PR target/49696
2209         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2210         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2211         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2212
2213 2011-10-02  Jan Hubicka  <jh@suse.cz>
2214
2215         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2216
2217         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2218         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2219         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2220         functions are reachable when address is taken.
2221         * tree-sra.c (modify_function): Free dominance info.
2222
2223 2011-10-02  Jan Hubicka  <jh@suse.cz>
2224
2225         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2226
2227         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2228         (reset_inline_summary): New function.
2229         (compute_inline_parameters, inline_node_removal_hook,
2230         inline_edge_removal_hook): Use it.
2231         (inline_free_summary): Reset holders correctly.
2232         (inline_generate_summary): Free summary before computing it.
2233
2234 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
2235
2236         PR preprocessor/36819
2237         * incpath.c (merge_include_chains): Call free_path on
2238         heads[QUOTE] and tails[QUOTE].
2239
2240 2011-10-02  Jan Hubicka  <jh@suse.cz>
2241
2242         PR lto/47247
2243         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2244         when resolution is already availbale from plugin.
2245         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2246         * cgraph.c (ld_plugin_symbol_resolution): Add
2247         prevailing_def_ironly_exp.
2248         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2249         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2250         externally visible.
2251         * varasm.c (resolution_to_local_definition_p): Add
2252         LDPR_PREVAILING_DEF_IRONLY_EXP.
2253         (resolution_local_p): Likewise.
2254
2255 2011-10-01  David S. Miller  <davem@davemloft.net>
2256
2257         * config/sparc/sparc.opt (VIS3): New option.
2258         * doc/invoke.texi: Document it.
2259         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2260         not capable of such instructions.
2261         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2262         to 0x300 when TARGET_VIS3.
2263         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2264         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2265         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2266         (V64N8, VASS): New mode iterators.
2267         (vis3_shift, vis3_addsub_ss): New code iterators.
2268         (vbits, vconstr): New mode attributes.
2269         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2270         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2271         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2272         fmean16_vis, fpadd64_vis, fpsub64_vis,
2273         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2274         VIS 3.0 instruction patterns.
2275         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2276         default when targetting capable cpus.  TARGET_VIS3 implies
2277         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2278         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2279         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2280         is ignored.
2281         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2282         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2283         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2284         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2285         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2286         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2287         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2288         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2289         * doc/extend.texi: Document new VIS 3.0 builtins.
2290
2291 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
2292
2293         * ira-color.c (assign_hard_reg): Fix typo.
2294
2295 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2296
2297         * doc/extend.texi: Add missing ','.
2298
2299 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2300
2301         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2302         Enable -fmodulo-sched at -O2 and above.
2303         * config/c6x/c6x.md (doloop_end): New expander.
2304         (mvilc, sploop, spkernel, loop_end): New patterns.
2305         (loop_end with memory destination splitter): New.
2306         * config/c6x/c6x.c: Include "hw-doloop.h".
2307         (enum unitreqs): New.
2308         (unit_req_table): New typedef.
2309         (unit_reqs): New static variable.
2310         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2311         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2312         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2313         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2314         (struct c6x_sched_context): New member last_scheduled_iter0.
2315         (init_sched_state): Initialize it.
2316         (c6x_variable_issue): Update it.
2317         (sploop_max_uid_iter0): New static variable.
2318         (c6x_sched_reorder_1): Be careful about issuing sploop.
2319         (c6x_reorg): Call c6x_hwlooops before the final schedule.
2320
2321 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
2322
2323         PR target/50566
2324         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2325         * config/avr/avr.c (avr_address_cost): Use it.
2326         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2327         (avr_log_vadump): Unknown %-codes finish printing.
2328
2329 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2330
2331         PR inline-asm/50571
2332         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2333         input constraints allow mem and not reg, pass true instead of
2334         false as second argument to maybe_fold_reference.
2335
2336         PR tree-optimization/46309
2337         * fold-const.c (make_range, merge_ranges): Remove prototypes.
2338         (make_range_step): New function.
2339         (make_range): Use it.
2340         * tree.h (make_range_step): New prototypes.
2341         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2342         * tree-ssa-reassoc.c: Include diagnostic-core.h.
2343         (struct range_entry): New type.
2344         (init_range_entry, range_entry_cmp, update_range_test,
2345         optimize_range_tests): New functions.
2346         (reassociate_bb): Call optimize_range_tests.
2347
2348 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2349             Richard Guenther  <rguenther@suse.de>
2350
2351         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2352         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2353         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
2354         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2355         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2356         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2357
2358 2011-09-30  Jan Beulich  <jbeulich@suse.com>
2359
2360         * lto-cgraph.c (output_cgraph): Remove processing of
2361         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2362         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2363         lto_input_toplevel_asms() instead.
2364         * lto-section-in.c (lto_section_name): Add "asm" entry.
2365         * lto-streamer-in.c (lto_input_toplevel_asms): New.
2366         * lto-streamer-out.c (lto_output_toplevel_asms): New.
2367         * lto-streamer.h (LTO_minor_version): Bump.
2368         (enum lto_section_type): Add LTO_section_asm.
2369         (struct lto_asm_header): New.
2370         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2371         * tree-streamer.h (streamer_write_string_cst): Declare.
2372         * tree-streamer-out.c (write_string_cst): Rename to
2373         streamer_write_string_cst and make global. Handle incoming string
2374         being NULL.
2375         (streamer_write_tree_header): Adjust call to renamed function.
2376
2377 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2378
2379         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2380         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2381         modulo_last_stage): New static variables.
2382         (set_modulo_params, discard_delay_pairs_above): New functions.
2383         (struct delay_pair): New member stages.
2384         (htab_i2_traverse, htab_i1_traverse): New static functions.
2385         (record_delay_slot_pair): New arg stages.  All callers changed.
2386         Record it.
2387         (pair_delay): Take stages into account.
2388         (add_delay_dependencies): Don't do so for stage pairs.
2389         (struct sched_block_state): New member modulo_epilogue.
2390         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2391         (unschedule_insns_until): Decrease modulo_insns_scheduled.
2392         Set HARD_DEP without using or.
2393         (resolve_dependencies): New static function.
2394         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
2395         If it is true, allow only insns with INSN_EXACT_TICK set.
2396         (schedule_block): Return bool, always true for normal scheduling,
2397         true or false depending on modulo scheduling success otherwise.
2398         Add bookkeeping for modulo scheduling, and call resolve_dependencies
2399         on everything left over after a modulo schedule.
2400         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
2401         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2402         declarations.
2403         (set_modulo_params, discard_delay_pairs_above): Declare.
2404         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2405         * doc/invoke.texi (--param): Document it.
2406
2407         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
2408         New arg modulo_scheduling.  All callers changed.  Move note handling
2409         code here from schedule_ebbs.
2410         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2411         out of schedule_ebbs.
2412         (schedule_ebbs): Call them.  Remove note handling code moved to
2413         schedule_ebb.
2414         * sched-int.h (schedule_ebb, schedule_ebbs_init,
2415         schedule_ebbs_finish): Declare.
2416
2417 2011-09-30  Richard Guenther  <rguenther@suse.de>
2418
2419         PR middle-end/50574
2420         * tree-cfg.c (verify_gimple_comparison): Compare component
2421         mode sizes for vector comparisons.
2422
2423 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2424
2425         * ddg.c (autoinc_var_is_used_p): New function.
2426         (create_ddg_dep_from_intra_loop_link,
2427         add_cross_iteration_register_deps): Call it.
2428         * ddg.h (autoinc_var_is_used_p): Declare.
2429         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2430         (sms_schedule): Handle instructions with REG_INC.
2431
2432 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2433
2434         * modulo-sched.c (generate_reg_moves): Skip instructions that
2435         do not set a register and verify no regmoves are created for
2436         !single_set instructions.
2437
2438 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2439
2440         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2441         insns.
2442
2443 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2444
2445         PR target/50099
2446         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2447         (qhs_zextenddi_op): New.
2448         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2449         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2450         Distinguish between ARM and Thumb2 states.
2451
2452 2011-09-30  David S. Miller  <davem@davemloft.net>
2453
2454         * config/sparc/sparc.opt (VIS2): New option.
2455         * doc/invoke.texi: Document it.
2456         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2457         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2458         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2459         (define_attr type): New insn type 'edgen'.
2460         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2461         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2462         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2463         patterns.
2464         * niagara.md: Handle edgen.
2465         * niagara2.md: Likewise.
2466         * ultra1_2.md: Likewise.
2467         * ultra3.md: Likewise.
2468         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2469         to 0x200 when TARGET_VIS2.
2470         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2471         default when targetting capable cpus.  TARGET_VIS2 implies
2472         TARGET_VIS, clear and it when TARGET_FPU is disabled.
2473         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2474         (sparc_expand_builtin): Fix predicate indexing when builtin returns
2475         void.
2476         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2477         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2478         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2479         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2480         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2481         * doc/extend.texi: Document new VIS 2.0 builtins.
2482
2483 2011-09-29  Nick Clifton  <nickc@redhat.com>
2484             Bernd Schmidt  <bernds@codesourcery.com>
2485
2486         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2487         * config/frv/frvend.c: Likewise.
2488         * config/frv/frv.c (frv_function_prologue): Move misplaced
2489         CALL_ARG_LOCATION notes back to their proper locations.
2490
2491 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2492
2493         PR target/50566
2494         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2495         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2496         from avr_rtx_costs.
2497         (avr_legitimate_address_p): Use avr_edump to print log information
2498         filtered by avr_log.
2499         (extra_constraint_Q): Ditto.
2500         (avr_legitimize_address): Ditto.
2501         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
2502         (final_prescan_insn): Use avr_log.rtx_costs as filter.
2503
2504 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
2505
2506         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2507         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2508         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
2509         NEON vector and structure modes to be tied.
2510
2511 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2512
2513         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
2514         forward declaration.
2515         (remove_duplicate_close_phi): Detect and repair creation of
2516         duplicate close-phis for a containing loop.
2517
2518 2011-09-27   Andi Kleen <ak@linux.intel.com>
2519
2520         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
2521         /dev/urandom.  Add getpid call.
2522         (compare_debug_dump_opt_spec_function): Drop getpid call.
2523
2524 2011-09-26   Andi Kleen <ak@linux.intel.com>
2525
2526         * toplev.c (init_local_tick): Try reading random seed
2527         from /dev/urandom.
2528
2529 2011-09-26   Andi Kleen <ak@linux.intel.com>
2530
2531         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2532         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2533         Handle numerical random seed.
2534         * lto-streamer.h (lto_file_decl_data): Change id to
2535         unsigned HOST_WIDE_INT.
2536         * toplev.c (random_seed): Add.
2537         (init_random_seed): Change for numerical random seed.
2538         (get_random_seed): Return as HOST_WIDE_INT.
2539         (set_random_seed): Crc32 existing string.
2540         * toplev.h (get_random_seed): Change to numercal return.
2541         * tree.c (get_file_function_name): Remove CRC. Handle
2542         numerical random seed.
2543
2544 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2545
2546         PR target/50566
2547         * config.gcc (extra_objs): Add avr-log.o for $target in:
2548         avr-*-rtems*, avr-*-*.
2549         * config/avr/t-avr (avr-log.o): New rule to compile...
2550         * config/avr/avr-log.c: ...this new file.
2551         * config/avr/avr.opt (mlog=): New option.
2552         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2553         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2554         (avr_log_set_avr_log): New prototype.
2555         (avr_log_t): New typedef.
2556         (avr_log): New declaration.
2557         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2558
2559 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2560
2561         * expr.c (do_store_flag): Expand vector comparison by
2562         building an appropriate VEC_COND_EXPR.
2563         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2564         (c_objc_common_truthvalue_conversion): Adjust.
2565         * tree-vect-generic.c (do_compare): Helper function.
2566         (expand_vector_comparison): Check if hardware supports
2567         vector comparison of the given type or expand vector piecewise.
2568         (expand_vector_operation): Treat comparison as binary
2569         operation of vector type.
2570         (expand_vector_operations_1): Adjust.
2571
2572 2011-09-29  Richard Guenther  <rguenther@suse.de>
2573
2574         * tree.c (build_opaque_vector_type): Make opaque vectors
2575         variant types of the corresponding non-opaque type.  Make
2576         sure to share opaque vector types properly.
2577
2578 2011-09-29  David S. Miller  <davem@davemloft.net>
2579
2580         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2581         UNSPEC_ARRAY32): New unspec.
2582         (define_attr type): New type 'array'.
2583         (array{8,16,32}<P:mode>_vis): New patterns.
2584         * config/sparc/ultra1_2.md: Add reservations for 'array'.
2585         * config/sparc/ultra3.md: Likewise.
2586         * config/sparc/niagara.md: Likewise.
2587         * config/sparc/niagara2.md: Likewise.
2588         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2589         array builtins.
2590         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2591         __vis_array32): New.
2592         * doc/extend.texi: Document new VIS builtins.
2593
2594         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2595         (VIS pixel-compare insn): Just use <gcond:name>.
2596
2597         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2598         code iterator used, so just use <code>.  There are two mode iterators
2599         so explicitly use <GCM:gcm_name>.
2600
2601 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
2602
2603         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2604         Darwin >= 9.
2605
2606 2011-09-28  David S. Miller  <davem@davemloft.net>
2607
2608         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2609         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2610         (UNSPEC_FCMP): New unspec.
2611         (gcond): New code iterator.
2612         (gcond_name): New code attr.
2613         (GCM): New mode iterator.
2614         (gcm_name): New mode attr.
2615         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2616
2617 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
2618
2619         PR target/49486
2620         * config/sh/sh.md (negdi2): Move expansion into split to
2621         allow more combination options.  Add T_REG clobber.
2622         (abssi2): New expander.
2623         (*negdi2, *abssi2, *negabssi2): New insns.
2624         (cneg): Change from insn to insn_and_split.  Rename to
2625         negsi_cond.  Add alternative for non-SH4.
2626
2627 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
2628
2629         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2630         (neon_move_hi_quad_<mode>): Likewise.
2631         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2632
2633 2011-09-28  Nick Clifton  <nickc@redhat.com>
2634
2635         * config/rx/predicates.md (rx_minmax_operand): New predicate.
2636         Accepts immediates and a restricted subset of MEMs.
2637         * config/rx/rx.md (int_modes): New iterator.
2638         (smaxsi3, sminsi3): Delete and replace with...
2639         (smax<int_mode>3, smin<int_mode>3): New patterns.
2640         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2641
2642 2011-09-28  Richard Guenther  <rguenther@suse.de>
2643
2644         PR middle-end/50460
2645         * fold-const.c (try_move_mult_to_index): Handle &a.array the
2646         same as &a.array[0].
2647
2648 2011-09-28  Kai Tietz  <ktietz@redhat.com>
2649
2650         * configure.ac: Add test for new section attribute
2651         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2652         * config.in: Regenerated.
2653         * configure: Regenerated.
2654         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2655         new section flag "e" for excluded sections, if supported.
2656         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2657
2658 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2659
2660         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2661         throughout file.
2662
2663 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2664
2665         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2666         throughout file.
2667
2668 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
2669
2670         * output.h (SECTION_EXCLUDE): New macro.
2671         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2672
2673 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2674
2675         * fwprop.c (forward_propagate_and_simplify): After checking
2676         reg/subreg combinations, check whether the modes are the same.
2677
2678 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2679             Richard Sandiford  <rdsandiford@googlemail.com>
2680
2681         * config/mips/mips.c (mips_add_cfa_restore): New function.
2682         (mips16e_save_restore_reg): Use it.
2683         (mips_restore_reg): Likewise.  Split double FPRs for
2684         REG_CFA_RESTORE notes.
2685
2686 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2687
2688         PR middle-end/50386
2689         PR middle-end/50326
2690         * tree-sra.c (build_ref_for_model): Use the type of the field as
2691         the type of the COMPONENT_REF.
2692
2693 2011-09-27  Jeff Law  <law@redhat.com>
2694
2695         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
2696         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2697         (find_if_case_1): Use the probability of the THEN clause when
2698         determining if speculation is profitable.
2699         (find_if_case_2): Similarly for the ELSE clause.
2700
2701 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2702
2703         * common.opt: Add -foptimize-strlen option.
2704         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2705         (tree-sssa-strlen.o): Add dependencies.
2706         * opts.c (default_options_table): Enable -foptimize-strlen
2707         by default at -O2 if not -Os.
2708         * passes.c (init_optimization_passes): Add pass_strlen
2709         after pass_object_sizes.
2710         * timevar.def (TV_TREE_STRLEN): New timevar.
2711         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2712         * tree-pass.h (pass_strlen): Declare.
2713         * tree-ssa-strlen.c: New file.
2714         * c-decl.c (merge_decls): If compatible stpcpy prototype
2715         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2716
2717 2011-09-27  Tom de Vries  <tom@codesourcery.com>
2718
2719         PR middle-end/43864
2720         * tree-ssa-tail-merge.c: New file.
2721         (struct same_succ_def): Define.
2722         (same_succ, const_same_succ): New typedef.
2723         (struct bb_cluster_def): Define.
2724         (bb_cluster, const_bb_cluster): New typedef.
2725         (struct aux_bb_info): Define.
2726         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2727         (gvn_uses_equal): New function.
2728         (same_succ_print, same_succ_print_traverse, update_dep_bb)
2729         (stmt_update_dep_bb, local_def, same_succ_hash)
2730         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2731         (same_succ_reset): New function.
2732         (same_succ_htab, same_succ_edge_flags)
2733         (deleted_bbs, deleted_bb_preds): New var.
2734         (debug_same_succ): New function.
2735         (worklist): New var.
2736         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2737         (init_worklist, delete_worklist, delete_basic_block_same_succ)
2738         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2739         (print_cluster, debug_cluster, update_rep_bb)
2740         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2741         (all_clusters): New var.
2742         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2743         (merge_clusters, set_cluster): New function.
2744         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2745         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2746         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2747         (find_clusters_1, find_clusters): New function.
2748         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2749         (update_bbs): New var.
2750         (apply_clusters): New function.
2751         (update_debug_stmt, update_debug_stmts): New function.
2752         (tail_merge_optimize): New function.
2753         tree-pass.h (tail_merge_optimize): Declare.
2754         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2755         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2756         (tree-ssa-tail-merge.o): New rule.
2757         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2758         default at OPT_LEVELS_2_PLUS.
2759         * tree-ssa-sccvn.c (vn_valueize): Move to ...
2760         * tree-ssa-sccvn.h (vn_valueize): Here.
2761         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2762         * common.opt (ftree-tail-merge): New switch.
2763         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2764         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2765         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2766         (-ftree-tail-merge, max-tail-merge-comparisons)
2767         (max-tail-merge-iterations): New item.
2768
2769 2011-09-27  Jan Hubicka  <jh@suse.cz>
2770
2771         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2772
2773 2011-09-27  Jan Hubicka  <jh@suse.cz>
2774
2775         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2776         parameters passed by reference; handle loads from non-SSA scalars
2777         and update comments.
2778
2779 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2780
2781         PR rtl-optimization/50249
2782         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2783         instead of opnum and type.  All callers changed.  Remove useless
2784         declaration.
2785         Search forward for other reloads of the same type for the same operand
2786         using the same register; if any are found, return false.
2787         (reload_regs_reach_end_p): Same argument changes; all callers changed.
2788
2789 2011-09-27  Andi Kleen  <ak@linux.intel.com>
2790             Jan Hubicka  <jh@suse.cz>
2791
2792         * doc/invoke.texi (ffat-lto-objects): Document.
2793         * toplev.c (compile_file): Do not output assembly when doing slim lto;
2794         Output __gnu_slim_lto when doing slim lto.
2795         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2796         (cgraph_optimize): Return early when doing slim lto.
2797         * opts.c (finish_options): Complain about lack of linker plugin
2798         when doing slim lto.
2799         * common.opt (ffat-lto-objects): New.
2800
2801 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2802
2803         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2804         between signed and unsigned.
2805
2806 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
2807
2808         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2809         vectorization.
2810         (vectorizable_type_promotion): Likewise.
2811         (vect_analyze_stmt): Call vectorizable_type_demotion and
2812         vectorizable_type_promotion for basic blocks.
2813         (supportable_widening_operation): Don't assume loop vectorization.
2814         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2815         basic blocks.  Update vectorization factor for basic block
2816         vectorization.
2817         (vect_analyze_slp_instance): Allow multiple types for basic block
2818         vectorization.  Recheck unrolling factor after construction of SLP
2819         instance.
2820
2821 2011-09-27  Richard Guenther  <rguenther@suse.de>
2822
2823         * tree-object-size.c (compute_object_sizes): Fix dumping of
2824         folded statement.
2825
2826 2011-09-27  Richard Guenther  <rguenther@suse.de>
2827
2828         PR tree-optimization/50363
2829         * tree-ssa-pre.c (create_expression_by_pieces): Handle
2830         pointer conversions in POINTER_PLUS_EXPRs properly.
2831
2832 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2833
2834         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2835         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2836         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2837         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2838         that produce subreg moves.  Define using VQX iterators.
2839
2840 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
2841
2842         * config/avr/avr.md (ashrqi3): Split alternative "n"
2843         into its remaining parts C03, C04, C05, C06, C07 and describe
2844         impact in CC by attribute "cc" appropriately.
2845         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2846         by digging RTX.
2847
2848 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2849
2850         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2851         from 3 x MAX_MACHINE_MODE.
2852         (CONSTM1_RTX): Define.
2853         * emit-rtl.c (const_tiny_rtx): Change into array of
2854         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2855         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2856         CONSTM1_RTX.
2857         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2858         MODE_VECTOR_INT modes.
2859         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2860         Optimize if one operand is CONSTM1_RTX.
2861         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2862         into mask | x.
2863
2864 2011-09-26  David S. Miller  <davem@davemloft.net>
2865
2866         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2867         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2868         * config/sparc/visintrin.h: Update edge and pixel-compare
2869         intrinsics to return 'long' instead of 'int'.
2870         * doc/extend.texi: Update documentation to match.
2871         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2872         flat, allow any instruction.  Otherwise, when V9 allow parallels
2873         which consist only of sets to registers outside of %o0 to %o5.
2874         (sparc_vis_init_builtins): Update VIS builtin types for edge
2875         and pixel-compare.
2876
2877         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2878         is enabled, mark %gsr as global.
2879         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2880         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2881
2882         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2883         which will now define __VIS and __VIS__ when -mvis is enabled.
2884         * config/sparc/t-sparc: Likewise.
2885         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2886         and add t-sparc to tmake_file for all sparc targets.
2887         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2888         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2889
2890         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2891         builtins for VIS vector addition and subtraction.
2892         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2893         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2894         __vis_fpsub32, __vis_fpsub32s): New.
2895         * doc/extend.texi: Document new VIS intrinsics.
2896
2897 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2898
2899         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2900         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2901         EQ/NE comparisons against +/-1 in the case of unused-after,
2902         non-ld-regs target.
2903
2904 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2905
2906         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2907         gctx.into_ssa after push_gimplify_context.
2908
2909         * gimple.c (gimple_build_call_valist): New function.
2910         * gimple.h (gimple_build_call_valist): New prototype.
2911         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2912         (update_gimple_call): Likewise.
2913         (update_call_from_tree): Use finish_update_gimple_call.
2914         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2915
2916 2011-09-26  Richard Guenther  <rguenther@suse.de>
2917
2918         PR tree-optimization/50472
2919         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2920         volatile references.
2921
2922 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2923
2924         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2925         * target.def: (addr_space_subset_p): Likewise.
2926
2927 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2928
2929         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2930         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2931         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2932         of new var.
2933
2934 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2935
2936         PR target/50465
2937         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2938         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2939         output_reload_insisf.
2940         (adjust_len): Set default to "no".
2941         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2942         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2943         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2944         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2945         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2946         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2947         *lshrsi3_const): Set attribute "adjust_len".
2948         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2949         (output_movsisf): Don't pass insn to output_reload_insisf.
2950         (adjust_insn_length): Handle new alternatives to adjust_len.
2951         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2952
2953 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2954
2955         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2956         may_trap_p to detect loads that may trap of fault.
2957
2958 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2959
2960         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2961         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2962         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2963         prototype.
2964         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2965         * config/avr/avr.c: Rename output_reload_insisf_1 to
2966         output_reload_in_const.
2967         (avr_popcount_each_byte): Handle SFmode, too.
2968         (output_reload_in_const): Change so it can handle HI loads, too.
2969         Use avr_popcount_each_byte to work out if scratch register must be
2970         created on the fly.
2971         (output_reload_inhi): Rewrite using output_reload_in_const and...
2972         (output_movhi): ...use it to print constants' loads.
2973         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2974
2975 2011-09-25  David S. Miller  <davem@davemloft.net>
2976
2977         * config/sparc/constraints.md (C, P, Z): New constraints for
2978         const_doube, const_int, and const_vector "all ones" values.
2979         Make unused constraint letters comment match reality.
2980         * config/sparc/predicates.md (const_all_ones_operand,
2981         register_or_zero_or_all_ones_operand): New predicates.
2982         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2983         as well as zero constants when VIS.
2984         (sparc_legitimate_constant_p): Likewise.
2985         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2986         (movsf_insn): Likewise
2987         (movdi_insn_sp64): Add fone alternative.
2988         (movdf_insn_sp32_v9): Likewise.
2989         (movdf_insn_sp64): Likewise.
2990
2991         * configure.ac: Add feature check to make sure the assembler
2992         supports the FMAF, HPC, and VIS 3.0 instructions found on
2993         Niagara-3 and later cpus.
2994         * configure: Rebuild.
2995         * config.in: Likewise.
2996         * config/sparc/sparc.opt: New option '-mfmaf'.
2997         * config/sparc/sparc.md: Add float fused multiply-add patterns.
2998         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2999         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
3000         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
3001         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
3002         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
3003         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
3004         disabled.
3005         (sparc_rtx_costs): Handle 'FMA'.
3006         * doc/invoke.texi: Document -mfmaf.
3007
3008 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
3009
3010         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
3011         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
3012         DECL_BY_REFERENCE parameters.
3013
3014 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3015
3016         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
3017         if there is no outgoing edge.
3018
3019         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
3020         integral types.
3021
3022 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
3023
3024         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
3025         of vect_analyze_bb here.
3026         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
3027
3028 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
3029
3030         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
3031         Allow not simple iv if analyzing basic block.
3032         (create_data_ref): Update call to dr_analyze_innermost.
3033         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
3034         * tree-loop-distribution.c (generate_memset_zero): Likewise.
3035         * tree-predcom.c (find_looparound_phi): Likewise.
3036         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
3037
3038 2011-09-24  David S. Miller  <davem@davemloft.net>
3039
3040         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3041         (SPARC_GSR_REG): Define.
3042         (FIXED_REGISTERS): Mark GSR as fixed.
3043         (CALL_USED_REGISTERS): Mark GSR as call used.
3044         (HARD_REGNO_NREGS): GSR is always 1 register.
3045         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3046         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3047         (REGISTER_NAMES): Add "%gsr".
3048         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3049         (UNSPEC_WRGSR): New unspec.
3050         (GSR_REG): New constant.
3051         (type): Add new insn type 'gsr'.
3052         (fpack16_vis, fpackfix_vis, fpack32_vis,
3053         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3054         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3055         rdgsr_v8plus): New expanders and insns.
3056         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3057         using patterns which show that this is a plus in addition to a
3058         modification of GSR_REG, instead of an unspec.
3059         * config/sparc/ultra1_2.md: Handle 'gsr'.
3060         * config/sparc/ultra3.md: Likewise.
3061         * config/sparc/niagara.md: Likewise.
3062         * config/sparc/niagara2.md: Likewise.
3063         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3064         end of table.
3065         (sparc_option_override): Make -mvis imply -mv8plus.
3066         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3067         for %gsr.
3068         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3069         __builtin_vis_read_gsr.
3070         (sparc_expand_buildin): Handle builtins that take one argument and
3071         return void.
3072         (sparc_fold_builtin): Never fold writes to %gsr.
3073         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3074         * doc/extend.texi: Document new VIS intrinsics.
3075
3076 2011-09-23  Jan Hubicka  <jh@suse.cz>
3077
3078         * ipa-inline-transform.c (inline_call): Add comment.
3079         * ipa-inline.h (inline_param_summary): New structure and vector.
3080         (struct inline_edge_summary): Add param field.
3081         * ipa-inline-analysis.c (CHANGED): New constant.
3082         (add_clause): Handle CHANGED and NOT_CONSTANT.
3083         (predicate_probability): New function.
3084         (dump_condition): Dump CHANGED predicate.
3085         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3086         of unknown function wide invariant.
3087         (evaluate_conditions_for_edge): Handle change probabilities.
3088         (inline_edge_duplication_hook): Copy param summaries.
3089         (inline_edge_removal_hook): Free param summaries.
3090         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3091         sizes; dump param summaries.
3092         (will_be_nonconstant_predicate): Use CHANGED predicate.
3093         (record_modified_bb_info): New structure.
3094         (record_modified): New function.
3095         (param_change_prob): New function.
3096         (estimate_function_body_sizes): Compute param summaries.
3097         (estimate_edge_size_and_time): Add probability argument.
3098         (estimate_node_size_and_time): Add inline_param_summary argument;
3099         handle predicate probabilities.
3100         (remap_predicate): Fix formating.
3101         (remap_edge_change_prob): New function.
3102         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3103         (remap_edge_predicates): ... this one.
3104         (inline_merge_summary): Remap edge summaries; handle predicate
3105         probabilities; remove param summaries after we are done.
3106         (do_estimate_edge_time): Update.
3107         (do_estimate_edge_growth): Update.
3108         (read_inline_edge_summary): Read param info.
3109         (inline_read_summary): Fix formating.
3110         (write_inline_edge_summary): Write param summaries.
3111
3112 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3113
3114         * config/i386/i386.c (ix86_print_operand): Handle %~.
3115         (ix86_print_operand_punct_valid_p): Return true also for '~'.
3116         * config/i386/sse.md (i128): New mode_attr.
3117         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3118         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3119         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3120         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3121         patterns, use "<sseinsnmode>" for "mode" attribute.
3122         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3123         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3124         %~128 in the patterns, use "OI" for "mode" attribute.
3125
3126 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3127
3128         PR target/50447
3129         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3130         "tstsi", "compare".
3131         (*cmpqi_sign_extend): Use s8_operand.
3132         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3133         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3134         prototypes.
3135         (out_tsthi, out_tstsi): Remove prototypes.
3136         (avr_out_tsthi, avr_out_tstsi): New prototypes.
3137         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3138         (avr_asm_len): Negative length now sets *plen to -length.
3139         (compare_sign_p): Return bool instead of int.
3140         (compare_diff_p, compare_eq_p): Ditto and make static.
3141         (avr_out_tsthi): New function.
3142         (avr_out_tstsi): New function.
3143         (avr_out_compare): New function.
3144         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3145         ADJUST_LEN_COMPARE.
3146
3147 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3148
3149         PR target/50447
3150         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3151         (addsi3): Rewrite using QI scratch register.  Adjust text
3152         peepholes using plus:SI.
3153         (*addsi3_zero_extend.hi): New insn.
3154         (*subsi3_zero_extend.hi): New insn.
3155         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3156         (*subsi3_zero_extend): Ditto.
3157         (subsi3): Change predicate #2 to register_operand.
3158         * config/avr/avr-protos.h (avr_out_plus): New prototype.
3159         (avr_out_plus_1): New static function.
3160         (avr_out_plus): New function.
3161         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3162
3163 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3164
3165         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3166         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3167
3168 2011-09-23  Ian Lance Taylor  <iant@google.com>
3169
3170         * godump.c (go_define): Treat a single character in single quotes,
3171         or a string, as an operand.
3172
3173 2011-09-23  Martin Jambor  <mjambor@suse.cz>
3174
3175         * ipa-prop.h (jump_func_type): Updated comments.
3176         (ipa_known_type_data): New type.
3177         (ipa_jump_func): Use it to describe known type jump functions.
3178         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3179         reflect the new known type jump function contents.
3180         (compute_known_type_jump_func): Likewise.
3181         (combine_known_type_and_ancestor_jfs): Likewise.
3182         (try_make_edge_direct_virtual_call): Likewise.
3183         (ipa_write_jump_function): Likewise.
3184         (ipa_read_jump_function): Likewise.
3185         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3186         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3187         (propagate_accross_jump_function): Likewise.
3188
3189 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3190
3191         PR target/50446
3192         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3193         (rotlqi3_4): Turn insn into expander.
3194         (*rotlqi3): New insn.
3195         (rotlhi3, rotlsi3): Support rotate left/right by 1.
3196         (*rotlhi2.1, *rotlhi2.15): New insns.
3197         (*rotlsi2.1, *rotlsi2.31): New insns.
3198         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3199
3200 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
3201
3202         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3203
3204 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3205
3206         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3207
3208 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3209
3210         * reload.c (find_reloads): Set operand_mode to Pmode for address
3211         operands consisting of just a CONST_INT.
3212
3213 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
3214
3215         PR target/50482
3216         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3217         blendv, force op_true to register if it doesn't satisfy
3218         nonimmediate_operand predicate.
3219
3220 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
3221
3222         PR middle-end/50113
3223         PR middle-end/50061
3224         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3225         get the locate.where_pad value for register-only arguments.
3226         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3227         (arm_pad_reg_upward): Handle null types.
3228
3229 2011-09-22  Jan Hubicka  <jh@suse.cz>
3230
3231         * ipa-inline-analysis.c: Fix overly long lines.
3232
3233 2011-09-22  Jan Hubicka  <jh@suse.cz>
3234
3235         * ipa-inline-transform.c (inline_call): Always update jump functions
3236         after inlining.
3237         * ipa-inline.c (ipa_inline): Likewise; do not call
3238         ipa_create_all_structures_for_iinln.
3239         (ipa_inline): Always free jump functions.
3240         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3241         (remap_edge_predicates): Fix pasto.
3242         (inline_merge_summary): Remove nlined edge predicate; remove hack.
3243         (inline_analyze_function): Always initialize jump functions.
3244         (inline_generate_summary): Likewise.
3245         (inline_write_summary): Always write jump functions when ipa-cp
3246         is not doing that.
3247         (inline_read_summary): Always read jump functions when ipa-cp
3248         is not doing that.
3249         * ipa-prop.c (iinlining_processed_edges): Remove.
3250         (update_indirect_edges_after_inlining): Do not use
3251         iinlining_processed_edges; instead set param_index to -1.
3252         (propagate_info_to_inlined_callees): Only try to indirect inlining
3253         when asked to do so; update jump functions of indirect calls, too;
3254         remove jump functions of the inlined edge.
3255         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3256         (ipa_create_all_structures_for_iinln): Remove.
3257         (ipa_free_all_structures_after_iinln): Do not free
3258         iinlining_processed_edges.
3259         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3260
3261 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
3262
3263         * config/arm/predicates.md (expandable_comparison_operator): New
3264         predicate, extracted from...
3265         (arm_comparison_operator): ...here.
3266         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3267         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3268         (movdfcc): Use expandable_comparison_operator.
3269
3270 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
3271
3272         PR target/50447
3273         PR target/50465
3274         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3275         (avr_popcount_each_byte): New prototype.
3276         * config/avr/avr.c (avr_popcount): New static function.
3277         (avr_popcount_each_byte): New function.
3278         (avr_out_bitop): New function.
3279         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3280         avr_out_bitop.  Cleanup code.
3281         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3282         (Ca4, Co4, Cx4): New constraints.
3283         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3284         alternative.
3285         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3286         (andsi3, iorsi3, xorsi3): Ditto.
3287         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3288
3289 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
3290
3291         PR tree-optimization/50451
3292         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3293         constant operands in reduction.
3294         (vect_get_slp_defs): Don't create vector operand for NULL scalar
3295         operand.
3296
3297 2011-09-22  David S. Miller  <davem@davemloft.net>
3298
3299         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3300         fpack16, fpack32, fpackfix as const.
3301
3302         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3303         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3304         constants.  Use them everywhere.
3305
3306 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
3307
3308         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3309         Added AND special case.  Adapted comments.
3310         (sh_rtx_costs): Added XOR and IOR case.
3311
3312 2011-09-21  Jan Hubicka  <jh@suse.cz>
3313
3314         * ipa-inline-analsis.c (compute_inline_parameters): Set
3315         cfun and current_function_decl.
3316
3317 2011-09-21  Jan Hubicka  <jh@suse.cz>
3318
3319         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3320         handled components in parameter of builtin_constant_p.
3321         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3322
3323 2011-09-21  Jan Hubicka  <jh@suse.cz>
3324
3325         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3326         * ipa-inline.h (estimate_edge_time): Fix pasto.
3327         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3328
3329 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3330
3331         * config/i386/i386.c (ix86_expand_sse_movcc): Use
3332         blendvps, blendvpd and pblendvb if possible.
3333
3334 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
3335
3336         PR target/50464
3337         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3338         operand 1 predicate to register_operand and operand 2 predicate
3339         to nonimmediate_operand.
3340         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3341         xop_pcmov, force op_true to register.  Also, force op_false to
3342         register if it doesn't satisfy nonimmediate_operand predicate.
3343
3344 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3345
3346         * config/i386/bmi2intrin.h (_mulx_u64): New.
3347         (_mulx_u32): Ditto.
3348
3349 2011-09-21  Jan Hubicka  <jh@suse.cz>
3350
3351         PR tree-optimization/50433
3352         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3353         Use get_base_address.
3354
3355 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3356
3357         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3358         nonimmediate_operand instead of register_operand predicate for operands
3359         1 and 2, force them into registers if expanding them as comparison.
3360         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
3361         V8HImode force into register just operand 1.
3362
3363 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3364
3365         PR target/45099
3366         * config/avr/avr.c (avr_function_arg_advance): Change error to
3367         warning if a fixed register is needed as function argument.
3368
3369 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3370
3371         PR target/50449
3372         PR target/50465
3373         * config/avr/avr.md (adjust_len): New insn attribute.
3374         (*reload_insi, *reload_insf): Use it.
3375         (*movsi, *movsf): Use new interface of output_movsisf.
3376         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3377         * config/avr/avr.c (output_movsisf): Ditto.
3378         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3379         lengths of insns *reload_insi, *reload_insf.
3380         (output_reload_insisf_1): New static function.
3381         (output_reload_insisf): Use it.
3382
3383 2011-09-21  David S. Miller  <davem@davemloft.net>
3384
3385         * config/sparc/sparc.c (def_builtin): Change from macro into function.
3386         (def_builtin_const): New.
3387         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3388         other than alignaddr and falignaddr.
3389
3390         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3391         UNSPEC_FCMPEQ): New unspec codes.
3392         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3393         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3394         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3395         new pixel compare VIS patterns.
3396         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3397         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3398         __vis_fcmpeq16, __vis_fcmpeq32): New.
3399         * doc/extend.texi: Document new pixel compare VIS intrinsics.
3400
3401 2011-09-21  Tom de Vries  <tom@codesourcery.com>
3402
3403         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3404
3405 2011-09-20  David S. Miller  <davem@davemloft.net>
3406
3407         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3408         (aligneddrl<P:mode>_vis): New pattern.
3409         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3410         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3411         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3412         alignaddrl insn, and adjust edge operations for updated types.
3413         * config/sparc/visintrin.h: Likewise.
3414         * doc/extend.texi: Make typing in VIS documentation match reality.
3415
3416 2011-09-20  Terry Guo  <terry.guo@arm.com>
3417
3418         * config/arm/arm-arches.def: Add armv6s-m.
3419         * config/arm/arm-tables.opt: Regenerate.
3420
3421 2011-09-20  Wei Guozhi  <carrot@google.com>
3422
3423         PR rtl-optimization/49452
3424         * postreload.c (reload_combine): Invalidate use information when across
3425         volatile insn.
3426
3427 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
3428
3429         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3430         Remove maintenance overhead.
3431         (haifa_sched_init, sched_finish): Update.
3432
3433 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3434
3435         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3436         to calculate unit, prefix_rep and prefix_data16 attributes.
3437         (*mov<mode>_internal): Ditto for unit attribute.
3438         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3439         (*movv2sf_internal): Ditto.
3440         * config/i386/sse.md (VI1248_256): Remove mode iterator.
3441         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3442         (*avx2_eq<mode>3): Ditto.
3443         (avx2_gt<mode>3): Ditto.
3444
3445 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3446
3447         * config/i386/i386.md (maxmin): New code iterator.
3448         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3449         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3450         code iterator.
3451         (*avx2_<maxmin:code><mode>3): Macroize isn from
3452         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3453         maxmin code iterator.
3454         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3455         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3456         <umaxmin:code>v16qi3.
3457
3458 2011-09-19  Alan Modra  <amodra@gmail.com>
3459             Michael Meissner  <meissner@linux.vnet.ibm.com>
3460
3461         PR target/50341
3462         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3463         split the load of the indirect function's TOC from the call to
3464         prevent the compiler from moving the load of the new TOC above
3465         code that references the current function's TOC.
3466         (call_indirect_aix<ptrsize>_internal): Ditto.
3467         (call_indirect_aix<ptrsize>_nor11): Ditto.
3468         (call_indirect_aix<ptrsize>_internal2): Ditto.
3469         (call_value_indirect_aix<ptrsize>): Ditto.
3470         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3471         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3472         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3473
3474 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
3475
3476         * config/i386/sse.md (*sse4_1_extractps): Change into
3477         define_insn_and_split, add =x 0 n and =x x n alternatives
3478         and split them after reload.
3479
3480 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3481
3482         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3483
3484 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3485
3486         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3487
3488 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
3489
3490         PR tree-optimization/50413
3491         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3492         a basic block if one of its data-refs can't be analyzed.
3493
3494 2011-09-19  Paul Brook  <paul@codesourcery.com>
3495
3496         * config/arm/predicates.md (shift_amount_operand): Check constant
3497         shift count is in range.
3498         (const_shift_operand): Remove.
3499
3500 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3501             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3502
3503         PR target/50091
3504         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3505         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3506
3507 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3508
3509         * config/i386/bmiintrin.h: Remove tmp.
3510         * config/i386/tbmintrin.h: Likewise.
3511
3512 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3513
3514         PR tree-optimization/50414
3515         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3516         MIN_EXPR.
3517
3518 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3519
3520         PR tree-optimization/50412
3521         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3522         acceses that require epilogue loop if vectorizing outer loop.
3523
3524 2011-09-17  David S. Miller  <davem@davemloft.net>
3525
3526         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3527         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3528         New unspecs.
3529         (define_attr type): New type 'edge'.
3530         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3531         edge32l_vis): New patterns.
3532         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3533         * config/sparc/ultra3.md: Likewise.
3534         * config/sparc/niagara.md: Likewise.
3535         * config/sparc/niagara2.md: Likewise.
3536         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3537         builtins for VIS edge instructions.
3538         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3539         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3540         intrinsics.
3541         (__v8qi, __v4qi): Make unsigned.
3542         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3543         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3544         __vis_fpack32): Fix types.
3545         * doc/extend.texi: Document new 'edge' VIS intrinsics.
3546
3547         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3548         divide costs.
3549         (niagara3_costs): New.
3550         (sparc_option_override): Use it.
3551         * gcc/config/sparc/niagara2.md: Adjust with more accurate
3552         Niagara-3 reservations.
3553
3554 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
3555
3556         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3557         (sse2_avx, sseinsnmode): Add V2TI.
3558         (REDUC_SMINMAX_MODE): New mode iterator.
3559         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3560         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3561         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3562         (sse2_lshrv1ti3): Rename to...
3563         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
3564         iterator.  Move before umaxmin expanders.
3565         * config/i386/i386.h (VALID_AVX256_REG_MODE,
3566         SSE_REG_MODE_P): Accept V2TImode.
3567         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3568         V16HImode, V8SImode and V4DImode.
3569
3570         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3571         and V4DImode.
3572         (ix86_build_signbit_mask): Likewise.
3573         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
3574         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3575         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3576         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3577         (<code><mode>3) ... this.
3578         (avx2_<code><mode>3 smaxmin expand): Rename to...
3579         (<code><mode>3) ... this.
3580         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3581         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3582         VI8_AVX2 mode iterator.
3583         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3584         VI8_AVX2 mode iterator.
3585         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3586         New expanders.
3587
3588 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
3589
3590         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3591         throughout file.
3592
3593 2011-09-16  David S. Miller  <davem@davemloft.net>
3594
3595         * config/sparc/visintrin.h: New file.
3596         * config.gcc: Add it to extra_headers on sparc.
3597
3598 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
3599
3600         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3601         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
3602         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3603         reduc_smin_v4sf): Adjust callers.
3604         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3605         New expanders.
3606
3607         * config/i386/sse.md (vec_extract_hi_<mode>,
3608         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3609         vextracti128 instead of vextractf128 for -mavx2 and
3610         integer vectors.  For V4DFmode fix up mode attribute.
3611         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3612         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3613         instead of V8SF mode attribute.
3614         (avx2_extracti128): Change into define_expand.
3615         * config/i386/i386.c (ix86_expand_vector_extract): Handle
3616         32-byte vector modes if TARGET_AVX.
3617
3618 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3619
3620         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3621         (umulqi3_highpart, smulqi3_highpart): Ditto.
3622         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3623         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3624         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3625
3626 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3627
3628         PR target/50358
3629         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3630         (*maddqi4, *maddqi4.const): New insns.
3631         (*msubqi4, *msubqi4.const): New insns.
3632         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3633         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
3634         HImode by 1 in the case of multiplying with a CONST_INT.
3635         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3636
3637 2011-09-15   Jan Hubicka  <jh@suse.cz>
3638
3639         PR lto/50430
3640         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3641         error_mark_node in the DECL_INITIAL of vtable.
3642
3643 2011-09-15   Diego Novillo  <dnovillo@google.com>
3644
3645         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3646         @SYSROOT_CFLAGS_FOR_TARGET@.
3647         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3648         * configure: Regenerate.
3649         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3650         Remove setting of GCC_UNDER_TEST.
3651
3652 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
3653
3654         * config/i386/i386.c (output_fp_compare): Return %v prefixed
3655         instruction mnemonics for TARGET_AVX.
3656
3657         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3658         "type" attribute calculation.
3659         (*movdf_internal): Ditto.
3660         (*movsf_internal): Ditto.
3661
3662 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
3663
3664         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3665
3666 2011-09-15  Jason Merrill  <jason@redhat.com>
3667
3668         PR c++/50361
3669         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3670
3671 2011-09-15  Jan Hubicka  <jh@suse.cz>
3672
3673         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3674         simplify obviously true clauses.
3675         (and_predicates, or_predicates): Add conditions parameter.
3676         (inline_duplication_hoook): Update.
3677         (mark_modified): New function.
3678         (unmodified_parm): New function.
3679         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3680         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3681         Use unmodified_parm.
3682         (estimate_function_body_sizes): Update.
3683         (remap_predicate): Update.
3684
3685 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
3686
3687         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3688         read-after-read dependencies in basic block SLP.
3689
3690 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3691
3692         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3693         throughout file.
3694
3695 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3696
3697         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3698         throughout file.
3699
3700 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3701
3702         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3703         throughout file.
3704
3705 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3706
3707         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3708         throughout file.
3709         * config/rs6000/constraints.md: Likewise.
3710
3711 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3712
3713         * config/microblaze/microblaze.md: Use match_test rather than
3714         eq/ne symbol_ref throughout file.
3715
3716 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3717
3718         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3719         throughout file.
3720
3721 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3722
3723         PR middle-end/50251
3724         * explow.c (emit_stack_restore): Set crtl->need_drap if
3725         stack_restore is emitted.
3726
3727 2011-09-14  Julian Brown  <julian@codesourcery.com>
3728
3729         * config/arm/arm.c (arm_override_options): Add unaligned_access
3730         support.
3731         (arm_file_start): Emit attribute for unaligned access as appropriate.
3732         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3733         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3734         (insv, extzv): Add unaligned-access support.
3735         (extv): Change to expander. Likewise.
3736         (extzv_t1, extv_regsi): Add helpers.
3737         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3738         (unaligned_storesi, unaligned_storehi): New.
3739         (*extv_reg): New (previous extv implementation).
3740         * config/arm/arm.opt (munaligned_access): Add option.
3741         * config/arm/constraints.md (Uw): New constraint.
3742         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3743         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3744         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3745         volatile accesses when -fstrict-volatile-bitfields is in effect.
3746         (extract_bit_field_1): Likewise.
3747
3748 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
3749
3750         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3751         a scalar integer before applying integer-only optimisations to
3752         inner arithmetic.
3753
3754 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
3755
3756         * config/mips/mips.c (mips_expand_epilogue): Generate a
3757         simple_return only if the return address is in r31.
3758
3759 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3760
3761         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3762         NULL for a jump that is a cc0 insn, pick the previous insn for
3763         move_before.
3764
3765 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3766
3767         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3768         throughout file.
3769
3770 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3771
3772         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3773         throughout file.
3774
3775 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3776
3777         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3778         symbol_ref throughout file.
3779
3780 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3781
3782         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3783         throughout file.
3784
3785 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3786
3787         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3788         throughout file.
3789
3790 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3791
3792         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3793         throughout file.
3794         * config/arm/neon.md: Likewise.
3795         * config/arm/vfp.md: Likewise.
3796         * config/arm/thumb2.md: Likewise.
3797         * config/arm/cortex-m4.md: Likewise.
3798
3799 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3800
3801         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3802         define_insn patterns for combine.
3803
3804 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
3805
3806         * reorg.c: Always define make_return_insns.
3807
3808 2011-09-13  Jan Hubicka  <jh@suse.cz>
3809
3810         PR other/49533
3811         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3812
3813 2011-09-13  Jan Hubicka  <jh@suse.cz>
3814
3815         PR other/49533
3816         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3817
3818 2011-09-13  Paul Brook  <paul@codesourcery.com>
3819
3820         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3821         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3822         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3823         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3824         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3825         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3826         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3827         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3828         enabling unwind tables.
3829         (c6x_debug_unwind_info): New function.
3830         (TARGET_ARM_EABI_UNWINDER): Define.
3831         (TARGET_DEBUG_UNWIND_INFO): Define.
3832         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3833         (TARGET_EXTRA_CFI_SECTION): Remove.
3834         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3835         * ginclude/unwind-arm-common.h: New file.
3836
3837 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
3838
3839         PR target/50358
3840         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3841         * config/avr/avr.md: (extend_s): New code attribute.
3842         (mul_r_d): New code attribute.
3843         (*maddqihi4, *umaddqihi4): New insns.
3844         (*msubqihi4, *umsubqihi4): New insns.
3845         (*usmaddqihi4, *sumaddqihi4): New insns.
3846         (*usmsubqihi4, *susubdqihi4): New insns.
3847         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3848         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3849         (*umsubqihi4.uconst.ashift): New insn-and-split.
3850         (*msubqihi4.sconst.ashift): New insn-and-split.
3851         (*sumaddqihi4.uconst): New insn-and-split.
3852         (*sumsubqihi4.uconst): New insn-and-split.
3853         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3854         PLUS:HI and MINUS:HI.
3855
3856 2011-09-13  Revital Eres  <revital.eres@linaro.org>
3857
3858         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3859         (optimize_sc): Adjust call to remove_node_from_ps.
3860         (sms_schedule): Add print info.
3861
3862 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3863
3864         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3865         flags specially.
3866
3867 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3868
3869         PR bootstrap/50010
3870         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3871         NOTE_INSN_CFI notes, with the exception of
3872         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3873
3874 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3875             Richard Sandiford  <rdsandiford@googlemail.com>
3876
3877         * config/mips/mips.c (mips_epilogue): New structure.
3878         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3879         restoring registers.
3880         (mips_epilogue_emit_cfa_restores): New function.
3881         (mips_epilogue_set_cfa): Likewise.
3882         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
3883         the current CFA register from the stack, redefine the CFA in terms
3884         of the stack pointer.
3885         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
3886         to the epilogue instructions.
3887
3888 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
3889
3890         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3891         argument.
3892         (mips16e_build_save_restore): Update accordingly.
3893
3894 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3895
3896         PR rtl-optimization/50212
3897         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3898         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3899
3900         PR debug/50299
3901         * calls.c (load_register_parameters): Use use_reg_mode instead
3902         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3903         entry.
3904         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3905         for stack CALL_INSN_FUNCTION_USAGE uses.
3906         * expr.h (use_reg_mode): New prototype.
3907         (use_reg): Changed into inline around use_reg_mode.
3908         * expr.c (use_reg): Renamed to...
3909         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3910         mode to that mode instead of VOIDmode.
3911         * var-tracking.c (prepare_call_arguments): Don't track parameters
3912         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3913         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3914         EXPR_LIST mode.
3915
3916 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3917
3918         PR target/43746
3919         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3920         (progmem_section): New Variable.
3921         (avr_asm_init_sections): Initialize it.
3922         (TARGET_ASM_SELECT_SECTION): Define to...
3923         (avr_asm_select_section): ... this new Function.
3924         (avr_replace_prefix): New Function.
3925         (avr_asm_function_rodata_section): Use it.
3926         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3927         (avr_section_type_flags): Use avr_progmem_p instead of section
3928         name to detect if object is in PROGMEM.
3929         (avr_asm_named_section): Set section name prefix for objects in
3930         PROGMEM.
3931
3932 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3933
3934         PR bootstrap/50352
3935         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3936         sprintf format string.
3937
3938 2011-09-12  Richard Guenther  <rguenther@suse.de>
3939
3940         PR tree-optimization/50343
3941         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3942         that the reduction is over an SSA name before checking its definition.
3943
3944 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3945
3946         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3947         throughout file.
3948
3949 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3950
3951         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3952         throughout file.
3953         * config/mips/sb1.md: Likewise.
3954         * config/mips/predicates.md: Replace (match_test "!...")
3955         with (not (match_test "..."))
3956         * config/mips/constraints.md: Likewise.
3957
3958 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3959
3960         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3961         * config/arm/arm-tables.opt: Regenerate.
3962         * config/arm/arm-tune.md: Regenerate.
3963         * config/arm/arm.c (arm_file_start): Output .arch directive when
3964         user passes -mcpu=generic-*.
3965         (arm_issue_rate): Add genericv7a support.
3966         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3967         (ASM_CPU_SPEC): New define.
3968         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3969         * config/arm/semi.h (ASM_SPEC): Likewise.
3970         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3971         and -mtune=generic-*.
3972
3973 2011-09-09  Richard Guenther  <rguenther@suse.de>
3974
3975         PR tree-optimization/50328
3976         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3977         constant or default-def operand.
3978
3979 2011-09-09  Richard Guenther  <rguenther@suse.de>
3980
3981         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3982         last statement.
3983
3984 2011-09-09  Richard Guenther  <rguenther@suse.de>
3985
3986         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3987         instead of a statement.
3988         * gimple-fold.c (fold_stmt_inplace): Likewise.
3989         * sese.c (graphite_copy_stmts_from_block): Adjust.
3990         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3991         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3992         fold_stmt.
3993         (forward_propagate_addr_into_variable_array_index): Likewise.
3994         (forward_propagate_addr_expr_1): adjust.
3995         (associate_plusminus): Likewise.
3996         (ssa_forward_propagate_and_combine): Likewise.
3997         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3998         (execute_cse_reciprocals): Likewise.
3999         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
4000
4001 2011-09-09  Nick Clifton  <nickc@redhat.com>
4002
4003         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
4004         Return a positive value to indicate that the bits at the
4005         bottom of the register should be cleared.
4006
4007 2011-09-09  Richard Guenther  <rguenther@suse.de>
4008
4009         * tree-ssa-operands.c (swap_tree_operands): Always adjust
4010         existing operand positions.
4011
4012 2011-09-09  Richard Guenther  <rguenther@suse.de>
4013
4014         PR middle-end/50333
4015         * tree-data-ref.c (split_constant_offset): Do not try to handle
4016         ternary ops.
4017
4018 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
4019
4020         PR tree-optimization/50318
4021         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
4022         typo in use of mult_rhs1 and mult_rhs2.
4023
4024 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
4025
4026         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
4027         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
4028
4029 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
4030
4031         * config/arm/arm.md (push_multi): Emit predicates.
4032         (push_fp_multi): Likewise.
4033         * config/arm/arm.c (vfp_output_fstmd): Likewise.
4034
4035 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
4036
4037         PR c++/33255 - Support -Wunused-local-typedefs warning
4038         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4039         (pushdecl): Use the new record_locally_defined_typedef.
4040         (store_parm_decls): Allocate cfun->language.
4041         (finish_function): Use the new maybe_warn_unused_local_typedefs,
4042         and free cfun->language.
4043         (c_push_function_context): Allocate cfun->language here only if needed.
4044         (c_pop_function_context): Likewise, mark cfun->language
4045         for collection only when it should be done.
4046         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4047         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4048         maybe_record_local_typedef_use.
4049         * doc/invoke.texi: Update documentation for
4050         -Wunused-local-typedefs.
4051
4052 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
4053
4054         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4055         (ix86_avoid_lea_for_add): Likewise.
4056         (ix86_avoid_lea_for_addr): Likewise.
4057         (ix86_split_lea_for_addr): Likewise.
4058
4059         * config/i386/i386.c (LEA_MAX_STALL): New.
4060         (increase_distance): Likewise.
4061         (insn_defines_reg): Likewise.
4062         (insn_uses_reg_mem): Likewise.
4063         (distance_non_agu_define_in_bb): Likewise.
4064         (distance_agu_use_in_bb): Likewise.
4065         (ix86_lea_outperforms): Likewise.
4066         (ix86_ok_to_clobber_flags): Likewise.
4067         (ix86_avoid_lea_for_add): Likewise.
4068         (ix86_avoid_lea_for_addr): Likewise.
4069         (ix86_split_lea_for_addr): Likewise.
4070         (distance_non_agu_define): Search in pred BBs added.
4071         (distance_agu_use): Search in succ BBs added.
4072         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4073         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4074         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4075
4076         * config/i386/i386.md: Split added to transform non destructive
4077         add into move and add.
4078         (lea_1): transformed into insn_and_split to avoid AGU stalls.
4079         (lea<mode>_2): Likewise.
4080
4081 2011-09-08  Martin Jambor  <mjambor@suse.cz>
4082
4083         PR tree-optimization/50287
4084         * ipa-split.c (split_function): Do not create SSA names for
4085         non-gimple-registers.
4086
4087 2011-09-08  Richard Guenther  <rguenther@suse.de>
4088
4089         PR tree-optimization/19831
4090         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4091         skip builtins with vdefs that do not really store something.
4092         (propagate_necessity): For calls to free that we can associate
4093         with an allocation function do not mark the freed pointer
4094         definition necessary.
4095         (eliminate_unnecessary_stmts): Remove a call to free if
4096         the associated call to an allocation function is not necessary.
4097
4098 2011-09-08  Richard Guenther  <rguenther@suse.de>
4099
4100         PR tree-optimization/19831
4101         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4102         allocation functions as necessary.
4103
4104 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
4105
4106         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4107         cut from ...
4108         (darwin_default_min_version): Amended to provide defaults
4109         for the cross directory case.
4110         (darwin_driver_init): call darwin_default_min_version unconditionally.
4111         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4112         * config/darwin9.h: Likewise.
4113         * config/darwin10.h: Likewise.
4114         * config/rs6000/darwin7.h: Likewise.
4115
4116 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
4117
4118         PR target/50310
4119         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4120         code early if TARGET_AVX.
4121         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4122
4123 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4124
4125         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4126         duplicates.
4127
4128         PR target/50310
4129         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4130         "mode" attribute computation.
4131
4132 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
4133
4134         * regrename.c (struct du_head): Make nregs signed.
4135         (closed_chains): Remove.
4136         (create_new_chain): Return the new chain.
4137         (chain_from_id): New static function.
4138         (dump_def_use_chain): Change argument to be an int, indicating
4139         the first ID to print.  All callers changed.
4140         (merge_overlapping_regs): Use chain_from_id.  Assert that
4141         chains don't conflict with themselves.
4142         (rename_chains): Take no argument.  Iterate over id_to_chain
4143         rather to find chains to rename.  Clear tick before the main loop.
4144         (struct incoming_reg_info): New struct.
4145         (struct bb_rename_info): New struct.
4146         (init_rename_info, set_incoming_from_chain, merge_chains): New
4147         static functions.
4148         (regrename_analyze): New static function, broken out of
4149         regrename_optimize.  Record and make use of open chain information
4150         at basic block boundaries, and merge chains where possible.
4151         (scan_rtx_reg): Make this_nregs signed.  Don't update
4152         closed_chains.
4153         (build_def_use): Return a bool to indicate success.  All callers
4154         changed.  Don't initialize global data here.
4155         (regrename_optimize): Move most code out of here into
4156         regrename_analyze.
4157         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4158         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4159         static inline functions.
4160         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4161
4162         * bb-reorder.c (insert_section_boundary_note): Don't check
4163         optimize_function_for_speed_p.
4164         (gate_handle_partition_blocks): Do it here instead.
4165         (gate_handle_reorder_blocks): Move preliminary checks here ...
4166         (rest_of_handle_reorder_blocks): ... from here.
4167
4168 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4169
4170         PR middle-end/50301
4171         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4172         function index bounds.
4173         (perhaps_add_new_callers): Likewise.
4174
4175 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4176
4177         PR tree-optimization/49911
4178         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4179         enumerations to the corresponding plain integer type.
4180
4181 2011-09-07  Richard Guenther  <rguenther@suse.de>
4182
4183         PR tree-optimization/50319
4184         * tree-if-conv.c (set_bb_predicate): Assert we only set
4185         canonical predicates.
4186         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
4187         around canonical predicates.
4188         (predicate_bbs): Do not re-gimplify already canonical
4189         predicates.  Properly unshare them though.
4190         (find_phi_replacement_condition): Simplify.
4191
4192 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
4193
4194         PR target/49030
4195         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4196         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4197         reusing the old code from get_arm_condition_code.  Return ARM_NV
4198         for invalid comparison codes.
4199         (get_arm_condition_code): Redefine in terms of
4200         maybe_get_arm_condition_code.
4201         * config/arm/predicates.md (arm_comparison_operator): Use
4202         maybe_get_arm_condition_code.
4203
4204 2011-09-07  Richard Guenther  <rguenther@suse.de>
4205
4206         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4207         Canonicalize negated predicates by swapping edges.
4208         (forward_propagate_into_cond): Likewise.
4209
4210 2011-09-07  Richard Guenther  <rguenther@suse.de>
4211
4212         PR tree-optimization/50213
4213         * tree-flow.h (simple_iv_increment_p): Declare.
4214         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
4215         POINTER_PLUS_EXPR.
4216         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4217         not propagate simple IV counter increments.
4218
4219 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
4220             Iain Sandoe  <iains@gcc.gnu.org>
4221
4222         * config/rs6000/rs6000.c (compute_save_world_info): Test
4223         cfun->has_nonlocal_label to determine if the out-of-line save
4224         world call may be used.
4225
4226 2011-09-07  Nick Clifton  <nickc@redhat.com>
4227
4228         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4229         label on the parallel part of the insn.
4230
4231 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4232
4233         PR debug/50191
4234         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4235         avoid_constant_pool_reference first instead of last.
4236
4237 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4238
4239         * doc/configfiles.texi (Configuration Files): Update documentation
4240         about tm_p.h and remove FIXME comment.
4241
4242 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
4243
4244         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4245         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4246
4247 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
4248
4249         * config/darwin10.h Remove duplicate LIB_SPEC.
4250
4251 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
4252
4253         PR middle-end/44382
4254         * target.def (reassociation_width): New hook.
4255
4256         * doc/tm.texi.in (reassociation_width): Likewise.
4257
4258         * doc/tm.texi (reassociation_width): Likewise.
4259
4260         * doc/invoke.texi (tree-reassoc-width): New param documented.
4261
4262         * hooks.h (hook_int_uint_mode_1): New default hook.
4263
4264         * hooks.c (hook_int_uint_mode_1): Likewise.
4265
4266         * config/i386/i386.h (ix86_tune_indices): Add
4267         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4268
4269         (TARGET_REASSOC_INT_TO_PARALLEL): New.
4270         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4271
4272         * config/i386/i386.c (initial_ix86_tune_features): Add
4273         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4274
4275         (ix86_reassociation_width): New function.
4276
4277         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4278
4279         * tree-ssa-reassoc.c (get_required_cycles): New function.
4280         (get_reassociation_width): Likewise.
4281         (swap_ops_for_binary_stmt): Likewise.
4282         (rewrite_expr_tree_parallel): Likewise.
4283
4284         (rewrite_expr_tree): Refactored.  Part of code moved into
4285         swap_ops_for_binary_stmt.
4286
4287         (reassociate_bb): Now checks reassociation width to be used and
4288         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4289
4290 2011-09-06  Richard Guenther  <rguenther@suse.de>
4291
4292         PR tree-optimization/47025
4293         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4294         uses nothing.
4295         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4296         BUILT_IN_FREE.
4297         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4298         definitely points to.
4299         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4300         BUILT_IN_VA_START doesn't let its va_list argument escape.
4301         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4302         not make any previous stores necessary.
4303
4304 2011-09-06  Martin Jambor  <mjambor@suse.cz>
4305
4306         * ipa-inline.h (struct inline_summary): Move versionable flag...
4307         * cgraph.h (struct cgraph_local_info): ...here
4308         * ipa-cp.c (determine_versionability): Use the new versionable flag.
4309         (determine_versionability): Likewise.
4310         (ipcp_versionable_function_p): Likewise.
4311         (ipcp_generate_summary): Likewise.
4312         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4313         versionable flag.
4314         (compute_inline_parameters): Do not clear the versionable flag.
4315         (inline_read_section): Do not stream the versionable flag.
4316         (inline_write_summary): Likewise.
4317         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4318         (input_overwrite_node): Likewise.
4319
4320 2011-09-06  Richard Guenther  <rguenther@suse.de>
4321
4322         PR tree-optimization/48149
4323         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
4324         (vn_valueize): Move earlier.
4325         (valueize_expr): Use vn_valueize.
4326         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4327         operands.
4328         (simplify_unary_expression): Simplify.
4329
4330 2011-09-06  Richard Guenther  <rguenther@suse.de>
4331
4332         PR tree-optimization/48317
4333         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4334         trailing array.
4335         (sizeof_vn_nary_op): New inline function.
4336         (vn_nary_op_lookup_pieces): Adjust.
4337         (vn_nary_op_insert_pieces): Likewise.
4338         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4339         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
4340         any number of operands.
4341         (vn_nary_length_from_stmt): New function.
4342         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4343         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4344         sized temporary.
4345         (vn_nary_op_lookup): Likewise.
4346         (vn_nary_op_lookup_stmt): Likewise.
4347         (vn_nary_op_insert_into): Likewise.
4348         (vn_nary_op_insert_stmt): Likewise.
4349         (visit_use): Handle CONSTRUCTOR as nary.
4350         * tree-ssa-pre.c (phi_translate_1): Adjust.
4351         (create_expression_by_pieces): Likewise.
4352         (compute_avail): Likewise.
4353
4354 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
4355
4356          * config/arm/arm.c (arm_preferred_simd_mode): Check
4357         TARGET_NEON_VECTORIZE_DOUBLE instead of
4358         TARGET_NEON_VECTORIZE_QUAD.
4359         (arm_autovectorize_vector_sizes): Likewise.
4360         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4361         mask of mvectorize-with-neon-double.  Add RejectNegative.
4362         (mvectorize-with-neon-double): New.
4363
4364 2011-09-06  Richard Guenther  <rguenther@suse.de>
4365
4366         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4367
4368 2011-09-06  Tom de Vries  <tom@codesourcery.com>
4369
4370         * recog.c (asm_labels_ok): New function.
4371         (check_asm_operands): Use asm_labels_ok.
4372
4373 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4374
4375         PR target/49606
4376         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4377         (PMODE_INSN): New macro.
4378         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4379         (mips_got_load, mips_expand_synci_loop): Likewise.
4380         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4381         cprestore patterns.
4382         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
4383         copygp_mips16 patterns.
4384         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4385         and use_cprestore patterns.
4386         (mips_override_options): Check for incompatible -mabi and -mlong
4387         combinations.
4388         * config/mips/mips.md (unspec_got<mode>): Rename to...
4389         (unspec_got_<mode>): ...this.
4390         (copygp_mips16): Use the Pmode iterator.
4391         (potential_cprestore, cprestore, use_cprestore): Likewise.
4392         (clear_cache, indirect_jump): Use PMODE_INSN.
4393         (indirect_jump<mode>): Rename to...
4394         (indirect_jump_<mode>): ...this.
4395         (tablejump): Use PMODE_INSN.
4396         (tablejump<mode>): Rename to...
4397         (tablejump_<mode>): ...this.
4398         (exception_receiver): Handle restore_gp_si and restore_gp_di.
4399         (restore_gp): Use the Pmode iterator.
4400         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4401         PMODE_INSN.
4402
4403 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4404
4405         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4406         Fix the type of the BIT_AND_EXPR.
4407
4408 2011-09-05  David S. Miller  <davem@davemloft.net>
4409
4410         * config.host: Add driver-sparc.o and sparc/x-sparc on
4411         native sparc*-*-linux* builds.
4412         * config/sparc/driver-sparc.c: Correct Linux strings.
4413         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4414         * config/sparc/linux64.h: Likewise.
4415         * doc/invoke.texi: Document that Linux also supports
4416         -mcpu=native and -mtune=native on sparc.
4417
4418         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4419         PROCESSOR_NIAGARA4): New.
4420         * config/sparc/sparc.opt: Handle new processor types.
4421         * config/sparc/sparc.md: Add to "cpu" attribute.
4422         * config/sparc/sparc.h (TARGET_CPU_niagara3,
4423         TARGET_CPU_niagara4): New, treat as niagara2.
4424         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4425         * config/sparc/sol2.h: Likewise.
4426         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4427         * config/sparc/sparc.c (sparc_option_override): Add
4428         niagara3 and niagara4 handling.
4429         (sparc32_initialize_trampoline): Likewise.
4430         (sparc64_initialize_trampoline): Likewise.
4431         (sparc_use_sched_lookahead): Likewise.
4432         (sparc_issue_rate): Likewise.
4433         (sparc_register_move_cost): Likewise.
4434         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4435         and niagara4 as appropriate.
4436         * doc/invoke.texi: Document new processor types.
4437         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4438         and --with-tune options.
4439
4440         * config/sparc/sol2-64.h: Move ...
4441         * config/sparc/default-64.h: ... to here.  Update comment.
4442         * config.gcc: Update Solaris sparc to use default-64.h, also
4443         prefix this header into the list on sparc64-*-linux.
4444         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4445         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
4446         to MASK_HARD_QUAD.
4447
4448 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4449
4450         PR target/50289
4451         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4452         that contain global register variable.
4453
4454 2011-09-05  Richard Guenther  <rguenther@suse.de>
4455
4456         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4457
4458 2011-09-05  Richard Guenther  <rguenther@suse.de>
4459
4460         * stor-layout.c (layout_type): Use size_binop for array size
4461         calculations.
4462
4463 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4464
4465         * config/avr/avr.h (progmem_section): Remove Declaration.
4466         * config/avr/avr.c (progmem_section): Make static and rename to
4467         progmem_swtable_section.
4468         (avr_output_addr_vec_elt): No need to switch sections.
4469         (avr_asm_init_sections): Use output_section_asm_op as section
4470         callback for progmem_swtable_section.
4471         (avr_output_progmem_section_asm_op): Remove Function.
4472         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4473         (avr_asm_function_rodata_section): New static Function.
4474         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4475         alignment 2**1 for jump tables.
4476
4477 2011-09-04  Jan Hubicka  <jh@suse.cz>
4478
4479         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4480         parameter is SSA name.
4481
4482 2011-09-04  Richard Guenther  <rguenther@suse.de>
4483
4484         Revert
4485         2011-08-31  Richard Guenther  <rguenther@suse.de>
4486
4487         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4488         special-casing.
4489
4490 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
4491
4492         PR debug/49901
4493         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4494
4495 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
4496             Ira Rosen  <ira.rosen@linaro.org>
4497
4498         PR tree-optimization/50208
4499         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4500         argument.  Check that def_stmt is inside the loop.
4501         (vect_recog_widen_mult_pattern): Update calls to
4502         vect_handle_widen_mult_by_cons.
4503         (vect_operation_fits_smaller_type): Check that def_stmt is
4504         inside the loop.
4505
4506 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
4507
4508         * tree-vectorizer.c (vect_print_dump_info): Print line
4509         number when dumping to a file.
4510         (vectorize_loops): Add new messages to dump file.
4511
4512 2011-09-03  Martin Jambor  <mjambor@suse.cz>
4513
4514         * ipa-prop.h (ipa_jump_func_t): New typedef.
4515         (struct ipa_edge_args): Removed field argument_count, field
4516         jump_functions turned into a vector.
4517         (ipa_set_cs_argument_count): Removed.
4518         (ipa_get_cs_argument_count): Updated to work on vectors.
4519         (ipa_get_ith_jump_func): Likewise.
4520         * ipa-prop.c (ipa_count_arguments): Removed.
4521         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4522         jump functions.  Update caller.
4523         (compute_pass_through_member_ptrs): Likewise.
4524         (compute_cst_member_ptr_arguments): Likewise.
4525         (ipa_compute_jump_functions_for_edge): Get number of arguments from
4526         the statement, allocate vector.
4527         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4528         (duplicate_ipa_jump_func_array): Removed.
4529         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4530         (ipa_read_node_info): Allocate vector.
4531
4532 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4533
4534         PR middle-end/50232
4535         * config/pa/pa.md (return): Define "return" insn pattern.
4536         (epilogue): Use it when no epilogue is needed.
4537         * config/pa/pa.c (pa_can_use_return_insn): New function.
4538         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4539
4540 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
4541
4542         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4543         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4544         Force at least BITS_PER_UNIT alignment on the new variable.
4545
4546 2011-09-02  Gary Funck <gary@intrepid.com>
4547
4548         * opts.c (print_specific_help): Fix off-by-one compare in
4549         assertion check.
4550         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4551         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4552         Increase by +5 to allow for more languages.
4553         * optc-gen.awk: Generate #if that ensures that the number of
4554         languages is within the implementation-defined limit.
4555
4556 2011-09-02  Michael Matz  <matz@suse.de>
4557
4558         PR middle-end/50260
4559         * ipa-split.c (split_function): Call add_referenced_var.
4560
4561         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4562         (cond_if_else_store_replacement_1): Ditto.
4563         * tree-ssa-pre.c (get_representative_for): Ditto.
4564         (create_expression_by_pieces): Ditto.
4565         (insert_into_preds_of_block): Ditto.
4566         * tree-sra.c (create_access_replacement): Ditto.
4567         (get_replaced_param_substitute): Ditto.
4568
4569 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
4570
4571         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4572         automata_options.
4573         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4574         (l1w, s1w, l2w, s2w): Define in the main automaton.
4575         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4576         units.
4577         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4578         (c6x_unit_names): Add the new units.
4579         (c6x_unit_codes): New static array.
4580         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4581         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4582         UNIT_QID_SIDE_OFFSET): New macros.
4583         (RESERVATION_S2): Adjust value.
4584         (c6x_option_override): Compute c6x_unit_codes.
4585         (assign_reservations): Take the unit_mask of the last instruction
4586         into account.  Detect floating point reservations by looking for
4587         the new units.  Don't assign reservations if the field is already
4588         nonzero.
4589         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4590         (init_sched_state): Initialize it.
4591         (c6x_clear_sched_context): Free it.
4592         (insn_set_clock): Clear reservation.
4593         (prev_cycle_state): New static variable.
4594         (c6x_init_sched_context): Save it.
4595         (c6x_sched_init): Allocate space for it and clear it.
4596         (c6x_sched_dfa_pre_cycle_insn): New static function.
4597         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4598         (c6x_variable_issue): Only record units in the unit_mask that
4599         were not set at the start of the cycle.
4600         (c6x_variable_issue): Compute and store the unit_mask from the
4601         current state.
4602         (reorg_split_calls): Ensure the new information remains correct.
4603         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4604         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4605         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4606         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4607         Add special reservations.
4608         * config/c6x/c6x-sched.md: Regenerate.
4609
4610 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4611
4612         * ipa-prop.h (ipa_node_params): Removed fields
4613         called_with_var_arguments and node_versionable.
4614         (ipa_set_called_with_variable_arg): Removed.
4615         (ipa_is_called_with_var_arguments): Likewise.
4616         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4617         (determine_versionability): Do not check for type attributes and va
4618         builtins.  Record versionability into inline summary.
4619         (initialize_node_lattices): Do not check
4620         ipa_is_called_with_var_arguments.
4621         (propagate_constants_accross_call): Likewise, ignore arguments we do
4622         not have PARM_DECLs for, set variable flag for parameters that were
4623         not passed a value.
4624         (create_specialized_node): Dump info that we cannot change signature.
4625         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4626         number of arguments.
4627         (ipa_make_edge_direct_to_target): Likewise.
4628         (ipa_update_after_lto_read): Likewise.
4629         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4630         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4631         they were remapped.
4632
4633 2011-09-02  Richard Guenther  <rguenther@suse.de>
4634
4635         PR tree-optimization/27460
4636         PR middle-end/29269
4637         * doc/md.texi (vcond): Document.
4638         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4639         optab with two modes.
4640         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4641         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4642         (vcond_optab): Adjust.
4643         (vcondu_optab): Likewise.
4644         (expand_vec_cond_expr_p): Adjust prototype.
4645         * optabs.c (get_vcond_icode): Adjust.
4646         (expand_vec_cond_expr_p): Likewise.
4647         (expand_vec_cond_expr): Likewise.
4648         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4649         vector type.
4650         (vectorizable_condition): Allow differing types for comparison
4651         and result.
4652         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4653         for the comparison.
4654         * config/i386/sse.md (vcond<mode>): Split to
4655         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4656         vcond<V_128:mode><VI124_128:mode> and
4657         vcondu<V_128:mode><VI124_128:mode>.
4658         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4659         (vconduv2di): Likewise.
4660         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4661         (vcondu<mode>): Likewise.
4662         * config/ia64/vect.md (vcond<mode>): Likewise.
4663         (vcondu<mode>): Likewise.
4664         (vcondv2sf): Likewise.
4665         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4666         * config/rs6000/paired.md (vcondv2sf): Likewise.
4667         * config/rs6000/vector.md (vcond<mode>): Likewise.
4668         (vcondu<mode>): Likewise.
4669         * config/spu/spu.md (vcond<mode>): Likewise.
4670         (vcondu<mode>): Likewise.
4671
4672 2011-09-02  Richard Guenther  <rguenther@suse.de>
4673
4674         * pretty-print.h (pp_unsigned_wide_integer): New.
4675         * tree-pretty-print.c (dump_generic_node): Print unsigned
4676         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4677
4678 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
4679
4680         PR target/49987
4681         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4682         valid CONST_VECTOR operands.
4683         (rs6000_expand_vector_init): Likewise.
4684
4685 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4686
4687         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4688         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4689         BINFO_VTABLE.  Parameter delta removed, all callers updated.
4690         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4691         BINFO_VTABLE.
4692         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4693         all calls.
4694         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4695         handling of thunk_delta.
4696         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4697         (devirtualization_time_bonus): Do not handle thunk deltas.
4698         (ipcp_discover_new_direct_edges): Likewise.
4699         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4700         (try_make_edge_direct_simple_call): Likewise.
4701         (try_make_edge_direct_virtual_call): Likewise.
4702         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4703         parameter set as unused.
4704         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4705         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4706         parameter set as unused.
4707         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4708         (input_edge_opt_summary): Likewise.
4709         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4710         BINFO_VIRTUALS at all.
4711         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4712
4713 2011-09-02  Richard Guenther  <rguenther@suse.de>
4714
4715         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4716         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4717
4718 2011-08-31  Richard Guenther  <rguenther@suse.de>
4719
4720         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4721         handling here, from ...
4722         (expand_expr_real_1): ... here.
4723         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4724         and VEC_COND_EXPR.
4725         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4726         a GIMPLE_TERNARY_RHS.
4727         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4728         and VEC_COND_EXPR here ...
4729         (verify_gimple_assign_single): ... not here.
4730         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4731         * tree-object-size.c (cond_expr_object_size): Adjust.
4732         (collect_object_sizes_for): Likewise.
4733         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4734         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4735         (ssa_forward_propagate_and_combine): Adjust.
4736         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4737         as ternary.
4738         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4739         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4740         * tree-vect-stmt.c (vectorizable_condition): Likewise.
4741         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4742         (extract_range_from_assignment): Likewise.
4743
4744 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4745
4746         * config/i386/i386.md: Use (match_test ...) for attribute tests.
4747         * config/i386/mmx.md: Likewise.
4748         * config/i386/sse.md: Likewise.
4749         * config/i386/predicates.md (call_insn_operand): Use
4750         (not (match_test "...")) instead of (match_test "!...")
4751         * config/i386/constraints.md (w): Likewise.
4752
4753 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4754
4755         * doc/md.texi: Describe the use of match_tests in attribute tests.
4756         * rtl.def (MATCH_TEST): Update commentary.
4757         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4758         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4759
4760 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4761
4762         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4763         (attr_string): Use copy_md_ptr_loc.
4764
4765 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4766
4767         PR middle-end/49886
4768         * ipa-inline-analysis.c (compute_inline_parameters): Set
4769         can_change_signature of noes with typde attributes.
4770         * ipa-split.c (split_function): Do not skip any arguments if
4771         can_change_signature is set.
4772
4773 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4774
4775         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4776         check removed.
4777
4778 2011-08-31  Richard Guenther  <rguenther@suse.de>
4779
4780         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4781         special-casing.
4782
4783 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
4784
4785         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4786
4787 2011-08-31  Tom de Vries  <tom@codesourcery.com>
4788
4789         PR middle-end/43513
4790         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4791         * tree-ssa-ccp.c (params.h): Include.
4792         (fold_builtin_alloca_for_var): New function.
4793         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4794
4795 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
4796
4797         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4798         Handle FMA option.
4799
4800 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4801
4802         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4803         b3 and b4 unsigned.
4804
4805 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4806
4807         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4808         when code is SET.
4809
4810 2011-08-30  Richard Guenther  <rguenther@suse.de>
4811
4812         PR middle-end/48571
4813         * gimple.h (maybe_fold_offset_to_address): Remove.
4814         (maybe_fold_offset_to_reference): Likewise.
4815         (maybe_fold_stmt_addition): Likewise.
4816         (may_propagate_address_into_dereference): Likewise.
4817         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4818         array references.
4819         * gimple-fold.c (canonicalize_constructor_val): Likewise.
4820         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4821         addresses instead.
4822         (may_propagate_address_into_dereference): Remove.
4823         (maybe_fold_offset_to_array_ref): Likewise.
4824         (maybe_fold_offset_to_reference): Likewise.
4825         (maybe_fold_offset_to_address): Likewise.
4826         (maybe_fold_stmt_addition): Likewise.
4827         (fold_gimple_assign): Do not reconstruct array references but
4828         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4829         MEM_REF addresses.
4830         (gimple_fold_stmt_to_constant_1): Likewise.
4831         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4832         * gimplify.c (gimplify_conversion): Likewise.
4833         (gimplify_expr): Likewise.
4834
4835 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
4836
4837         * config/i386/fmaintrin.h: New.
4838         * config.gcc: Add fmaintrin.h.
4839         * config/i386/i386.c
4840         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4841         <IX86_BUILTIN_VFMADDSD3>: Likewise.
4842         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4843         (*fmai_fmadd_<mode>): Likewise.
4844         (*fmai_fmsub_<mode>): Likewise.
4845         (*fmai_fnmadd_<mode>): Likewise.
4846         (*fmai_fnmsub_<mode>): Likewise.
4847         * config/i386/immintrin.h: Add fmaintrin.h.
4848
4849 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
4850
4851         * genautomata.c (NO_COMB_OPTION): New macro.
4852         (no_comb_flag): New static variable.
4853         (gen_automata_option): Handle NO_COMB_OPTION.
4854         (comb_vect_p): False if no_comb_flag.
4855         (add_vect): Move computation of min/max values.  Return early if
4856         no_comb_flag.
4857         * doc/md.texi (automata_option): Document no-comb-vect.
4858
4859         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4860         "__x86.get_pc_thunk".
4861
4862         * bb-reorder.c (insert_section_boundary_note): Only do it if
4863         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4864
4865 2011-08-30  Christian Bruel  <christian.bruel@st.com>
4866
4867         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4868         flag_profile_use.
4869
4870 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4871
4872         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4873         to off.  Document switch.
4874         * doc/invoke.texi (-msave-toc-indirect): Ditto.
4875
4876 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4877
4878         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4879         conditionals and comments inside macro arguments.
4880
4881 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4882             Richard Guenther  <rguenther@suse.de>
4883
4884         * tree.h (constant_boolean_node): Adjust prototype.
4885         * fold-const.c (fold_convert_loc): Move aggregate conversion
4886         leeway down.
4887         (constant_boolean_node): Make value parameter boolean, add
4888         vector type handling.
4889         (fold_unary_loc): Use constant_boolean_node.
4890         (fold_binary_loc): Preserve types properly when folding
4891         COMPLEX_EXPR <__real x, __imag x>.
4892         * gimplify.c (gimplify_expr): Handle vector comparison.
4893         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4894         comparison.
4895         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4896         comparisons.
4897
4898 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4899
4900         PR middle-end/48722
4901         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4902         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4903         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4904         in there too.
4905         (unshare_all_rtl_in_chain): For CALL_INSNs
4906         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4907
4908 2011-08-29  Richard Guenther  <rguenther@suse.de>
4909
4910         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4911         on the built ADDR_EXPR.
4912
4913 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4914
4915         PR debug/50215
4916         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4917         before adding ENTRY_VALUE to val->locs.
4918
4919 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4920
4921         PR bootstrap/50218
4922         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4923         comp.
4924
4925 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4926
4927         * doc/rtl.texi (simple_return): Document.
4928         (parallel, PATTERN): Here too.
4929         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4930         in some cases.
4931         (simple_return): Document standard pattern.
4932         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4933         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4934         * reorg.c (function_return_label, function_simple_return_label):
4935         New static variables, replacing...
4936         (end_of_function_label): ... this.
4937         (simplejump_or_return_p): New static function.
4938         (optimize_skip, steal_delay_list_from_fallthrough,
4939         fill_slots_from_thread): Use it.
4940         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4941         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4942         (find_end_label): Take a new arg which is one of the two return
4943         rtxs.  Depending on which, set either function_return_label or
4944         function_simple_return_label.  All callers changed.
4945         (make_return_insns): Make both kinds.
4946         (dbr_schedule): Adjust for two kinds of end labels.
4947         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4948         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4949         (gen_expand, gen_split): Use ANY_RETURN_P.
4950         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4951         * rtl.def (SIMPLE_RETURN): New code.
4952         * ifcvt.c (find_if_case_1): Be more careful about
4953         redirecting jumps to the EXIT_BLOCK.
4954         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4955         returnjump_p_1): Handle SIMPLE_RETURNs.
4956         * print-rtl.c (print_rtx): Likewise.
4957         * rtl.c (copy_rtx): Likewise.
4958         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4959         * combine.c (simplify_set): Likewise.
4960         * resource.c (find_dead_or_set_registers, mark_set_resources):
4961         Likewise.
4962         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4963         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4964         (init_emit_regs): Initialize simple_return_rtx.
4965         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4966         force_nonfallthru_and_redirect.
4967         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4968         (GR_SIMPLE_RETURN): New enum value.
4969         (simple_return_rtx): New macro.
4970         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4971         declaration.
4972         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4973         argument.  All callers changed.  Be careful about what kinds of
4974         returnjumps to generate.
4975         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4976         ix86_pad_short_function): Likewise.
4977         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4978         of return.
4979         * config/mips/mips.md (any_return): New code_iterator.
4980         (optab): Add cases for return and simple_return.
4981         (return): Expand to a simple_return.
4982         (simple_return): New pattern.
4983         (*<optab>, *<optab>_internal for any_return): New patterns.
4984         (return_internal): Remove.
4985         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4986         a simple_return_internal.
4987
4988 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4989
4990         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4991         (vec_extract_lo_<mode>): Prevent both operands in memory.
4992         (vec_extract_lo_v16hi): Ditto.
4993         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4994
4995 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4996
4997         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4998         (*sse2_mulv4si3): Ditto.
4999         (mulv2di3): Ditto.
5000         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
5001         notes to REG_EQUAL.
5002
5003 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5004
5005         PR target/50202
5006         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
5007         when all outputs are unused.
5008         (sse4_2_pcmpistr): Ditto.
5009
5010 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
5011
5012         * config/i386/i386.md (round<mode>2): New expander.
5013         * config/i386/i386.c (enum ix86_builtins): Add
5014         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
5015         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
5016         descriptions.
5017         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
5018         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
5019
5020 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
5021
5022         PR middle-end/50083
5023         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
5024         only when TARGET_C99_FUNCTIONS.
5025         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
5026         <BUILT_IN_RINT{,F,L}>: Ditto.
5027
5028 2011-08-26  Michael Matz  <matz@suse.de>
5029             Jakub Jelinek  <jakub@redhat.com>
5030
5031         PR lto/50165
5032         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
5033         don't call strlen twice, use memcpy.
5034
5035 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5036
5037         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
5038         * config/i386/bmiintrin.h: Likewise.
5039         * config/i386/lzcntintrin.h: Likewise.
5040
5041         * config/i386/immintrin.h: Include <lzcntintrin.h>,
5042         <bmiintrin.h> and <bmi2intrin.h>.
5043
5044 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5045
5046         PR target/50166
5047         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5048         * configure: Regenerate.
5049
5050 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5051
5052         PR c/50179
5053         * c-typeck.c (c_process_expr_stmt): Skip over nops and
5054         call mark_exp_read even if exprv is ADDR_EXPR.
5055
5056 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
5057
5058         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5059         to df_set_dead_notes_for_mw.
5060
5061 2011-08-26  Richard Guenther  <rguenther@suse.de>
5062
5063         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5064
5065 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
5066             Tom de Vries  <tom@codesourcery.com>
5067
5068         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5069         (struct ivopts_data): Add loop_single_exit_p field.
5070         (niter_for_exit): Change parameter desc_p into return value.  Return
5071         desc if desc->may_be_zero.  Free desc if unused.
5072         (niter_for_single_dom_exit): Change return type.
5073         (find_induction_variables): Handle changed return type of
5074         niter_for_single_dom_exit.  Dump may_be_zero.
5075         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5076         (set_use_iv_cost): Add and handle comp parameter.
5077         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5078         comp argument to set_use_iv_cost.
5079         (strip_wrap_conserving_type_conversions, expr_equal_p)
5080         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5081         (may_eliminate_iv): Add comp parameter.  Handle new return type of
5082         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
5083         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5084         and may_eliminate_iv.
5085         (rewrite_use_compare): Move call to iv_elimination_compare to ...
5086         (may_eliminate_iv): Here.
5087         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5088
5089 2011-08-26  Tom de Vries  <tom@codesourcery.com>
5090
5091         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5092         accessing TREE_TYPE.
5093
5094 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
5095
5096         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5097         (*ior_scc_scc_cmp): Likewise
5098         (*and_scc_scc): Likewise.
5099         (*and_scc_scc_cmp): Likewise.
5100         (*and_scc_scc_nodom): Likewise.
5101         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5102
5103 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5104
5105         * rtlanal.c (nonzero_bits1): Handle CLRSB.
5106
5107 2011-08-26  Richard Guenther  <rguenther@suse.de>
5108
5109         * expr.c (string_constant): Handle &MEM_REF.
5110
5111 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5112
5113         * config/arm/arm.c (struct four_ints): New type.
5114         (count_insns_for_constant): Delete function.
5115         (find_best_start): Delete function.
5116         (optimal_immediate_sequence): New function.
5117         (optimal_immediate_sequence_1): New function.
5118         (arm_gen_constant): Move constant splitting code to
5119         optimal_immediate_sequence.
5120         Rewrite constant negation/invertion code.
5121
5122 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5123
5124         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5125         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5126         Remove prototype. Remove static function type.
5127         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5128         Add arch attribute.
5129         * config/arm/constraints.md (Pj, PJ): New constraints.
5130
5131 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5132
5133         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5134         ("cortex_a9_multiply_long"): New and use above.  Handle all
5135         long multiply cases.
5136         ("cortex_a9_multiply"): Handle smmul and smmulr.
5137         ("cortex_a9_mac"): Handle smmla.
5138
5139 2011-08-25  Richard Henderson  <rth@redhat.com>
5140
5141         PR 50132
5142         PR 49864
5143         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5144         non-constant stack adjutment.
5145         * expr.c (find_args_size_adjust): Break out from ...
5146         (fixup_args_size_notes): ... here.
5147         * rtl.h (find_args_size_adjust): Declare.
5148
5149 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
5150
5151         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5152         sse4 and sse4_noavx.
5153         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5154         (*pushdf_rex64): Change Y2 register constraint to x.
5155         (*movdf_internal_rex64): Ditto.
5156         (*zero_extendsidi2_rex64): Ditto.
5157         (*movdi_internal): Change Y2 register constraint to x
5158         and update "isa" attribute.
5159         (*pushdf): Ditto.
5160         (*movdf internal): Ditto.
5161         (zero_extendsidi2_1): Ditto.
5162         (*truncdfdf_mixed): Ditto.
5163         (*truncxfdf2_mixed): Ditto.
5164         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5165         register constraint to x.
5166         (*movv2sf_internal_rex64): Ditto.
5167         (*mov<mode>_internal): Change Y2 register constraint to x
5168         and add "isa" attribute.
5169         (*movv2sf_internal): Ditto.
5170         (*vec_extractv2si_1): Ditto.
5171         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5172         constraints to x and update "isa" attribute.
5173         (*vec_interleave_highv2df): Change Y3 registerconstraint
5174         to x and update "isa" attribute.
5175         (*vec_interleave_lowv2df): Ditto.
5176         (*vec_concatv2df): Change Y2 register constraint to x and
5177         update "isa" attribute.
5178         (sse2_loadld): Ditto.
5179         (*vec_extractv2di_1): Ditto.
5180         (*vec_dupv4si): Ditto.
5181         (*vec_dupv2di): Ditto.
5182         (*vec_concatv4si): Ditto.
5183         (vec_concatv2di): Ditto.
5184         * config/i386/constraints.md (Y2): Remove.
5185         (Y3): Ditto.
5186         (Y4): Ditto.
5187
5188 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5189
5190         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5191         dump_def_use_chain): Don't declare.
5192         (mark_conflict, create_new_chain): Move before users.
5193         (regrename_optimize): Move to near end of file.
5194
5195 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5196
5197         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5198         (secondary_input_reload_class): Remove Prototype.
5199         * config/avr/avr.c (byte_immediate_operand): Remove Function.
5200         * config/avr/avr.md (setmemhi): Use u8_operand.
5201         (strlenhi): Use const0_rtx for comparison.
5202         * config/avr/avr.h (avr_reg_order): Remove Declaration.
5203
5204 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5205
5206         * config/avr/avr.c (reg_class_tab): Make local to
5207         avr_regno_reg_class.  Return smallest register class available.
5208
5209 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5210
5211         * config/avr/avr.c (STR_PREFIX_P): New Define.
5212         (avr_asm_declare_function_name): Use it.
5213         (avr_asm_named_section): Use it.
5214         (avr_section_type_flags): Use it.
5215
5216 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5217
5218         * doc/md.texi (automata_option): Document collapse-ndfa.
5219         * genautomata.c (COLLAPSE_OPTION): New macro.
5220         (collapse_flag): New static variable.
5221         (struct description): New member normal_decls_num.
5222         (struct automaton): New members advance_ainsn and collapse_ainsn.
5223         (gen_automata_option): Check for COLLAPSE_OPTION.
5224         (collapse_ndfa_insn_decl): New static variable.
5225         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5226         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5227         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5228         necessary.  Use normal_decls_num rather than decls_num, remove
5229         test for special decls.
5230         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5231         (make_automaton); Likewise.  Use the new advance_cycle_insn member
5232         of struct automaton.
5233         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5234         is set.
5235         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5236         transition.  Create the necessary transitions for it.
5237         (create_ainsns): Return void.  Take an automaton_t argument, and
5238         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
5239         callers changed.
5240         (COLLAPSE_NDFA_VALUE_NAME): New macro.
5241         (output_tables): Output code to define it.
5242         (output_internal_insn_code_evaluation): Output code to accept
5243         const0_rtx as collapse-ndfa transition.
5244         (output_default_latencies, output_print_reservation_func,
5245         output_print_description): Reorganize loops to use normal_decls_num
5246         as loop bound; remove special case for advance_cycle_insn_decl.
5247         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5248         (check_automata_insn_issues): Check for collapse_ainsn.
5249         (expand_automate): Allocate sufficient space.  Initialize
5250         normal_decls_num.
5251
5252 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5253
5254         * config/avr/avr.md: Fix indentation from r177991.
5255
5256 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5257
5258         * regrename.c (struct du_head): Remove member terminated.
5259         (create_new_chain): Don't initialize it.
5260         (scan_rtx_reg): Don't set or test it, test the open_chains_set
5261         bitmap instead.
5262         (tick, this_tick): New global variables, moved out of
5263         regrename_optimize.
5264         (current_id, open_chains, closed_chains, open_chains_set,
5265         live_in_chains, live_hard_regs): Reorder declarations.
5266         (dump_def_use_chain): Move function earlier in the file.
5267         (rename_chains): New static function, broken out of
5268         regrename_optimize.
5269         (regrename_optimize): Use it.  Remove #if 0'ed code.
5270
5271 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5272
5273         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5274
5275 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5276
5277         PR target/50172
5278         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5279
5280 2011-08-24  Richard Guenther  <rguenther@suse.de>
5281
5282         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5283         ref in the basic-block case.  Move stripping array-refs
5284         to the place we create an access-function for it.  Remove
5285         bogus stripping down a MEM_REF to its base.
5286
5287 2011-08-24  Richard Guenther  <rguenther@suse.de>
5288
5289         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5290         with -fno-strict-overflow.
5291
5292 2011-08-24  Richard Guenther  <rguenther@suse.de>
5293
5294         * tree-vectorizer.c (vect_print_dump_info): Avoid the
5295         file and location clutter when dumping to dump files.
5296
5297 2011-08-24  Simon Baldwin  <simonb@google.com>
5298
5299         * gengtype-state.c (write_state): Remove timestamped header line.
5300
5301 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5302
5303         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5304         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5305         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5306         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5307         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5308         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5309         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5310         rules.
5311         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5312
5313 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5314
5315         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5316
5317 2011-08-24  Richard Guenther  <rguenther@suse.de>
5318
5319         PR tree-optimization/50067
5320         * tree-data-ref.c (dr_analyze_indices): Do not add an access
5321         function for a MEM_REF base that has no evolution in the loop
5322         nest or that is not analyzable.
5323
5324 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
5325
5326         * ira.c (ira_init_register_move_cost): Check small subclasses
5327         through ira_reg_class_max_nregs and ira_available_class_regs.
5328
5329 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5330
5331         * config/i386/constraints.md (Yp): New register constraint.
5332         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5333         Yp register constraint.
5334         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5335         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5336         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5337
5338 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5339
5340         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5341
5342 2011-08-23  Mark Heffernan  <meheff@google.com>
5343
5344         PR middle-end/38509
5345         * common.opt (Wfree-nonheap-object): New option.
5346         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5347         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5348         to warning.
5349         (expand_builtin): Make warning conditional.
5350
5351 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5352
5353         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5354         (length_immediate): Handle imulx, ishiftx and rotatex.
5355         (imm_disp): Ditto.
5356         (isa): Add bmi2.
5357         (enabled): Handle bmi2.
5358         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5359         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
5360         (*bmi2_umulditi3_1): New insn pattern.
5361         (*bmi2_umulsidi3_1): Ditto.
5362         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5363         (*bmi2_ashl<mode>3_1): New insn pattern.
5364         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5365         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5366         (*bmi2_ashlsi3_1_zext): New insn pattern.
5367         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5368         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5369         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5370         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5371         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5372         flags dependency.
5373         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5374         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5375         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5376         flags dependency.
5377         (*bmi2_rorx<mode>3_1): New insn pattern.
5378         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5379         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5380         (*rotatert<mode>3_1 splitter): Ditto.
5381         (*bmi2_rorxsi3_1_zext): New insn pattern.
5382         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5383         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5384         (*rotatertsi3_1_zext splitter): Ditto.
5385
5386 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5387
5388         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5389         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5390         (ix86_handle_option): Handle OPT_mbmi2 case.
5391         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5392         (x86_64-*-*): Likewise.
5393         * config/i386/bmi2intrin.h: New file.
5394         * config/i386/cpuid.h (bit_BMI2): New.
5395         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5396         BMI2 feature.
5397         * config/i386/i386-c.c (ix86_target_macros_internal):
5398         Conditionally define __BMI2__.
5399         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5400         Handle BMI2 option.
5401         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5402         (print_reg): New code.
5403         (ix86_print_operand): Likewise.
5404         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5405         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5406         IX86_BUILTIN_PEXT64.
5407         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5408         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5409         IX86_BUILTIN_PEXT64.
5410         * config/i386/i386.h (TARGET_BMI2): New.
5411         * config/i386/i386.md (UNSPEC_PDEP): New.
5412         (UNSPEC_PEXT): Likewise.
5413         (*bmi2_bzhi_<mode>3): Likewise.
5414         (*bmi2_pdep_<mode>3): Likewise.
5415         (*bmi2_pext_<mode>3): Likewise.
5416         * config/i386/i386.opt (mbmi2): New.
5417         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5418         is defined.
5419         * doc/extend.texi: Document BMI2 built-in functions.
5420         * doc/invoke.texi: Document -mbmi2.
5421
5422 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
5423
5424         PR middle-end/50161
5425         * simplify-rtx.c (simplify_const_unary_operation): If
5426         op is CONST_INT, don't look at op_mode, but use instead mode.
5427         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5428         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5429         operation and TRUNCATE/ZERO_EXTEND if needed.
5430         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5431         Document that operand mode must be same as operation mode,
5432         or VOIDmode.
5433         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5434         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5435         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5436         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5437         use the mode of operand for the operation and add truncate
5438         or zero_extend around if needed.
5439         * config/c6x/c6x.md (ctzdi2): Likewise.
5440         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5441
5442 2011-08-12  Michael Matz  <matz@suse.de>
5443
5444         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5445         (gimple_expand_cfg): Merge alignment info for coalesced pointer
5446         SSA names.
5447
5448 2011-08-23  Richard Guenther  <rguenther@suse.de>
5449
5450         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5451         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5452         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5453         from ...
5454         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5455         (mem_refs_may_alias_p): Adjust.
5456         * tree-data-ref.h (dr_may_alias_p): Adjust.
5457         * tree-data-ref.c: Include tree-affine.h.
5458         (dr_analyze_indices): Do nothing for the non-loop case.
5459         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
5460         more cases in the non-loop case.
5461         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5462         calls to dr_may_alias_p.
5463         (write_alias_graph_to_ascii_ecc): Likewise.
5464         (write_alias_graph_to_ascii_dot): Likewise.
5465         (build_alias_set_optimal_p): Likewise.
5466
5467 2011-08-23  Richard Guenther  <rguenther@suse.de>
5468
5469         PR tree-optimization/50162
5470         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5471
5472 2011-08-23  Richard Guenther  <rguenther@suse.de>
5473
5474         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5475         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5476         (create_data_ref): Also dump access functions for the created data-ref.
5477
5478 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
5479             Kirill Yukhin  <kirill.yukhin@intel.com>
5480
5481         PR target/50155
5482         * config/i386/sse.md (VI_AVX2): New.
5483         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5484         (*<plusminus_insn><mode>3): Ditto.
5485         (<sse2_avx2>_andnot<mode>3): Ditto.
5486         (*andnot<mode>3): Fix order of cond operands.
5487         Add asserts for correct TARGET_xxx.
5488         (*<any_logic:code><mode>3): Ditto.
5489
5490 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
5491
5492         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5493         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5494         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5495         regclass argument type to reg_class_t. Change 'max' and 'v' vars
5496         and return types to unsigned char. Use reg_class_contents instead
5497         of class_contents.
5498         (TARGET_CLASS_MAX_NREGS): Define.
5499
5500 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
5501
5502         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5503         to make computed_jump_p return true.
5504
5505 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5506
5507         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5508         (PICFLAG_FOR_TARGET): Substitute.
5509         * aclocal.m4: Regenerate.
5510         * configure: Regenerate.
5511
5512 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
5513
5514         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5515         after reading in the pch.
5516
5517 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5518
5519         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5520         * configure: Regenerated.
5521
5522 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
5523
5524         PR tree-optimization/50133
5525         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5526         from stmt instead of some statement around gsi.
5527
5528         PR middle-end/50141
5529         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5530         innerdecl is a VAR_DECL.
5531
5532 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5533
5534         * config/i386/avx2intrin.h: New file.
5535         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5536         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5537         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5538         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5539         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5540         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5541         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5542         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5543         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5544         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5545         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5546         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5547         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5548         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5549         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5550         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5551         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5552         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5553         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5554         VOID_FTYPE_PV8SI_V8SI_V8SI,
5555         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5556         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5557         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5558         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5559         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5560         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5561         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5562         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5563         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5564         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5565         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5566         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5567         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5568         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5569         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5570         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5571         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5572         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5573         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5574         V4DI_FTYPE_V4DI_INT_CONVERT,
5575         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5576         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5577         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5578         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5579         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5580         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5581         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5582         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5583         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5584         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5585         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5586         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5587         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5588         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5589         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5590         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5591         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5592         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5593         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5594         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5595         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5596         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5597         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5598         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5599         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5600         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5601         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5602         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5603         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5604         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5605         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5606         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5607         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5608         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5609         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5610         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5611         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5612         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5613         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5614         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5615         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5616         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5617         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5618         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5619         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5620         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5621         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5622         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5623         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5624         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5625         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5626         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5627         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5628         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5629         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5630         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5631         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5632         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5633         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5634         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5635         IX86_BUILTIN_VBROADCASTSS_PS256,
5636         IX86_BUILTIN_VBROADCASTSD_PD256,
5637         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5638         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5639         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5640         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5641         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5642         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5643         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5644         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5645         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5646         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5647         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5648         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5649         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5650         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5651         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5652         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5653         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5654         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5655         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5656         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5657         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5658         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5659         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5660         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5661         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5662         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5663         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5664         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5665         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5666         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5667         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5668         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
5669         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5670         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5671         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5672         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5673         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5674         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5675         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5676         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5677         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5678         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5679         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5680         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5681         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5682         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5683         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5684         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5685         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5686         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5687         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5688         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5689         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5690         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5691         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5692         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5693         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5694         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5695         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5696         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5697         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5698         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5699         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5700         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5701         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5702         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5703         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5704         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5705         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5706         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5707         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5708         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5709         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5710         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5711         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5712         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5713         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5714         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5715         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5716         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5717         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5718         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5719         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5720         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5721         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5722         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5723         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5724         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5725         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5726         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5727         IX86_BUILTIN_VBROADCASTSD_PD256,
5728         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5729         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5730         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5731         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5732         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5733         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5734         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5735         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5736         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5737         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5738         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5739         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5740         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5741         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5742         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5743         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5744         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5745         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5746         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5747         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5748         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5749         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5750         IX86_BUILTIN_GATHERDIV8SI.
5751         (ix86_preferred_simd_mode): Support AVX2 modes.
5752         (ix86_expand_args_builtin): Support AVX2 builtins.
5753         (ix86_expand_special_args_builtin): Likewise.
5754         (ix86_expand_builtin): Likewise.
5755         * config/i386/i386.md (UNSPEC_VPERMSI): New.
5756         (UNSPEC_VPERMDF): Likewise.
5757         (UNSPEC_VPERMSF): Likewise.
5758         (UNSPEC_VPERMDI): Likewise.
5759         (UNSPEC_VPERMTI): Likewise.
5760         (UNSPEC_GATHER): Likewise.
5761         (ssemodesuffix): Extend.
5762         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5763         is defined.
5764         * config/i386/predicates.md (const1248_operand): New.
5765         * config/i386/sse.md (VI1_AVX2): New mode iterator.
5766         (VI2_AVX2): Likewise.
5767         (VI4_AVX2): Likewise.
5768         (VI8_AVX2): Likewise.
5769         (VIMAX_AVX2): Likewise.
5770         (SSESCALARMODE): Likewise.
5771         (VI12_AVX2): Likewise.
5772         (VI24_AVX2): Likewise.
5773         (VI124_AVX2): Likewise.
5774         (VI248_AVX2): Likewise.
5775         (VI48_AVX2): Likewise.
5776         (VI4SD_AVX2): Likewise.
5777         (V48_AVX2): Likewise.
5778         (AVX256MODE2P): Likewise.
5779         (AVXMODE48P_DI): Likewise.
5780         (sse2_avx2): New mode attribute.
5781         (ssse3_avx2): Likewise.
5782         (sse4_1_avx2): Likewise.
5783         (avx_avx2): Likewise.
5784         (ssebytemode): Likewise.
5785         (AVXTOSSEMODE): Likewise.
5786         (AVXMODE48P_DI): Likewise.
5787         (gthrfirstp): Likewise.
5788         (gthrlastp): Likewise.
5789         (lshift): New code_iterator
5790         (lshift): New code attribute.
5791         (lshift): Likewise.
5792         (ssescalarmodesuffix): Update.
5793         (sseunpackmode): Likewise.
5794         (ssepackmode): Likewise.
5795         (avx2_vec_dupv4sf): New insn pattern.
5796         (avx2_vec_dupv8sf): Likewise.
5797         (avx2_interleave_highv4di): Likewise.
5798         (avx2_interleave_lowv4di): Likewise.
5799         (avx2_umulv4siv4di3): Likewise
5800         (*avx2_umulv4siv4di3): Likewise
5801         (avx2_pmaddwd): Likewise.
5802         (*avx2_pmaddwd): Likewise.
5803         (avx2_lshrqv4di3): Likewise.
5804         (avx2_lshlqv4di3): Likewise.
5805         (avx2_lshl<mode>3): Likewise.
5806         (avx2_<umaxmin:code><mode>3): Likewise.
5807         (*avx2_<umaxmin:code><mode>3): Likewise.
5808         (avx2_<smaxmin:code><mode>3): Likewise.
5809         (*avx2_<smaxmin:code><mode>3): Likewise.
5810         (avx2_eq<mode>3): Likewise.
5811         (*avx2_eq<mode>3): Likewise.
5812         (avx2_gt<mode>3): Likewise.
5813         (avx2_interleave_highv32qi): New.
5814         (avx2_interleave_lowv32qi): Likewise.
5815         (avx2_interleave_highv16hi): Likewise.
5816         (avx2_interleave_lowv16hi): Likewise.
5817         (avx2_interleave_highv8si): Likewise.
5818         (avx2_interleave_lowv8si): Likewise.
5819         (avx2_pshufd): Likewise.
5820         (avx2_pshufd_1): Likewise.
5821         (avx2_pshuflwv3): Likewise.
5822         (avx2_pshuflw_1): Likewise.
5823         (avx2_pshufhwv3): Likewise.
5824         (avx2_pshufhw_1): Likewise.
5825         (avx2_uavgv32qi3): Likewise.
5826         (*avx2_uavgv32qi3): Likewise.
5827         (avx2_uavgv16hi3): Likewise.
5828         (*avx2_uavgv16hi3): Likewise.
5829         (avx2_pmovmskb): Likewise.
5830         (avx2_phaddwv16hi3): Likewise.
5831         (avx2_phadddv8si3): Likewise.
5832         (avx2_phaddswv16hi3): Likewise.
5833         (avx2_phsubwv16hi3): Likewise.
5834         (avx2_phsubdv8si3): Likewise.
5835         (avx2_phsubswv16hi3): Likewise.
5836         (avx2_pmaddubsw256): Likewise.
5837         (avx2_umulhrswv16hi3): Likewise.
5838         (*avx2_umulhrswv16hi3): Likewise.
5839         (avx2_packusdw): Likewise.
5840         (avx2_pblendd<mode>): Likewise.
5841         (avx2_<code>v16qiv16hi2): Likewise.
5842         (avx2_<code>v8qiv8si2): Likewise.
5843         (avx2_<code>v8hiv8si2): Likewise.
5844         (avx2_<code>v4qiv4di2): Likewise.
5845         (avx2_<code>v4hiv4di2): Likewise.
5846         (avx2_<code>v4siv4di2): Likewise.
5847         (avx2_pbroadcast<mode>): Likewise.
5848         (avx2_permvarv8si): Likewise.
5849         (avx2_permv4df): Likewise.
5850         (avx2_permvarv8sf): Likewise.
5851         (avx2_permv4di): Likewise.
5852         (avx2_permv2ti): Likewise.
5853         (avx2_vec_dupv4df): Likewise.
5854         (avx2_vbroadcasti128_<mode>): Likewise.
5855         (avx2_vec_set_lo_v4di): Likewise.
5856         (avx2_vec_set_hi_v4di): Likewise.
5857         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5858         (avx2_extracti128): Likewise.
5859         (avx2_inserti128): Likewise.
5860         (avx2_ashrvv8si): Likewise.
5861         (avx2_ashrvv4si): Likewise.
5862         (avx2_<lshift>vv8si): Likewise.
5863         (avx2_<lshift>v<mode>): Likewise.
5864         (avx2_<lshift>vv2di): Likewise.
5865         (avx2_gathersi<mode>): Likewise.
5866         (*avx2_gathersi<mode>): Likewise.
5867         (avx2_gatherdi<mode>): Likewise.
5868         (*avx2_gatherdi<mode>): Likewise.
5869         (avx2_gatherdi<mode>256): Likewise.
5870         (*avx2_gatherdi<mode>256): Likewise.
5871         (<plusminus_insn><mode>3): Use VI mode iterator.
5872         (*<plusminus_insn><mode>3): Use VI mode iterator.
5873         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5874         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5875         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5876         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5877         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
5878         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
5879         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5880         Use VI2_AVX2 mode iterator.
5881         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5882         Use VI2_AVX2 mode iterator.
5883         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
5884         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
5885         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5886         Use VI4_AVX2 mode iterator.
5887         (ashr<mode>3): Use VI24_AVX2 mode iterator.
5888         (lshr<mode>3): Use VI248_AVX2 mode iterator.
5889         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5890         Use VIMAX_AVX2 mode iterator.
5891         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5892         Use VI mode iterator.
5893         (*andnot<mode>3): Update for AVX2.
5894         (*<any_logic:code><mode>3): Likewise.
5895         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5896         Use VI1_AVX mode iterator.
5897         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
5898         Use VI2_AVX mode iterator.
5899         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5900         Use VI1_AVX mode iterator.
5901         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5902         Use VI8_AVX2 mode iterator.
5903         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5904         Use VI1_AVX2 mode iterator.
5905         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5906         Use VI124_AVX2 mode iterator.
5907         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5908         Use SSESCALARMODE mode iterator.
5909         (abs<mode>2): Use VI124_AVX2 mode iterator.
5910         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5911         Use VI8_AVX2 mode iterator.
5912         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5913         Use VI1_AVX2 mode iterator.
5914         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5915         Use VI1_AVX2 mode iterator.
5916         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5917         Use VI2_AVX2 mode iterator.
5918         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5919         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5920         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5921         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5922         Use V48_AVX2 mode iterator.
5923         * doc/extend.texi: Document AVX2 built-in functions.
5924         * doc/invoke.texi: Document -mavx2.
5925
5926 2011-08-22  Matthias Klose <doko@debian.org>
5927
5928         Revert:
5929         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5930                     Matthias Klose <doko@debian.org>
5931         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5932         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5933         convention.
5934         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5935
5936 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5937
5938         PR bootstrap/50146
5939         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5940         to #ifndef HONOR_REG_ALLOC_ORDER block.
5941
5942 2011-08-21  Richard Henderson  <rth@redhat.com>
5943
5944         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5945         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5946         * resource.c (next_insn_no_annul): Likewise.
5947         (mark_set_resources): Likewise.
5948         * reorg.c (delete_from_delay_slot): Likewise.
5949         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5950         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5951
5952 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5953
5954         * config/i386/i386.md (any_div): Remove.
5955         (sgnprefix): Update for removal.
5956         (u): Ditto.
5957
5958 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5959
5960         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5961         for ira_reg_class_max_nregs.  Increase pressure by 1.
5962         (mark_pseudo_regno_subword_dead): Use allocno class
5963         for ira_reg_class_max_nregs.
5964
5965 2011-08-20  Richard Henderson  <rth@redhat.com>
5966
5967         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5968         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5969         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5970         config/c6x/ltf.c: Adjust include path for soft-fp.
5971
5972 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5973
5974         PR other/46770
5975         * config.gcc (tm_file): Add initfini-array.h if
5976         .init_arrary/.fini_array are supported.
5977
5978         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5979         USE_INITFINI_ARRAY is defined.
5980
5981         * output.h (default_elf_init_array_asm_out_constructor): New.
5982         (default_elf_fini_array_asm_out_destructor): Likewise.
5983         * varasm.c (elf_init_array_section): Likewise.
5984         (elf_fini_array_section): Likewise.
5985         (get_elf_initfini_array_priority_section): Likewise.
5986         (default_elf_init_array_asm_out_constructor): Likewise.
5987         (default_elf_fini_array_asm_out_destructor): Likewise.
5988
5989         * config/initfini-array.h: New.
5990
5991 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5992
5993         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5994         OK for ST_REGS and FP_REGS before taking those classes into account.
5995
5996 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5997
5998         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5999         before checking for annulled branches.
6000
6001 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
6002
6003         * config/i386/i386.c (ix86_binary_operator_ok): Use
6004         satisfies_constraint_L.
6005
6006 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
6007             Michael Matz  <matz@suse.de>
6008
6009         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
6010         trunc (a + copysign (nextafter (0.5, 0.0), a)).
6011
6012 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
6013
6014         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6015         * doc/tm.texi: Regenerate.
6016         * targhooks.c (default_preferred_output_reload_class): Don't use
6017         PREFERRED_OUTPUT_RELOAD_CLASS macro.
6018         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
6019
6020 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
6021
6022         PR tree-optimization/48739
6023         * tree-ssa.c: Include cfgloop.h.
6024         (execute_update_addresses_taken): When updating ssa, if in loop closed
6025         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
6026         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
6027
6028 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
6029
6030         PR rtl-optimization/49936
6031         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
6032         for calculation of max register move costs.
6033
6034 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6035
6036         * c-parser.c (c_parser_postfix_expression): Convert operands of
6037         __builtin_complex to their semantic types.
6038
6039 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6040
6041         PR middle-end/49721
6042         * explow.c (convert_memory_address_addr_space): Also permute the
6043         conversion and addition of constant for zero-extend.
6044
6045 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6046
6047         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6048         * doc/extend.texi (__builtin_complex): Document.
6049
6050 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6051
6052         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6053         beyond conversions.
6054         (convert_mult_to_widen): Convert constant inputs to the right type.
6055         (convert_plusminus_to_widen): Don't automatically reject inputs that
6056         are not an SSA_NAME.
6057         Convert constant inputs to the right type.
6058
6059 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6060
6061         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6062         to the correct type.
6063
6064 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6065
6066         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6067         unsigned inputs of different modes.
6068         (convert_plusminus_to_widen): Likewise.
6069
6070 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6071
6072         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6073         'type'.
6074         Use 'type' from caller, not inferred from 'rhs'.
6075         Don't reject non-conversion statements. Do return lhs in this case.
6076         (is_widening_mult_p): Add new argument 'type'.
6077         Use 'type' from caller, not inferred from 'stmt'.
6078         Pass type to is_widening_mult_rhs_p.
6079         (convert_mult_to_widen): Pass type to is_widening_mult_p.
6080         (convert_plusminus_to_widen): Likewise.
6081
6082 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6083
6084         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6085         Ensure the the larger type is the first operand.
6086
6087 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6088
6089         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6090         unsupported unsigned multiplies to signed.
6091         (convert_plusminus_to_widen): Likewise.
6092
6093 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6094
6095         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6096         conversion statement separating multiply-and-accumulate.
6097
6098 2011-08-19  Richard Guenther  <rguenther@suse.de>
6099
6100         PR tree-optimization/50067
6101         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6102         offset only if we accounted for it.
6103
6104 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6105
6106         * config/arm/arm.md (maddhidi4): Remove '*' from name.
6107         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6108         * optabs.c (find_widening_optab_handler_and_mode): New function.
6109         (expand_widen_pattern_expr): Use find_widening_optab_handler.
6110         (expand_binop_directly): Likewise.
6111         (expand_binop): Likewise.
6112         * optabs.h (find_widening_optab_handler): New macro define.
6113         (find_widening_optab_handler_and_mode): New prototype.
6114         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6115         type precision rules.
6116         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6117         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6118         (is_widening_mult_rhs_p): Allow widening by more than one mode.
6119         Explicitly disallow mis-matched input types.
6120         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6121         input types to fit the new handler.
6122         (convert_plusminus_to_widen): Likewise.
6123
6124 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6125
6126         * expr.c (expand_expr_real_2): Use widening_optab_handler.
6127         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6128         (gen_insn): $N now means $a must be wider than $b, not consecutive.
6129         * optabs.c (widened_mode): New function.
6130         (expand_widen_pattern_expr): Use widening_optab_handler.
6131         (expand_binop_directly): Likewise.
6132         (expand_binop): Likewise.
6133         * optabs.h (widening_optab_handlers): New struct.
6134         (optab_d): New member, 'widening'.
6135         (widening_optab_handler): New function.
6136         (set_widening_optab_handler): New function.
6137         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6138         widening_optab_handler.
6139         (convert_plusminus_to_widen): Likewise.
6140
6141 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6142
6143         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6144         pedantic.
6145         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6146         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6147
6148 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6149
6150         * opth-gen.awk: Do not declare target save/restore structures and
6151         functions if IN_RTS defined.
6152
6153 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6154
6155         PR target/49437
6156         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6157         when stack was realigned in interrupt handler prologue.
6158
6159 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
6160
6161         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6162         (quals_from_declspecs): Assert _Noreturn not present.
6163         (grokdeclarator): Handle _Noreturn.
6164         (build_null_declspecs): Initialize noreturn_p.
6165         (declspecs_add_scspec): Handle RID_NORETURN.
6166         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6167         (c_parser_attributes): Handle RID_NORETURN.
6168         * c-tree.h (struct c_declspecs): Add noreturn_p.
6169         * ginclude/stdnoreturn.h: New.
6170         * Makefile.in (USER_H): Add stdnoreturn.h.
6171
6172 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6173
6174         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6175         (OPTION_MASK_ISA_AVX_UNSET): Update.
6176         (OPTION_MASK_ISA_AVX2_UNSET): New.
6177         (ix86_handle_option): Handle OPT_mavx2 case.
6178         * config/i386/cpuid.h (bit_AVX2): New.
6179         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6180         AVX2 feature.
6181         * config/i386/i386-c.c (ix86_target_macros_internal):
6182         Conditionally define __AVX2__.
6183         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6184         Define "core-avx2" processor alias.  Handle avx2 option.
6185         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6186         * config/i386/i386.h (TARGET_AVX2): New.
6187         * config/i386/i386.opt (mavx2): New.
6188         * doc/invoke.texi: Document -mavx2.
6189
6190 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
6191
6192         PR rtl-optimization/49890
6193         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6194         subclasses of class which is superset of a pressure class.
6195
6196 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6197             Igor Zamyatin <igor.zamyatin@intel.com>
6198
6199         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6200         with HOST_WIDE_INT for isa_flag.
6201         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6202         isa variables.
6203
6204         * config/i386/i386.c (ix86_target_string): Replace int with
6205         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
6206         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6207         (pta_flags): Removed.
6208         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6209         (pta): Use HOST_WIDE_INT on flags.
6210         (builtin_isa): Use HOST_WIDE_INT on isa.
6211         (ix86_add_new_builtins): Likewise.
6212         (def_builtin): Use HOST_WIDE_INT on mask.
6213         (def_builtin_const): Likewise.
6214         (builtin_description): Likewise.
6215
6216         * config/i386/i386.opt (ix86_isa_flags): Replace int with
6217         HOST_WIDE_INT.
6218         (ix86_isa_flags_explicit): Likewise.
6219         (x_ix86_isa_flags_explicit): Likewise.
6220
6221 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
6222
6223         PR rtl-optimization/50107
6224         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6225         (ira_hard_reg_in_set_p): New.
6226
6227         * ira-color.c (calculate_saved_nregs): New.
6228         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
6229         hard regs.
6230         (allocno_reload_assign, fast_allocation): Use
6231         ira_hard_reg_set_intersection_p instead of
6232         ira_hard_reg_not_in_set_p.
6233
6234         * ira.c (setup_reg_renumber): Use
6235         ira_hard_reg_set_intersection_p instead of
6236         ira_hard_reg_not_in_set_p.
6237         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6238         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6239
6240         * ira-costs.c (ira_tune_allocno_costs): Use
6241         ira_hard_reg_set_intersection_p instead of
6242         ira_hard_reg_not_in_set_p.
6243
6244 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6245             Igor Zamyatin <igor.zamyatin@intel.com>
6246
6247         * hwint.h (HOST_WIDE_INT_1): New.
6248
6249         * opt-functions.awk (switch_bit_fields): Initialize the
6250         host_wide_int field.
6251         (host_wide_int_var_name): New.
6252         (var_type_struct): Check and return HOST_WIDE_INT.
6253
6254         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6255
6256         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6257
6258         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
6259         check masks for HOST_WIDE_INT.
6260
6261         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6262         (option_enabled): Likewise.
6263         (get_option_state): Likewise.
6264
6265         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
6266         to HOST_WIDE_INT.
6267
6268 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6269             Marc Glisse  <marc.glisse@normalesup.org>
6270
6271         PR libstdc++-v3/1773
6272         * target.def (decl_mangling_context): New C++ hook.
6273         * doc/tm.texi: Regenerate.
6274         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6275         * config/sol2-protos.h: Group by source file.
6276         (solaris_cxx_decl_mangling_context): Declare.
6277         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6278         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6279         Use $<.
6280         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6281         Add sol2-stubs.o to extra_objs.
6282
6283 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
6284
6285         PR target/50009
6286         * stor-layout.c (update_alignment_for_field): Don't ICE on
6287         packed flexible array members if ms_bitfield_layout_p.
6288
6289         PR target/50092
6290         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6291         on the result before returning it.
6292
6293         PR debug/50017
6294         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6295         is a debug stmt, use location of the first non-debug stmt after it.
6296
6297 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6298
6299         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6300         (arm_size_rtx_costs): Likewise.
6301
6302 2011-08-18  Richard Guenther  <rguenther@suse.de>
6303
6304         * tree.h (tree_int_cst_msb): Remove.
6305         * tree.c (tree_int_cst_msb): Likewise.
6306         (tree_int_cst_sign_bit): Move from ...
6307         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6308
6309 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6310
6311         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6312         * doc/tm.texi: Regenerate.
6313         * target.def (rtx_costs): Add an opno parameter.
6314         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6315         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6316         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6317         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6318         * cse.c (COST_IN): Add an opno parameter.
6319         (notreg_cost): Likewise.  Update call to rtx_cost.
6320         (COST, fold_rtx): Update accordingly.
6321         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6322         * expmed.c (emit_store_flag): Likewise.
6323         * optabs.c (avoid_expensive_constant): Add an opno parameter.
6324         Update call to rtx_cost.
6325         (expand_binop_directly, expand_binop): Likewise.
6326         (expand_twoval_binop, prepare_cmp_insn): Likewise.
6327         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6328         (set_src_cost, get_full_set_src_cost): Update accordingly.
6329         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
6330         to target hook.
6331         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
6332         (default_adress_cost): Update calls to rtx_cost.
6333
6334         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6335         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6336         (arm_rtx_costs): Add an opno parameter.
6337         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6338         adjust any recursive rtx-cost calls.
6339         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6340         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6341         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6342         * config/cris/cris.c (cris_rtx_costs): Likewise.
6343         * config/frv/frv.c (frv_rtx_costs): Likewise.
6344         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6345         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6346         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6347         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6348         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6349         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6350         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6351         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6352         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6353         * config/mep/mep.c (mep_rtx_cost): Likewise.
6354         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6355         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6356         (mips_zero_extend_cost): Add an opno parameter.
6357         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6358         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6359         to rtx_cost.
6360         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6361         rtx-cost calls.
6362         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6363         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6364         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6365         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6366         (rs6000_debug_rtx_costs): Likewise.
6367         * config/s390/s390.c (s390_rtx_costs): Likewise.
6368         * config/score/score-protos.h (score_rtx_costs): Likewise.
6369         * config/score/score.c (score_rtx_costs): Likewise.
6370         * config/sh/sh.c (andcosts): Update call to rtx_cost.
6371         (sh_rtx_costs): Add an opno parameter.
6372         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6373         * config/spu/spu.c (spu_rtx_costs): Likewise.
6374         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6375         * config/v850/v850.c (v850_rtx_costs): Likewise.
6376         * config/vax/vax.c (vax_rtx_costs): Likewise.
6377         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6378
6379 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6380
6381         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6382         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6383         rtx_cost.
6384         * calls.c (precompute_register_parameters): Likewise.
6385         * combine.c (expand_compound_operation, make_extraction): Likewise.
6386         (force_to_mode, distribute_and_simplify_rtx): Likewise.
6387         * dse.c (find_shift_sequence): Likewise.
6388         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6389         * expr.c (compress_float_constant): Likewise.
6390         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6391         * gcse.c (want_to_gcse_p): Likewise.
6392         * ifcvt.c (noce_try_sign_mask): Likewise.
6393         * loop-doloop.c (doloop_optimize): Likewise.
6394         * loop-invariant.c (create_new_invariant): Likewise.
6395         * optabs.c (avoid_expensive_constant): Likewise.
6396         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6397         (try_replace_in_use, reload_cse_move2add): Likewise.
6398         * reload1.c (calculate_elim_costs_all_insns): Likewise.
6399         (note_reg_elim_costly): Likewise.
6400         * rtlanal.c (insn_rtx_cost): Likewise.
6401         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6402         * stmt.c (lshift_cheap_p): Likewise.
6403         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6404         * config/avr/avr.c (final_prescan_insn): Likewise.
6405         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6406         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6407
6408 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6409
6410         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6411         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6412         * cfgloopanal.c (seq_cost): Likewise.
6413         * loop-invariant.c (create_new_invariant): Likewise.
6414         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6415         (reload_cse_move2add): Use get_full_set_rtx_cost.
6416
6417 2011-08-18  Richard Guenther  <rguenther@suse.de>
6418
6419         * expr.c (get_inner_reference): Fix typo in last change.
6420
6421 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
6422             Joseph Myers  <joseph@codesourcery.com>
6423
6424         PR tree-optimization/49963
6425         * hwint.c (absu_hwi): Define.
6426         * hwint.h (absu_hwi): Declare.
6427         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6428         of abs_hwi.
6429         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6430         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6431
6432 2011-08-18  Richard Guenther  <rguenther@suse.de>
6433
6434         * expr.c (get_inner_reference): Sign-extend the constant
6435         twos-complement offset before doing arbitrary precision
6436         arithmetic on it.
6437         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6438         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6439         to get_constraint_for_ptr_offset.
6440
6441 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6442
6443         PR target/50068
6444         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6445
6446 2011-08-17  Richard Guenther  <rguenther@suse.de>
6447
6448         * tree.h (convert_to_ptrofftype_loc): New function.
6449         (convert_to_ptrofftype): Define.
6450         * builtins.c (expand_builtin_bzero): Use size_type_node.
6451         (fold_builtin_bzero): Likewise.
6452         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6453         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6454         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6455         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6456         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6457         * fold-const.c (build_range_check): Negate using the original type.
6458         (fold_unary_loc): Use fold_build_pointer_plus_loc.
6459         * gimple-fold.c (gimple_adjust_this_by_delta): Use
6460         convert_to_ptrofftype.
6461         * gimplify.c (gimplify_self_mod_expr): Likewise.
6462         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6463         (graphite_create_new_loop_guard): Likewise.
6464         * graphite-sese-to-poly.c (my_long_long): Remove.
6465         (scop_ivs_can_be_represented): Adjust.
6466         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6467         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6468         * tree-loop-distribution.c (build_size_arg_loc): Use
6469         size_type_node.
6470         (generate_memset_zero): Simplify.
6471         * tree-mudflap.c: Use fold_convert, not convert.
6472         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6473         its own type.
6474         (determine_offset): Likewise for DR_STEP.
6475         (valid_initializer_p): Likewise.
6476         * tree-profile.c (prepare_instrumented_value): Convert the pointer
6477         to an integer type of same size.
6478         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6479         to sizetype without need.
6480         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6481         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6482         * tree-ssa-loop-manip.c (create_iv): Likewise.
6483         (determine_exit_conditions): Adjust comment.
6484         * tree-ssa-pre.c (create_expression_by_pieces): Use
6485         convert_to_ptrofftype.
6486         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6487         * varasm.c (array_size_for_constructor): Compute using double_ints.
6488
6489 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6490
6491         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6492         when generating an integer result where possible.  Short-cut
6493         comparison against 0 also for QImode.
6494
6495 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6496
6497         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6498         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6499         prototype.
6500         * config/spu/spu.c (spu_legitimize_reload_address): New function.
6501         (spu_legitimate_address_p): Do not check displacement if the base
6502         is an eliminable stack register.
6503
6504 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
6505
6506         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6507         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6508         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6509         m32c_preferred_output_reload_class): Remove.
6510         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6511         Change rclass argument and return types to reg_class_t. Use
6512         reg_class_subset_p instead of class_sizes.
6513         (m32c_preferred_output_reload_class): Make static. Change rclass
6514         argument and return types to reg_class_t.
6515         (TARGET_PREFERRED_RELOAD_CLASS,
6516         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6517
6518 2011-08-16  Kai Tietz  <ktietz@redhat.com>
6519
6520         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6521
6522 2011-08-16  Richard GUenther  <rguenther@suse.de>
6523
6524         PR tree-optimization/50082
6525         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6526         warnings here, instead of ...
6527         (ssa_forward_propagate_and_combine): ... here.
6528         (forward_propagate_into_comparison_1): Adjust.
6529         (forward_propagate_into_comparison): Likewise.
6530         (forward_propagate_into_gimple_cond): Likewise.
6531         (forward_propagate_into_cond): Likewise.
6532
6533 2011-08-16  Andreas Schwab  <schwab@redhat.com>
6534
6535         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6536         instead of ggc_alloc_zone_vec_rtvec_def.
6537
6538 2011-08-16  Richard Guenther  <rguenther@suse.de>
6539
6540         * tree.h (ptrofftype_p): New helper function.
6541         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6542         offset verification.
6543         (verify_gimple_assign_binary): Likewise.
6544         * tree.c (build2_stat): Likewise.
6545         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6546         (reset_evolution_in_loop): Likewise.
6547         * tree-chrec.h (build_polynomial_chrec): Likewise.
6548
6549 2011-08-16  Liang Wang  <lwang1@marvell.com>
6550
6551         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6552         ggc_alloc_zone_vec_rtvec_def.
6553
6554 2011-08-16  Richard Guenther  <rguenther@suse.de>
6555
6556         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6557         helper factored out from ...
6558         (extract_range_from_binary_expr_1): ... here.  Re-structure
6559         to not glob handling too different tree codes.
6560
6561 2011-08-15  Richard Henderson  <rth@redhat.com>
6562
6563         PR middle-end/50006
6564         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6565         setting out to include allocate_stack named pattern as well.
6566         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6567         * stmt.c (expand_stack_restore): Likewise.
6568
6569 2011-08-15  Richard Guenther  <rguenther@suse.de>
6570
6571         PR middle-end/50082
6572         * fold-const.c (maybe_canonicalize_comparison_1): Properly
6573         convert the modified operand to the other operand type.
6574         (fold_comparison): Call maybe_canonicalize_comparison_1 with
6575         useless conversions stripped from comparison operands.
6576
6577 2011-08-15  Richard Guenther  <rguenther@suse.de>
6578
6579         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6580         (extract_range_from_unary_expr_1): Restructure.
6581
6582 2011-08-15  Richard Guenther  <rguenther@suse.de>
6583
6584         PR tree-optimization/50058
6585         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6586         copy matching.
6587
6588 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6589
6590         PR target/50022
6591         * config/arm/arm.c (output_move_double): Add 2 parameters
6592         to count the number of insns emitted and whether to emit or not.
6593         Use the flag to decide when to emit and count number of instructions
6594         that will be emitted.
6595         Handle case where output_move_double might be called for calculating
6596         lengths with an invalid constant.
6597         (arm_count_output_move_double_insns): Define.
6598         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6599         (output_move_double): Adjust prototype.
6600         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6601         output_move_double.
6602         ("*movdi_vfp_cortexa8"): Likewise and add attribute
6603         for ce_count.
6604         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6605         ("*movdf_soft_insn"): Likewise.
6606         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6607         ("*cirrus_thumb2_movdi"): Likewise.
6608         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6609         ("*cirrus_movdf_hard_insn"): Likewise.
6610         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6611         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6612         ("mov<mode>_internal VMMX"): Likewise.
6613         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6614
6615 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
6616
6617         * config/i386/i386.c (ix86_expand_round_sse4): New function.
6618         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6619         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6620         for TARGET_ROUND.
6621
6622         (rint<mode>2): Simplify TARGET_ROUND check.
6623         (floor<mode>2): Ditto.
6624         (ceil<mode>2): Ditto.
6625         (btrunc<mode>2): Ditto.
6626
6627 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
6628
6629         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6630         as mmix_preferred_output_reload_class.
6631
6632 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
6633
6634         * PR target/49903
6635         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6636         (branch_unspec): New insn.
6637         (branch): Beauty farm.
6638         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
6639         to be IF_THEN_ELSE.
6640         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6641         New static functions.
6642         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
6643         Use CONST_INT_P.  Beauty.
6644
6645 2011-08-12  Richard Henderson  <rth@redhat.com>
6646
6647         PR rtl-opt/49994
6648         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6649         * sched-deps.c (init_deps): Clear it.
6650         (deps_analyze_insn): Consume it.
6651         (sched_analyze_insn): Fill it.
6652
6653 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6654
6655         PR target/48328
6656         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6657         for tbh instructions.
6658
6659 2011-08-12  Diego Novillo  <dnovillo@google.com>
6660
6661         * data-streamer.h (streamer_write_zero): Rename from output_zero.
6662         (streamer_write_uhwi): Rename from lto_output_uleb128.
6663         (streamer_write_hwi): Rename from output_sleb128.
6664         (streamer_write_string): Rename from lto_output_string.
6665         (streamer_string_index): Rename from lto_string_index.
6666         (streamer_write_string_with_length): Rename from
6667         lto_output_string_with_length.
6668         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6669         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6670         (streamer_read_string): Rename from lto_input_string.
6671         (streamer_read_indexed_string): Rename from input_string_internal.
6672         (streamer_read_uhwi): Rename from lto_input_uleb128.
6673         (streamer_read_hwi): Rename from lto_input_sleb128.
6674         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6675         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6676         (streamer_write_enum): Rename from lto_output_enum.
6677         (streamer_read_enum): Rename from lto_input_enum.
6678         (streamer_write_record_start): Rename from output_record_start.
6679         (streamer_read_record_start): Rename from input_record_start.
6680         (streamer_write_bitpack): Rename from lto_output_bitpack.
6681         (streamer_read_bitpack): Rename from lto_input_bitpack.
6682         (streamer_write_char_stream): Rename from lto_output_1_stream.
6683         (streamer_read_uchar): Rename from lto_input_1_unsigned.
6684         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6685         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6686         (streamer_read_string_cst): Rename from input_string_cst.
6687         (streamer_read_chain): Rename from lto_input_chain.
6688         (streamer_alloc_tree): Rename from lto_materialize_tree.
6689         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6690         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6691         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6692         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6693         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6694         (streamer_write_chain): Rename from lto_output_chain.
6695         (streamer_write_tree_header): Rename from lto_output_tree_header.
6696         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6697         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6698         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6699         (streamer_write_builtin): Rename from lto_output_builtin_tree.
6700         (streamer_check_handled_ts_structures): Rename from
6701         check_handled_ts_structures.
6702         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6703         (streamer_tree_cache_insert_at): Rename from
6704         lto_streamer_cache_insert_at.
6705         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6706         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6707         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6708         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6709         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6710         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6711         (write_identifier): Rename from output_identifier.
6712         (write_ts_common_tree_pointers): Rename from
6713         lto_output_ts_common_tree_pointers.
6714         (write_ts_vector_tree_pointers): Rename from
6715         lto_output_ts_vector_tree_pointers.
6716         (write_ts_complex_tree_pointers): Rename from
6717         lto_output_ts_complex_tree_pointers.
6718         (write_ts_decl_minimal_tree_pointers): Rename from
6719         lto_output_ts_decl_minimal_tree_pointers.
6720         (write_ts_decl_common_tree_pointers): Rename from
6721         lto_output_ts_decl_common_tree_pointers.
6722         (write_ts_decl_non_common_tree_pointers): Rename from
6723         lto_output_ts_decl_non_common_tree_pointers.
6724         (write_ts_decl_with_vis_tree_pointers): Rename from
6725         lto_output_ts_decl_with_vis_tree_pointers.
6726         (write_ts_field_decl_tree_pointers): Rename from
6727         lto_output_ts_field_decl_tree_pointers.
6728         (write_ts_function_decl_tree_pointers): Rename from
6729         lto_output_ts_function_decl_tree_pointers.
6730         (write_ts_type_common_tree_pointers): Rename from
6731         lto_output_ts_type_common_tree_pointers.
6732         (write_ts_type_non_common_tree_pointers): Rename from
6733         lto_output_ts_type_non_common_tree_pointers.
6734         (write_ts_list_tree_pointers): Rename from
6735         lto_output_ts_list_tree_pointers.
6736         (write_ts_vec_tree_pointers): Rename from
6737         lto_output_ts_vec_tree_pointers.
6738         (write_ts_exp_tree_pointers): Rename from
6739         lto_output_ts_exp_tree_pointers.
6740         (write_ts_block_tree_pointers): Rename from
6741         lto_output_ts_block_tree_pointers.
6742         (write_ts_binfo_tree_pointers): Rename from
6743         lto_output_ts_binfo_tree_pointers.
6744         (write_ts_constructor_tree_pointers): Rename from
6745         lto_output_ts_constructor_tree_pointers.
6746         (write_ts_target_option): Rename from lto_output_ts_target_option.
6747         (write_ts_translation_unit_decl_tree_pointers): Rename from
6748         lto_output_ts_translation_unit_decl_tree_pointers.
6749         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6750         Rename from lto_streamer_cache_add_to_node_array.
6751         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6752         (record_common_node): Rename from lto_record_common_node.
6753
6754         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6755         declarations.
6756         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6757         function.
6758         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6759         unused function.
6760         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6761         (ipa-reference.o): Likewise.
6762         * lto-section-out.c: Include data-streamer.h.
6763         * ipa-reference.c: Include data-streamer.h.
6764
6765 2011-08-12  Nick Clifton  <nickc@redhat.com>
6766
6767         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6768         * doc/md.texi (cmpstrn): Note that the comparison stops if both
6769         fetched bytes are zero.
6770         (cmpstr): Likewise.
6771         (cmpmem): Note that the comparison does not stop if both of the
6772         fetched bytes are zero.
6773
6774 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
6775
6776         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6777         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6778         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6779         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6780         to integer_type_node.
6781         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6782         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6783         * builtins.c (expand_builtin_in): Ditto.
6784         (mathfn_built_in_1): Ditto.
6785         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6786         BUILT_IN_IFLOOR.
6787         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6788         BUILT_IN_IROUND.
6789         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6790         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6791         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6792
6793 2011-08-12  Richard Guenther  <rguenther@suse.de>
6794
6795         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6796
6797 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
6798
6799         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6800
6801 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6802
6803         * config/arm/arm.c (get_label_padding): New function.
6804         (create_fix_barrier, arm_reorg): Use it.
6805
6806 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
6807
6808         PR target/49781
6809         * config/i386/i386.md (*lea_5_zext): New.
6810         (*lea_6_zext): Ditto.
6811         * config/i386/predicates.md (const_32bit_mask): New predicate.
6812         (lea_address_operand): Reject AND.
6813         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6814         const_32bit_mask immediate.
6815         (ix86_print_operand_address): Handle AND.
6816         (memory_address_length): Ditto.
6817
6818 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
6819             Brian Hackett  <bhackett1024@gmail.com>
6820
6821         * plugin.def: Add event for finish_decl.
6822         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6823         * c-decl.c (finish_decl): Invoke callbacks on above event.
6824         * doc/plugins.texi: Document above event.
6825
6826 2011-08-11  Richard Guenther  <rguenther@suse.de>
6827
6828         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6829         lookups, make looking through aggregate copies stronger.
6830
6831 2011-08-11  Richard Henderson  <rth@redhat.com>
6832
6833         PR bootstrap/50018
6834         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6835
6836 2011-08-11  Richard Guenther  <rguenther@suse.de>
6837
6838         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6839         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6840         (vrp_visit_stmt): Likewise.
6841
6842 2011-08-11  Richard Guenther  <rguenther@suse.de>
6843
6844         PR middle-end/50040
6845         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6846         load of the other piece with TREE_NO_WARNING.
6847         * tree-flow.h (warn_uninit): Adjust prototype.
6848         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6849         the base variable and the expression that is used separately.
6850         Properly query all TREE_NO_WARNING flags.
6851         (struct walk_data): Remove.
6852         (warn_uninitialized_var): Likewise.
6853         (warn_uninitialized_vars): Do not walk gimple pieces but simply
6854         look at all SSA uses of the statement.  Handle unused memory
6855         separately.
6856         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6857
6858 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6859
6860         * config/rx/rx.md (movsicc): Allow register to register transfers.
6861         (*movsicc): Likewise.
6862         (*stcc): Restrict this pattern to EQ and NE compares.
6863         (*stcc_reg): New pattern.  Works for any comparison but only for
6864         register transfers.
6865
6866 2011-08-11   Diego Novillo  <dnovillo@google.com>
6867
6868         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6869         Call stream_write_tree instead of output_record_start.
6870         (lto_output_ts_binfo_tree_pointers): Likewise.
6871
6872         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6873         Convert it to a macro.
6874         (stream_read_tree): Likewise.
6875
6876         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6877         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6878
6879         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6880         and tree_read_bitfields.
6881         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6882         (lto_write_tree): Call it.
6883         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6884         * streamer-hooks.h (struct streamer_hooks): Remove fields
6885         name, is_streamable and alloc_tree. Update all users.
6886         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6887         (lto_materialize_tree): ... here.
6888         Handle CALL_EXPR codes.
6889         Remove call to lto_streamer_cache_append.
6890         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6891         * tree-streamer.h (tree_read_bitfields): Declare.
6892
6893         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6894         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6895         * tree-streamer.h (stream_read_tree): New.  Replace all calls
6896         to lto_input_tree with it.
6897         (stream_write_tree): New.  Replace all calls to lto_output_tree,
6898         lto_output_tree_ref and lto_output_tree_or_ref with it.
6899         * lto-streamer-in.c (lto_read_tree): Inline code from
6900         lto_streamer_read_tree.
6901         (lto_input_tree): Move from tree-streamer-in.c.
6902         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6903         Remove handling of NULL values for EXPR.
6904         Do not handle EXPRs that are not indexable.
6905         (lto_write_tree): Move from tree-streamer-out.c.
6906         Inline lto_streamer_write_tree.
6907         (lto_output_tree): Move from tree-streamer-out.c.
6908         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6909         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6910         (lto_preload_common_nodes): Likewise.
6911         Remove assertions and adjustments for nodes
6912         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6913         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6914         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6915         * lto-streamer.h (lto_input_tree): Declare.
6916         (lto_output_tree_ref): Remove.
6917         * streamer-hooks.h (struct streamer_hooks): Remove fields
6918         preload_common_nodes, indexable_with_decls_p,
6919         pack_value_fields, unpack_value_fields and output_tree_header.
6920         Update all users.
6921         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6922         (lto_input_tree_pointers): Likewise.
6923         (lto_read_tree): Move to lto-streamer-in.c.
6924         (lto_input_integer_cst): Make extern.
6925         (lto_get_pickled_tree): Likewise.
6926         (lto_get_builtin_tree): Likewise.
6927         (lto_input_tree): Move to lto-streamer-in.c.
6928         * tree-streamer-out.c (pack_value_fields): Make extern.
6929         (lto_output_tree_or_ref): Remove.  Replace all callers with
6930         calls to stream_write_tree.
6931         (lto_output_builtin_tree): Make extern.
6932         (lto_streamer_write_tree): Inline into lto_write_tree.
6933         (lto_output_tree_pointers): Make extern.
6934         (lto_output_tree_header): Likewise.
6935         (lto_output_integer_cst): Likewise.
6936         (lto_write_tree): Move to lto-streamer-out.c.
6937         (lto_output_tree): Likewise.
6938         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6939         (preload_common_nodes): Likewise.
6940         (lto_streamer_cache_create): Call it.
6941         * tree-streamer.h: Include streamer-hooks.h.
6942         (stream_write_tree): New.
6943         (stream_read_tree): New.
6944         (lto_input_tree): Remove.
6945         (lto_materialize_tree): Declare.
6946         (lto_input_tree_pointers): Declare.
6947         (lto_get_pickled_tree): Declare.
6948         (lto_get_builtin_tree): Declare.
6949         (lto_input_integer_cst): Declare.
6950         (lto_output_tree_header): Declare.
6951         (pack_value_fields): Declare.
6952         (lto_output_tree_pointers): Declare.
6953         (lto_output_integer_cst): Declare.
6954         (lto_output_builtin_tree): Declare.
6955
6956 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6957
6958         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6959         only if producer writes to the register given by regno.
6960
6961 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6962             Alexander Monakov  <amonakov@ispras.ru>
6963
6964         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6965         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6966         condition caching logic into ...
6967         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6968         attempt to use cache for instructions with zero luid.
6969         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6970         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6971
6972 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6973
6974         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6975         get_seqno_for_a_jump.  Update the caller.
6976         (get_seqno_by_succs): New.  Use it ...
6977         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6978         predecessors was not sufficient.
6979         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6980
6981 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6982
6983         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6984
6985 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6986
6987         * sel-sched-ir.h (register_unavailable_p): Declare.
6988         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6989         (set_unavailable_target_for_expr): ... here to properly test
6990         availability of a register.
6991         (speculate_expr): Ditto.
6992         * sel-sched.c (substitute_reg_in_expr): Ditto.
6993         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6994
6995 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6996
6997         * sel-sched.c (verify_target_availability): Fix usage of
6998         hard_regno_nregs.
6999
7000 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7001
7002         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
7003         recognized by cannot_copy_insn_p hook and volatile instructions.
7004
7005 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7006
7007         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
7008
7009 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
7010
7011         * doc/md.texi (define_bypass): Say that the instruction names can
7012         be filename-style globs.
7013         * Makefile.in (FNMATCH_H): Define.
7014         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
7015         * genattrtab.c: Include fnmatch.h.
7016         (bypass_list): Change field name from "insn" to "pattern".
7017         (gen_bypass_1): Update accordingly.
7018         (process_bypasses): Use fnmatch to check for matches between
7019         insn reservations and define_bypasses.
7020         * genautomata.c: Include fnmatch.h.
7021         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
7022         and out_pattern respectively.
7023         (gen_bypass, insert_bypass): Update accordingly.
7024         (for_each_matching_insn, process_bypass_2, process_bypass_1)
7025         (process_bypass): New functions.
7026         (process_decls): Use process_bypass.  Update after field name changes.
7027
7028 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
7029
7030         PR target/49687
7031         * config/avr/avr.md (smulqi3_highpart): New insn.
7032         (umulqi3_highpart): New insn.
7033         (*subqi3.ashiftrt7): New insn.
7034         (smulhi3_highpart): New expander.
7035         (umulhi3_highpart): Nex expander.
7036         (*smulhi3_highpart_call): New insn.
7037         (*umulhi3_highpart_call): New insn.
7038         (extend_u): New code attribute.
7039         (extend_prefix): Rename code attribute to extend_su.
7040         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7041         widening QI/HI multiply.
7042
7043 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
7044
7045         PR tree-optimization/50039
7046         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7047         that DEF_STMT has a stmt_vec_info.
7048
7049 2011-08-10  Richard Guenther  <rguenther@suse.de>
7050
7051         * tree.h (can_trust_pointer_alignment): Remove.
7052         * builtins.c (can_trust_pointer_alignment): Remove.
7053
7054 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7055
7056         * c-typeck.c (scalar_to_vector): New function. Try scalar to
7057         vector conversion.
7058         (stv_conv): New enum for scalar_to_vector return type.
7059         (build_binary_op): Adjust.
7060         * doc/extend.texi: Description of scalar to vector expansion.
7061
7062 2011-08-10  Richard Guenther  <rguenther@suse.de>
7063
7064         * tree.h (get_pointer_alignment): Remove max-align argument.
7065         (get_object_alignment): Likewise.
7066         * builtins.c (get_object_alignment_1): Adjust.
7067         (get_object_alignment): Remove max-align argument.
7068         (get_pointer_alignment): Likewise.
7069         (expand_builtin_strlen): Adjust.
7070         (expand_builtin_memcpy): Likewise.
7071         (expand_builtin_mempcpy_args): Likewise.
7072         (expand_builtin_strncpy): Likewise.
7073         (expand_builtin_memset_args): Likewise.
7074         (expand_builtin_memcmp): Likewise.
7075         (expand_builtin_strcmp): Likewise.
7076         (expand_builtin_strncmp): Likewise.
7077         (get_builtin_sync_mem): Likewise.
7078         (fold_builtin_memset): Likewise.
7079         (fold_builtin_memory_op): Likewise.
7080         (expand_builtin_memory_chk): Likewise.
7081         * emit-rtl.c (get_mem_align_offset): Likewise.
7082         (set_mem_attributes_minus_bitpos): Likewise.
7083         * expr.c (expand_assignment): Likewise.
7084         (expand_expr_real_1): Likewise.
7085         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7086         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7087         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7088         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7089         * value-prof.c (gimple_stringops_transform): Likewise.
7090
7091 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
7092
7093         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7094         * doc/tm.texi: Regenerate.
7095
7096 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
7097
7098         PR target/29560
7099         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7100         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7101         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7102         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7103         shift target is unused.
7104
7105 2011-08-10  Richard Guenther  <rguenther@suse.de>
7106
7107         PR tree-optimization/49937
7108         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7109         using get_object_alignment_1.
7110
7111 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7112
7113         * config/i386/i386.c (ix86_emit_i387_round): New function.
7114         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7115         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7116         Use ix86_emit_i387_round to expand round function for i387 math.
7117         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7118         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7119
7120 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7121
7122         * config/sync.c: Move to ../libgcc.
7123         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7124         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7125         Remove.
7126
7127 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7128
7129         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7130         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7131         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7132         Change 'from' and 'to' arguments type to reg_class_t.
7133         (TARGET_REGISTER_MOVE_COST): Define.
7134
7135 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
7136
7137         PR target/50026
7138         Revert:
7139         PR rtl-optimization/49990
7140         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7141         ignore classes which can not change mode.
7142         (find_costs_and_classes): Ditto.
7143
7144 2011-08-09  Richard Guenther  <rguenther@suse.de>
7145
7146         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7147         information for ranges with only negative values.
7148         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7149         BIT_AND_EXPR handling to handle ranges with negative values.
7150
7151 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7152
7153         * config/i386/i386.c: Remove traling spaces.
7154         * config/i386/sse.md: Likewise.
7155         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7156         (*fma_fmsub_<mode>): Likewise.
7157         (*fma_fnmadd_<mode>): Likewise.
7158         (*fma_fnmsub_<mode>): Likewise.
7159
7160 2011-08-09  Nick Clifton  <nickc@redhat.com>
7161
7162         * config/rx/rx.md: Disable extender peepholes at -O3.
7163
7164 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7165
7166         PR target/49781
7167         * config/i386/i386.md (reload_noff_load): New.
7168         (reload_noff_store): Ditto.
7169         * config/i386/i386.c (ix86_secondary_reload): Use
7170         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7171         double-word moves from/to non-offsetable addresses instead of
7172         generating XMM temporary.
7173
7174 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7175
7176         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7177
7178 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
7179
7180         PR tree-optimization/50014
7181         * tree-vect-loop.c (vectorizable_reduction): Get def type before
7182         calling vect_get_vec_def_for_stmt_copy ().
7183
7184 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
7185
7186         PR rtl-optimization/49990
7187         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7188         ignore classes which can not change mode.
7189         (find_costs_and_classes): Ditto.
7190
7191 2011-08-08  Richard Henderson  <rth@redhat.com>
7192
7193         PR middle-end/49990
7194         * config/i386/i386.c (ix86_expand_prologue): Call
7195         for SEH target gen_prologue_use instead of gen_blockage
7196         at prologue's end.
7197
7198 2011-08-08  Martin Jambor  <mjambor@suse.cz>
7199
7200         PR middle-end/49923
7201         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7202         memory alignment.
7203
7204 2011-08-08   Diego Novillo  <dnovillo@google.com>
7205
7206         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7207         (DATA_STREAMER_H): New.
7208         (GIMPLE_STREAMER_H): New.
7209         (TREE_STREAMER_H): New.
7210         (STREAMER_HOOKS_H): New.
7211         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7212         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7213         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7214         (data-streamer.o): New.
7215         (data-streamer-in.o): New.
7216         (data-streamer-out.o): New.
7217         (gimple-streamer-in.o): New.
7218         (gimple-streamer-out.o): New.
7219         (streamer-hooks.o): New.
7220         (tree-streamer.o): New.
7221         (tree-streamer-in.o): New.
7222         (tree-streamer-out.o): New.
7223         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7224         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7225         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7226         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7227         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7228         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7229         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7230         (ipa-inline-analysis.o): Likewise.
7231         (ipa-pure-const.o): Likewise.
7232         * data-streamer-in.c: New.
7233         * data-streamer-out.c: New.
7234         * data-streamer.c: New.
7235         * data-streamer.h: New.
7236         * gimple-streamer-in.c: New.
7237         * gimple-streamer-out.c: New.
7238         * gimple-streamer.h: New.
7239         * ipa-inline-analysis.c: Include data-streamer.h.
7240         * ipa-prop.c: Include data-streamer.h.
7241         * ipa-pure-const.c: Include data-streamer.h.
7242         * lto-cgraph.c: Include data-streamer.h.
7243         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7244         (lto_input_widest_uint_uleb128): Likewise.
7245         (lto_input_sleb128): Likewise.
7246         (bp_unpack_var_len_unsigned): Likewise.
7247         (bp_unpack_var_len_int): Likewise.
7248         * lto-section-out.c (lto_output_uleb128_stream): Move to
7249         data-streamer-out.c.
7250         (lto_output_widest_uint_uleb128_stream): Likewise.
7251         (lto_output_sleb128_stream): Likewise.
7252         (bp_pack_var_len_unsigned): Likewise.
7253         (bp_pack_var_len_int): Likewise.
7254         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7255         (struct string_slot): Remove.  Update all users.
7256         (lto_tag_check_set): Make extern.
7257         (lto_tag_check_range): Move to lto-streamer.h.
7258         (lto_tag_check): Likewise.
7259         (hash_string_slot_node): Remove.  Update all users.
7260         (eq_string_slot_node): Remove.  Update all users.
7261         (string_for_index): Move to data-streamer-in.c
7262         (input_string_internal): Likewise.
7263         (input_string_cst): Move to tree-streamer-in.c.
7264         (input_identifier): Likewise.
7265         (lto_input_string): Move to data-streamer-in.c
7266         (input_record_start): Move to data-streamer.h
7267         (canon_file_name): Use new definition of struct string_slot
7268         from data-streamer.h.  Set S_SLOT.LEN.
7269         (lto_input_location): Make extern.
7270         (lto_input_chain): Move to tree-streamer-in.c.
7271         (lto_init_eh): Make extern.
7272         (input_phi): Move to gimple-streamer-in.c.
7273         (input_gimple_stmt): Likewise.
7274         (input_bb): Likewise.
7275         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7276         (unpack_ts_real_cst_value_fields): Likewise.
7277         (unpack_ts_fixed_cst_value_fields): Likewise.
7278         (unpack_ts_decl_common_value_fields): Likewise.
7279         (unpack_ts_decl_wrtl_value_fields): Likewise.
7280         (unpack_ts_decl_with_vis_value_fields): Likewise.
7281         (unpack_ts_function_decl_value_fields): Likewise.
7282         (unpack_ts_type_common_value_fields): Likewise.
7283         (unpack_ts_block_value_fields): Likewise.
7284         (unpack_ts_translation_unit_decl_value_fields): Likewise.
7285         (unpack_value_fields): Likewise.
7286         (lto_materialize_tree): Likewise.
7287         (lto_input_ts_common_tree_pointers): Likewise.
7288         (lto_input_ts_vector_tree_pointers): Likewise.
7289         (lto_input_ts_complex_tree_pointers): Likewise.
7290         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7291         (lto_input_ts_decl_common_tree_pointers): Likewise.
7292         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7293         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7294         (lto_input_ts_field_decl_tree_pointers): Likewise.
7295         (lto_input_ts_function_decl_tree_pointers): Likewise.
7296         (lto_input_ts_type_common_tree_pointers): Likewise.
7297         (lto_input_ts_type_non_common_tree_pointers): Likewise.
7298         (lto_input_ts_list_tree_pointers): Likewise.
7299         (lto_input_ts_vec_tree_pointers): Likewise.
7300         (lto_input_ts_exp_tree_pointers): Likewise.
7301         (lto_input_ts_block_tree_pointers): Likewise.
7302         (lto_input_ts_binfo_tree_pointers): Likewise.
7303         (lto_input_ts_constructor_tree_pointers): Likewise.
7304         (lto_input_ts_target_option): Likewise.
7305         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7306         (lto_input_tree_pointers): Likewise.
7307         (lto_get_pickled_tree): Likewise.
7308         (lto_get_builtin_tree): Likewise.
7309         (lto_read_tree): Likewise.
7310         (lto_input_integer_cst): Likewise.
7311         (lto_input_tree): Likewise.
7312         * lto-streamer-out.c: Include data-streamer.h,
7313         gimple-streamer.h and streamer-hooks.h.
7314         (struct string_slot): Move to data-streamer.h.
7315         (hash_string_slot_node): Likewise.
7316         (eq_string_slot_node): Likewise.
7317         (lto_string_index): Move to data-streamer-out.c.
7318         (lto_output_string_with_length): Likewise.
7319         (lto_output_string): Likewise.
7320         (output_string_cst): Move to tree-streamer-out.c.
7321         (output_identifier): Likewise.
7322         (output_zero): Move to data-streamer-out.c
7323         (output_uleb128): Likewise.
7324         (output_sleb128): Likewise.
7325         (output_record_start): Move to data-streamer.h
7326         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7327         (pack_ts_real_cst_value_fields): Likewise.
7328         (pack_ts_fixed_cst_value_fields): Likewise.
7329         (pack_ts_decl_common_value_fields): Likewise.
7330         (pack_ts_decl_wrtl_value_fields): Likewise.
7331         (pack_ts_decl_with_vis_value_fields): Likewise.
7332         (pack_ts_function_decl_value_fields): Likewise.
7333         (pack_ts_type_common_value_fields): Likewise.
7334         (pack_ts_block_value_fields): Likewise.
7335         (pack_ts_translation_unit_decl_value_fields): Likewise.
7336         (pack_value_fields): Likewise.
7337         (lto_output_chain): Likewise.
7338         (lto_output_ts_common_tree_pointers): Likewise.
7339         (lto_output_ts_vector_tree_pointers): Likewise.
7340         (lto_output_ts_complex_tree_pointers): Likewise.
7341         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7342         (lto_output_ts_decl_common_tree_pointers): Likewise.
7343         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7344         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7345         (lto_output_ts_field_decl_tree_pointers): Likewise.
7346         (lto_output_ts_function_decl_tree_pointers): Likewise.
7347         (lto_output_ts_type_common_tree_pointers): Likewise.
7348         (lto_output_ts_type_non_common_tree_pointers): Likewise.
7349         (lto_output_ts_list_tree_pointers): Likewise.
7350         (lto_output_ts_vec_tree_pointers): Likewise.
7351         (lto_output_ts_exp_tree_pointers): Likewise.
7352         (lto_output_ts_block_tree_pointers): Likewise.
7353         (lto_output_ts_binfo_tree_pointers): Likewise.
7354         (lto_output_ts_constructor_tree_pointers): Likewise.
7355         (lto_output_ts_target_option): Likewise.
7356         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7357         (lto_output_tree_pointers): Likewise.
7358         (lto_output_tree_header): Likewise.
7359         (lto_output_builtin_tree): Likewise.
7360         (lto_write_tree): Likewise.
7361         (lto_output_integer_cst): Likewise.
7362         (lto_output_tree): Likewise.
7363         (output_phi): Move to gimple-streamer-out.c.
7364         (output_gimple_stmt): Likewise.
7365         (output_bb): Likewise.
7366         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7367         (streamer_hooks): Move to streamer-hooks.c.
7368         (check_handled_ts_structures): Move to tree-streamer.c
7369         (lto_streamer_cache_add_to_node_array): Likewise.
7370         (lto_streamer_cache_insert_1): Likewise.
7371         (lto_streamer_cache_insert): Likewise.
7372         (lto_streamer_cache_insert_at): Likewise.
7373         (lto_streamer_cache_append): Likewise.
7374         (lto_streamer_cache_lookup): Likewise.
7375         (lto_streamer_cache_get): Likewise.
7376         (lto_record_common_node): Likewise.
7377         (lto_preload_common_nodes): Likewise.
7378         (lto_streamer_cache_create): Likewise.
7379         (lto_streamer_cache_delete): Likewise.
7380         (streamer_hooks_init): Move to streamer-hooks.c.
7381         * lto-streamer.h: Include diagnostic.h
7382         (struct output_block, struct lto_input_block,
7383         struct data_in, struct bitpack_d): Remove forward declarations.
7384         (struct bitpack_d): Move to data-streamer.h.
7385         (struct lto_streamer_cache_d): Move to tree-streamer.h.
7386         (struct streamer_hooks): Move to streamer-hooks.h.
7387         (bp_pack_var_len_unsigned): Move to data-streamer.h.
7388         (bp_pack_var_len_int): Likewise.
7389         (bp_unpack_var_len_unsigned): Likewise.
7390         (bp_unpack_var_len_int): Likewise.
7391         (lto_input_location): Declare.
7392         (lto_tag_check_set): Declare.
7393         (lto_init_eh): Declare.
7394         (lto_output_tree_ref): Declare.
7395         (lto_output_location): Declare.
7396         (bitpack_create): Move to data-streamer.h.
7397         (bp_pack_value): Likewise.
7398         (lto_output_bitpack): Likewise.
7399         (lto_input_bitpack): Likewise.
7400         (bp_unpack_value): Likewise.
7401         (lto_output_1_stream): Likewise.
7402         (lto_input_1_unsigned): Likewise.
7403         (lto_output_int_in_range): Likewise.
7404         (lto_input_int_in_range): Likewise.
7405         (bp_pack_int_in_range): Likewise.
7406         (bp_unpack_int_in_range): Likewise.
7407         (lto_output_enum): Likewise.
7408         (lto_input_enum): Likewise.
7409         (bp_pack_enum): Likewise.
7410         (bp_unpack_enum): Likewise.
7411         * streamer-hooks.c: New.
7412         * streamer-hooks.h: New.
7413         * tree-streamer-in.c: New.
7414         * tree-streamer-out.c: New.
7415         * tree-streamer.c: New.
7416         * tree-streamer.h: New.
7417
7418 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7419
7420         * gthr-posix95.h: Remove.
7421         * gthr.h [_PTHREADS95]: Remove.
7422         * configure.ac (enable_threads): Remove posix95.
7423         * configure: Regenerate.
7424         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7425
7426 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
7427
7428         PR target/49781
7429         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7430         SImode addresses.
7431         (ix86_print_operand_address): Handle zero-extended addresses.
7432         (memory_address_length): Add length of addr32 prefix for
7433         zero-extended addresses.
7434         (ix86_secondary_reload): Handle moves to/from double-word general
7435         registers from/to zero-extended addresses.
7436         * config/i386/predicates.md (lea_address_operand): Reject
7437         zero-extended operands.
7438
7439 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
7440
7441         PR other/48007
7442         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7443
7444         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7445         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7446
7447         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7448         (_Unwind_Context_Reg_Val): Likewise.
7449         (_Unwind_Get_Unwind_Word): Likewise.
7450         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7451         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7452         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7453         for EXTENDED_CONTEXT_BIT.
7454         (__frame_state_for): Likewise.
7455         (uw_init_context_1): Likewise.
7456         (_Unwind_GetGR): Updated.
7457         (_Unwind_SetGR): Likewise.
7458         (_Unwind_GetGRPtr): Likewise.
7459         (_Unwind_SetGRPtr): Likewise.
7460         (_Unwind_SetGRValue): Likewise.
7461         (_Unwind_GRByValue): Likewise.
7462         (uw_install_context_1): Likewise.
7463
7464         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7465         ASSUME_EXTENDED_UNWIND_CONTEXT.
7466         * doc/tm.texi: Regenerated.
7467
7468 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7469
7470         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7471
7472 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7473
7474         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7475         Linux/GNU-specific.
7476         (DEC Alpha Options, -mtune): Likewise.
7477         (MIPS Options, -march): native is supported on IRIX.
7478
7479 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7480
7481         * config/sparc/driver-sparc.c: New file.
7482         * config/sparc/x-sparc: New file.
7483         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7484         * config/sparc/sparc.opt (native): New value for enum processor_type.
7485         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7486         * config/sparc/sparc.c (sparc_option_override): Abort if
7487         PROCESSOR_NATIVE gets here.
7488         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7489         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7490         DRIVER_SELF_SPECS): Define.
7491         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7492         (SPARC Options, -mtune): Likewise.
7493         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7494         Substitute result.
7495         * configure: Regenerate.
7496         * Makefile.in (EXTRA_GCC_LIBS): Set.
7497         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7498         (cpp$(exeext)): Likewise.
7499
7500 2011-08-08  Richard Guenther  <rguenther@suse.de>
7501
7502         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7503         split out from ...
7504         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
7505         by composition.
7506
7507 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
7508
7509         PR tree-optimization/50005
7510         * ipa-inline-analysis (remap_predicate): Add cast to
7511         silence signed/unsigned comparison warning.
7512
7513 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7514
7515         * modulo-sched.c (get_sched_window): Use a table for the debug output.
7516         Print the current ii.
7517         (sms_schedule_by_order): Reduce whitespace in dump line.
7518
7519 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7520
7521         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7522         and one loop for successors.  Fix upper bound of memory range.
7523
7524 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7525
7526         PR target/50001
7527         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7528         (TARGET_INSTANTIATE_DECLS): New define.
7529
7530 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
7531             Mikael Morin   <mikael.morin@sfr.fr>
7532
7533         * Makefile.in (INCLUDES_FOR_TARGET): New.
7534         (LIBGCC2_CFLAGS): Use it.
7535         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7536
7537 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7538
7539         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7540         frame->save_regs_using_mov calculation.
7541
7542 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7543
7544         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7545         * config/i386/sse.md (castmode): New mode attribute.
7546         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7547         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7548
7549 2011-08-05  Jan Hubicka  <jh@suse.cz>
7550
7551         PR middle-end/49494
7552         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7553
7554 2011-08-05  Jan Hubicka  <jh@suse.cz>
7555
7556         PR middle-end/49500
7557         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7558         handle aliases.
7559         (create_emultls_var):New function.
7560         (ipa_lower_emutls): Handle aliases correctly.
7561
7562 2011-08-05  Jan Hubicka  <jh@suse.cz>
7563
7564         PR middle-end/49735
7565         * ipa-inline.c (recursive_inlining): Look through aliases.
7566
7567 2011-08-05  Jason Merrill  <jason@redhat.com>
7568
7569         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7570         declarations to beginning of function.
7571
7572 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7573
7574         PR rtl-optimization/49900
7575         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7576         ensure basic blocks stay in the same order.
7577
7578 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
7579
7580         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7581         store_bit_field.
7582         (s390_expand_atomic): Same.
7583
7584 2011-08-05  Richard Henderson  <rth@redhat.com>
7585
7586         PR rtl-opt/49977
7587         * dwarf2cfi.c (scan_insn_after): Split out of ...
7588         (scan_trace): ... here.  Correctly place notes wrt sequences.
7589
7590 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7591             Richard Henderson  <rth@redhat.com>
7592
7593         PR rtl-opt/49982
7594         * expr.c (fixup_args_size_notes): Look through no-op moves.
7595
7596 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7597
7598         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7599         of "m" for operand 0.  Add type and mode attribute.
7600         (*pushxf_nointeger"): Use "<" constraint for operand 0.
7601         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
7602         constraint instead of "o" for opreand 1.
7603         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
7604         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7605         operand 0, alternative 4.
7606         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7607
7608 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7609
7610         * config/i386/predicates.md (lea_address_operand): Rename from
7611         no_seg_address_operand.
7612         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7613         (*lea_1_zext): Ditto.
7614         (*lea_2): Ditto.
7615         (*lea_2_zext): Ditto.
7616
7617 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7618
7619         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7620         parts.base and parts.index.
7621         * config/i386/predicates.md (aligned_operand): Ditto.
7622         (cmpxchg8b_pic_memory_operand): Ditto.
7623
7624 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7625
7626         * config/soft-fp: Move to ../libgcc.
7627         * Makefile.in (SFP_MACHINE): Remove.
7628         (libgcc-support): Remove $(SFP_MACHINE) dependency.
7629         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7630         * config/arm/t-arm-softfp: Move to
7631         ../libgcc/config/arm/t-softfp.
7632         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7633         * config/c6x/t-c6x-softfp: Remove.
7634         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7635         * config/i386/t-fprules-softfp: Move to
7636         ../libgcc/config/t-softfp-tf.
7637         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7638         * config/ia64/t-fprules-softfp: Remove.
7639         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7640         * config/lm32/t-fprules-softfp: Remove.
7641         * config/moxie/sfp-machine.h: Remove.
7642         * config/moxie/t-moxie-softfp: Remove.
7643         * config/rs6000/darwin-ldouble-format: Move to
7644         ../libgcc/config/rs6000/ibm-ldouble-format.
7645         * config/rs6000/darwin-ldouble.c: Move to
7646         ../libgcc/config/rs6000/ibm-ldouble.c
7647         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7648         * config/rs6000/libgcc-ppc64.ver: Likewise.
7649         * config/rs6000/sfp-machine.h: Likewise.
7650         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7651         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7652         (LIB2FUNCS_EXTRA): Remove.
7653         (TARGET_LIBGCC2_CFLAGS): Remove.
7654         * config/rs6000/t-aix52: Likewise
7655         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7656         $(srcdir)/config/rs6000/darwin-ldouble.c.
7657         (SHLIB_MAPFILES): Remove.
7658         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7659         $(srcdir)/config/rs6000/darwin-ldouble.c.
7660         * config/rs6000/t-fprules-softfp: Move to
7661         ../libgcc/config/t-softfp-sfdf.
7662         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7663         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7664         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7665         $(srcdir)/config/rs6000/darwin-ldouble.c.
7666         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7667         * config/score/t-score-softfp: Remove.
7668         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7669         soft-fp/t-softfp from tmake_file.
7670         (arm*-*-uclinux*): Likewise.
7671         (arm*-*-ecos-elf): Likewise.
7672         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7673         (arm*-*-rtems*): Likewise.
7674         (arm*-*-elf): Likewise.
7675         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7676         tmake_file.
7677         (moxie-*-uclinux*): Likewise.
7678         (moxie-*-rtems*): Likewise.
7679         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7680         tmake_file.
7681         (lm32-*-rtems*): Likewise.
7682         (lm32-*-uclinux*): Likewise.
7683         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7684         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7685         (powerpc-*-linux*, powerpc64-*-linux*): Remove
7686         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7687         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7688         tmake_file.
7689         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7690         tmake_file.
7691         (tic6x-*-uclinux): Likewise.
7692         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7693         soft-fp/t-softfp from tmake_file.
7694         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7695         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7696         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7697         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7698         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7699
7700 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7701
7702         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7703         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7704         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7705         TPBIT, TPBIT_FUNCS.
7706         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7707         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7708         Remove.
7709         * config/arm/t-vxworks: Likewise.
7710         * config/arm/t-wince-pe: Likewise.
7711         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7712         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7713         * config/bfin/t-bfin-elf: Likewise.
7714         * config/bfin/t-bfin-linux: Likewise.
7715         * config/bfin/t-bfin-uclinux: Likewise.
7716         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7717         Remove.
7718         * config/fr30/t-fr30: Likewise.
7719         * config/frv/t-frv: Likewise.
7720         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7721         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7722         * config/m32c/t-m32c: Likewise.
7723         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7724         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7725         * config/mcore/t-mcore: Likewise.
7726         * config/mep/t-mep: Likewise.
7727         * config/microblaze/t-microblaze: Likewise.
7728         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7729         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7730         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7731         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7732         * config/mn10300/t-linux: Remove.
7733         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7734         * config/pdp11/t-pdp11: Likewise.
7735         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7736         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7737         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7738         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7739         * config/rs6000/t-aix52: Likewise.
7740         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7741         $(srcdir)/config/rs6000/ppc64-fp.c.
7742         * config/rs6000/t-fprules-fpbit: Remove.
7743         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7744         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7745         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7746         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7747         * config/sparc/t-elf: Likewise.
7748         * config/sparc/t-leon: Likewise.
7749         * config/sparc/t-leon3: Likewise.
7750         * config/spu/t-spu-elf: Likewise.
7751         (DPBIT_FUNCS): Remove.
7752         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7753         * config/v850/t-v850: Likewise.
7754         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7755         (avr-*-*): Likewise.
7756         (h8300-*-rtems*): Set libgcc_tm_file.
7757         (h8300-*-elf*): Likewise.
7758         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7759         tmake_file.
7760         (powerpc-*-eabisim*): Likewise.
7761         (powerpc-*-elf*): Likewise.
7762         (powerpc-*-eabialtivec*): Likewise.
7763         (powerpc-xilinx-eabi*): Likewise.
7764         (powerpc-*-eabi*): Likewise.
7765         (powerpc-*-rtems*): Likewise.
7766         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7767         (powerpcle-*-elf*): Likewise.
7768         (powerpcle-*-eabisim*): Likewise.
7769         (powerpcle-*-eabi*): Likewise.
7770         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7771         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7772         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7773         Remove.
7774
7775 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7776
7777         * Makefile.in (UNWIND_H): Remove.
7778         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7779         ../libgcc/Makefile.in.
7780         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7781         (LIBUNWINDDEP): Remove.
7782         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7783         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7784         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7785         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7786         Don't copy $(UNWIND_H).
7787         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7788         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7789         * aclocal.m4: Regenerate.
7790         * configure: Regenerate.
7791         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7792         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7793         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7794         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7795         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7796         * config/arm/libunwind.S, config/arm/pr-support.c,
7797         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7798         ../libgcc/config/arm.
7799         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7800         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7801         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7802         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7803         ($(T)frvend$(objext)): Likewise.
7804         * config/ia64/t-glibc (LIB2ADDEH): Remove.
7805         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7806         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7807         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7808         ../libgcc/config/ia64.
7809         * config/ia64/t-hpux (LIB2ADDEH): Remove.
7810         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7811         * config/ia64/t-vms (LIB2ADDEH): Remove.
7812         * config/ia64/vms.h (UNW_IVMS_MODE,
7813         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7814         * config/picochip/t-picochip (LIB2ADDEH): Remove.
7815         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7816         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7817         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7818         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7819         $(srcdir)/../libgcc to refer to unwinder sources.
7820         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7821         * config/t-darwin (LIB2ADDEH): Remove.
7822         * config/t-freebsd (LIB2ADDEH): Remove.
7823         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7824         * config/t-libunwind-elf: Move to ../libgcc/config.
7825         * config/t-linux (LIB2ADDEH): Remove.
7826         * config/t-sol2 (LIB2ADDEH): Remove.
7827         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7828         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7829
7830 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
7831
7832         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7833
7834         * doc/invoke.texi: Document core-avx-i.
7835
7836 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7837
7838         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7839
7840 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
7841
7842         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7843         result of multiple results reduction when extracting the final
7844         value using scalar code.
7845
7846 2011-08-05  Richard Guenther  <rguenther@suse.de>
7847
7848         PR tree-optimization/49984
7849         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7850
7851 2011-08-05  Richard Guenther  <rguenther@suse.de>
7852
7853         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7854         return true for constant integer ranges.
7855         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7856         BIT_IOR_EXPR handling.
7857
7858 2011-08-04  Kai Tietz  <ktietz@redhat.com>
7859
7860         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7861         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7862
7863 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7864
7865         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7866         pattern def statement, and its access macro.
7867         (NUM_PATTERNS): Set to 5.
7868         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7869         pattern def statement.
7870         (vect_transform_loop): Likewise.
7871         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7872         function vect_recog_over_widening_pattern ().
7873         (vect_operation_fits_smaller_type): New function.
7874         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7875         Likewise.
7876         (vect_pattern_recog_1): Move the code that marks pattern
7877         statements to vect_mark_pattern_stmts (), and call it.  Update
7878         documentation.
7879         * tree-vect-stmts.c (vect_supportable_shift): New function.
7880         (vect_analyze_stmt): Handle pattern def statement.
7881         (new_stmt_vec_info): Initialize pattern def statement.
7882
7883 2011-08-04  Richard Henderson  <rth@redhat.com>
7884
7885         PR target/49964
7886         * config/i386/i386.c (ix86_expand_call): Don't create nested
7887         PARALLELs for TARGET_VZEROUPPER.
7888         (ix86_split_call_vzeroupper): Fix extraction of the original call.
7889         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7890         recognize nested PARALLELs.
7891         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7892         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7893         *sibcall_value_pop_vzeroupper): Likewise.
7894
7895 2011-08-04  Richard Henderson  <rth@redhat.com>
7896
7897         PR middle-end/49968
7898         * calls.c (expand_call): Use fixup_args_size_notes for
7899         emit_stack_restore.
7900         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7901         in non-standard modes.
7902
7903 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7904
7905         * gcc.c (self_spec): New variable.
7906         (static_specs): Add self_spec.
7907         (main): Call do_self_spec on "self_spec" specs after reading
7908         user specs files.  Move compare_debug handling right after that.
7909
7910 2011-08-04  Richard Guenther  <rguenther@suse.de>
7911
7912         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7913         (value_range_nonnegative_p): New function.
7914         (ssa_name_nonnegative_p): Use it.
7915         (value_range_constant_singleton): New function.
7916         (op_with_constant_singleton_value_range): Use it.
7917         (extract_range_from_binary_expr_1): New function, split out from ...
7918         (extract_range_from_binary_expr): ... this.  Remove fallback
7919         constant folding done here.
7920
7921 2011-08-04  Richard Guenther  <rguenther@suse.de>
7922
7923         PR tree-optimization/49806
7924         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7925         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7926         a new statement for a final conversion to bool.
7927
7928 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7929
7930         * gengtype-state.c: Include "bconfig.h" if
7931         GENERATOR_FILE is defined, "config.h" otherwise.
7932         * gengtype.c: Likewise.
7933         * gengtype-lex.l: Likewise.
7934         * gengtype-parse.c: Likewise.
7935         * Makefile.in (gengtype-lex.o-warn): New variable.
7936         (plugin_resourcesdir): Likewise.
7937         (plugin_bindir): Likewise.
7938         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7939         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7940         (native): Depend on gengtype$(exeext) is $enable_plugin
7941         is set to "yes".
7942         (gtype.state): Depend on s-gtype. Use temporary file.
7943         (gengtype-lex.o): New rule.
7944         (gengtype-parse.o): Likewise.
7945         (gengtype-state.o): Likewise.
7946         (gengtype$(exeext)): Likewise.
7947         (install-gengtype): Likewise.
7948         (gengtype.o): Likewise.
7949         (build/gengtype.o): Depend on version.h.
7950         (build/gengtype-state): Depend on double-int.h, version.h,
7951         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7952         (install-plugin): Depend on install-gengtype.
7953
7954 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7955
7956         PR middle-end/49905
7957         * tree.h (init_attributes): New prototype.
7958         * attribs.c (init_attributes): No longer static.
7959
7960 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7961
7962         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7963         maybe_suffix.
7964
7965 2011-08-03   David Li  <davidxl@google.com>
7966
7967         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7968         outgoing edge counts after inlining.
7969
7970 2011-08-03   David Li  <davidxl@google.com>
7971
7972         * profile.c (compute_branch_probabilities): Compute
7973         function frequency after profile annotation.
7974
7975 2011-08-04  Alan Modra  <amodra@gmail.com>
7976
7977         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7978         use_backchain_to_restore_sp initialisation.
7979         (rs6000_legitimate_offset_address_p): Simplify offset test.
7980
7981 2011-08-03  Richard Henderson  <rth@redhat.com>
7982
7983         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7984         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7985         (UNSPECV_NOP): New.
7986
7987 2011-08-03  Richard Henderson  <rth@redhat.com>
7988
7989         PR target/34888
7990         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7991
7992 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7993
7994         PR tree-optimization/49948
7995         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7996
7997 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
7998
7999         * config/m32c/m32c.c (class_sizes): Remove.
8000         (reduce_class): Change arguments and return type to reg_class_t.
8001         Change type cc var to HARD_REG_SET. Change type best var to
8002         reg_class_t. Change type best_size var to unsigned int. Remove
8003         initialization class_sizes var. Use reg_class_size array instead
8004         of class_sizes. Use reg_class_contents array instead
8005         of class_contents.
8006
8007 2011-08-03  Richard Guenther  <rguenther@suse.de>
8008
8009         PR middle-end/49958
8010         * fold-const.c (fold_binary_loc): Only associate
8011         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
8012         overflow wraps.
8013
8014 2011-08-03  Alan Modra  <amodra@gmail.com>
8015
8016         PR rtl-optimization/49941
8017         * jump.c (mark_jump_label): Comment.
8018         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
8019         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
8020         (mark_used_flags): Don't mark RETURN.
8021
8022 2011-08-03  Richard Guenther  <rguenther@suse.de>
8023
8024         PR tree-optimization/49938
8025         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
8026         deal with a POLYNOMIAL_CHREC.
8027
8028 2011-08-03  Revital Eres  <revital.eres@linaro.org>
8029
8030         * modulo-sched.c (calculate_stage_count,
8031         calculate_must_precede_follow, get_sched_window,
8032         try_scheduling_node_in_cycle, remove_node_from_ps): Add
8033         declaration.
8034         (update_node_sched_params, set_must_precede_follow, optimize_sc):
8035         New functions.
8036         (reset_sched_times): Call update_node_sched_params.
8037         (sms_schedule): Call optimize_sc.
8038         (get_sched_window): Change function arguments.
8039         (sms_schedule_by_order): Update call to get_sched_window.
8040         Call set_must_precede_follow.
8041         (calculate_stage_count): Add function argument.
8042
8043 2011-08-02  Richard Henderson  <rth@redhat.com>
8044
8045         PR target/49864
8046         PR target/49879
8047         * reg-notes.def (REG_ARGS_SIZE): New.
8048         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8049         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8050         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8051         different stack levels.
8052         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8053         (maybe_move_args_size_note): New.
8054         (combine_stack_adjustments_for_block): Use it.
8055         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8056         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8057         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8058         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8059         (cur_cfa): New.
8060         (queued_args_size): Remove.
8061         (add_cfi_args_size): Assert size is non-negative.
8062         (stack_adjust_offset, dwarf2out_args_size): Remove.
8063         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8064         (notice_args_size, notice_eh_throw): New.
8065         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8066         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8067         (dwarf2out_frame_debug_cfa_offset): Likewise.
8068         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
8069         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8070         (change_cfi_row): Don't emit args_size.
8071         (maybe_record_trace_start_abnormal): Split out from ...
8072         (maybe_record_trace_start): Here.  Set args_size_undefined.
8073         (create_trace_edges): Update to match.
8074         (scan_trace): Handle REG_ARGS_SIZE.
8075         (connect_traces): Connect args_size between EH insns.
8076         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8077         * explow.c (suppress_reg_args_size): New.
8078         (adjust_stack_1): Split out from ...
8079         (adjust_stack): ... here.
8080         (anti_adjust_stack): Use it.
8081         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8082         * expr.c (mem_autoinc_base): New.
8083         (fixup_args_size_notes): New.
8084         (emit_single_push_insn_1): Rename from emit_single_push_insn.
8085         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
8086         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8087         * reload1.c (reload_as_needed): Likewise.
8088         * rtl.h (fixup_args_size_notes): Declare.
8089
8090 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
8091
8092         PR bootstrap/49914
8093         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8094         of abs.
8095         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8096         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8097
8098 2011-08-02  Richard Henderson  <rth@redhat.com>
8099
8100         * config/h8300/h8300.c (push, pop): Return the insn.
8101         (h8300_swap_into_er6): Generate correct unwind info.
8102         (h8300_swap_out_of_er6): Likewise.
8103         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8104         complex cfa expression.
8105         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8106
8107 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8108
8109         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8110
8111 2011-08-02  Richard Henderson  <rth@redhat.com>
8112
8113         PR target/49878
8114         * config/h8300/h8300.c (h8300_move_ok): New.
8115         * config/h8300/h8300-protos.h: Declare it.
8116         * config/h8300/h8300.md (P): New mode iterator.
8117         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8118         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8119         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8120         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8121         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8122         and pushqi1_h8300hs_normal; use PRE_MODIFY and
8123         register_no_sp_elim_operand.
8124         (*pushhi1_h8300hs_<P>): Similarly.
8125         (pushqi1, pushhi1, pushhi1_h8300): Remove.
8126         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8127
8128 2011-08-02  Richard Henderson  <rth@redhat.com>
8129
8130         PR target/49881
8131         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8132
8133 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8134
8135         * c-parser.c (enum c_parser_prec): New enum, moved from within
8136         c_parser_binary_expression.
8137         (c_parser_binary_expression): Add PREC argument.  Stop parsing
8138         if operator has lower or equal precedence than PREC.
8139         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8140         callers.
8141         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8142         Adjust c_finish_omp_atomic caller.
8143         (c_parser_omp_taskyield): New function.
8144         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8145         (c_parser_omp_clause_name): Handle final and mergeable clauses.
8146         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8147         functions.
8148         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8149         and PRAGMA_OMP_CLAUSE_MERGEABLE.
8150         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8151         (c_parser_omp_clause_reduction): Handle min and max.
8152         * c-typeck.c (c_finish_omp_clauses): Don't complain about
8153         const qualified predetermined vars in firstprivate clause.
8154         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8155         Handle MIN_EXPR and MAX_EXPR.
8156         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8157         and OMP_CLAUSE_MERGEABLE.
8158         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8159         and OMP_ATOMIC_CAPTURE_NEW.
8160         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8161         OMP_CLAUSE_MERGEABLE.
8162         (omp_clause_code_name): Likewise.
8163         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8164         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8165         and OMP_CLAUSE_MERGEABLE.
8166         (OMP_CLAUSE_FINAL_EXPR): Define.
8167         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8168         OMP_CLAUSE_MERGEABLE.
8169         (expand_task_call): Likewise.
8170         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8171         (expand_omp_atomic_fetch_op): Handle cases where old or new
8172         value is needed afterwards.
8173         (expand_omp_atomic): Call expand_omp_atomic_load resp.
8174         expand_omp_atomic_store.
8175         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8176         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8177         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8178         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8179         * tree-nested.c (convert_nonlocal_omp_clauses,
8180         convert_local_omp_clauses): Likewise.
8181         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8182         OMP_ATOMIC_CAPTURE_NEW): New.
8183         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8184         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8185         New inlines.
8186         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8187         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8188         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8189
8190 2011-08-02  Kai Tietz  <ktietz@redhat.com>
8191
8192         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8193         boolean-type.
8194         (ssa_forward_propagate_and_combine): Interprete result of
8195         forward_propagate_comparison.
8196         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8197         boolean-typed operands for comparisons.
8198
8199 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
8200
8201         * config/avr/libgcc.S: Gather related function in the
8202         same input section.
8203         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8204         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8205         references.
8206         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8207         __udivmodsi4, __divmodsi4, __prologue_saves__,
8208         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8209         __do_copy_data, __do_clear_bss, __do_global_ctors,
8210         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8211
8212 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
8213
8214         PR target/47766
8215         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8216         (stack_protect_test): The pattern compares ptr_mode value.
8217
8218 2011-08-02  Alan Modra  <amodra@gmail.com>
8219
8220         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8221         note for save_LR_around_toc_setup sequence.
8222
8223 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8226
8227 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8228             Joseph Myers  <joseph@codesourcery.com>
8229
8230         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8231         * hwint.c: Include diagnostic-core.h.
8232         (abs_hwi): New.
8233         (gcd): Moved here...
8234         (pos_mul_hwi): New.
8235         (mul_hwi): New.
8236         (least_common_multiple): Moved here...
8237         * hwint.h (gcd): ... from here.
8238         (least_common_multiple): ... from here.
8239         (HOST_WIDE_INT_MIN): New.
8240         (HOST_WIDE_INT_MAX): New.
8241         (abs_hwi): Declared.
8242         (gcd): Declared.
8243         (pos_mul_hwi): Declared.
8244         (mul_hwi): Declared.
8245         (least_common_multiple): Declared.
8246         * omega.c (check_pos_mul): Removed.
8247         (check_mul): Removed.
8248         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8249         mul_hwi instead of check_mul.
8250
8251 2011-08-01  Richard Henderson  <rth@redhat.com>
8252
8253         PR target/49881
8254         * config/avr/avr.h (PUSH_ROUNDING): New.
8255         * config/avr/avr.md (pushqi1): Rename from *pushqi.
8256         (*pushhi, *pushsi, *pushsf): Remove.
8257         (MPUSH): New mode iterator.
8258         (push<MPUSH>1): New expander.
8259
8260 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
8261
8262         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8263         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8264         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8265         mmix_preferred_output_reload_class): Remove.
8266         * config/mmix/mmix.c (mmix_preferred_reload_class,
8267         mmix_preferred_output_reload_class): Make static. Change rclass
8268         argument and return type to reg_class_t.
8269         (TARGET_PREFERRED_RELOAD_CLASS,
8270         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8271
8272 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8273
8274         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8275         handling.
8276
8277 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8278
8279         PR target/47766
8280         * config/i386/i386.md (PTR): New.
8281         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8282         (stack_protect_test): Likewise.
8283         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8284         (stack_tls_protect_set_<mode>): Likewise.
8285         (stack_tls_protect_test_<mode>): Likewise.
8286
8287 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
8288
8289         PR target/49927
8290         * config/i386/i386.c (ix86_address_subreg_operand): New.
8291         (ix86_decompose_address): Use ix86_address_subreg_operand.
8292         (ix86_legitimate_address_p): Do not assert that subregs satisfy
8293         register_no_elim_operand in DImode.
8294
8295 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
8296
8297         PR tree-optimization/49926
8298         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8299         in a chain doesn't have uses both inside and outside the loop.
8300
8301 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8302
8303         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8304         * config/avr/avr-devices.c (avr_mcu_types): Use it.
8305         * config/avr/avr-mcus.def (AVR_MCU): Use it.
8306         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8307         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8308         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8309         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8310         to detect if XJMP must not be skipped.
8311
8312 2011-08-02  Alan Modra  <amodra@gmail.com>
8313
8314         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8315         Delete.
8316         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8317         (rs6000_emit_prologue): Don't prematurely return when
8318         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
8319         save_toc_in_prologue case.
8320         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8321         calls_alloca.
8322
8323 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8324
8325         * config/avr/avr-devices.c: Delete SVN property svn:executable.
8326         * config/avr/predicates.md: Ditto.
8327         * config/avr/driver-avr.c: Ditto.
8328         * config/avr/genopt.sh: Set SVN property svn:executable to *.
8329
8330 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8331
8332         * calls.c (emit_library_call_value_1): Declare size only if
8333         BLOCK_REG_PADDING is defined.
8334
8335 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
8336
8337         PR target/49547
8338         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8339         (x86_64-*-*): Likewise.
8340         * config/i386/i386.opt (mlzcnt): New.
8341         * config/i386/abmintrin.h: File removed.
8342         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8343         * config/i386/lzcntintrin.h: ... here.  New file.
8344         (__lzcnt): Rename to ...
8345         (__lzcnt32): ... this.
8346         * config/i386/bmiintrin.h (head): Update copyright year.
8347         (__lzcnt_u16): Removed.
8348         (__lzcnt_u32): Likewise.
8349         (__lzcnt_u64): Likewise.
8350         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8351         is defined, remove abmintrin.h.
8352         * config/i386/cpuid.h (bit_LZCNT): New.
8353         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8354         LZCNT feature.
8355         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8356         __LZCNT__ if needed.
8357         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8358         (ix86_option_override_internal): Handle LZCNT option.
8359         (ix86_valid_target_attribute_inner_p): Likewise.
8360         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8361         * config/i386/i386.h (TARGET_LZCNT): New.
8362         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8363         * config/i386/i386.md (clz<mode>2): Update insn constraint.
8364         (clz<mode>2_lzcnt): Likewise.
8365         * doc/invoke.texi: Mention -mlzcnt option.
8366         * doc/extend.texi: Likewise.
8367
8368 2011-08-01  Julian Brown  <julian@codesourcery.com>
8369
8370         * configure.ac (fixed-point): Add ARM support.
8371         * configure: Regenerate.
8372         * config/arm/arm.c (arm_fixed_mode_set): New struct.
8373         (arm_set_fixed_optab_libfunc): New.
8374         (arm_set_fixed_conv_libfunc): New.
8375         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8376         ARM-specific names.
8377         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8378         return values in SImode.
8379         (arm_return_in_msb): Return fixed-point types in the msb.
8380         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8381         upwards.
8382         (arm_scalar_mode_supported_p): Support fixed-point modes.
8383         (arm_vector_mode_supported_p): Support vector fixed-point modes.
8384         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8385         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8386         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8387         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8388         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8389         New mode iterators.
8390         (qaddsub_suf): New mode attribute.
8391         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8392         vector modes.
8393         * config/arm/predicates.md (sat_shift_operator): New predicate.
8394         * config/arm/arm-fixed.md: New.
8395         * config/arm/arm.md: Include arm-fixed.md.
8396         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8397
8398 2011-08-01  Julian Brown  <julian@codesourcery.com>
8399
8400         * calls.c (emit_library_call_value_1): Support padding for libcall
8401         arguments and return values.
8402         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8403         downwards in big-endian mode.
8404
8405 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8406
8407         PR debug/49887
8408         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8409         * config/sol2-protos.h: Likewise.
8410         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8411         solaris_code_end.
8412         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8413         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8414         solaris_file_end.
8415         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8416
8417 2011-08-01  Julian Brown  <julian@codesourcery.com>
8418
8419         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8420
8421 2011-08-01  Julian Brown  <julian@codesourcery.com>
8422
8423         * final.c (output_addr_const): Print fixed-point constants as
8424         decimal not hex.
8425
8426 2011-08-01  Richard Guenther  <rguenther@suse.de>
8427
8428         * stor-layout.c (initialize_sizetypes): Properly sign-extend
8429         bitsiztype TYPE_MAX_VALUE.
8430
8431 2011-08-01  Julian Brown  <julian@codesourcery.com>
8432
8433         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8434         comparison helpers.
8435
8436 2011-07-31  Richard Henderson  <rth@redhat.com>
8437
8438         * config/h8300/crti.asm: Add flags to .section directive.
8439         * config/h8300/crtn.asm: Likewise.
8440
8441 2011-07-31  Richard Henderson  <rth@redhat.com>
8442
8443         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8444         * tree.c (build_common_tree_nodes): Likewise.
8445
8446 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8447
8448         PR target/49880
8449         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8450         (divsi3_i1): Likewise.
8451
8452 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8453
8454         PR tree-optimization/49749
8455         * tree-ssa-reassoc.c (get_rank): New forward declaration.
8456         (PHI_LOOP_BIAS): New macro.
8457         (phi_rank): New function.
8458         (loop_carried_phi): Likewise.
8459         (propagate_rank): Likewise.
8460         (get_rank): Add calls to phi_rank and propagate_rank.
8461
8462 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8463
8464         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8465         of TARGET_64BIT.
8466         (PTRDIFF_TYPE): Likewise.
8467
8468 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
8469
8470         PR target/49920
8471         * config/i386/i386.md (strset): Do not expand strset_singleop
8472         when %eax or $edi are fixed.
8473         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8474         (*strsetsi_1): Ditto.
8475         (*strsethi_1): Ditto.
8476         (*strsetqi_1): Ditto.
8477         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8478         (*rep_stossi): Ditto.
8479         (*rep_stosqi): Ditto.
8480         (*strlenqi_1): Ditto.
8481         (cmpstrnsi): Also fail when %ecx is fixed.
8482         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8483         (*cmpstrnqi_1): Ditto.
8484         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8485         (*strmovsi_1): Ditto.
8486         (*strmovhi_1): Ditto.
8487         (*strmovqi_1): Ditto.
8488         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8489         (*rep_movsi): Ditto.
8490         (*rep_movqi): Ditto.
8491
8492 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
8493
8494         PR target/47908
8495         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8496         Disable instruction scheduling for non-ColdFire targets.
8497         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8498
8499 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8500
8501         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8502         of anti-dep edge from a branch.
8503         (add_cross_iteration_register_deps): Create anti-dep edge from
8504         a branch.
8505
8506 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8507
8508         * modulo-sched.c: Change comment.
8509         (reset_sched_times): Fix print message.
8510         (print_partial_schedule): Add print info.
8511
8512 2011-07-31  Tom de Vries  <tom@codesourcery.com>
8513
8514         PR middle-end/43513
8515         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8516         get_object_alignment and TYPE_ALIGN.
8517
8518 2011-07-30  Tom de Vries  <tom@codesourcery.com>
8519
8520         PR middle-end/43513
8521         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8522         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8523
8524 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8525
8526         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8527         <sys/sbd.h>.
8528         (cpu_types): New array.
8529         (cputype): New function.
8530         (host_detect_local_cpu): Only define buf, f if !__sgi__.
8531         Use scaninvent instead of /proc/cpuinfo if __sgi__.
8532         * config.host: Also use driver-native.o, mips/x-native on
8533         mips-sgi-irix*.
8534         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8535         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8536         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8537
8538 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8539
8540         PR middle-end/49897
8541         PR middle-end/49898
8542         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8543         in nested parallel and outer is a gimple_reg, mark it as addressable
8544         and set its bit in task_shared_vars bitmap too.
8545
8546 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8547
8548         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8549
8550 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8551
8552         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8553         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8554         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8555         AMASK_LOCKPFTCHOK): Define.
8556         (host_detect_local_cpu): Remove buf, f, cpu_names.
8557         Define cpu_types, implver, amask.
8558         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8559         native CPU.
8560         * config.host: Also use driver-alpha.o, alpha/x-alpha on
8561         alpha*-dec-osf*.
8562         * config/alpha/osf5.h [__alpha__ || __alpha]
8563         (host_detect_local_cpu): Declare.
8564         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8565         (DRIVER_SELF_SPECS): Define.
8566
8567 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8568
8569         PR target/47715
8570         * config/i386/i386.md (*load_tp_x32): New.
8571         (*load_tp_x32_zext): Ditto.
8572         (*add_tp_x32): Ditto.
8573         (*add_tp_x32_zext): Ditto.
8574         (*load_tp_<mode>): Disable for TARGET_X32 targets.
8575         (*add_tp_<mode>): Ditto.
8576         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8577         ptr_mode and convert to Pmode if needed.
8578
8579 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8580
8581         PR target/49687
8582         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8583         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8584         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8585         Add X to register footprint: Clobber r26/r27.
8586
8587 2011-07-29  Richard Guenther  <rguenther@suse.de>
8588
8589         * builtins.c (fold_builtin_signbit): Build the comparison
8590         with a proper type.
8591
8592 2011-07-29  Richard Guenther  <rguenther@suse.de>
8593
8594         PR tree-optimization/49893
8595         * tree-predcom.c (suitable_reference_p): Volatile references
8596         are not suitable.
8597
8598 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8599
8600         PR target/49313
8601         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8602         (__ctzsi2): Result for 0 may be undefined.
8603         (__ctzhi2): Result for 0 may be undefined.
8604         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8605         (__popcountsi2): Ditto. And don't clobber r26.
8606         (__popcountdi2): Ditto. And don't clobber r27.
8607         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8608         (parityhi2): New expand.
8609         (paritysi2): New expand.
8610         (popcounthi2): New expand.
8611         (popcountsi2): New expand.
8612         (clzhi2): New expand.
8613         (clzsi2): New expand.
8614         (ctzhi2): New expand.
8615         (ctzsi2): New expand.
8616         (ffshi2): New expand.
8617         (ffssi2): New expand.
8618         (copysignsf3): New insn.
8619         (bswapsi2): New expand.
8620         (*parityhi2.libgcc): New insn.
8621         (*parityqihi2.libgcc): New insn.
8622         (*paritysihi2.libgcc): New insn.
8623         (*popcounthi2.libgcc): New insn.
8624         (*popcountsi2.libgcc): New insn.
8625         (*popcountqi2.libgcc): New insn.
8626         (*popcountqihi2.libgcc): New insn-and-split.
8627         (*clzhi2.libgcc): New insn.
8628         (*clzsihi2.libgcc): New insn.
8629         (*ctzhi2.libgcc): New insn.
8630         (*ctzsihi2.libgcc): New insn.
8631         (*ffshi2.libgcc): New insn.
8632         (*ffssihi2.libgcc): New insn.
8633         (*bswapsi2.libgcc): New insn.
8634
8635 2011-07-29  Richard Guenther  <rguenther@suse.de>
8636
8637         * tree-vrp.c (get_value_range): Only set parameter default
8638         definitions to varying, leave others at undefined.
8639         (extract_range_from_binary_expr): Fix undefined handling.
8640         (vrp_visit_phi_node): Handle merged undefined state.
8641
8642 2011-07-29  Wei Guozhi  <carrot@google.com>
8643
8644         PR rtl-optimization/49799
8645         * combine.c (make_compound_operation): Check if the bit field is valid
8646         before change it to bit field extraction.
8647
8648 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8649
8650         PR rtl-optimization/49891
8651         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8652         newly created returnjumps.
8653
8654 2011-07-28  DJ Delorie  <dj@redhat.com>
8655
8656         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8657         local frame in a naked function, and produce a suitable error for
8658         that specific case.
8659
8660         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8661         registers to be reloaded in HI classes when the target is HI.
8662
8663 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8664
8665         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8666         bound_one, bound_two.
8667
8668 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8669
8670         PR middle-end/48648
8671         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8672         CLAST assignments.
8673         (translate_clast): Same.
8674         (translate_clast_assignment): New.
8675
8676 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8677
8678         PR tree-optimization/49876
8679         * sese.c (rename_uses): Do not return false on gloog_error: set
8680         the new_expr to integer_zero_node and continue code generation.
8681         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8682
8683 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8684
8685         PR debug/49846
8686         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8687         arguments also check if they aren't initialized with a MODE_INT
8688         mode of the same size.
8689
8690 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
8691
8692         * expr.c (get_bit_range): Handle *MEM_REF's.
8693
8694 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
8695
8696         * rtlanal.c (tablejump_p): False for returns.
8697         * reorg.c (first_active_target_insn): New static function.
8698         (find_end_label): Set JUMP_LABEL for a new returnjump.
8699         (optimize_skip, get_jump_flags, rare_destination,
8700         mostly_true_jump, get_branch_condition,
8701         steal_delay_list_from_target, own_thread_p,
8702         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8703         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8704         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8705         * jump.c (delete_related_insns): Likewise.
8706         (jump_to_label_p): New function.
8707         (redirect_target): New static function.
8708         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
8709         (redirect_jump_1): Assert that the new label is nonnull.
8710         (redirect_jump): Likewise.
8711         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8712         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8713         exit block.
8714         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
8715         changed.  Ensure that the right label is passed to redirect_jump.
8716         * function.c (emit_return_into_block,
8717         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8718         ret_rtx in their JUMP_LABEL.
8719         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8720         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8721         pass ret_rtx as label.
8722         * cfglayout.c (fixup_reorder_chain): Use
8723         force_nonfallthru_and_redirect rather than force_nonfallthru.
8724         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8725         * rtl.h (ANY_RETURN_P): New macro.
8726         (jump_to_label_p): Declare.
8727         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8728         JUMP_LABELs.
8729         (mark_target_live_regs): Likewise.
8730         * basic-block.h (force_nonfallthru_and_redirect): Declare.
8731         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8732         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8733         alpha_tablejump_best_label): Remove functions.
8734         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8735         alpha_tablejump_best_label): Remove declarations.
8736         * config/sh/sh.c (barrier_align, split_branches): Adjust for
8737         ret_rtx in JUMP_LABELs.
8738         * config/arm/arm.c (is_jump_table): Likewise.
8739
8740 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8741
8742         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8743         special predicate.  Remove explicit mode checks.
8744
8745 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8746
8747         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8748         DW_AT_data_member_location containing just DW_OP_plus_uconst.
8749
8750         PR debug/49871
8751         * dwarf2out.c (size_of_die, value_format, output_die): Use
8752         DW_FORM_udata instead of DW_FORM_data[48] for
8753         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8754
8755 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8756
8757         * config/i386/i386.md (*tls_global_dynamic_64): Update
8758         length attribute.
8759
8760 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8761
8762         PR target/47715
8763         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8764         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
8765         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8766         (tls_dynamic_gnu2_64): Ditto.
8767         (*tls_dynamic_gnu2_lea_64): Ditto.
8768         (*tls_dynamic_gnu2_call_64): Ditto.
8769         (*tls_dynamic_gnu2_combine_64): Ditto.
8770
8771 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8772
8773         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8774
8775 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8776
8777         PR target/47364
8778         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8779
8780 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8781
8782         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8783         before the core constraints. Adjust attributes.
8784         ("*thumb2_movdf_vfp"): Likewise.
8785
8786 2011-07-28  Kai Tietz  <ktietz@redhat.com>
8787
8788         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8789         (simplify_truth_ops_using_ranges): Likewise.
8790         (build_assert_expr_for): Likewise.
8791         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8792         and handle BIT_NOT_EXPR for truth-operation.
8793
8794 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8795
8796         PR target/49313
8797         Undo r176835 from trunk
8798         2011-07-27  Georg-Johann Lay
8799
8800 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8801
8802         PR target/49687
8803         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8804         Add _muluhisi3, _mulshisi3, _usmulhisi3.
8805         * config/avr/libgcc.S (__mulsi3): Rewrite.
8806         (__mulhisi3): Rewrite.
8807         (__umulhisi3): Rewrite.
8808         (__usmulhisi3): New.
8809         (__muluhisi3): New.
8810         (__mulshisi3): New.
8811         (__mulohisi3): New.
8812         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8813         declare.
8814         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8815         (pseudo_register_or_const_int_operand): New.
8816         (combine_pseudo_register_operand): New.
8817         (u16_operand): New.
8818         (s16_operand): New.
8819         (o16_operand): New.
8820         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8821         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8822         (any_extend, any_extend2): New code iterators.
8823         (extend_prefix): New code attribute.
8824         (mulsi3): Rewrite. Turn insn to expander.
8825         (mulhisi3): Ditto.
8826         (umulhisi3): Ditto.
8827         (usmulhisi3): New expander.
8828         (*mulsi3): New insn-and-split.
8829         (mulu<mode>si3): New insn-and-split.
8830         (muls<mode>si3): New insn-and-split.
8831         (mulohisi3): New insn-and-split.
8832         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8833         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8834         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8835         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8836         insn-and-split.
8837         (*mulsi3_call): Rewrite.
8838         (*mulhisi3_call): Rewrite.
8839         (*umulhisi3_call): Rewrite.
8840         (*usmulhisi3_call): New insn.
8841         (*muluhisi3_call): New insn.
8842         (*mulshisi3_call): New insn.
8843         (*mulohisi3_call): New insn.
8844         (extendqihi2): Use combine_pseudo_register_operand as predicate
8845         for operand 1.
8846         (extendqisi2): Ditto.
8847         (zero_extendqihi2): Ditto.
8848         (zero_extendqisi2): Ditto.
8849         (zero_extendhisi2): Ditto.
8850         (extendhisi2): Ditto. Don't early-clobber operand 0.
8851
8852 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8853
8854         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8855
8856 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8857
8858         PR tree-optimization/49471
8859         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8860         iv only when the largest type is unsigned.  Do not call
8861         lang_hooks.types.type_for_size.
8862
8863 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8864
8865         PR middle-end/45450
8866         * graphite-poly.c (apply_poly_transforms): Disable legality check
8867         after an openscop read.
8868
8869 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8870
8871         PR middle-end/47691
8872         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8873         copy_bb_and_scalar_dependences.
8874         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
8875         (graphite_copy_stmts_from_block): Update call to rename_uses.
8876         (copy_bb_and_scalar_dependences): Update call to
8877         graphite_copy_stmts_from_block.
8878         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8879
8880 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
8881
8882         PR target/49313
8883         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8884         (__ctzsi2): Result for 0 may be undefined.
8885         (__ctzhi2): Result for 0 may be undefined.
8886         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8887         (__popcountsi2): Ditto. And don't clobber r26.
8888         (__popcountdi2): Ditto. And don't clobber r27.
8889         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8890         (parityhi2): New expand.
8891         (paritysi2): New expand.
8892         (popcounthi2): New expand.
8893         (popcountsi2): New expand.
8894         (clzhi2): New expand.
8895         (clzsi2): New expand.
8896         (ctzhi2): New expand.
8897         (ctzsi2): New expand.
8898         (ffshi2): New expand.
8899         (ffssi2): New expand.
8900         (copysignsf3): New insn.
8901         (bswapsi2): New expand.
8902         (*parityhi2.libgcc): New insn.
8903         (*parityqihi2.libgcc): New insn.
8904         (*paritysihi2.libgcc): New insn.
8905         (*popcounthi2.libgcc): New insn.
8906         (*popcountsi2.libgcc): New insn.
8907         (*popcountqi2.libgcc): New insn.
8908         (*popcountqihi2.libgcc): New insn-and-split.
8909         (*clzhi2.libgcc): New insn.
8910         (*clzsihi2.libgcc): New insn.
8911         (*ctzhi2.libgcc): New insn.
8912         (*ctzsihi2.libgcc): New insn.
8913         (*ffshi2.libgcc): New insn.
8914         (*ffssihi2.libgcc): New insn.
8915         (*bswapsi2.libgcc): New insn.
8916
8917 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8918
8919         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8920         the mode of symbolic_opreand RTXes.
8921
8922 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8923
8924         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8925         for pic_32bit_operand RTXes.
8926         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8927         in DImode.
8928
8929 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8930
8931         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8932         for 32-bit, too.
8933         (ix86_handle_abi_attribute): Allow function attributes
8934         ms_abi/sysv_abi in 32-bit mode, too.
8935         * doc/extend.texi: Adjust attribute documentation.
8936
8937         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8938         expression handling.
8939         (and_var_with_comparison_1): Likewise.
8940
8941 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8942
8943         * params.h (ALLOW_STORE_DATA_RACES): New.
8944         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8945         * Makefile.in (expr.o): Depend on PARAMS_H.
8946         * machmode.h (get_best_mode): Add argument.
8947         * fold-const.c (optimize_bit_field_compare): Add argument to
8948         get_best_mode.
8949         (fold_truthop): Same.
8950         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8951         * expr.c (emit_group_store): Same.
8952         (copy_blkmode_from_reg): Same.
8953         (write_complex_part): Same.
8954         (optimize_bitfield_assignment_op): Add argument.
8955         Add argument to get_best_mode.
8956         (get_bit_range): New.
8957         (expand_assignment): Calculate maxbits and pass it down accordingly.
8958         (store_field): New argument.
8959         (expand_expr_real_2): New argument to store_field.  Include params.h.
8960         * expr.h (store_bit_field): New argument.
8961         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8962         into account maxbits.
8963         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8964         to store_bit_field.
8965         * expmed.c (store_bit_field_1): New argument.  Use it.
8966         (store_bit_field): Same.
8967         (store_fixed_bit_field): Same.
8968         (store_split_bit_field): Same.
8969         (extract_bit_field_1): Pass new argument to get_best_mode.
8970         (extract_bit_field): Same.
8971         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8972         * doc/invoke.texi: Document parameter allow-store-data-races.
8973
8974 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8975
8976         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8977
8978 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8979
8980         * tree-vrp.c (extract_range_from_binary_expr): Remove
8981         TRUTH-binary cases and add new bitwise-cases.
8982         (extract_range_from_assignment): Likewise.
8983         (register_edge_assert_for_1): Likeiwise.
8984         (register_edge_assert_for): Likewise.
8985         (simplify_truth_ops_using_ranges): Likewise.
8986         (simplify_stmt_using_ranges): Likewise.
8987
8988 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8989
8990         PR target/47372
8991         * config/i386/i386.c (ix86_delegitimize_address): Call
8992         simplify_gen_subreg for PIC with mode of x only if modes of
8993         x and orig_x are different.
8994
8995 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
8996
8997         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8998         to GC allocated copy of the string.
8999         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
9000         before .debug_line, not after it.
9001
9002 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9003
9004         PR middle-end/47046
9005         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
9006         evolution_function_is_affine_p on CHREC_RIGHT.
9007
9008 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9009
9010         * tree-data-ref.c (max_stmt_executions_tree): Do not call
9011         lang_hooks.types.type_for_size.
9012
9013 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9014
9015         PR middle-end/47653
9016         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
9017         loops using wrapping semantics.
9018
9019 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9020
9021         PR middle-end/48805
9022         * tree-scalar-evolution.c (instantiate_scev_r): Return
9023         chrec_dont_know for ADDR_EXPR.
9024
9025 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9026             H.J. Lu  <hongjiu.lu@intel.com>
9027
9028         PR target/47369
9029         PR target/49853
9030         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
9031         if legitimize_tls_address returned operand in wrong mode. Allow
9032         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
9033         if legitimize_pic_address returned operand in wrong mode.
9034
9035 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9036
9037         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
9038         return false for invariants.
9039
9040 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9041
9042         * config/i386/i386.md (add->lea splitter): Implement using SWI
9043         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
9044         (add->lea zext splitter): Change operand 2 predicate to
9045         x86_64_nonmemory_operand.
9046
9047 2011-07-26  Richard Guenther  <rguenther@suse.de>
9048
9049         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9050         frequency makes everything hot.
9051
9052 2011-07-26  Richard Guenther  <rguenther@suse.de>
9053
9054         PR tree-optimization/49840
9055         * tree-vrp.c (range_fits_type_p): Properly handle full
9056         double-int precision.
9057
9058 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9059
9060         PR bootstrap/49786
9061         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9062         counts.
9063         (update_specialized_profile): Likewise.
9064
9065 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9066             H.J. Lu  <hongjiu.lu@intel.com>
9067
9068         PR target/47381
9069         PR target/49832
9070         PR target/49833
9071         * config/i386/i386.md (i): Change SImode attribute to "e".
9072         (g): Change SImode attribute to "rme".
9073         (di): Change SImode attribute to "nF".
9074         (general_operand): Change SImode attribute to x86_64_general_operand.
9075         (general_szext_operand): Change SImode attribute to
9076         x86_64_szext_general_operand.
9077         (immediate_operand): Change SImode attribute to
9078         x86_64_immediate_operand.
9079         (nonmemory_operand): Change SImode attribute to
9080         x86_64_nonmemory_operand.
9081         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9082         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
9083         (*lea_1): Use SWI48 mode iterator.
9084         (*lea_1_zext): New insn pattern.
9085         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9086         (*bt<mode>): Ditto.
9087         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9088         Update operand constraints.
9089         (addsi_1_zext): Ditto.
9090         (*add<mode>2): Ditto.
9091         (*addsi_3_zext): Ditto.
9092         (*subsi_1_zext): Ditto.
9093         (*subsi_2_zext): Ditto.
9094         (*subsi_3_zext): Ditto.
9095         (*addsi3_carry_zext): Ditto.
9096         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9097         (*mulsi3_1_zext): Ditto.
9098         (*andsi_1): Ditto.
9099         (*andsi_1_zext): Ditto.
9100         (*andsi_2_zext): Ditto.
9101         (*<any_or:code>si_1_zext): Ditto.
9102         (*<any_or:code>si_2_zext): Ditto.
9103         (*test<mode>_1): Use <general_operand> predicate for operand 1.
9104         (*and<mode>_2): Ditto.
9105         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
9106         (add->lea splitter): Check operand modes in insn constraint.  Extend
9107         operands less than SImode wide to SImode.
9108         (add->lea zext splitter): Do not extend input operands to DImode.
9109         (*lea_general_1): Handle only QImode and HImode operands.
9110         (*lea_general_2): Ditto.
9111         (*lea_general_3): Ditto.
9112         (*lea_general_1_zext): Remove.
9113         (*lea_general_2_zext): Ditto.
9114         (*lea_general_3_zext): Ditto.
9115         (*lea_general_4): Check operand modes in insn constraint.  Extend
9116         operands less than SImode wide to SImode.
9117         (ashift->lea splitter): Ditto.
9118         * config/i386/i386.c (ix86_print_operand_address): Print address
9119         registers with 'q' modifier on 64bit targets.
9120         * config/i386/predicates.md (pic_32bit_opreand): Define as special
9121         predicate.  Reject non-SI and non-DI modes.
9122
9123 2011-07-25  Andrew Pinski  <apinski@cavium.com>
9124
9125         PR tree-opt/49671
9126         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9127         TREE_THIS_NOTRAP into the inner most MEM_REF.
9128         Always copy TREE_THIS_VOLATILE.
9129         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9130         arguments are not volatile references.
9131
9132 2011-07-25  Richard Henderson  <rth@redhat.com>
9133
9134         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9135         * final.c (final_scan_insn): Don't test for it.
9136         (rest_of_clean_state): Likewise.
9137
9138 2011-07-25  Richard Henderson  <rth@redhat.com>
9139
9140         PR debug/49841
9141         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9142         (emit_frame_save): Likewise.
9143         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9144         insn onto a dummy blockage insn after the join label.
9145
9146 2011-07-25  Richard Henderson  <rth@redhat.com>
9147
9148         * dwarf2cfi.c (dw_trace_info): Add ID member.
9149         (get_trace_index): Remove.  Change users to use ID member.
9150         (before_next_cfi_note): New.
9151         (connect_traces): Remove unreachable traces before the main loop.
9152         Look across one trace and generate remember/restore_state if needed.
9153
9154 2011-07-25  Richard Henderson  <rth@redhat.com>
9155
9156         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9157
9158 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
9159
9160         * genattr.c (write_upcase, gen_attr <enum definition writing>):
9161         Move to ...
9162         * genattr-common.c ... here.
9163         (main): Call gen_attr.
9164         * optc-gen.awk: Make generated program include insn-attr-common.h .
9165         * Makefile.in (oprions.o): Depend on insn-attr-common.h
9166
9167 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9168
9169         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9170         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9171         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9172         m32c_print_operand, m32c_print_operand_address): Remove.
9173         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9174         Change return type to bool. Change argument type to bool.
9175         (m32c_print_operand, m32c_print_operand_address): Make static.
9176         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9177         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9178
9179 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9180
9181         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9182         attributes): Document mmap.
9183
9184 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9185
9186         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9187         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9188         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9189         mmix_print_operand, mmix_print_operand_address): Remove.
9190         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9191         Change return type to bool. Change argument type to bool.
9192         (mmix_print_operand, mmix_print_operand_address): Make static.
9193         (mmix_intval, mmix_output_condition): Change 'x' argument type
9194         to const_rtx.
9195         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9196         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9197
9198 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
9199
9200         PR target/39386
9201         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9202         shift counter for x << x and x >> x shifts.
9203
9204 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9205
9206         PR target/47124
9207         * config.gcc: Reject *-*-solaris2 configuration.
9208
9209 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
9210
9211         PR tree-optimization/49809
9212         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9213         gimple_get_lhs instead of gimple_assign_lhs.
9214
9215 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9216
9217         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9218
9219 2011-07-25  Richard Guenther  <rguenther@suse.de>
9220
9221         PR tree-optimization/49822
9222         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9223         more.  Make sure to preserve stmts with side-effects.  Properly
9224         handle virtual defs, follow a longer def chain.
9225
9226 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
9227
9228         PR plugins/45348
9229         PR plugins/48425
9230         PR plugins/46577
9231         * Makefile.in: Do not flatten c-family directory when installing
9232         plugin headers.
9233
9234 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9235
9236         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9237         original nodes if we are dealing with virtual clones.
9238
9239 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
9240
9241         * common/config/c6x/c6x-common.c: New file.
9242
9243 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
9244
9245         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9246
9247 2011-07-25  Richard Guenther  <rguenther@suse.de>
9248
9249         PR tree-optimization/49715
9250         * tree-vrp.c: Include expr.h and optabs.h.
9251         (range_fits_type_): New function.
9252         (simplify_float_conversion_using_ranges): Likewise.
9253         (simplify_stmt_using_ranges): Call it.
9254         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9255         * optabs.c (can_float_p): Export.
9256         * optabs.h (can_float_p): Declare.
9257
9258 2011-07-25  Richard Guenther  <rguenther@suse.de>
9259
9260         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9261         (get_value_range): For out-of-range SSA names or names created
9262         after propagation return a read-only varying range.
9263         (dump_all_value_ranges): Adjust.
9264         (vrp_initialize): Likewise.
9265         (vrp_finalize): Likewise.
9266
9267 2011-07-24  Richard Henderson  <rth@redhat.com>
9268
9269         PR debug/49831
9270         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
9271         them entirely.
9272
9273 2011-07-24  Richard Henderson  <rth@redhat.com>
9274
9275         PR debug/49825
9276         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9277         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9278
9279 2011-07-24  Richard Henderson  <rth@redhat.com>
9280
9281         PR debug/49827
9282         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9283
9284 2011-07-24  Richard Henderson  <rth@redhat.com>
9285
9286         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9287         Zero args_size for abnormal edges.  Adjust all callers.
9288
9289 2011-07-24  Richard Henderson  <rth@redhat.com>
9290
9291         PR debug/49825
9292         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9293
9294 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9295
9296         PR bootstrap/49835
9297         * collect2.c (demangle_flag): Removed.
9298
9299 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
9300
9301         * configure.ac (demangler_in_ld): Default to yes.
9302         * configure: Regenerated.
9303         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9304         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9305         --no-demangle options straight through to ld.  When
9306         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9307         way that has the intended effect on Windows.
9308
9309 2011-07-23  Richard Henderson  <rth@redhat.com>
9310
9311         * dwarf2cfi.c: Include basic-block.h.
9312         (dw_label_info): Remove.
9313         (trace_work_list, trace_index): New.
9314         (remember_row, emit_cfa_remember): Remove.
9315         (dw_trace_info_hash, dw_trace_info_eq): New.
9316         (get_trace_index, get_trace_info): New.
9317         (save_point_p): New.
9318         (free_cfi_row): Remove.
9319         (add_cfi): Do not emit DW_CFA_remember_state.
9320         (cfa_row_equal_p): New.
9321         (barrier_args_size): Remove.
9322         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9323         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9324         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9325         (dwarf2out_cfi_begin_epilogue): Remove.
9326         (dwarf2out_frame_debug_restore_state): Remove.
9327         (connect_traces, create_pseudo_cfg): New.
9328         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9329         * Makefile.in (dwarf2cfi.o): Update.
9330
9331 2011-07-23  Richard Henderson  <rth@redhat.com>
9332
9333         * dwarf2cfi.c (dw_trace_info): New.
9334         (dw_label_info): New.
9335         (cie_return_save): New.
9336         (cur_trace): New.
9337         (queued_args_size): Rename from args_size.  Update all users.
9338         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9339         (def_cfa_1): Use cur_trace instead of cfa_*.
9340         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9341         (clobbers_queued_reg_save, reg_saved_in): Likewise.
9342         (dwarf2out_frame_debug_expr): Likewise.
9343         (create_cie_data): Split out from ...
9344         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
9345
9346 2011-07-23  Richard Henderson  <rth@redhat.com>
9347
9348         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9349         Update all users to match.
9350         (execute_dwarf2_frame): Free reg_saved_in_data.
9351
9352 2011-07-23  Richard Henderson  <rth@redhat.com>
9353
9354         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
9355         (queued_reg_saves): Don't GTY.  Change to a VEC.
9356         (queue_reg_save): Update to match.
9357         (dwarf2out_flush_queued_reg_saves): Likewise.
9358         (clobbers_queued_reg_save): Likewise.
9359         (reg_saved_in): Likewise.
9360         (execute_dwarf2_frame): Free queued_reg_saves.
9361
9362 2011-07-23  Richard Henderson  <rth@redhat.com>
9363
9364         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
9365
9366 2011-07-23  Richard Henderson  <rth@redhat.com>
9367
9368         * dwarf2cfi.c (add_cfi_args_size): Split out from...
9369         (dwarf2out_args_size): ... here.
9370         (add_cfi_restore): Split out from ...
9371         (dwarf2out_frame_debug_cfa_restore): ... here.
9372         (def_cfa_0): Split out from ...
9373         (def_cfa_1): ... here.
9374         (cfi_oprnd_equal_p, cfi_equal_p): New.
9375         (change_cfi_row): New.
9376         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9377         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9378         (output_cfis): Remove.
9379         * dwarf2out.c (output_fde): Simplify output_cfi loop.
9380         (dwarf2out_switch_text_section): Don't call output_cfis.
9381         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9382         * dwarf2out.h: Update decls.
9383         (enum dw_val_class): Add dw_val_class_none.
9384
9385 2011-07-23  Richard Henderson  <rth@redhat.com>
9386
9387         * dwarf2cfi.c (update_row_reg_save): New.
9388         (dwarf2out_frame_debug_cfa_expression): Use it.
9389         (dwarf2out_frame_debug_cfa_restore): Likewise.
9390         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
9391
9392 2011-07-23  Richard Henderson  <rth@redhat.com>
9393
9394         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
9395
9396 2011-07-23  Richard Henderson  <rth@redhat.com>
9397
9398         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9399         (cie_cfi_row): New.
9400         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9401         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9402         (cur_row, remember_row): New.
9403         (def_cfa_1): Use cur_row instead of the old_* variables.
9404         (dwarf2out_frame_debug_restore_state): Similarly.
9405         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9406         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9407         (dwarf2out_frame_debug_adjust_cfa): Likewise.
9408         (dwarf2out_frame_debug_cfa_offset): Likewise.
9409         (dwarf2out_frame_debug_expr): Likewise.
9410         (execute_dwarf2_frame): Set up cur_row.
9411         * dwarf2out.h (struct cfa_loc): Mark for GTY.
9412
9413 2011-07-23  Richard Henderson  <rth@redhat.com>
9414
9415         * basic-block.h (EDGE_PRESERVE): New.
9416         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9417         * bb-reorder.c: Include except.h.
9418         (fix_up_crossing_landing_pad): New.
9419         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9420         landing pads in the right partition.  Duplicate as necessary.
9421         (partition_hot_cold_basic_blocks): Fix up DF info after
9422         duplicating landing pads.
9423         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9424         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9425         is set properly.  Validate that EH edges are not CROSSING.
9426         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9427         (dw2_build_landing_pads): ... here.
9428         (convert_to_eh_region_ranges): Remove code to fixup crossing
9429         landing pads.
9430         * except.h (expand_dw2_landing_pad_for_region): Declare.
9431         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9432
9433 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
9434
9435         PR target/49816
9436         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9437
9438 2011-07-22  Jason Merrill  <jason@redhat.com>
9439
9440         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9441
9442 2011-07-22  Richard Henderson  <rth@redhat.com>
9443
9444         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9445
9446 2011-07-22  Richard Henderson  <rth@redhat.com>
9447
9448         * jump.c (maybe_propagate_label_ref): Split out of...
9449         (mark_all_labels): ... here.  Do not attempt label_ref
9450         propagation while in cfglayout mode.
9451
9452 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9453
9454         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9455         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9456         (dwarf_attr_name): Handle DW_AT_GNU_macros.
9457         (dwarf2out_define): If the vector is empty and
9458         lineno is 0, emit a dummy entry first.
9459         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
9460         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9461         optimize_macinfo_range): New functions.
9462         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
9463         mergeable, optimize longer strings using
9464         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9465         optimize longer sequences of define/undef ops from headers
9466         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
9467         emit a section headers.
9468         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9469         and macinfo_section_label to DEBUG_MACRO_SECTION
9470         resp. DEBUG_MACRO_SECTION_LABEL.
9471         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9472         instead of DW_AT_macro_info.
9473
9474         PR other/32998
9475         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9476         options.
9477         * dwarf2out.c: Include opts.h.
9478         (dchar_p): New typedef.  Define heap VEC for it.
9479         (producer_string): New variable.
9480         (gen_producer_string): New function.
9481         (gen_compile_unit_die): Use it.
9482         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9483         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9484         * doc/invoke.texi: Document -grecord-gcc-switches and
9485         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9486         to -frecord-gcc-switches description.
9487
9488 2011-07-22  Jason Merrill  <jason@redhat.com>
9489
9490         PR c++/30112
9491         * c-decl.c (c_linkage_bindings): Define.
9492
9493 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9494
9495         PR debug/49815
9496         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9497
9498 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
9499
9500         * config/i386/i386.c (ix86_option_override_internal): Disallow
9501         MS ABI in x32 mode.
9502         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9503         only for TARGET_LP64.
9504         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9505
9506 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9507
9508         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9509         avoid warnings when GCC is built with a C++ compiler.
9510
9511 2011-07-22  Martin Jambor  <mjambor@suse.cz>
9512
9513         PR lto/49796
9514         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9515         if decl node is in another partition, call cgraph_get_node only once.
9516
9517 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
9518
9519         * config.gcc (x86_64-*-linux*): Set
9520         default_gnu_indirect_function to yes.
9521
9522 2011-07-22  Richard Guenther  <rguenther@suse.de>
9523
9524         PR tree-optimization/45819
9525         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9526         preserve volatile and notrap flags.
9527
9528 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9529             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9530
9531         PR bootstrap/49794
9532         * configure.ac: Test AM_ICONV with CXX.
9533         * configure: Regenerate.
9534         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9535
9536 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9537
9538         PR bootstrap/49797
9539         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9540         (set_cloog_options): Use it.
9541
9542 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9543
9544         PR c++/49756
9545         * gcc.c (main): Call stack_limit_increase (64MB).
9546         * toplev.c (toplev_main): Likewise.
9547
9548 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9549
9550         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9551         instead of force_reg.
9552
9553 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9554
9555         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9556         needed and use force_reg after convert.
9557         (ix86_expand_call): Likewise.
9558         (ix86_expand_special_args_builtin): Likewise.
9559         (ix86_expand_builtin): Likewise.
9560
9561 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9562
9563         PR middle-end/47654
9564         PR middle-end/49649
9565         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9566         in parameter.  Initialize v1 and v2 based on the values returned
9567         by clast_name_to_lb_ub.
9568         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9569         values.
9570         (type_for_clast_bin): Same.
9571         (type_for_clast_expr): Same.
9572         (type_for_clast_eq): Update calls to type_for_clast_expr.
9573         (type_for_clast_for): Same.
9574         (build_iv_mapping): Same.
9575         * graphite-ppl.h (value_min): New.
9576
9577 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9578
9579         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9580         types whenever possible.
9581
9582 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9583
9584         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9585         and ub fields.
9586         (new_clast_name_index): Add lb and ub parameters.
9587         (free_clast_name_index): New.
9588         (clast_name_to_lb_ub): New.
9589         (save_clast_name_index): Add lb and ub parameters.
9590         (compute_bounds_for_param): New.
9591         (type_for_level): Removed.
9592         (type_for_clast_for): Removed level parameter.  Do not call
9593         type_for_level.
9594         (graphite_create_new_loop): Store the lb and ub for the clast_name
9595         of the iterator of the loop that has been generated.
9596         (graphite_create_new_loop_guard): Remove parameter level.
9597         (create_params_index): Store the lb and ub of each parameter.
9598         (gloog): Use free_clast_name_index.  Pass to create_params_index
9599         the current scop.
9600
9601 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9602
9603         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9604         (max_precision_type): Inline max_signed_precision_type.
9605         (type_for_clast_red): Use max_precision_type.
9606         (type_for_clast_bin): Same.
9607         (type_for_clast_for): Same.
9608
9609 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9610
9611         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9612         type_for_interval.
9613         (gcc_type_for_value): Renamed type_for_value.
9614         (gcc_type_for_clast_term): Renamed type_for_clast_term.
9615         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9616         (gcc_type_for_clast_red): Renamed type_for_clast_red.
9617         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9618         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9619         (graphite_translate_clast_equation): Update calls.
9620         (compute_type_for_level): Renamed type_for_level.
9621         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9622         (build_iv_mapping): Update calls.
9623         (graphite_create_new_loop_guard): Same.
9624
9625 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9626
9627         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9628         comment.
9629
9630 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9631
9632         * graphite-clast-to-gimple.c (struct ivs_params): New.
9633         (clast_name_to_gcc): Use ivs_params to pass around parameters.
9634         (clast_to_gcc_expression): Same.
9635         (clast_to_gcc_expression_red): Same.
9636         (gcc_type_for_clast_term): Same.
9637         (gcc_type_for_clast_expr): Same.
9638         (gcc_type_for_clast_red): Same.
9639         (gcc_type_for_clast_bin): Same.
9640         (gcc_type_for_clast_eq): Same.
9641         (graphite_translate_clast_equation): Same.
9642         (graphite_create_guard_cond_expr): Same.
9643         (graphite_create_new_guard): Same.
9644         (graphite_create_new_loop): Same.
9645         (build_iv_mapping): Same.
9646         (translate_clast_user): Same.
9647         (graphite_create_new_loop_guard): Same.
9648         (translate_clast): Same.
9649         (translate_clast_for_loop): Same.
9650         (translate_clast_for): Same.
9651         (translate_clast_guard): Same.
9652         (initialize_cloog_names): Fix typo.
9653         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9654
9655 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9656
9657         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9658         (new_clast_name_index): Add level parameter.
9659         (clast_name_to_level): New.
9660         (save_clast_name_index): Add level parameter.
9661         (newivs_to_depth_to_newiv): Removed.
9662         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9663         (graphite_create_new_loop): Add level parameter.  Pass level to
9664         save_clast_name_index.
9665         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9666         (create_params_index): Pass level to save_clast_name_index.
9667
9668 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9669
9670         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9671         recompute type, lb, and ub.  Get them from...
9672         (graphite_create_new_loop_guard): ...here.  Pass in parameter
9673         pointers to type, lb, and ub.
9674         (translate_clast_for_loop): Update function calls.
9675         (translate_clast_for): Same.
9676
9677 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9678
9679         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9680         psct_dynamic_dim.
9681         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9682         (gcc_type_for_iv_of_clast_loop): Update use of level.
9683         (gloog): Start counting nesting level from 0.
9684         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9685         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9686         psct_dynamic_dim on level.
9687
9688 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9689
9690         * config/i386/i386.c (ix86_legitimize_address): Convert to
9691         Pmode if needed.
9692
9693 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9694
9695         * config/i386/i386.c (function_value_64): Always return pointers
9696         in Pmode.
9697         (ix86_promote_function_mode): New.
9698         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9699
9700 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9701
9702         PR tree-optimization/49749
9703         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9704         remove no-longer-used maxrank variable.
9705
9706 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9707
9708         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9709
9710 2011-07-21  Jason Merrill  <jason@redhat.com>
9711
9712         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9713         * recog.h (struct insn_data_d): Check it instead of
9714         HAVE_DESIGNATED_INITIALIZERS.
9715         * genoutput.c (output_insn_data): Likewise.
9716
9717 2011-07-21  Richard Guenther  <rguenther@suse.de>
9718
9719         PR tree-optimization/49770
9720         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9721         valueized any operand.  Renamed from ...
9722         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
9723         (valueize_shared_reference_ops_from_ref): Return whether we
9724         valueized any operand.
9725         (vn_reference_lookup): Only when we valueized any operand
9726         use the valueized reference for alias analysis.  Do not preserve
9727         the original reference tree in this case.
9728
9729 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
9730
9731         * config/i386/i386.c (ix86_decompose_address): Reject all but
9732         register operands and subregs of DImode hard registers in index.
9733
9734 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9735
9736         * fold-const.c (fold_unary_loc): Preserve indirect
9737         comparison cast to none-boolean type.
9738         * tree-ssa.c (useless_type_conversion_p): Preserve cast
9739         from/to boolean-type.
9740         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9741         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9742         * tree-cfg.c (verify_gimple_comparison): Check result
9743         type of comparison expression.
9744         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9745         of condition result and disallow type-cast sinking into comparison.
9746
9747 2011-07-21  Richard Guenther  <rguenther@suse.de>
9748
9749         * tree-ssa-forwprop.c (combine_conversions): Return whether
9750         we have to run cfg-cleanup.  Properly remove dead stmts.
9751         (ssa_forward_propagate_and_combine): Adjust.
9752
9753 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
9754
9755         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9756
9757 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9758
9759         * tree-ssa-propagate.c (substitute_and_fold): Use
9760         do_dce flag to deside, if BB's statements are scanned
9761         in last to first, or first to last order.
9762
9763 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9764
9765         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9766
9767 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
9768             Uros Bizjak  <ubizjak@gmail.com>
9769             Richard Henderson  <rth@redhat.com>
9770
9771         * config/i386/constraints.md (w): New.
9772
9773         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9774         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9775
9776         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9777         instead of TARGET_64BIT.
9778
9779         * config/i386/i386.md (indirect_jump): Replace
9780         nonimmediate_operand with indirect_branch_operand.
9781         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
9782         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9783         Convert operand 0 to Pmode for x32 if not PIC.
9784         (*tablejump_1): Replace nonimmediate_operand with
9785         indirect_branch_operand.  Replace constraint "m" with "w".
9786         (*call_vzeroupper): Replace constraint "m" with "w".
9787         (*call): Likewise.
9788         (*call_rex64_ms_sysv_vzeroupper): Likewise.
9789         (*call_rex64_ms_sysv): Likewise.
9790         (*call_value_vzeroupper): Likewise.
9791         (*call_value): Likewise.
9792         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9793         (*call_value_rex64_ms_sysv): Likewise.
9794         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9795
9796         * config/i386/predicates.md (indirect_branch_operand): New.
9797         (call_insn_operand): Support x32.
9798
9799 2011-07-20  Michael Eager  <eager@eagercon.com>
9800
9801         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9802
9803 2011-07-20  Richard Henderson  <rth@redhat.com>
9804
9805         * cfg.c (dump_bb_info): Dump basic_block->flags.
9806         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9807
9808 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9809
9810         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9811         of DImode hard registers in index.
9812         (ix86_legitimate_address_p): Allow subregs of base and index to span
9813         more than a word.  Assert that subregs of base and index satisfy
9814         register_no_elim_operand predicates.  Reject addresses where
9815         base and index have different modes.
9816
9817 2011-07-20  Robert Millan  <rmh@gnu.org>
9818
9819         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9820
9821 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9822
9823         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9824         removing now-unnecessary assignment.
9825
9826 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9827
9828         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9829         memory address space to the type's address space.
9830
9831 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9832
9833         PR target/36467
9834         PR target/49687
9835         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9836         and expand appropriately if there is a CONST_INT in operand2.
9837         (usmulqihi3): New insn.
9838         (*sumulqihi3): New insn.
9839         (*osmulqihi3): New insn.
9840         (*oumulqihi3): New insn.
9841         (*muluqihi3.uconst): New insn_and_split.
9842         (*muluqihi3.sconst): New insn_and_split.
9843         (*mulsqihi3.sconst): New insn_and_split.
9844         (*mulsqihi3.uconst): New insn_and_split.
9845         (*mulsqihi3.oconst): New insn_and_split.
9846         (*ashifthi3.signx.const): New insn_and_split.
9847         (*ashifthi3.signx.const7): New insn_and_split.
9848         (*ashifthi3.zerox.const): New insn_and_split.
9849         (mulsqihi3): New insn.
9850         (muluqihi3): New insn.
9851         (muloqihi3): New insn.
9852         * config/avr/predicates.md (const_2_to_7_operand): New.
9853         (const_2_to_6_operand): New.
9854         (u8_operand): New.
9855         (s8_operand): New.
9856         (o8_operand): New.
9857         (s9_operand): New.
9858         (register_or_s9_operand): New.
9859
9860 2011-07-20  Kai Tietz  <ktietz@redhat.com>
9861
9862         * builtins.c (fold_builtin_expect): See through the cast
9863         from truthvalue_type_node to long.
9864
9865 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9866
9867         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9868         where we can use them from the standard and altivec instruction
9869         sets, instead of always using the 3 operand VSX forms that require
9870         the destination to overlap one of the inputs.
9871         (vsx_fms*): Ditto.
9872         (vsx_fnma*): Ditto.
9873         (vsx_fnms*): Ditto.
9874
9875         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9876         for DF types.
9877         (fmsdf4_fpr): Ditto.
9878         (nfmadf4_fpr): Ditto.
9879         (nfmsdf4_fpr): Ditto.
9880
9881 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
9882
9883         * genrecog.c (make_insn_sequence): Correct position numbering
9884         when filtering out match_scratch and match_dup.
9885
9886 2011-07-20  Richard Guenther  <rguenther@suse.de>
9887
9888         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9889         against already removed statements.
9890         (forward_propagate_into_comparison): Remove dead defining stmts.
9891         (forward_propagate_into_gimple_cond): Likewise.
9892         (forward_propagate_into_cond): Simplify.
9893         (ssa_forward_propagate_and_combine): Handle changed cfg from
9894         forward_propagate_into_comparison.
9895         * tree-ssa-phiopt.c (conditional_replacement): Use proper
9896         locations for newly built statements.
9897
9898 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9899
9900         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9901
9902 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9903
9904         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9905         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9906
9907 2011-07-20  Richard Guenther  <rguenther@suse.de>
9908
9909         PR middle-end/18908
9910         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9911         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9912         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9913
9914 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9915
9916         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9917         costs for subclasses of GR_REGS.
9918
9919 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9920
9921         PR target/49780
9922         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9923         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9924         of DImode hard registers in base.
9925         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9926         registers.
9927
9928 2011-07-20  Richard Guenther  <rguenther@suse.de>
9929
9930         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9931         (unify_nodes): Deal with that.
9932         (solve_graph): Likewise.
9933
9934 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9935
9936         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9937         canonicalize left operand from ZERO_EXTEND to AND.
9938
9939 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9940
9941         * target.def (class_max_nregs): New hook.
9942         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9943         * doc/tm.texi: Regenerate.
9944         * targhooks.c (default_class_max_nregs): New function.
9945         * targhooks.h (default_class_max_nregs): Declare.
9946         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9947         x_ira_reg_class_min_nregs arrays to unsigned char.
9948         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9949         hook instead of CLASS_MAX_NREGS macro.
9950         * reginfo.c (restore_register_info): Ditto.
9951         * ira-conflicts.c (process_regs_for_copy): Use
9952         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9953         Change type rclass and aclass vars to reg_class_t.
9954         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9955         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9956         reg_class_t.
9957         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9958         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9959
9960         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9961         * config/i386/i386.c (ix86_class_max_nregs): New function.
9962         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9963         instead of CLASS_MAX_NREGS macro.
9964         (TARGET_CLASS_MAX_NREGS): Define.
9965         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9966         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9967         * config/avr/avr.c (class_max_nregs): Remove function.
9968         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9969         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9970         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9971         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9972         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9973         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9974         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9975         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9976         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9977         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9978         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9979         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9980         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9981         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9982         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9983
9984 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9985
9986         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9987         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9988         (EH_PERSONALITY): Fix typo.
9989         (NON_CALL_EXCEPTIONS): Fix message.
9990         (OPTIMIZATION_MISMATCH): Adjust message.
9991         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9992
9993 2011-07-19  Ian Lance Taylor  <iant@google.com>
9994
9995         * doc/install.texi (Configuration): Document
9996         --enable-build-poststage1-with-cxx.
9997
9998 2011-07-19  Robert Millan  <rmh@gnu.org>
9999
10000         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
10001         (GLIBC_DYNAMIC_LINKER): Remove.
10002
10003         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
10004         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10005         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10006         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
10007         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
10008         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
10009
10010         * config/mips/linux.h: Remove everything except for ...
10011         (GLIBC_DYNAMIC_LINKER): ... this macro.
10012
10013         * config/mips/linux64.h: Remove everything except for ...
10014         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10015         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10016         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
10017         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
10018         (GNU_USER_LINK_EMULATIONN32): New macros.
10019
10020         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
10021         Use the new headers.
10022
10023 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10024
10025         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
10026         Add offset_known_p and size_known_p fields.
10027         (MEM_OFFSET_KNOWN_P): Update accordingly.
10028         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
10029         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
10030         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
10031         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
10032         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
10033         (init_emit_regs): Likewise.
10034
10035 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10036
10037         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
10038         (MEM_OFFSET): Change from returning an rtx to returning a
10039         HOST_WIDE_INT.
10040         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10041         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10042         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10043         (clear_mem_offset): Declare.
10044         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10045         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10046         MEM_OFFSET to get a HOST_WIDE_INT offset.
10047         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
10048         (adjust_offset_for_component_ref): Take a bool "known_p"
10049         parameter and a HOST_WIDE_INT "offset" parameter.
10050         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10051         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10052         than an rtx.  Use clear_mem_offset to clear the offset.
10053         * cfgcleanup.c (merge_memattrs): Likewise.
10054         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10055         * function.c (assign_parm_find_stack_rtl): Likewise.
10056         (assign_parm_setup_stack): Likewise.
10057         * print-rtl.c (print_rtx): Likewise.
10058         * reload.c (find_reloads_subreg_address): Likewise.
10059         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10060         * var-tracking.c (INT_MEM_OFFSET): Likewise.
10061         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10062         (get_mem_align_offset): Likewise.
10063         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10064         (clear_mem_offset): New function.
10065         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10066         offset rather than an rtx.  Assume both the expressio and offset
10067         are available.
10068         (r10k_needs_protection_p_1): Update accordingly, checking the
10069         expression and offset availability here instead.
10070
10071 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10072
10073         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10074         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10075         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10076         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10077         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10078         (clear_mem_size): Declare.
10079         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10080         (clear_mem_size): New function.
10081         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10082         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10083         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
10084         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
10085         to clear the size.
10086         (nonoverlapping_memrefs_p): Likewise.
10087         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10088         (expand_builtin_init_trampoline): Likewise.
10089         * calls.c (compute_argument_addresses): Likewise.
10090         * cfgcleanup.c (merge_memattrs): Likewise.
10091         * dce.c (find_call_stack_args): Likewise.
10092         * dse.c (record_store, scan_insn): Likewise.
10093         * dwarf2out.c (dw_sra_loc_expr): Likewise.
10094         * expr.c (emit_block_move_hints): Likewise.
10095         * function.c (assign_parm_find_stack_rtl): Likewise.
10096         * print-rtl.c (print_rtx): Likewise.
10097         * reload.c (find_reloads_subreg_address): Likewise.
10098         * rtlanal.c (may_trap_p_1): Likewise.
10099         * var-tracking.c (track_expr_p): Likewise.
10100         * varasm.c (assemble_trampoline_template): Likewise.
10101         * config/arm/arm.c (arm_print_operand): Likewise.
10102         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10103         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10104         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10105         (expand_constant_setmem_prologue): Likewise.
10106         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10107         * config/rs6000/rs6000.c (expand_block_move): Likewise.
10108         (adjacent_mem_locations): Likewise.
10109         * config/s390/s390.c (s390_expand_setmem): Likewise.
10110         (s390_expand_insv): Likewise.
10111         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10112         (*extendqi<mode>2_short_displ): Likewise.
10113         * config/sh/sh.c (expand_block_move): Likewise.
10114         * config/sh/sh.md (extv, extzv): Likewise.
10115
10116 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10117
10118         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10119         (mem_attrs_htab_eq): ...here.
10120         (find_mem_attrs): Replace with...
10121         (set_mem_attrs): ...this function.  Take a mem_attrs structure
10122         rather than individual fields.
10123         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10124         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10125         (set_mem_size, change_address, adjust_address_1, offset_address)
10126         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10127         Update accordingly.
10128
10129 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10130
10131         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10132         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10133         Provide a dummy definition of MEM_ADDR_SPACE for generators.
10134         (target_rtl): Add x_mode_mem_attrs.
10135         (mode_mem_attrs): New macro.
10136         (get_mem_attrs): New function.
10137         * emit-rtl.c (get_mem_attrs): Rename to...
10138         (find_mem_attrs): ...this.
10139         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10140         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10141         (set_mem_size, change_address, adjust_address_1, offset_address)
10142         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10143         Update accordingly.
10144         (init_emit_regs): Initialize mode_mem_attrs.
10145
10146 2011-07-19  Richard Guenther  <rguenther@suse.de>
10147
10148         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10149         TRUTH_*_EXPR handling.
10150         * tree-ssa-operands.c (get_expr_operands): Likewise.
10151         * tree-ssa-pre.c (fully_constant_expression): Likewise.
10152         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10153         Likewise.
10154         (is_and_or_or): Likewise.
10155         (is_norm_cond_subset_of): Likewise.
10156
10157 2011-07-19  Richard Guenther  <rguenther@suse.de>
10158
10159         * tree.h (fold_build_pointer_plus_loc): New helper function.
10160         (fold_build_pointer_plus_hwi_loc): Likewise.
10161         (fold_build_pointer_plus): Define.
10162         (fold_build_pointer_plus_hwi): Likewise.
10163         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10164         (fold_builtin_memory_op): Likewise.
10165         (fold_builtin_stpcpy): Likewise.
10166         (fold_builtin_memchr): Likewise.
10167         (fold_builtin_strstr): Likewise.
10168         (fold_builtin_strchr): Likewise.
10169         (fold_builtin_strrchr): Likewise.
10170         (fold_builtin_strpbrk): Likewise.
10171         (fold_builtin_strcat): Likewise.
10172         (expand_builtin_memory_chk): Likewise.
10173         (fold_builtin_memory_chk): Likewise.
10174         * c-typeck.c (build_unary_op): Likewise.
10175         * cgraphunit.c (thunk_adjust): Likewise.
10176         * fold-const.c (build_range_check): Likewise.
10177         (fold_binary_loc): Likewise.
10178         * omp-low.c (extract_omp_for_data): Likewise.
10179         (expand_omp_for_generic): Likewise.
10180         (expand_omp_for_static_nochunk): Likewise.
10181         (expand_omp_for_static_chunk): Likewise.
10182         * tree-affine.c (add_elt_to_tree): Likewise.
10183         * tree-data-ref.c (split_constant_offset_1): Likewise.
10184         * tree-loop-distribution.c (generate_memset_zero): Likewise.
10185         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10186         * tree-predcom.c (ref_at_iteration): Likewise.
10187         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10188         (add_to_parts): Likewise.
10189         (create_mem_ref): Likewise.
10190         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10191         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10192         (number_of_iterations_le): Likewise.
10193         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10194         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10195         (vect_create_addr_base_for_vector_ref): Likewise.
10196         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10197         (vect_create_cond_for_alias_checks): Likewise.
10198         * tree-vrp.c (extract_range_from_assert): Likewise.
10199         * config/alpha/alpha.c (alpha_va_start): Likewise.
10200         (alpha_gimplify_va_arg_1): Likewise.
10201         * config/i386/i386.c (ix86_va_start): Likewise.
10202         (ix86_gimplify_va_arg): Likewise.
10203         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10204         * config/mep/mep.c (mep_expand_va_start): Likewise.
10205         (mep_gimplify_va_arg_expr): Likewise.
10206         * config/mips/mips.c (mips_va_start): Likewise.
10207         (mips_gimplify_va_arg_expr): Likewise.
10208         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10209         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10210         (rs6000_gimplify_va_arg): Likewise.
10211         * config/s390/s390.c (s390_va_start): Likewise.
10212         (s390_gimplify_va_arg): Likewise.
10213         * config/sh/sh.c (sh_va_start): Likewise.
10214         (sh_gimplify_va_arg_expr): Likewise.
10215         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10216         * config/spu/spu.c (spu_va_start): Likewise.
10217         (spu_gimplify_va_arg_expr): Likewise.
10218         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10219         Likewise.
10220         (xstormy16_gimplify_va_arg_expr): Likewise.
10221         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10222         (xtensa_gimplify_va_arg_expr): Likewise.
10223
10224 2011-07-19  Richard Guenther  <rguenther@suse.de>
10225
10226         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10227         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10228         handling.
10229
10230         PR middle-end/18908
10231         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10232         result of BIT_*_EXPR to bitfield precision.
10233
10234 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
10235
10236         PR tree-optimization/49742
10237         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10238         as a potential write.
10239
10240 2011-07-19  Richard Guenther  <rguenther@suse.de>
10241
10242         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10243         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10244         (forward_propagate_comparison): Simplify, remove obsolete code.
10245
10246 2011-07-19  Richard Guenther  <rguenther@suse.de>
10247
10248         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10249         BIT_XOR_EXPR, same as the RTL expander does.
10250         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10251         (verify_gimple_assign_unary): Likewise.
10252         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10253         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10254         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10255
10256 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
10257
10258         PR tree-optimization/49768
10259         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10260         if offset is smaller than bitoffset, but offset+size is bigger
10261         than bitoffset.
10262
10263 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
10264
10265         PR tree-optimization/49771
10266         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10267         zero step, set segment length to the size of the data-ref's type.
10268
10269 2011-07-18  Martin Jambor  <mjambor@suse.cz>
10270
10271         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10272         comments.
10273         (ipcp_values_pool): Declare.
10274         (ipcp_sources_pool): Likewise.
10275         (ipcp_lattice): Changed to forward declaration.
10276         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10277         cannot_devirtualize.
10278         (ipa_node_params): New fields descriptors, lattices, known_vals,
10279         clone_for_all_contexts and node dead, removed fields params and
10280         count_scale.
10281         (ipa_set_param_count): Removed.
10282         (ipa_get_param_count): Made to work with descriptors vector.
10283         (ipa_get_param): Updated.
10284         (ipa_param_cannot_devirtualize_p): Removed.
10285         (ipa_param_types_vec_empty): Likewise.
10286         (ipa_set_param_used): New function.
10287         (ipa_get_param_used): Updated to use descriptors vector.
10288         (ipa_func_list): Removed.
10289         (ipa_init_func_list): Removed declaration.
10290         (ipa_push_func_to_list_1): Likewise.
10291         (ipa_pop_func_from_list): Likewise.
10292         (ipa_push_func_to_list): Removed.
10293         (ipa_lattice_from_jfunc): Remove declaration.
10294         (ipa_get_jf_pass_through_result): Declare.
10295         (ipa_get_jf_ancestor_result): Likewise.
10296         (ipa_value_from_jfunc): Likewise.
10297         (ipa_get_lattice): Update.
10298         (ipa_lat_is_single_const): New function.
10299         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10300         (ipa_init_func_list): Likewise.
10301         (ipa_pop_func_from_list): Likewise.
10302         (ipa_get_param_decl_index): Fix coding style.
10303         (count_formal_params): Removed.
10304         (count_formal_params_1): Renamed to count_formal_params.
10305         (ipa_populate_param_decls): Update to use descriptors vector.
10306         (ipa_initialize_node_params): Likewise.
10307         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10308         (ipa_analyze_params_uses): Likewise.
10309         (ipa_free_node_params_substructures): Likewise and free also lattices
10310         and known values.
10311         (duplicate_array): Removed.
10312         (ipa_edge_duplication_hook): Add the new edge to the list of edge
10313         clones.
10314         (ipa_node_duplication_hook): Update to use new lattices.
10315         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10316         (ipa_free_all_structures_after_iinln): Likewise.
10317         (ipa_write_node_info): Update to use new lattices.
10318         (ipa_read_node_info): Likewise.
10319         (ipa_get_jf_pass_through_result): New function.
10320         (ipa_get_jf_ancestor_result): Likewise.
10321         (ipa_value_from_jfunc): Likewise.
10322         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10323         * ipa-cp.c: Reimplemented.
10324         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10325         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10326         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10327         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10328         * doc/invoke.texi (devirt-type-list-size): Removed description.
10329         (ipa-cp-value-list-size): Added description.
10330
10331 2011-07-18  Richard Henderson  <rth@redhat.com>
10332
10333         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10334         before calling create_basic_block.
10335
10336 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
10337
10338         PR middle-end/49675
10339         * tree.c (build_common_builtin_nodes): Register
10340         __builtin_return_address, __cyg_profile_func_enter
10341         and __cyg_profile_func_exit.
10342
10343 2011-07-18  Richard Henderson  <rth@redhat.com>
10344
10345         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10346         (add_labels_and_missing_jumps): ... here.
10347         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10348
10349 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
10350
10351         PR target/47744
10352         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10353         of DImode hard registers in PLUS address chains.
10354
10355 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10356
10357         PR bootstrap/49769
10358         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10359         (alpha*-*-freebsd*): Likewise.
10360         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10361         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10362         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10363         crtprec80.o, crtfastmath.o to extra_parts for all targets.
10364         (ia64*-*-elf*): Remove extra_parts.
10365         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10366         (sparc64-*-linux*): Likewise.
10367         (sparc64-*-freebsd*): Likewise.
10368
10369         Revert:
10370         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10371         (ia64*-*-linux*): Likewise.
10372         (mips64*-*-linux*): Likewise.
10373         (mips*-*-linux*): Likewise.
10374
10375 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
10376
10377         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10378
10379 2011-07-18  Richard Guenther  <rguenther@suse.de>
10380
10381         * gimplify.c (gimplify_expr): Use input_location, not saved_location
10382         when building new trees.
10383
10384 2011-07-18  Richard Guenther  <rguenther@suse.de>
10385
10386         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10387         expansion result to bitfield precision if required.
10388
10389 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10390
10391         * config.gcc (i[3456x]86-*-netware*): Remove.
10392
10393         * gthr-nks.h: Remove.
10394         * configure.ac (enable_threads): Remove nks.
10395         * configure: Regenerate.
10396
10397         * config/i386/i386.c (ix86_encode_section_info): Remove netware
10398         reference.
10399         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10400         <netware.h> reference.
10401
10402         * config/i386/netware-libgcc.c,
10403         gcc/config/i386/netware-libgcc.def,
10404         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10405         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10406         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10407         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10408
10409         * doc/extend.texi (Function Attributes,
10410         callee_pop_aggregate_return): Remove i?86-netware reference.
10411         * doc/install.texi (Configuration, --enable-threads): Remove nks.
10412
10413 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10414
10415         PR target/49746
10416         Revert:
10417         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10418
10419         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10420         patterns.
10421
10422 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
10423
10424         PR middle-end/49732
10425         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10426
10427 2011-07-16  Matthias Klose  <doko@ubuntu.com>
10428
10429         * doc/install.texi: Document --enable-static-libjava.
10430
10431 2011-07-15  Richard Henderson  <rth@redhat.com>
10432
10433         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10434         Replace all three arguments by returning a VEC of edges.
10435         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10436         pointers and counts.
10437         (fix_edges_for_rarely_executed_code): Merge ...
10438         (rest_of_handle_partition_blocks): ... into...
10439         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
10440         any work was performed.
10441         (pass_partition_blocks): Clear todo_flags_finish.
10442
10443 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
10444             Jakub Jelinek  <jakub@redhat.com>
10445             Jonathan Wakely  <jwakely.gcc@gmail.com>
10446
10447         PR libstdc++/49745
10448         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10449         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10450
10451 2011-07-15  Jason Merrill  <jason@redhat.com>
10452
10453         PR testsuite/49741
10454         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10455         rather than --tool_opts.
10456
10457 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
10458
10459         * doc/plugins.texi (Building GCC plugins): gengtype needs its
10460         corresponding gtype.state.
10461
10462 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10463
10464         PR target/49723
10465         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10466
10467 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10468
10469         PR target/48220
10470         * doc/md.texi (Standard Names): Document window_save.
10471         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10472         expand_debug_expr and expand_debug_source_expr.  If the target has
10473         a window_save instruction, adjust the ENTRY_VALUE_EXP.
10474         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10475         SSA_NAME_VAR is a parameter.
10476         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10477         * var-tracking.c (parm_reg_t): New type and associated vector type.
10478         (windowed_parm_regs): New variable.
10479         (adjust_insn): If the target has a window_save instruction and this
10480         is the instruction, make its effect on parameter registers explicit.
10481         (next_non_note_insn_var_location): New function.
10482         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10483         (vt_add_function_parameter): If the target has a window_save insn,
10484         adjust the incoming RTL and record that in windowed_parm_regs.
10485         (vt_finalize): Free windowed_parm_regs.
10486
10487 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10488
10489         * doc/invoke.texi (C6X Options): New section.
10490         * doc/md.texi (TI C6X family): New section.
10491         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10492         tic6x-*-uclinux.
10493         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10494         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10495         Provide C6X definitions.
10496         * config/c6x/c6x.md: New file.
10497         * config/c6x/constraints.md: New file.
10498         * config/c6x/predicates.md: New file.
10499         * config/c6x/c6x-sched.md.in: New file.
10500         * config/c6x/c6x-sched.md: New file.
10501         * config/c6x/gensched.sh: New file.
10502         * config/c6x/c6x-mult.md.in: New file.
10503         * config/c6x/genmult.sh: New file.
10504         * config/c6x/c6x-mult.md: New file.
10505         * config/c6x/sync.md: New file.
10506         * config/c6x/c6x-protos.h: New file.
10507         * config/c6x/sfp-machine.h: New file.
10508         * config/c6x/c6x.c: New file.
10509         * config/c6x/c6x.h: New file.
10510         * config/c6x/crti.s: New file.
10511         * config/c6x/crtn.s: New file.
10512         * config/c6x/lib1funcs.asm: New file.
10513         * config/c6x/c6x-modes.def: New file.
10514         * config/c6x/genopt.sh: New file.
10515         * config/c6x/c6x.opt: New file.
10516         * config/c6x/c6x-tables.opt: New file.
10517         * config/c6x/c6x-opts.h: New file.
10518         * config/c6x/c6x-isas.def: New file.
10519         * config/c6x/elf.h: New file.
10520         * config/c6x/elf-common.h: New file.
10521         * config/c6x/uclinux-elf.h: New file.
10522         * config/c6x/t-c6x: New file.
10523         * config/c6x/t-c6x-elf: New file.
10524         * config/c6x/t-c6x-uclinux: New file.
10525         * config/c6x/t-c6x-softfp: New file.
10526         * config/c6x/gtd.c: New file.
10527         * config/c6x/gtf.c: New file.
10528         * config/c6x/ltd.c: New file.
10529         * config/c6x/ltf.c: New file.
10530         * config/c6x/ged.c: New file.
10531         * config/c6x/gef.c: New file.
10532         * config/c6x/led.c: New file.
10533         * config/c6x/lef.c: New file.
10534         * config/c6x/eqd.c: New file.
10535         * config/c6x/eqf.c: New file.
10536         * config/c6x/libgcc-c6xeabi.ver: New file.
10537
10538         Revert
10539         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10540         PR rtl-optimization/11320
10541         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10542         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10543         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10544         current_sched_info->compute_jump_reg_dependencies. Record which
10545         registers are used and which registers are set by the jump.
10546         Clear deps->reg_conditional_sets after a barrier.
10547         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10548         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10549         (init_deps): Initialize reg_conditional_sets.
10550         (free_deps): Clear reg_conditional_sets.
10551         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10552         Mark registers live on entry of the fallthrough block and conditionally
10553         set as set by the jump. Mark registers live on entry of non-fallthrough
10554         blocks as used by the jump.
10555         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10556         Mark new parameters as unused.
10557
10558 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
10559
10560         PR tree-opt/49309
10561         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10562         Use fold_build2_loc instead of build2.
10563         Use the correct type for the new tree.
10564
10565 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10566
10567         PR rtl-optimization/11320
10568         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10569         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10570
10571 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10572
10573         PR target/49487
10574         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10575         of REG.
10576         (*rotw<mode>): Use const_int_operand for operand2.
10577         Use match_scatch for operand3.
10578         (*rotb<mode>): Ditto
10579         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10580
10581 2011-07-14  Richard Guenther  <rguenther@suse.de>
10582
10583         PR tree-optimization/49651
10584         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10585         handle dereferences with subvariables.
10586
10587 2011-07-14  Richard Guenther  <rguenther@suse.de>
10588
10589         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10590         (fold_stmt_1): Do it here directly on gimple and as a first thing.
10591
10592 2011-07-14  Richard Guenther  <rguenther@suse.de>
10593
10594         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10595         not bool_var when folding bool_var != 1 or bool_var == 0.
10596
10597 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10598
10599         * haifa-sched.c (schedule_insns): Remove outdated comment.
10600         (schedule_block): When computing a known value for TODO_SPEC,
10601         just set it rather than using logical operations.
10602         (try_ready): Likewise.  Use a local variable rather than a
10603         pointer to TODO_SPEC.  Reorder an if statement to move the
10604         easy case to the then block.
10605         * sched-deps.c (dep_spec_p): New static function.
10606         (update_dep): Use it to decide whether to call
10607         change_spec_dep_to_hard.
10608         (get_back_and_forw_lists): Use it.
10609         (sd_resolve_dep): Likewise.
10610         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10611         (haifa_note_mem_dep): Likewise.
10612         (check_dep): Likewise.
10613         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10614         (sched_free_deps): Free in two passes.
10615
10616 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
10617
10618         PR middle-end/49736
10619         * expr.c (all_zeros_p): Undo bogus part of last change.
10620
10621 2011-07-14  Matthias Klose <doko@ubuntu.com>
10622
10623         * doc/extend.texi (optimize attribute): Fix typo.
10624
10625 2011-07-14  Richard Guenther  <rguenther@suse.de>
10626
10627         * gimplify.c (gimplify_expr): Only do required conversions.
10628
10629 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10630
10631         PR target/43746
10632         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10633         i.e. use default_elf_select_section.
10634         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10635         (READONLY_DATA_SECTION_ASM_OP): Remove.
10636         (TARGET_ASM_NAMED_SECTION): Move from here...
10637         * config/avr/avr.c: ...to here.
10638         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10639         (avr_asm_named_section): Make static.
10640
10641 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10642
10643         PR bootstrap/49739
10644         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10645         and crtfastmath.o for Linux/x86.
10646
10647 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10648
10649         * haifa-sched.c: Include "hashtab.h"
10650         (sched_no_dce): New global variable.
10651         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10652         SHADOW_P): New macros.
10653         (last_clock_var, cycle_issued_insns): Move declarations.
10654         (must_backtrack): New static variable.
10655         (struct delay_pair): New structure.
10656         (delay_htab, delay_htab_i2): New static variables.
10657         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10658         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10659         functions.
10660         (dep_cost_1): If delay pairs exist, try to look up the insns and
10661         use the correct pair delay if we find them.
10662         (rank-for_schedule): Tweak priority for insns that must be scheduled
10663         soon to avoid backtracking.
10664         (queue_insn): Detect conditions which force backtracking.
10665         (ready_add): Likewise.
10666         (struct sched_block_state): Add member shadows_only_p.
10667         (struct haifa_save_data): New structure.
10668         (backtrack_queue): New static variable.
10669         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10670         unschedule_insns_until, restore_last_backtrack_point,
10671         free_topmost_backtrack_point, free_backtrack_queue,
10672         estimate_insn_tick, estimate_shadow_tick): New functions.
10673         (prune_ready_list): New arg shadows_only_p.  All callers changed.
10674         If true, remove everything that isn't SHADOW_P.  Look up delay
10675         pairs and estimate ticks to avoid scheduling the first insn too early.
10676         (verify_shadows): New function.
10677         (schedule_block): Add machinery to enable backtracking.
10678         (sched_init): Take sched_no_dce into account when setting
10679         DF_LR_RUN_DCE.
10680         (free_delay_pairs): New function.
10681         (init_h_i_d): Initialize INSN_EXACT_TICK.
10682         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10683         * sched-deps.c (sd_unresolve_dep): New function.
10684         * sched-int. (struct haifa_sched_info): New fields save_state
10685         and restore_state.
10686         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10687         feeds_backtrack_insn and shadow_p.
10688         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10689         (sched_no_dce): Declare variable.
10690         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10691         sd_unresolve_dep): Declare functions.
10692         * modulo-sched.c (sms_sched_info): Clear the two new fields.
10693         * sched-rgn.c (rgn_const_sched_info): Likewise.
10694         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10695         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10696         (ebb_sched_info): Add them for the two new fields.
10697         (add_deps_for_risky_insns): Call add_delay_dependencies.
10698
10699 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10700
10701         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10702         Rename -mr11.
10703         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10704         (rs6000_call_indirect_aix): Ditto.
10705         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10706         (call_indirect_aix<ptrsize>_internal): Ditto.
10707         (call_indirect_aix<ptrsize>_nor11): Ditto.
10708         (call_indirect_aix<ptrsize>_internal2): Ditto.
10709         (call_value_indirect_aix<ptrsize>): Ditto.
10710         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10711         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10712         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10713         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10714
10715 2011-07-13  Jason Merrill  <jason@redhat.com>
10716
10717         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10718
10719 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10720
10721         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10722         * config/spu/spu.md ("clrsb<mode>2"): New expander.
10723
10724 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
10725
10726         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10727         * configure: Regenerate.
10728
10729 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10730
10731         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10732         (asm_file_start): Remove.
10733         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10734         free_bb_for_insn around code that modifies insns before
10735         restarting df analysis.
10736
10737 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10738
10739         PR target/49541
10740         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
10741         (LINK_SPEC): ... here.
10742
10743 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10744
10745         * haifa-sched.c (struct sched_block_state): New.
10746         (schedule_block): Move some local variables into such a structure.
10747
10748 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10749
10750         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10751         * config/i386/t-crtpc: Remove.
10752         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10753         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10754         tmake_file.
10755         (x86_64-*-darwin*): Likewise.
10756         (i[34567]86-*-linux*): Likewise.
10757         (x86_64-*-linux*): Likewise.
10758
10759         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10760         Handle -mpc32, -mpc64, -mpc80.
10761
10762 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10763
10764         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10765         * config/alpha/t-crtfm: Remove.
10766         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10767         * config/i386/t-crtfm: Remove.
10768         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10769         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10770         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10771         * config/sparc/t-crtfm: Remove.
10772
10773         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10774         (alpha*-*-freebsd*): Likewise.
10775         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10776         (x86_64-*-darwin*): Likewise.
10777         (i[34567]86-*-linux*): Likewise.
10778         (x86_64-*-linux*): Likewise.
10779         (x86_64-*-mingw*): Likewise.
10780         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10781         (ia64*-*-freebsd*): Likewise.
10782         (ia64*-*-linux*): Likewise.
10783         (mips64*-*-linux*): Likewise.
10784         (mips*-*-linux*): Likewise.
10785         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10786         (sparc64-*-linux*): Likewise.
10787         (sparc64-*-freebsd*): Likewise.
10788
10789 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10790
10791         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10792         * config/darwin-crt3.c: Move to ../libgcc/config.
10793         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10794         ($(T)crt3$(objext)): Remove.
10795         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10796         ($(T)crt2$(objext)): Remove.
10797         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10798         (powerpc64-*-darwin*): Likewise.
10799
10800 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10801
10802         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10803
10804         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10805         (addsi_1_zext): This.
10806
10807 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10808
10809         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10810         * doc/tm.texi: Regenerate.
10811         * target.def (mergeable_rodata_prefix): New defhookpod.
10812         * varasm.c (mergeable_string_section, mergeable_constant_section):
10813         Use it. Allocate name with alloca.
10814
10815 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10816
10817         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10818
10819 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10820
10821         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10822         overlap check.
10823
10824 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10825
10826         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
10827         (count_type_elements): Delete.
10828         (complete_ctor_at_level_p): Declare.
10829         * expr.c (flexible_array_member_p): New function, split out from...
10830         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
10831         parameter with for_ctor_p.  When for_ctor_p is true, return the
10832         number of elements that should appear in the top-level constructor,
10833         otherwise return an estimate of the number of scalars.
10834         (categorize_ctor_elements): Replace p_must_clear with p_complete.
10835         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
10836         (complete_ctor_at_level_p): New function, borrowing union logic
10837         from old categorize_ctor_elements_1.
10838         (mostly_zeros_p): Return true if the constructor is not complete.
10839         (all_zeros_p): Update call to categorize_ctor_elements.
10840         * gimplify.c (gimplify_init_constructor): Update call to
10841         categorize_ctor_elements.  Don't call count_type_elements.
10842         Unconditionally prevent clearing for variable-sized types,
10843         otherwise rely on categorize_ctor_elements to detect
10844         incomplete initializers.
10845
10846 2011-07-13  Richard Guenther  <rguenther@suse.de>
10847
10848         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10849         the final type is integral.
10850
10851 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10852
10853         * sched-int.h (struct _dep): Add member cost.
10854         (DEP_COST, UNKNOWN_DEP_COST): New macros.
10855         * sched-deps.c (init_dep_1): Initialize DEP_COST.
10856         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10857         (sched_change_pattern): Reset it for dependent insns.
10858
10859 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10860
10861         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10862         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10863         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10864         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10865         (CRT0_S, MCRT0_S): Remove.
10866         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10867         Remove.
10868         (s-crt0): Remove.
10869         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10870
10871 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10872
10873         * cse.c (insert_with_costs): Put semi-colon after empty loop body
10874         on the next line.
10875         * emit-rtl.c (push_to_sequence): Likewise.
10876         * haifa-sched.c (max_issue): Likewise.
10877         * matrix-reorg.c (add_allocation_site): Likewise.
10878         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10879         * reload.c (alternative_allows_const_pool_ref): Likewise.
10880         * sched-rgn.c (rgn_add_block): Likewise.
10881         (rgn_fix_recovery_cfg): Likewise.
10882         * tree.c (attribute_list_contained): Likewise.
10883
10884 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
10885
10886         * config/i386/i386.c: Tidy processor feature bitmasks.
10887         (m_P4_NOCONA): New.
10888
10889 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
10890
10891         PR rtl-opt/49474
10892         * cprop.c (find_implicit_sets): Correct the condition.
10893
10894 2011-07-12  Richard Henderson  <rth@redhat.com>
10895
10896         PR target/49713
10897         * dwarf2out.h (dwarf_frame_regnum): Remove.
10898         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
10899         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10900         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10901         (execute_dwarf2_frame): Initialize them.
10902         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10903         users of the macros with the variables.
10904         (expand_builtin_dwarf_sp_column): Revert last change.
10905         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10906         result of DWARF_FRAME_REGNUM into a local variable.
10907
10908 2011-07-12  Richard Henderson  <rth@redhat.com>
10909
10910         PR target/49714
10911         * config/i386/i386.c (x86_output_mi_thunk): Use
10912         machopic_indirect_call_target instead of machopic_indirection_name
10913         directly.
10914
10915 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10916             Eric Botcazou  <ebotcazou@adacore.com>
10917
10918         * prefix.h: Wrap up in extern "C" block.
10919
10920 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10921
10922         AMD bdver2 Enablement
10923         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10924         (case ${target}): Add bdver2.
10925         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10926         -march=native recognize bdver2 processors.
10927         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10928         bdver2 def_and_undef
10929         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10930         bdver2 cost table.
10931         (m_BDVER2): New definition.
10932         (m_AMD_MULTIPLE): Includes m_BDVER2.
10933         (initial_ix86_tune_features): Add bdver2 tuning.
10934         (processor_target_table): Add bdver2 entry.
10935         (static const char *const cpu_names): Add bdver2 entry.
10936         (ix86_option_override_internal): Add bdver2 instruction sets.
10937         (ix86_issue_rate): Add bdver2.
10938         (ix86_adjust_cost): Add bdver2.
10939         (has_dispatch): Add bdver2.
10940         * config/i386/i386.h (TARGET_BDVER2): New definition.
10941         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10942         (enum processor_type): Add PROCESSOR_BDVER2.
10943         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10944         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10945         description.
10946
10947 2011-07-12  Richard Henderson  <rth@redhat.com>
10948
10949         PR target/49714
10950         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10951         destination address in memory on some paths.
10952
10953 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10954
10955         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10956         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10957         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10958         * function.c (locate_and_pad_parm): Take it into account.
10959         * target.def (function_arg_round_boundary): New hook.
10960         * targhooks.c (default_function_arg_round_boundary): New function.
10961         * targhooks.h (default_function_arg_round_boundary): Declare.
10962         * doc/tm.texi: Regenerate.
10963
10964 2011-07-12  Richard Guenther  <rguenther@suse.de>
10965
10966         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10967         Do not perform no-op changes.
10968
10969 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10970
10971         * config/arm/predicates.md (neon_struct_operand): Make a normal
10972         predicate.
10973         (neon_struct_or_register_operand): New predicate.
10974         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10975         with neon_struct_or_register_operand.
10976         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10977         neon_struct_operand instead of memory_operand.
10978
10979 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10980
10981         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10982         * cgraph.c (cgraph_get_node_or_alias): Removed.
10983         (change_decl_assembler_name): Changed all calls to
10984         cgraph_get_node_or_alias to a call to cgraph_get_node.
10985         (cgraph_make_decl_local): Likewise.
10986         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10987         * varasm.c (default_binds_local_p_1): Likewise.
10988         (decl_binds_to_current_def_p): Likewise.
10989
10990 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10991
10992         PR tree-optimization/49712
10993         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10994
10995 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
10996
10997         * genautomata.c (add_arc): Return void.  All callers changed.
10998         (make_automaton): Remove dead code.
10999
11000 2011-07-11  Richard Henderson  <rth@redhat.com>
11001
11002         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
11003         (DW_FRAME_POINTER_REGNUM): New.
11004         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
11005         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
11006         (dwf_regno): New.
11007         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
11008         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
11009         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
11010         Use it.
11011         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
11012         * dwarf2out.h (dwarf_frame_regnum): New.
11013         (struct cfa_loc): Document the domain of the reg member.
11014
11015 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
11016
11017         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
11018         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
11019
11020 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
11021
11022         PR debug/49676
11023         * dwarf2out.c (int_shift_loc_descriptor): New function.
11024         (int_loc_descriptor): If shorter, emit i as
11025         (i >> shift), shift, DW_OP_shl for suitable shift value.
11026         Similarly, try to optimize large negative values using
11027         DW_OP_neg of a positive value if shorter.
11028         (size_of_int_shift_loc_descriptor): New function.
11029         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
11030         changes.
11031         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
11032         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
11033         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
11034         is shorter.
11035         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
11036         addend as added DW_OP_plus if it is shorter.
11037
11038 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11039
11040         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11041         (DTORS_SECTION_ASM_OP): Define.
11042
11043 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11044
11045         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11046         * config/t-dfprules: Move to ../libgcc/config.
11047         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11048         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11049         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11050         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11051         Likewise.
11052         (i[34567]86-*-cygwin*): Likewise.
11053         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
11054         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11055         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11056         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11057         D64PBIT_FUNCS, D128PBIT_FUNCS.
11058
11059 2011-07-11  Richard Guenther  <rguenther@suse.de>
11060
11061         * tree-vrp.c (simplify_conversion_using_ranges): Manually
11062         translate the source value-range through the conversion chain.
11063
11064 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
11065
11066         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11067
11068 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11069
11070         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11071         a bi-arch compiler defaulting to 31-bit. In this case:
11072         (tmake_file): Add s390/t-linux64.
11073         * doc/install.texi: Add s390-linux to the list of targets supporting
11074         --enable-targets=all.
11075
11076 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11077             Matthias Klose <doko@debian.org>
11078
11079         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11080         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11081         (tm_file): Add mips/linux64.h.
11082         (tmake_file): Add mips/t-linux64.
11083         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11084         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11085         instead of hardcoded mabi=n32.
11086         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11087         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11088         convention.
11089
11090 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11091
11092         * passes.c (init_optimization_passes): Add invariant motion pass
11093         after induction variable optimization.
11094
11095 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
11096
11097         PR target/39633
11098         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11099         offsets 1..5 set cc0 in a usable way.
11100
11101 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
11102
11103         * tree.h (call_expr_arg): Remove.
11104         (call_expr_argp): Likewise.
11105
11106 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
11107
11108         * config/sparc/sparc.md (save_register_window_1): Rename to...
11109         (window_save): ...this.
11110         * config/sparc/sparc.c (emit_save_register_window): Rename to...
11111         (emit_window_save): ...this.
11112         (sparc_expand_prologue): Adjust to above renaming.
11113
11114 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11115
11116         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11117         of movabs for x32.
11118
11119 2011-07-10  Richard Henderson  <rth@redhat.com>
11120
11121         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11122         run final, instead of emitting text directly.
11123
11124 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11125
11126         * config/i386/i386.c (ix86_option_override_internal): Turn on
11127         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
11128         small PIC models for TARGET_X32.
11129
11130 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
11131
11132         PR target/49684
11133         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11134         $(LIBGCC2_CFLAGS).
11135
11136         PR bootstrap/49680
11137         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11138         stray notes and debug insns by using prev_nonnote_nondebug_insn
11139         instead of PREV_INSN.
11140
11141 2011-07-09  Richard Henderson  <rth@redhat.com>
11142
11143         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11144         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11145         * dwarf2out.c: ... here.
11146         (output_all_cfis): Remove.
11147         (dwarf2out_switch_text_section): Use output_cfis directly.
11148         (size_of_locs): Export.
11149         (output_loc_sequence, output_loc_sequence_raw): Export.
11150         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11151         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11152         output_cfa_loc_raw): Move to ...
11153         * dwarfcfi.c: ... here.
11154         * dwarf2out.h: Update decls.
11155
11156 2011-07-09  Richard Henderson  <rth@redhat.com>
11157
11158         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11159         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11160         * dwarf2cfi.c: ... here.
11161         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11162         (DWARF_ROUND, DWARF_CIE_ID): Remove.
11163         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11164         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11165         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11166
11167 2011-07-09  Richard Henderson  <rth@redhat.com>
11168
11169         * dwarf2cfi.c (cie_return_save): New.
11170         (queue_reg_save): Use compare_reg_or_pc.
11171         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11172         (dwarf2out_frame_debug_expr): Likewise.
11173         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11174         (initial_return_save): Likewise.
11175         (execute_dwarf2_frame): Save and restore initial return save from
11176         the cie to the fde.
11177         * config/mips/mips.c (mips_frame_set): Remove special case for
11178         DWARF_FRAME_RETURN_COLUMN.
11179
11180 2011-07-09  Richard Henderson  <rth@redhat.com>
11181
11182         * dwarf2cfi.c (lookup_cfa): Remove.
11183         (execute_dwarf2_frame): Assert queues are empty on entry.
11184         Setup initial cfa directly, not via lookup_cfa.
11185         Don't clear args_size state here.
11186
11187 2011-07-09  Richard Henderson  <rth@redhat.com>
11188
11189         * dwarf2cfi.c (add_cfi_vec): New.
11190         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
11191         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
11192         (execute_dwarf2_frame): Set add_cfi_vec.
11193
11194 2011-07-09  Richard Henderson  <rth@redhat.com>
11195
11196         * defaults.h (ASM_COMMENT_START): Move here...
11197         * dwarf2asm.c: ... from here.
11198         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11199         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11200         * varasm.c: Likewise.
11201
11202 2011-07-09  Richard Henderson  <rth@redhat.com>
11203
11204         PR debug/49686
11205         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11206         (create_cfi_notes): ... do it here instead.
11207
11208 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
11209
11210         PR debug/49676
11211         * dwarf2out.c (size_of_int_loc_descriptor): New function.
11212         (address_of_int_loc_descriptor): Use it.
11213         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11214
11215 2011-07-09  Richard Henderson  <rth@redhat.com>
11216
11217         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11218         (prologue, epilogue): New.
11219         (return, *rts): New.
11220         (blockage, setd, seti): New.
11221         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11222         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11223         (pdp11_saved_regno): New.
11224         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11225         generate rtl instead of text.
11226         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11227         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
11228         * config/pdp11/pdp11-protos.h: Update.
11229
11230 2011-07-09  Richard Henderson  <rth@redhat.com>
11231
11232         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11233         try to insert an rtl prologue here.
11234         (rs6000_output_function_epilogue): Similarly.
11235         * config/rs6000/rs6000.md (prologue): Emit a barrier to
11236         satisfy !TARGET_SCHED_PROLOG.
11237         (epilogue, sibcall_epilogue): Likewise.
11238
11239 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11240
11241         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11242         (FP_REG_P): Delete.
11243         (IN_OR_GLOBAL_P): Likewise.
11244
11245 2011-07-08  Jason Merrill  <jason@redhat.com>
11246
11247         PR c++/45437
11248         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11249         compound assignment.
11250
11251         * cgraph.c (cgraph_add_to_same_comdat_group): New.
11252         * cgraph.h: Declare it.
11253         * ipa.c (function_and_variable_visibility): Make sure thunks
11254         have the right visibility.
11255
11256 2011-07-08  Richard Henderson  <rth@redhat.com>
11257
11258         PR bootstrap/49680
11259         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11260         any tablejump vector.
11261
11262         PR bootstrap/49680
11263         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11264         end of the prologue.
11265
11266 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
11267
11268         PR target/49621
11269         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11270         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11271         * config/rs6000/vector.md (vector_select_<mode>,
11272         vector_select_<mode>_uns): Change second operand of NE to
11273         CONST0_RTX (<MODE>mode) instead of const0_rtx.
11274         * config/rs6000/altivec.md (*altivec_vsel<mode>,
11275         *altivec_vsel<mode>_uns): Expect second operand of NE to be
11276         zero_constant of the corresponding vector mode.
11277         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11278         Likewise.
11279
11280 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11281
11282         * graphite-dependences.c (build_alias_set_powerset): Remove
11283         continue from loop, add one more assert.
11284
11285 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11286
11287         PR target/46779
11288         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11289         In particular, allow 8-bit values in r28 and r29.
11290         (avr_hard_regno_scratch_ok): Disallow any register that might be
11291         part of the frame pointer.
11292         (avr_hard_regno_rename_ok): Same.
11293         (avr_legitimate_address_p): Don't allow SUBREGs.
11294
11295 2011-07-08  Julian Brown  <julian@codesourcery.com>
11296
11297         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11298         big-endian mode.
11299         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11300         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11301         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11302         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11303         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11304         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11305         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11306         registers in big-endian mode.
11307
11308 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11309
11310         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11311         in terms of another.
11312         (write_attr_value): Write a cast if necessary.
11313
11314         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11315         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11316         (REG_WORDS_BIG_ENDIAN): Document.
11317         * doc/tm.texi: Regenerate.
11318         * reload.c (operands_match_p): Take it into account.
11319         (reload_adjust_reg_for_mode): Likewise.
11320         * rtlanal.c (subreg_get_info): Likewise.
11321
11322 2011-07-08  Richard Guenther  <rguenther@suse.de>
11323
11324         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11325         folding.
11326
11327 2011-07-08  Kai Tietz  <ktietz@redhat.com>
11328
11329         * fold-const.c (fold_truth_andor): Factored out truth_andor
11330         label from fold_binary as function.
11331         (fold_binary_loc): Replace truth_andor lable
11332         by function fold_truth_andor.
11333
11334 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
11335
11336         PR middle-end/49519
11337         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11338         check if address is stored in register. If so - give up.
11339         (check_sibcall_argument_overlap_1): Do not perform check of
11340         overlapping when it is call to address.
11341
11342 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11343
11344         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11345         of magic '31'.
11346
11347 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11348
11349         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11350         GET_MODE_BITSIZE where appropriate.
11351         (widen_leading, expand_parity, expand_ctz, expand_ffs,
11352         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11353         expand_float, expand_fix): Likewise.
11354         * expr.c (convert_move, convert_modes, expand_expr_real_2,
11355         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11356         * stor-layout.c (get_mode_bounds): Likewise.
11357         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11358         Likewise.
11359         * convert.c (convert_to_integer): Likewise.
11360         * expmed.c (expand_shift_1): Likewise.
11361
11362         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11363         a bitsize.
11364
11365         * optabs.c (expand_binop): Tighten conditions for doubleword
11366         expansions.
11367         (widen_bswap): Assert that mode bitsize and precision are the same.
11368         * stor-layout.c (get_best_mode): Skip modes that have lower
11369         precision than bitsize.
11370         * recog.c (simplify_while_replacing): Assert that bitsize and
11371         precision are the same.
11372
11373 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11374
11375         * Makefile.in (LIBGCOV): Remove.
11376         (libgcc.mvars): Remove LIBGCOV.
11377         * libgov.c: Move to ../libgcc.
11378
11379 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11380
11381         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11382
11383 2011-07-08  Martin Jambor  <mjambor@suse.cz>
11384
11385         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11386         is too big for total scalarization.
11387
11388 2011-07-07  Richard Henderson  <rth@redhat.com>
11389
11390         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11391         (DBX_DEBUGGING_INFO): Undef.
11392
11393 2011-07-07  Richard Henderson  <rth@redhat.com>
11394
11395         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
11396         Handle some opcodes specially for debugging.
11397         * print-rtl.c: Include dwarf2out.h
11398         (print_rtx): Handle NOTE_INSN_CFI.
11399         * Makefile.in (print-rtl.o): Update.
11400
11401 2011-07-07  Richard Henderson  <rth@redhat.com>
11402
11403         * tree-pass.h (pass_dwarf2_frame): Declare.
11404         * passes.c (init_optimization_passes): Add it.
11405         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11406         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11407         make static, do not call add_cfis_to_fde.
11408         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11409         dwarf2out_frame_init): Merge into...
11410         (execute_dwarf2_frame): ... here.  New function.
11411         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
11412         saved_do_cfi_asm to a tri-state variable.
11413         (gate_dwarf2_frame, pass_dwarf2_frame): New.
11414         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11415         if it has yet to be done.  Don't call dwarf2cfi_function_init.
11416         * dwarf2out.h, debug.h: Update decls.
11417         * final.c (final_start_function): Don't call
11418         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11419         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11420         * toplev.c (lang_dependent_init): Likewise.
11421
11422 2011-07-07  Richard Henderson  <rth@redhat.com>
11423
11424         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11425         FDE_TABLE_INCREMENT): Replace with...
11426         (fde_vec): ... this, a new vector.
11427         (current_fde): Remove.  Replace all users with cfun->fde.
11428         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11429         (size_of_aranges, dwarf2out_finish): Likewise.
11430         (dwarf2out_alloc_current_fde): Break out from ...
11431         (dwarf2out_begin_prologue): ... here.
11432         (dwarf2out_frame_init): Remove.
11433         * dwarf2cfi.c: Update all users of current_fde.
11434         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11435         * dwarf2out.h: Update decls.
11436         (dw_fde_node): Add fde_index member.
11437         * function.h (struct function): Add fde member.
11438
11439 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11440             Richard Henderson  <rth@redhat.com>
11441
11442         * dwarf2cfi.c (add_cfi): Remove.
11443         (dwarf2out_cfi_label): Remove force argument.  Only generate the
11444         label name.
11445         (add_fde_cfi): Simplify the different code paths.
11446         (add_cie_cfi): New.
11447         (old_cfa, old_cfa_remember): New.
11448         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11449         (last_reg_save_label): Remove.
11450         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11451         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11452         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11453         dwarf2out_frame_debug_cfa_expression,
11454         dwarf2out_frame_debug_cfa_restore,
11455         dwarf2out_frame_debug_cfa_window_save,
11456         dwarf2out_frame_debug_expr): Remove label parameter.
11457         (cfi_label_required_p, add_cfis_to_fde): New.
11458         (dwarf2out_frame_debug_after_prologue): New.
11459         (dwarf2cfi_frame_init): Initialize old_cfa.
11460         (dwarf2out_frame_debug_restore_state): Likewise.
11461         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11462         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11463         * final.c (final_start_function): Call
11464         dwarf2out_frame_debug_after_prologue.
11465
11466 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11467             Richard Henderson  <rth@redhat.com>
11468
11469         * dwarf2cfi.c (cfi_insn): New.
11470         (dwarf2out_cfi_label): Don't emit cfi label here.
11471         (add_fde_cfi): Create a NOTE_INSN_CFI.
11472         (dwarf2out_frame_debug): Setup cfi_insn.
11473         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11474         (dwarf2out_cfi_begin_epilogue): Make static.
11475         (dwarf2out_frame_debug_restore_state): Make static.
11476         * dwarf2out.c (output_cfi_directive): Make static.
11477         (dwarf2out_emit_cfi): New.
11478         * dwarf2out.h: Update.
11479         * final.c (final): Remove CFI notes.
11480         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11481         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11482         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11483         * insn-notes.def (NOTE_INSN_CFI): New.
11484         (NOTE_INSN_CFI_LABEL): New.
11485         * rtl.h (union rtunion_def): Add rt_cfi member.
11486         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11487
11488 2011-07-07  Richard Henderson  <rth@redhat.com>
11489
11490         * dwarf2cfi.c: New file.
11491         * Makefile.in (OBJS): Add it.
11492         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11493         * gengtype.c (open_base_files): Include dwarf2out.h.
11494         * coretypes.h (enum var_init_status): Move from ...
11495         * rtl.h: ... here.
11496         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11497         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11498         expand_builtin_dwarf_sp_column, init_return_column_size,
11499         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11500         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11501         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11502         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11503         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11504         compute_barrier_args_size, dwarf2out_args_size,
11505         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11506         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11507         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11508         queue_reg_save, dwarf2out_flush_queued_reg_saves,
11509         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11510         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11511         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11512         dwarf2out_frame_debug_cfa_expression,
11513         dwarf2out_frame_debug_cfa_restore,
11514         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11515         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11516         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11517         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11518         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11519         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11520         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11521         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11522         dw_loc_descr_node): Move to dwarf2out.h.
11523         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11524         mem_loc_descriptor): Export.
11525         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
11526         (dwarf2out_frame_init): Extract CIE generation code to
11527         dwarf2cfi_frame_init.
11528
11529 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11530
11531         PR target/49660
11532         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11533         MASK_V8PLUS, remove commented out flag and reorder.
11534
11535 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11536
11537         PR c/49644
11538         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11539         one non-complex and one complex argument, call c_save_expr on both
11540         operands.
11541
11542 2011-07-07  Martin Jambor  <mjambor@suse.cz>
11543
11544         PR middle-end/49495
11545         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11546         (verify_cgraph_node): Some functinality moved to
11547         verify_edge_corresponds_to_fndecl, call it.
11548
11549 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11550
11551         * config.gcc (*local*): Remove.
11552         * doc/install-old.texi: Don't mention local configurations.
11553
11554 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11555
11556         PR debug/49522
11557         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11558         referencing debug insns that have been reset.
11559         (dead_debug_insert_before): Don't assert reg is non-NULL,
11560         instead return immediately if it is NULL.
11561
11562 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11563
11564         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11565
11566 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11567
11568         * hw-doloop.c: New file.
11569         * hw-doloop.h: New file.
11570         * Makefile.in (OBJS): Add hw-doloop.o.
11571         (hw-doloop.o): New rule.
11572         ($(obj_out_file)): Add hw-doloop.h dependency.
11573         * config/bfin/bfin.c: Include "hw-doloop.h".
11574         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11575         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11576         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
11577         type changed to hwloop_info.  Return bool, true if the loop was
11578         successfully optimized.  Remove code that was moved to
11579         hw-doloop.c, and adjust other parts.
11580         (hwloop_fail): New static function, containing parts that used
11581         to be in bfin_optimize_loop.
11582         (bfin_discover_loop, bfin_discover_loops, free_loops,
11583         bfin_reorder_loops): Remove.
11584         (hwloop_pattern_reg): New static function.
11585         (bfin_doloop_hooks): New variable.
11586         (bfin_reorg_loops): Remove most code, call reorg_loops.
11587         * config/bfin/bfin.md (doloop_end splitter): Also enable if
11588         loop counter is a memory_operand.
11589
11590 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11591
11592         * config.gcc: Support --with-multilib-list for x86 Linux targets.
11593
11594         * configure.ac: Mention x86-64 for --with-multilib-list.
11595         * configure: Regenerated.
11596
11597         * config/i386/gnu-user64.h (SPEC_64): Support x32.
11598         (SPEC_32): Likewise.
11599         (ASM_SPEC): Likewise.
11600         (LINK_SPEC): Likewise.
11601         (TARGET_THREAD_SSP_OFFSET): Likewise.
11602         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11603         (SPEC_X32): New.
11604
11605         * config/i386/i386.h (TARGET_X32): New.
11606         (TARGET_LP64): New.
11607         (LONG_TYPE_SIZE): Likewise.
11608         (POINTER_SIZE): Likewise.
11609         (POINTERS_EXTEND_UNSIGNED): Likewise.
11610         (OPT_ARCH64): Support x32.
11611         (OPT_ARCH32): Likewise.
11612
11613         * config/i386/i386.opt (mx32): New.
11614
11615         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11616         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11617         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11618         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11619
11620         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11621         (BIONIC_DYNAMIC_LINKERX32): Likewise.
11622         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11623
11624         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11625
11626         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11627
11628         * doc/invoke.texi: Document -mx32.
11629
11630 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11631
11632         * doc/invoke.texi (mwords-little-endian): Deprecate.
11633         * config/arm/arm.opt (mwords-little-endian): Likewise.
11634         * config/arm/arm.c (arm_option_override): Warn about the deprecation
11635         of -mwords-little-endian.
11636
11637 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11638
11639         * reload1.c (choose_reload_regs): Use mode sizes to check whether
11640         an old reload register completely defines the required value.
11641
11642 2011-07-07  Richard Guenther  <rguenther@suse.de>
11643
11644         * fold-const.c (fold_unary_loc): Do not strip sign-changes
11645         for NEGATE_EXPR.
11646
11647 2011-07-07  Richard Guenther  <rguenther@suse.de>
11648
11649         * tree-vrp.c (simplify_conversion_using_ranges): New function.
11650         (simplify_stmt_using_ranges): Call it.
11651
11652 2011-07-07  Kai Tietz  <ktietz@redhat.com>
11653
11654         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11655         (lookup_logical_inverted_value): Likewise.
11656         (simplify_bitwise_binary_1): Likewise.
11657         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11658
11659 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11660
11661         * gcc.c (%[Spec]): Don't document.
11662         (struct spec_list): Update comment.
11663         (do_spec_1): Don't handle %[Spec].
11664         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11665
11666 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11667
11668         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11669         default based on TARGET_ASM_NAMED_SECTION.
11670         * common/common-target.def (have_named_sections): Default to true.
11671         * common/config/default-common.c: Don't include tm.h.
11672         * common/config/picochip/picochip-common.c
11673         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11674         * common/config/m32c/m32c-common.c: Remove.
11675         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11676         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11677         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11678         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11679         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11680         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11681         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11682
11683 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11684
11685         PR middle-end/49640
11686         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11687         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11688
11689 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11690
11691         PR libmudflap/49550
11692         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11693
11694 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11695
11696         PR target/39150
11697         * configure.ac (gcc_cv_as_hidden): Also accept
11698         x86_64-*-solaris2.1[0-9]*.
11699         (gcc_cv_as_cfi_directive): Likewise.
11700         (gcc_cv_as_comdat_group_group): Likewise.
11701         (set_have_as_tls): Likewise.
11702         * configure: Regenerate.
11703         * config.gcc (i[34567]86-*-solaris2*): Also handle
11704         x86_64-*-solaris2.1[0-9]*.
11705         * config.host (i[34567]86-*-solaris2*): Likewise.
11706         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11707         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11708         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11709         (TARGET_LD_EMULATION): Use it.
11710         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11711         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11712         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11713         (ASM_CPU64_DEFAULT_SPEC): Define.
11714         (ASM_CPU_SPEC): Use %(asm_cpu_default).
11715         (ASM_SPEC): Redefine.
11716         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11717         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11718         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11719         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11720         configuration.
11721         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11722
11723 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11724
11725         * config/sol2.h (ASM_SPEC): Split into ...
11726         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11727         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11728         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11729         (ASM_SPEC): Use ASM_SPEC_BASE.
11730         * config/sparc/sol2.h (ASM_SPEC): Redefine.
11731
11732 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
11733
11734         * config/avr/avr.md (*reload_insi): Change predicate #1 to
11735         const_int_operand.  Ditto for peep2 producing this insn.
11736         Add argument to output_reload_insisf call.
11737         (*movsi,*movsf): Add argument to output_movsisf call.
11738         (*reload_insf): New insn and new peep2 to produce it.
11739         * config/avr/avr-protos.h (output_movsisf): Change prototype.
11740         (output_reload_insisf): Change prototype.
11741         * config/avr/avr.c (avr_asm_len): New function.
11742         (output_reload_insisf): Rewrite.
11743         (output_movsisf): Change prototype.  output_reload_insisf for
11744         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
11745         (adjust_insn_length): Add argument to output_movsisf and
11746         output_reload_insisf call.
11747
11748 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11749
11750         * emit-rtl.c (paradoxical_subreg_p): New function.
11751         * rtl.h (paradoxical_subreg_p): Declare.
11752         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11753         apply_distributive_law, simplify_comparison, simplify_set): Use it.
11754         * cse.c (record_jump_cond, cse_insn): Likewise.
11755         * expr.c (force_operand): Likewise.
11756         * rtlanal.c (num_sign_bit_copies1): Likewise.
11757         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11758         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11759         (push_reload): Use precision to check for paradoxical subregs.
11760         * expmed.c (extract_bit_field_1): Likewise.
11761
11762         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11763         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11764         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11765         simplify_set, simplify_logical, expand_compound_operation,
11766         make_extraction, force_to_mode, if_then_else_cond, extended_count,
11767         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11768         record_value_for_reg): Likewise.
11769         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11770         * simplify-rtx. c (simplify_unary_operation_1,
11771         simplify_binary_operation_1, simplify_const_relational_operation):
11772         Likewise.
11773
11774         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11775         instead of GET_MODE_BITSIZE where appropriate.
11776         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11777         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11778         init_num_sign_bit_copies_in_rep): Likewise.
11779         * cse.c (fold_rtx, cse_insn): Likewise.
11780         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11781         * simplify-rtx.c (simplify_unary_operation_1,
11782         simplify_const_unary_operation, simplify_binary_operation_1,
11783         simplify_const_binary_operation, simplify_ternary_operation,
11784         simplify_const_relational_operation, simplify_subreg): Likewise.
11785         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11786         simplify_if_then_else, simplify_set, expand_compound_operation,
11787         expand_field_assignment, make_extraction, if_then_else_cond,
11788         make_compound_operation, force_to_mode, make_field_assignment,
11789         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11790         extended_count, try_widen_shift_mode, simplify_shift_const_1,
11791         simplify_comparison, record_promoted_value, simplify_compare_const,
11792         record_dead_and_set_regs_1): Likewise.
11793
11794         Revert:
11795         * simplify-rtx.c (simplify_const_binary_operation): Use the
11796         shift_truncation_mask hook instead of performing modulo by width.
11797         Compare against mode precision, not bitsize.
11798         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11799         Use shift_truncation_mask instead of constructing the value manually.
11800
11801 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11802
11803         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11804         declaration.
11805         (rs6000_save_toc_in_prologue_p): Ditto.
11806
11807         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11808         up the static chain (r11) during indirect function calls.
11809         (-msave-toc-indirect): New undocumented debug switch.
11810
11811         * config/rs6000/rs6000.c (struct machine_function): Add
11812         save_toc_in_prologue field to note whether the prologue needs to
11813         save the TOC value in the reserved stack location.
11814         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
11815         to save the TOC in the prologue, do so.
11816         (rs6000_trampoline_init): Don't allow creating AIX style
11817         trampolines if -mno-r11 is in effect.
11818         (rs6000_call_indirect_aix): New function to create AIX style
11819         indirect calls, adding support for -mno-r11 to suppress loading
11820         the static chain, and saving the TOC in the prologue instead of
11821         the call body.
11822         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11823         TOC in the prologue.
11824
11825         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11826         register numbers.
11827         (TOC_REGNUM): Ditto.
11828         (STATIC_CHAIN_REGNUM): Ditto.
11829         (ARG_POINTER_REGNUM): Ditto.
11830         (SFP_REGNO): Delete, unused.
11831         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11832         function descriptor offsets.
11833         (TOC_SAVE_OFFSET_64BIT): Ditto.
11834         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11835         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11836         (AIX_FUNC_DESC_SC_32BIT): Ditto.
11837         (AIX_FUNC_DESC_SC_64BIT): Ditto.
11838         (ptrload): New mode attribute for the appropriate load of a pointer.
11839         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11840         (call_indirect_aix64): Ditto.
11841         (call_value_indirect_aix32): Ditto.
11842         (call_value_indirect_aix64): Ditto.
11843         (call_indirect_nonlocal_aix32_internal): Ditto.
11844         (call_indirect_nonlocal_aix32): Ditto.
11845         (call_indirect_nonlocal_aix64_internal): Ditto.
11846         (call_indirect_nonlocal_aix64): Ditto.
11847         (call): Rewrite AIX indirect function calls.  Add support for
11848         eliminating the static chain, and for moving the save of the TOC
11849         to the function prologue.
11850         (call_value): Ditto.
11851         (call_indirect_aix<ptrsize>): Ditto.
11852         (call_indirect_aix<ptrsize>_internal): Ditto.
11853         (call_indirect_aix<ptrsize>_internal2): Ditto.
11854         (call_indirect_aix<ptrsize>_nor11): Ditto.
11855         (call_value_indirect_aix<ptrsize>): Ditto.
11856         (call_value_indirect_aix<ptrsize>_internal): Ditto.
11857         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11858         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11859         (call_nonlocal_aix32): Relocate in the rs6000.md file.
11860         (call_nonlocal_aix64): Ditto.
11861
11862         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11863         -mno-r11 documentation.
11864
11865 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11866
11867         PR other/49658
11868         * doc/extend.texi (Compound Literals): Fix typo.
11869
11870 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
11871
11872         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11873
11874 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
11875
11876         * configure.ac (plugin-version.h): Generate
11877         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11878         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11879         macros.
11880
11881         * configure: Regenerate.
11882
11883         * doc/plugins.texi (Building GCC plugins): Mention
11884         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11885
11886 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11887
11888         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11889         * combine.c (make_extraction, gen_lowpart_or_truncate,
11890         apply_distributive_law, simplify_comparison,
11891         reg_truncated_to_mode, record_truncated_value): Use it.
11892         * cse.c (notreg_cost): Likewise.
11893         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11894         * expr.c (convert_move, convert_modes): Likewise.
11895         * optabs.c (expand_binop, expand_unop): Likewise.
11896         * postreload.c (move2add_last_label): Likewise.
11897         * regmove.c (optimize_reg_copy_3): Likewise.
11898         * rtlhooks.c (gen_lowpart_general): Likewise.
11899         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11900
11901 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11902
11903         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11904
11905 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11906
11907         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11908         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11909         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11910         (simplify_const_unary_operation, simplify_binary_operation_1,
11911         simplify_const_binary_operation, simplify_const_relational_operation):
11912         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11913         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11914         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11915         simplify_shift_const_1, simplify_comparison): Likewise.
11916         * expr.c (convert_modes): Likewise.
11917         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11918         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11919         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11920
11921         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11922
11923 2011-07-06  Richard Guenther  <rguenther@suse.de>
11924
11925         PR tree-optimization/49645
11926         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11927         register variables.
11928         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11929         in type qualification here ...
11930         (copy_reference_ops_from_ref): ... not here.
11931         (vn_reference_lookup_3): ... or here.
11932         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11933         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11934
11935 2011-07-06  Ian Lance Taylor  <iant@google.com>
11936
11937         * doc/install.texi (Configuration): It's
11938         --enable-gnu-indirect-function, not --enable-indirect-function.
11939
11940 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11941
11942         * simplify-rtx.c (simplify_const_binary_operation): Use the
11943         shift_truncation_mask hook instead of performing modulo by width.
11944         Compare against mode precision, not bitsize.
11945         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11946         Use shift_truncation_mask instead of constructing the value manually.
11947
11948 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11949
11950         PR middle-end/47383
11951         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11952         address computation and convert to address_mode if needed.
11953
11954 2011-07-06  Richard Guenther  <rguenther@suse.de>
11955
11956         * tree.c (build_common_tree_nodes_2): Merge with
11957         build_common_tree_nodes.
11958         * tree.h (build_common_tree_nodes): Adjust prototype.
11959         (build_common_tree_nodes_2): Remove.
11960         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11961         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11962
11963 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11964
11965         PR tree-optimization/49618
11966         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11967         t recurse on the decl.
11968         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11969         return true if expr isn't known to be defined in current
11970         TU or some other LTO partition.
11971
11972 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11973
11974         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11975         override CASE_VALUES_THRESHOLD.
11976
11977         * stmt.c (toplevel): Include params.h.
11978         (case_values_threshold): Use the --param case-values-threshold
11979         value if non-zero, otherwise use machine dependent value.
11980         (expand_case): Use case_values_threshold.
11981
11982         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11983
11984         * doc/invoke.texi (--param case-values-threshold): Document.
11985
11986 2011-07-05  Richard Henderson  <rth@redhat.com>
11987
11988         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11989         (dwarf2out_flush_queued_reg_saves): Make static.
11990         (dwarf2out_reg_save): Remove.
11991         (dwarf2out_return_save): Remove.
11992         (dwarf2out_return_reg): Remove.
11993         (dwarf2out_reg_save_reg): Remove.
11994         (dwarf2out_def_cfa): Merge into ...
11995         (dwarf2out_frame_init): ... here.
11996         * dwarf2out.h, tree.h: Remove declarations as necessary.
11997
11998 2011-07-05  Richard Henderson  <rth@redhat.com>
11999
12000         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
12001         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12002         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
12003         the alloc insn.
12004
12005         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
12006         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
12007         (process_epilogue): Don't call dwarf2out_def_cfa.
12008
12009         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
12010         indicate the return address save.
12011         (process_cfa_register): Likewise.
12012
12013         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
12014         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
12015
12016         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
12017         for ar.pfs save at alloc insn.
12018
12019 2011-07-05  Richard Henderson  <rth@redhat.com>
12020
12021         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12022         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12023         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
12024         stack pointer save.
12025         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
12026         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
12027         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
12028         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
12029
12030 2011-07-05  Richard Henderson  <rth@redhat.com>
12031
12032         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
12033         VUNSPEC_* constants here instead of via define_constants.
12034         (VUNSPEC_PEM): New constant.
12035         (procedure_entry_mask): New insn.
12036         (prologue): New expander.
12037         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
12038         (vax_expand_prologue): Rename from vax_output_function_prologue;
12039         emit rtl instead of text.
12040         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12041         (print_operand): Add 'x' prefix.
12042
12043 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12044
12045         PR middle-end/47715
12046         * calls.c (precompute_register_parameters): Promote the function
12047         argument before checking non-legitimate constant.
12048
12049 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12050
12051         PR tree-optimization/47654
12052         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12053         (lst_do_strip_mine_loop): Return an int.
12054         (lst_do_strip_mine): Same.
12055         (scop_do_strip_mine): Same.
12056         (scop_do_block): Loop blocking should strip-mine at least two loops.
12057         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12058         (scop_do_interchange): Same.
12059         * graphite-poly.h (scop_do_interchange): Update declaration.
12060         (scop_do_strip_mine): Same.
12061
12062 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12063
12064         * graphite-clast-to-gimple.c (precision_for_value): Removed.
12065         (precision_for_interval): Removed.
12066         (gcc_type_for_interval): Use mpz_sizeinbase.
12067
12068 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12069
12070         * graphite-ppl.h (value_max): Correct computation of max.
12071
12072 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12073
12074         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12075
12076 2011-07-05  Richard Guenther  <rguenther@suse.de>
12077
12078         * c-decl.c (c_init_decl_processing): Defer building common
12079         tree nodes to c_common_nodes_and_builtins.
12080
12081 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
12082
12083         PR tree-optimization/49580
12084         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12085         the loop's number of iterations.
12086         * tree-parloops.c (transform_to_exit_first_loop): Add the
12087         handling of the loop's number of iterations before the call
12088         to gimple_duplicate_sese_tail.
12089         Insert the stmt caclculating the new rhs of the loop's
12090         condition stmt to the preheader instead of iters_bb.
12091
12092 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12093
12094         PR rtl-optimization/47449
12095         * fwprop.c (forward_propagate_subreg): Don't propagate hard
12096         register nor zero/sign extended hard register.
12097
12098 2011-07-05  Richard Guenther  <rguenther@suse.de>
12099
12100         PR tree-optimization/49518
12101         PR tree-optimization/49628
12102         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12103         irrelevant and invariant data-references.
12104         (vect_analyze_data_ref_access): For invariant loads clear the
12105         group association.
12106
12107 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
12108
12109         PR rtl-optimization/49619
12110         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12111         pass VOIDmode as op0_mode to recursive call, and return temp even
12112         when different from tor, just if it is not IOR of the original
12113         PLUS arguments.
12114
12115         PR rtl-optimization/49472
12116         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12117         negating MULT, negate the second operand instead of first.
12118         (simplify_binary_operation_1) <case MULT>: If one operand is
12119         a NEG and the other is MULT, don't attempt to optimize by negation
12120         of the MULT operand if it only moves the NEG operation around.
12121
12122         PR debug/49602
12123         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12124         get_current_def return value if it can't be trusted to be
12125         the current value of the variable in the current bb.
12126
12127 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
12128
12129         PR target/49600
12130         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12131         general register to memory for !TARGET_INTER_UNIT_MOVES.
12132
12133 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12134
12135         PR target/44643
12136         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12137         instead of TREE_READONLY.
12138
12139 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12140
12141         * doc/extend.texi (AVR Built-in Functions): Update documentation
12142         of __builtin_avr_fmul*.
12143         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12144         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12145         * config/avr/avr.md (fmul): Rename to fmul_insn.
12146         (fmuls): Rename to fmuls_insn.
12147         (fmulsu): Rename to fmulsu_insn.
12148         (fmul,fmuls,fmulsu): New expander.
12149         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12150         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12151         * config/avr/libgcc.S (__fmul): New function.
12152         (__fmuls): New function.
12153         (__fmulsu,__fmulsu_exit): New function.
12154
12155 2011-07-04  Richard Guenther  <rguenther@suse.de>
12156
12157         PR tree-optimization/49615
12158         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12159         basic-block index check.
12160
12161 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12162
12163         * longlong.h (count_leading_zeros, count_trailing_zeros,
12164         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12165         resp. 64.
12166
12167 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
12168
12169         PR tree-optimization/49610
12170         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12171         a basic block.
12172
12173 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12174             Olivier Hainque  <hainque@adacore.com>
12175             Nicolas Setton  <setton@adacore.com>
12176
12177         * tree.h (TYPE_ARTIFICIAL): New flag.
12178         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12179         the DIE of the type if it is artificial.
12180         (gen_array_type_die): Likewise.
12181         (gen_enumeration_type_die): Likewise.
12182         (gen_struct_or_union_type_die): Likewise.
12183         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12184         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12185
12186 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12187
12188         * tree-object-size.c (pass_through_call): Handle
12189         BUILT_IN_ASSUME_ALIGNED.
12190
12191 2011-07-01  Martin Jambor  <mjambor@suse.cz>
12192
12193         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12194
12195 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
12196
12197         PR middle-end/48016
12198         * explow.c (update_nonlocal_goto_save_area): Use proper mode
12199         for stack save area.
12200         * function.c (expand_function_start): Likewise.
12201
12202 2011-07-01  Richard Guenther  <rguenther@suse.de>
12203
12204         PR middle-end/49596
12205         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12206         may have unknown refs.
12207
12208 2011-07-01  Kai Tietz  <ktietz@redhat.com>
12209
12210         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12211
12212 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12213
12214         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12215         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12216         (Specific, mips-sgi-irix6): Likewise.
12217
12218 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12219
12220         PR libmudflap/49549
12221         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12222
12223 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12224
12225         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12226         [idx]= and [idx1 ... idx2]= before initializers if needed for
12227         array initializers.
12228
12229 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
12230
12231         * config.gcc (score-*-elf): Remove score7.o.
12232         * config/score/t-score-elf: Likewise.
12233         * config/score/score.c: Merge score7 to score.c and
12234         remove forwarding functions.
12235         * config/score/score7.c: Deleted.
12236         * config/score/score7.h: Deleted.
12237
12238 2011-07-01  Richard Guenther  <rguenther@suse.de>
12239
12240         PR tree-optimization/49603
12241         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12242
12243 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12244
12245         * tree-sra.c (struct access): Rename total_scalarization to
12246         grp_total_scalarization
12247         (completely_scalarize_var): New function.
12248         (sort_and_splice_var_accesses): Set total_scalarization in the
12249         representative access.
12250         (analyze_access_subtree): Propagate total scalarization accross the
12251         tree, no holes in totally scalarized trees, simplify coverage
12252         computation.
12253         (analyze_all_variable_accesses): Call completely_scalarize_var instead
12254         of completely_scalarize_record.
12255
12256 2011-06-30  Richard Henderson  <rth@redhat.com>
12257
12258         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12259         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12260         * config/i386/i386.c: Don't include dwarf2out.h.
12261         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12262         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12263         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
12264         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12265         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12266
12267 2011-06-30  Richard Henderson  <rth@redhat.com>
12268
12269         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12270         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12271         * final.c (final_scan_insn): Look for it, and invoke
12272         dwarf2out_frame_debug before the insn if found.
12273
12274 2011-06-30  Richard Henderson  <rth@redhat.com>
12275
12276         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12277         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12278
12279 2011-06-30  Richard Henderson  <rth@redhat.com>
12280
12281         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12282         Define a vector of this type.
12283         (regs_saved_in_regs): Use a VEC.
12284         (num_regs_saved_in_regs): Remove.
12285         (compare_reg_or_pc): New.
12286         (record_reg_saved_in_reg): Split out from...
12287         (dwarf2out_flush_queued_reg_saves): ... here.
12288         (clobbers_queued_reg_save): Update for VEC.
12289         (reg_saved_in): Likewise.
12290         (dwarf2out_frame_debug_init): Likewise.
12291         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12292         (dwarf2out_frame_debug_cfa_register): Likewise.
12293
12294 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12295
12296         PR tree-optimization/49572
12297         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12298         type of the RHS instead of that of the LHS for the expression type.
12299
12300 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12301
12302         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12303         unconditionally.
12304
12305 2011-06-30  Richard Guenther  <rguenther@suse.de>
12306
12307         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12308         * tree-ssa-structalias.c (create_variable_info_for): Do not
12309         add initial constraints for non-var-decls.  Properly handle
12310         globals in other ltrans partitions.
12311         (intra_create_variable_infos): Manually create constraints for
12312         the fake no-alias parameter.
12313         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12314         and assert there are no clones.
12315
12316 2011-06-30  Richard Guenther  <rguenther@suse.de>
12317
12318         PR tree-optimization/46787
12319         * tree-data-ref.c (dr_address_invariant_p): Remove.
12320         (find_data_references_in_stmt): Invariant accesses are ok now.
12321         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12322         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12323         invariant loads.
12324
12325 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12326
12327         PR tree-optimization/49094
12328         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12329         (build_accesses_from_assign): Use it.
12330
12331 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12332
12333         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12334         handling of BUILT_IN_ASSUME_ALIGNED.
12335
12336         PR debug/49364
12337         * dwarf2out.c (output_abbrev_section): Don't return early
12338         if abbrev_die_table_in_use is 1.
12339         (dwarf2out_finish): Instead don't call output_abbrev_section
12340         nor emit abbrev_section_label in that case.
12341
12342 2011-06-30  Nick Clifton  <nickc@redhat.com>
12343
12344         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12345         for the V850E.
12346
12347 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12348
12349         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12350         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12351
12352 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
12353
12354         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12355         both pattern and original statements if necessary.
12356         (vect_transform_loop): Likewise.
12357         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12358         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12359         Mark the pattern statement only if the original statement doesn't
12360         have its own uses.
12361         (process_use): Call vect_mark_relevant with additional parameter.
12362         (vect_mark_stmts_to_be_vectorized): Likewise.
12363         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12364         (vect_analyze_stmt): Handle both pattern and original statements
12365         if necessary.
12366         (vect_transform_stmt): Don't store vectorized pattern statement
12367         in the original statement.
12368         (vect_is_simple_use_1): Use related pattern statement only if the
12369         original statement is irrelevant.
12370         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12371
12372 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
12373
12374         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12375         option.
12376         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12377         entry.
12378         (TARGET_AVX128_OPTIMAL): New definition.
12379         * config/i386/i386.c (initial_ix86_tune_features): Initialize
12380         X86_TUNE_AVX128_OPTIMAL entry.
12381         (ix86_option_override_internal): Enable the generation
12382         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12383         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12384         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12385
12386 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12387
12388         PR tree-optimization/49539
12389         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12390         names by means of stmt_references_abnormal_ssa_name.
12391         (associate_plusminus): Call can_propagate_from before propagating
12392         from definition statements.
12393         (ssa_forward_propagate_and_combine): Remove superfluous newline.
12394
12395 2011-06-29  Richard Guenther  <rguenther@suse.de>
12396
12397         * doc/invoke.texi: Document -scev dump modifier.
12398         * tree-pass.h (TDF_SCEV): New dump flag.
12399         * tree-dump.c (dump_option_value_in): Add scev.
12400         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12401         * tree-scalar-evolution.c: Likewise.
12402
12403 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12404
12405         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12406         (cxa_type_match): Correct declaration.
12407         (__gnu_unwind_pr_common): Reconstruct additional indirection
12408         when __cxa_type_match returns succeeded_with_ptr_to_base.
12409
12410 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12411
12412         PR rtl-optimization/49114
12413         * reload.c (struct replacement): Remove SUBREG_LOC member.
12414         (push_reload): Do not set it.
12415         (push_replacement): Likewise.
12416         (subst_reload): Remove dead code.
12417         (copy_replacements): Remove assertion.
12418         (copy_replacements_1): Do not handle SUBREG_LOC.
12419         (move_replacements): Likewise.
12420         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
12421         Detect subregs via recursive descent instead of via SUBREG_LOC.
12422
12423 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12424
12425         * config/avr/avr.c (avr_encode_section_info): Dispatch to
12426         default_encode_section_info.
12427
12428 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
12429
12430         PR tree-optimization/49545
12431         * builtins.c (get_object_alignment_1): Update function comment.
12432         Do not use DECL_ALIGN for functions, but test
12433         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12434         * fold-const.c (get_pointer_modulus_and_residue): Don't check
12435         for functions here.
12436         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12437
12438 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
12439
12440         PR debug/49567
12441         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12442         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12443
12444 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12445
12446         PR target/34734
12447         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12448         about uninitialized data attributed 'progmem' from here...
12449         (avr_encode_section_info): ...to this new function.
12450         (TARGET_ENCODE_SECTION_INFO): New define.
12451         (avr_section_type_flags): For data in ".progmem.data", remove
12452         section flag SECTION_WRITE.
12453
12454 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12455
12456         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12457         _xmulhisi3_exit.
12458         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12459         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
12460         (__umulhisi3): Ditto.
12461         * config/avr/avr.md (mulhisi3): New insn expender.
12462         (umulhisi3): New insn expender.
12463         (*mulhisi3_call): New insn.
12464         (*umulhisi3_call): New insn.
12465
12466 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12467
12468         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12469
12470 2011-06-28  Richard Henderson  <rth@redhat.com>
12471
12472         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
12473         all code and arguments that handled pushes.  Update all callers.
12474
12475 2011-06-28  Richard Henderson  <rth@redhat.com>
12476
12477         * config/arm/arm.c (arm_output_function_prologue): Don't call
12478         thumb1_output_function_prologue.
12479         (arm_expand_prologue): Avoid dead store.
12480         (number_of_first_bit_set): Use ctz_hwi.
12481         (thumb1_emit_multi_reg_push): New.
12482         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12483         to emit the entire prologue as rtl.
12484         (thumb1_output_interwork): Split out from
12485         thumb1_output_function_prologue.
12486         (thumb1_output_function_prologue): Remove.
12487         (arm_attr_length_push_multi): Handle thumb1.
12488         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12489         (prologue_thumb1_interwork): New.
12490         (*push_multi): Allow thumb1; use push_mult_memory_operand.
12491         * config/arm/predicates.md (push_mult_memory_operand): New.
12492
12493 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12494
12495         * config/sparc/sync.md (*stbar): Delete.
12496         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12497
12498 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12499
12500         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12501
12502 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12503
12504         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12505         (TARGET_64BIT_DEFAULT): Define.
12506         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12507         of tm_file.
12508         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12509
12510 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12511
12512         * common.opt (in_lto_p): New Variable entry.
12513         * flags.h (in_lto_p): Move to common.opt.
12514         * gcc.c: Include params.h.
12515         (set_option_handlers): Also use common_handle_option and
12516         target_handle_option.
12517         (main): Call global_init_params, finish_params and init_options_struct.
12518         * opts.c (debug_type_names): Move from toplev.c.
12519         (print_filtered_help): Access quiet_flag through opts pointer.
12520         (common_handle_option): Return early in the driver for some options.
12521         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12522         opts pointer.
12523         * toplev.c (in_lto_p): Move to common.opt.
12524         (debug_type_names): Move to opts.c.
12525         * Makefile.in (OBJS): Remove opts.o.
12526         (OBJS-libcommon-target): Add opts.o.
12527         (gcc.o): Update dependencies.
12528
12529 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12530
12531         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12532
12533 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12534
12535         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12536         with '=' constraint modifier.
12537         (*divdf3_vfp): Likewise.
12538         ("*mulsf3_vfp"): Likewise.
12539         ("*muldf3_vfp"): Likewise.
12540         ("*mulsf3negsf_vfp"): Likewise.
12541         ("*muldf3negdf_vfp"): Likewise.
12542
12543 2011-06-28  Nick Clifton  <nickc@redhat.com>
12544
12545         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12546         relaxation when performing an incremental link.
12547
12548 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12549
12550         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12551         within BB from last to first.
12552
12553 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12554
12555         * genattr-common.c: New.  Based on genattr.c.
12556         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12557         (MOSTLYCLEANFILES): Add insn-attr-common.h.
12558         (opts.o): Update dependencies.
12559         (.PRECIOUS): Add insn-attr-common.h.
12560         (simple_rtl_generated_h): Add insn-attr-common.h.
12561         (build/genattr-common.o): New.
12562         (genprogrtl): Add attr-common.
12563         * genattr.c (main): Include insn-attr-common.h.  Don't generate
12564         definitions of DELAY_SLOTS or INSN_SCHEDULING.
12565         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12566
12567 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
12568
12569         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12570         avr-*-* and avr-*-rtems* targets.
12571
12572         * config/avr/elf.h: New file.
12573         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12574         (TARGET_ASM_SELECT_SECTION): Define.
12575         (INIT_SECTION_ASM_OP): Undefine.
12576         (FINI_SECTION_ASM_OP): Undefine.
12577         (READONLY_DATA_SECTION_ASM_OP): Undefine.
12578         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12579         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12580         * config/avr/avr.h:
12581         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12582         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12583         (MAX_OFILE_ALIGNMENT): Move to elf.h.
12584         (STRING_LIMIT): Move to elf.h.
12585         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12586         (ASM_DECLARE_OBJECT_NAME): Remove.
12587         (ESCAPES): Remove.
12588         (ASM_OUTPUT_SKIP): Remove.
12589         (DWARF2_DEBUGGING_INFO): Remove.
12590         (OBJECT_FORMAT_ELF): Remove.
12591         (USER_LABEL_PREFIX): Remove.
12592         (ASM_OUTPUT_EXTERNAL): Remove.
12593         (ASM_OUTPUT_ASCII): Remove.
12594         (TYPE_ASM_OP): Remove.
12595         (SIZE_ASM_OP): Remove.
12596         (WEAK_ASM_OP): Remove.
12597         (STRING_ASM_OP): Remove.
12598         (SET_ASM_OP): Remove.
12599         (ASM_WEAKEN_LABEL): Remove.
12600         (TYPE_OPERAND_FMT): Remove.
12601         (ASM_DECLARE_FUNCTION_SIZE): Remove.
12602         (ASM_FINISH_DECLARE_OBJECT): Remove.
12603         (NO_DOLLAR_IN_LABEL): Remove.
12604         (ASM_GENERATE_INTERNAL_LABEL): Remove.
12605         (ASM_OUTPUT_CASE_LABEL): Remove.
12606         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12607         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12608         (gas_output_ascii): Remove.
12609         (gas_output_limited_string): Remove.
12610         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12611         * config/avr/avr-protos.h
12612         (gas_output_ascii): Remove prototye.
12613         (gas_output_limited_string): Remove prototype.
12614
12615 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
12616
12617         PR target/48637
12618         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
12619         asm operands.
12620
12621 2011-06-27  Jan Hubicka  <jh@suse.cz>
12622
12623         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12624         node instead of references in node.
12625
12626 2011-06-27  Richard Henderson  <rth@redhat.com>
12627
12628         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12629         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12630         inside ifdef.
12631
12632 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
12633
12634         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12635
12636         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12637         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12638         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12639         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12640         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12641         (evaluate_stmt, execute_fold_all_builtins): Handle
12642         BUILT_IN_ASSUME_ALIGNED.
12643         * tree-ssa-dce.c (propagate_necessity): Likewise.
12644         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12645         call_may_clobber_ref_p_1): Likewise.
12646         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12647         (expand_builtin_assume_aligned): New function.
12648         * doc/extend.texi (__builtin_assume_aligned): Document.
12649
12650         PR debug/49544
12651         * cselib.c (promote_debug_loc): If cselib_preserve_constants
12652         and l has two DEBUG_INSN owned locs instead of just one, adjust
12653         the second location's setting_insn too.
12654
12655 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12656
12657         PR libmudflap/38738
12658         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12659
12660 2011-06-27  Nick Clifton  <nickc@redhat.com>
12661
12662         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12663         bit position of highest bit set into a count of the high zero bits.
12664
12665 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12666
12667         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12668
12669 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12670
12671         PR lto/48492
12672         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12673         to a NULL parent.
12674
12675 2011-06-27  Richard Guenther  <rguenther@suse.de>
12676
12677         PR tree-optimization/49394
12678         * passes.c (execute_one_pass): Restore current_pass after
12679         applying IPA transforms.
12680
12681 2011-06-27  Kai Tietz  <ktietz@redhat.com>
12682
12683         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12684         out of type precision after operation.
12685         (find_bswap): Take for limit value the integer auto-promotion
12686         into account.
12687
12688 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12689
12690         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12691         forward scan as well.
12692
12693 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12694
12695         PR target/44241
12696         * config/vms/vms-protos.h: New file.
12697         * config/vms/vms-crtlmap.map: New file.
12698         * config/vms/vms.c: New file.
12699         * config/vms/make-crtlmap.awk: New file.
12700         * config/vms/vms-crtl.h: File removed.
12701         * config/vms/vms-crtl-64.h: File removed.
12702         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12703         * config/alpha/vms64.h: Do not include vms-crtl-64.h
12704         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12705         clear some builtins on VMS.  Calls vms_patch_builtins.
12706         (avms_asm_output_external): Remove.
12707         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12708         (struct crtl_name_spec): Remove
12709         (DO_CTRL_NAMES): Remove.
12710         * config/ia64/vms.h (struct crtl_name_spec): Remove
12711         (DO_CTRL_NAMES): Remove.
12712         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12713         clear some builtins on VMS.  Calls vms_patch_builtins.
12714         (ia64_asm_output_external): Remove DO_CRTL_NAME.
12715         * config/ia64/vms64.h: Do not include vms-crtl-64.h
12716         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12717
12718 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12719
12720         * config/alpha/alpha.c (alpha_end_function): Always generate .end
12721         directive on VMS.
12722
12723 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12724
12725         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12726         the function receives nonlocal gotos.
12727
12728 2011-06-27  Richard Guenther  <rguenther@suse.de>
12729
12730         PR tree-optimization/49536
12731         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12732         For non-scalar inner types use a scalar type according to
12733         the scalar inner mode.
12734
12735 2011-06-27  Richard Guenther  <rguenther@suse.de>
12736
12737         PR tree-optimization/49365
12738         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12739
12740 2011-06-27  Richard Guenther  <rguenther@suse.de>
12741
12742         PR tree-optimization/49169
12743         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12744         the alignment of function decls.
12745
12746 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
12747
12748         PR target/47997
12749         * config/darwin.c (darwin_mergeable_string_section): Place string
12750         constants in '.cstring' rather than '.const' when CF/NSStrings are
12751         active.
12752
12753 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12754
12755         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12756         (emit_save_register_window): Likewise.
12757         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12758         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
12759         Swap back %o7/%i7 in register naming.
12760
12761 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
12762
12763         PR driver/49371
12764         * config/darwin.c (darwin_override_options): Improve warning when
12765         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12766         is given with fpie/fPIE.
12767         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12768         * config/darwin9.h (PIE_SPEC): New.
12769
12770 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12771
12772         * timevar.c (timevar_print): Increase width for display of timevar
12773         name.
12774
12775 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
12776
12777         PR c++/46400
12778         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12779         instead of TYPE_CHAIN for chain_next for types.
12780
12781 2011-06-24  Richard Henderson  <rth@redhat.com>
12782
12783         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12784         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12785         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12786         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12787         (sparc_flat_expand_prologue): Emit individual instructions
12788         instead of one of the above.
12789
12790 2011-06-24  Easwaran Raman  <eraman@google.com>
12791
12792         PR rtl-optimization/49429
12793         PR target/49454
12794         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
12795         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12796         used to copy y into x.
12797         * calls.c (initialize_argument_information): Mark
12798         an argument addressable if it is passed by invisible reference.
12799         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
12800         if it is passed by reference.
12801
12802 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12803
12804         PR rtl-optimization/49504
12805         * rtlanal.c (nonzero_bits1): Properly handle addition or
12806         subtraction of a pointer in Pmode if pointers extend unsigned.
12807         (num_sign_bit_copies1): Likewise.
12808
12809 2011-06-24  Martin Jambor  <mjambor@suse.cz>
12810
12811         PR tree-optimizations/49516
12812         * tree-sra.c (sra_modify_assign): Choose the safe path for
12813         aggregate copies if we also did scalar replacements.
12814
12815 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12816
12817         PR target/49335
12818         * config/arm/predicates.md (add_operator): New.
12819         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12820
12821 2011-06-24  Andi Kleen  <ak@linux.intel.com>
12822
12823         * tree-sra.c (type_internals_preclude_sra_p): Add msg
12824         parameter. Split up ifs and report reason in *msg.
12825         (reject): Add.
12826         (find_var_candiate): Add msg variable.
12827         Split up ifs and report reason to reject.
12828         (find_param_candidates): Add msg variable.
12829         Pass msg to type_internals_preclude_sra_p.
12830
12831 2011-06-23  Jeff Law  <law@redhat.com>
12832
12833         PR middle-end/48770
12834         * reload.h (reload): Change to return a bool.
12835         * ira.c (ira): If requested by reload, run a fast DCE pass after
12836         reload has completed.  Fix comment typo.
12837         * reload1.c (need_dce): New file scoped static.
12838         (reload): Set reload_completed here.  Return whether or not a DCE
12839         pass after reload is needed.
12840         (delete_dead_insn): Set need_dce as needed.
12841
12842         PR middle-end/49465
12843         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12844         to detect threading through joiner block.  If there was already
12845         an edge to the new target, then do not change the PHI nodes.
12846
12847 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
12848
12849         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12850         get_pointer_alignment to see if base isn't sufficiently aligned.
12851
12852 2011-06-23  Jan Hubicka  <jh@suse.cz>
12853
12854         PR tree-optimize/49373
12855         * tree-pass.h (all_late_ipa_passes): Declare.
12856         * cgraphunit.c (init_lowered_empty_function): Fix properties.
12857         (cgraph_optimize): Execute late passes; remove unreachable funcions
12858         after materialization.
12859         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12860         LTOing.
12861         * passes.c (all_late_ipa_passes): Declare.
12862         (dump_passes, register_pass): Handle late ipa passes.
12863         (init_optimization_passes): Move ipa_pta to late passes; schedule
12864         fixup_cfg at beggining of all_passes.
12865         (apply_ipa_transforms): New function.
12866         (execute_one_pass): When doing simple ipa pass, apply all transforms.
12867
12868 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
12869
12870         * params.c: Include common/common-target.h.  Don't include tm.h.
12871         (lang_independent_params): Move from toplev.c.
12872         (global_init_params): New.
12873         * params.h (global_init_params): Declare.
12874         * target.def (default_params): Move to common-target.def.
12875         * toplev.c (lang_independent_options): Remove.
12876         (lang_independent_params): Move to params.c.
12877         (general_init): Use global_init_params.
12878         * common/common-target.def (option_default_params): Move from
12879         target.def.
12880         * common/config/ia64/ia64-common.c: Include params.h.
12881         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12882         from ia64.c.
12883         * common/config/rs6000/rs6000-common.c: Include params.h.
12884         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12885         from rs6000.c.
12886         * common/config/sh/sh-common.c: Include params.h.
12887         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12888         from sh.c.
12889         * common/config/spu/spu-common.c: Include params.h.
12890         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12891         from spu.c.
12892         * config/ia64/ia64.c (ia64_option_default_params,
12893         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12894         * config/rs6000/rs6000.c (rs6000_option_default_params,
12895         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12896         * config/sh/sh.c (sh_option_default_params,
12897         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12898         * config/spu/spu.c (spu_option_default_params,
12899         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12900         * Makefile.in (OBJS): Remove params.o.
12901         (OBJS-libcommon-target): Add params.o.
12902         (params.o, $(common_out_object_file)): Update dependencies.
12903         * doc/tm.texi: Regenerate.
12904
12905 2011-06-23  Alan Modra  <amodra@gmail.com>
12906
12907         PR bootstrap/49383
12908         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12909         invocation for 2011-06-09 changes.
12910
12911 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12912
12913         PR libgomp/49490
12914         * omp-low.c (expand_omp_for_static_nochunk): Only
12915         use n ceil/ nthreads size for the first n % nthreads threads in the
12916         team instead of all threads except for the last few ones which
12917         get less work or none at all.
12918
12919         PR debug/49496
12920         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12921         uses.
12922
12923 2011-06-22  Richard Guenther  <rguenther@suse.de>
12924
12925         PR tree-optimization/49493
12926         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12927         Refer to the alias target of variables.
12928         (associate_varinfo_to_alias_1): Remove.
12929         (ipa_pta_execute): Do not associate aliases with anything.
12930         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12931         (cgraph_function_node): Likewise.
12932         (cgraph_function_or_thunk_node): Likewise.
12933         (varpool_variable_node): Likewise.
12934
12935 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12936
12937         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12938         * config.gcc (arm*-*-linux*): Default to gnu tls.
12939         (arm*-*-*): Add --with-tls option.
12940         (all_defaults): Add 'tls'.
12941
12942 2011-06-22  Richard Henderson  <rth@redhat.com>
12943
12944         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12945         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12946         (dwarf2out_frame_debug_cfa_window_save): Rename from
12947         dwarf2out_window_save; make static.
12948         * tree.h (dwarf2out_window_save): Don't declare.
12949
12950         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12951         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12952         (emit_save_register_window): Rename from gen_save_register_window;
12953         emit the insn and add REG_CFA_* notes.
12954         (sparc_expand_prologue): Update to match.
12955         * config/sparc/sparc.md (save_register_window_1): Simplify from
12956         save_register_window<P:mode>.
12957
12958 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12959
12960         PR target/49497
12961         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12962         (*lea_general_2_zext): Likewise.
12963         (imul to lea peepholes): Use const359_operand and check
12964         TARGET_PARTIAL_REG_STALL.
12965
12966         * config/i386/predicates.md (const359_operand): New.
12967
12968 2011-06-22  Michael Matz  <matz@suse.de>
12969
12970         * cgraphunit.c (assemble_thunk): Use correct return type.
12971
12972 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12973             Dmitry Melnik  <dm@ispras.ru>
12974
12975         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12976         (neon_output_shift_immediate): Ditto.
12977         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12978         prototype.
12979         (neon_output_shift_immediate): Ditto.
12980         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12981         (vashr<mode>3_imm): New insn pattern.
12982         (vlshr<mode>3_imm): Ditto.
12983         (vashr<mode>3): Modified constraint.
12984         (vlshr<mode>3): Ditto.
12985         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12986         predicate.
12987         (imm_for_neon_rshift_operand): Ditto.
12988         (imm_lshift_or_reg_neon): Ditto.
12989         (imm_rshift_or_reg_neon): Ditto.
12990
12991         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12992
12993 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12994
12995         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12996         builtin calls even if likelyvalue is not CONSTANT.
12997         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12998         Return get_value_for_expr of first operand
12999         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
13000         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13001         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
13002         their non-checking counterparts.
13003         (call_may_clobber_ref_p_1): Likewise.
13004         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
13005         like their non-checking counterparts.
13006         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13007         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
13008         like their non-checking counterparts.
13009         (find_func_clobbers): Likewise.
13010         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
13011         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
13012
13013         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
13014         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
13015         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
13016         of base type reference as argument.
13017         (resolve_addr_in_expr): Likewise.  Fix keep computation.
13018         (convert_descriptor_to_signed): Renamed to...
13019         (convert_descriptor_to_mode): ... this.  For wider types convert to
13020         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
13021         (typed_binop): New function.
13022         (scompare_loc_descriptor, ucompare_loc_descriptor,
13023         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
13024         default to unsigned type instead of signed.
13025
13026         PR debug/47858
13027         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
13028         (gimple_build_debug_source_bind_stat): New prototype.
13029         (gimple_build_debug_source_bind): Define.
13030         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
13031         gimple_debug_source_bind_get_value,
13032         gimple_debug_source_bind_get_value_ptr,
13033         gimple_debug_source_bind_set_var,
13034         gimple_debug_source_bind_set_value): New inlines.
13035         * gimple.c (gimple_build_debug_source_bind_stat): New function.
13036         * gimple-pretty-print.c (dump_gimple_debug): Handle
13037         GIMPLE_DEBUG_SOURCE_BIND.
13038         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13039         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13040         * tree-parloops.c (eliminate_local_variables,
13041         separate_decls_in_region): Likewise.
13042         (separate_decls_in_region_debug): Renamed from
13043         separate_decls_in_region_debug_bind.  Handle
13044         gimple_debug_source_bind_p.
13045         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13046         prototypes.
13047         (DECL_HAS_DEBUG_ARGS_P): Define.
13048         (struct tree_function_decl): Add has_debug_args_flag field.
13049         * tree.c (debug_args_for_decl): New variable.
13050         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13051         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13052         (rewrite_debug_stmt_uses): New function.
13053         (rewrite_stmt): Use it to rewrite debug stmt uses.
13054         * rtl.def (DEBUG_PARAMETER_REF): New.
13055         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13056         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13057         DEBUG_PARAMETER_REF.
13058         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13059         * print-rtl.c (print_rtx): Likewise.
13060         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13061         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13062         debug stmts in the first bb.
13063         * tree-inline.c (remap_ssa_name): If remapping default def
13064         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13065         a source bind debug stmt.
13066         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13067         (maybe_move_debug_stmts_to_successors): Likewise.
13068         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
13069         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13070         debug args vector from old_decl to new_decl.
13071         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13072         or modified parameters, add debug bind stmts before call
13073         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13074         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13075         on DECL_DEBUG_EXPRs from debug args vector.
13076         (expand_debug_source_expr): New function.
13077         (expand_debug_locations): Use it for source bind insns.
13078         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13079         * var-tracking.c (prepare_call_arguments): Add debug args
13080         to call_arguments if any.
13081         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13082         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13083         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13084         (get_ref_die_offset, parameter_ref_descriptor): New functions.
13085         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13086         (gen_subprogram_die): Handle parameters identified by
13087         DEBUG_PARAMETER_REF.
13088
13089 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13090
13091         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13092         * doc/install.texi (Configuration): Document --with-tls.
13093         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13094         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13095         (arm_tls_descseq_addr): New.
13096         (legitimize_tls_address): Add tlsdesc support.
13097         (arm_cannot_copy_insn_p): Check for tlscall.
13098         (arm_emit_tls_decoration): Likewise.
13099         * config/arm/arm.h (TARGET_GNU2_TLS): New.
13100         (OPTION_DEFAULT_SPECS): Add with-tls support.
13101         * config/arm/arm.md (R1_REGNUM): Define.
13102         (tlscall): New.
13103         * config/arm/arm.opt (tls_type): New enumeration type and values.
13104         (mtls-dialect): New switch.
13105         * config/arm/arm-opts.h (enum tls_type): New.
13106
13107 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13108
13109         * attribs.c (register_attribute): Added assert to check that all
13110         attribute specs are registered with a name that is not empty and
13111         does not start with '_'.
13112         (decl_attributes): Avoid the lookup of the "naked" attribute spec
13113         if the function has no attributes.
13114         * tree.c (is_attribute_with_length_p): Removed.
13115         (is_attribute_p): Removed.
13116         (private_is_attribute_p): New.
13117         (private_lookup_attribute): New.
13118         (lookup_attribute): Removed.
13119         (lookup_ident_attribute): New.
13120         (remove_attribute): Require the first argument to be in the form
13121         'text', not '__text__'.  Updated asserts.
13122         (merge_attributes): Use lookup_ident_attributes instead of
13123         lookup_attribute.
13124         (merge_dllimport_decl_attributes): Use remove_attribute.
13125         (attribute_list_contained): Likewise.
13126         (attribute_list_equal): Immediately return 1 if the arguments are
13127         identical pointers.
13128         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
13129         'int'.  Require the first argument to be in the form 'text', not
13130         '__text__'.  Require the second argument to be an identifier.
13131         (lookup_attribute): Made inline.  Require the first argument to be
13132         in the form 'text', not '__text__'.
13133         (private_is_attribute_p, private_lookup_attribute): New.
13134         Updated comments.
13135
13136 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13137
13138         * builtins.c: Add sync_ or SYNC__ to builtin names.
13139         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13140         * omp-low.c: Add sync_ or SYNC__ to builtin names.
13141
13142 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13143
13144         PR target/33049
13145         * config/avr/avr.md (extzv): New expander.
13146         (*extzv): New insn.
13147         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13148         * config/avr/constraints.md (C04): New constraint.
13149         * doc/md.texi (Machine Constraints): Document it.
13150
13151 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13152
13153         PR middle-end/49489
13154         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13155         unsignedp argument instead of 1 for clrsb_optab.
13156         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13157         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
13158         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13159         * optabs.c (widen_leading): Call widen_operand and expand_unop
13160         with 0 as unsignedp argument instead of 1 for clrsb_optab.
13161         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13162
13163 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13164
13165         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13166
13167 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
13168
13169         * gensupport.c (add_define_attr): New static function.
13170         (is_predicable): Allow multi-alternative lists for the "predicable"
13171         attribute.
13172         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13173         (process_one_cond_exec): Call alter_attrs_for_insn.
13174         * doc/md.texi (Defining Attributes): Mention some standard names.
13175         (Conditional Execution): Update documentation for "predicable".
13176
13177         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13178         __builtin_clrsbll): Document.
13179         * doc/rtl.texi (clrsb): New entry.
13180         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
13181         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
13182         (expand_unop): Handle clrsb_optab.
13183         (init_optabs): Initialize it.
13184         * optabs.h (enum optab_index): New entry OTI_clrsb.
13185         (clrsb_optab): Define.
13186         * genopinit.c (optabs): Add an entry for it.
13187         * builtins.c (expand_builtin): Handle clrsb builtin functions.
13188         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13189         BUILT_IN_CLRSBLL): New.
13190         * rtl.def (CLRSB): New code.
13191         * dwarf2out.c (mem_loc_descriptor): Handle it.
13192         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13193         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13194         and popcount.
13195         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13196         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13197         (__ctzDI2): Move declaration.
13198         * config/bfin/bfin.md (clrsbsi2): New expander.
13199         (signbitssi2): Use the CLRSB rtx.
13200         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
13201         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13202
13203 2011-06-21  Richard Guenther  <rguenther@suse.de>
13204
13205         * ipa-inline-transform.c (inline_transform): Fix previous change.
13206
13207 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
13208
13209         PR tree-optimization/49478
13210         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13211         with constant operand.
13212
13213 2011-06-21  Richard Guenther  <rguenther@suse.de>
13214
13215         * ipa-inline-transform.c (inline_transform): Fix typo.
13216
13217 2011-06-21  Richard Guenther  <rguenther@suse.de>
13218
13219         PR tree-optimization/49483
13220         * tree-vect-stmts.c (vectorizable_assignment): Also handle
13221         VIEW_CONVERT_EXPR conversions.
13222
13223 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
13224
13225         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13226         * config/avr/avr-tables.opt: New file (generated).
13227         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13228         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13229         avr-mcus.def.
13230         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13231         (avr_option_override): Don't process -mmcu= argument here.  Set
13232         avr_current_device using avr_mcu_index.
13233         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13234         * config/avr/avr.opt (mmcu=): Use Enum.
13235         * config/avr/t-avr (avr-devices.o): Update dependencies.
13236         ($(srcdir)/config/avr/avr-tables.opt): New.
13237         * target.def (help): Remove.
13238         * doc/tm.texi.in (TARGET_HELP): Remove.
13239         * doc/tm.texi: Regenerate.
13240         * opts.c: Don't include target.h.
13241         (common_handle_option): Don't call targetm.help.
13242         * system.h (TARGET_HELP): Poison.
13243         * Makefile.in (opts.o): Update dependencies.
13244
13245 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13246
13247         * config/usegld.h: New file.
13248         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13249         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13250         (LIB_SPEC): Likewise.  Search /lib.
13251         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13252         (RDYNAMIC_SPEC): Handle GNU ld.
13253         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13254         Define.
13255         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13256         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13257         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13258         (STACK_CHECK_STATIC_BUILTIN): Define.
13259         * config/sol2.opt (compat-bsd): Remove.
13260         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13261         * config/sol2-bi.h: New file.
13262         * config/sol2-gld.h: Remove.
13263         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13264         (NO_DBX_BNSYM_ENSYM): Remove.
13265         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13266         (STACK_CHECK_STATIC_BUILTIN): Remove.
13267         Test USE_GLD instead of TARGET_GNU_LD.
13268         * config/i386/sol2-10.h: Rename to ...
13269         * config/i386/sol2-bi.h .. this.
13270         (SUBTARGET_EXTRA_SPECS): Redefine.
13271         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13272         (MULTILIB_DEFAULTS): Remove.
13273         (DEFAULT_ARCH32_P): Define.
13274         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13275         (ARCH64_SUBDIR): Define.
13276         Test USE_GLD instead of TARGET_GNU_LD.
13277         (I386_EMULATION): Rename to ...
13278         (ARCH32_EMULATION): ... this.
13279         (X86_64_EMULATION): Rename to ...
13280         (ARCH64_EMULATION): ... this.
13281         (TARGET_LD_EMULATION): Remove.
13282         (LINK_ARCH_SPEC): Remove.
13283         * config/i386/sol2-gas.h: Remove.
13284         * config/i386/t-sol2-10: Rename to ...
13285         * config/i386/t-sol2-64: ... this.
13286         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13287         (AS_SPARC64_FLAG): Define.
13288         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13289         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13290         depending on TARGET_CPU_DEFAULT.
13291         (CPP_CPU_SPEC): Redefine.
13292         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13293         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13294         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13295         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13296         ASM_ARCH_DEFAULT_SPEC): Redefine.
13297         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13298         LINK_ARCH_DEFAULT_SPEC.
13299         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13300         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13301         (ARCH64_SUBDIR): Define.
13302         (LINK_ARCH64_SPEC): Redefine.
13303         (CC1_SPEC): Redefine.
13304         (OPTION_DEFAULT_SPECS): Redefine.
13305         (MULTILIB_DEFAULTS): Define.
13306         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13307         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13308         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13309         (NO_DBX_BNSYM_ENSYM): Remove.
13310         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13311         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13312         (TARGET_ASM_NAMED_SECTION): Likewise.
13313         (STACK_CHECK_STATIC_BUILTIN): Remove.
13314         * config/sparc/sol2-bi.h: Remove.
13315         * config/sparc/sol2-gas-bi.h: Remove.
13316         * config/sparc/sol2-gas.h: Remove.
13317         * config/sparc/sol2-gld-bi.h: Remove.
13318         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13319         common parts ...
13320         (*-*-solaris2*): ... here.
13321
13322 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13323
13324         PR other/43564
13325         * ipa-inline.c (can_inline_edge_p): Check
13326         !DECL_DISREGARD_INLINE_LIMITS.
13327
13328 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13329
13330         PR middle-end/49139
13331         * cgraphunit.c (process_function_and_variable_attributes): warn when
13332         always_inline functions that are not inline.
13333         * ipa-inline-transform.c (inline_transform): Always call
13334         optimize_inline.
13335         * tree-inline.c (tree_inlinable_function_p): Use error instead
13336         of sorry.
13337         (expand_call_inline): Likewise.
13338
13339 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13340
13341         * Makefile.in (dg_target_exps): Set.
13342         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13343         instead of 7, try to divide it more evenly.
13344
13345 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
13346
13347         PR target/49089
13348         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13349         (avx256_split_unaligned_store): New definition.
13350         (ix86_option_override_internal): Enable avx256 unaligned load/store
13351         splitting only when avx256_split_unaligned_load/store is set.
13352
13353 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13354
13355         * regrename.c (scan_rtx_reg): Handle the case where we write to an
13356         open chain in a smaller mode without failing the entire block.
13357
13358 2011-06-21  Alan Modra  <amodra@gmail.com>
13359
13360         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13361         CONST high part large-toc address.
13362         (rs6000_tls_referenced_p): Make static.
13363         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13364
13365 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13366
13367         PR target/49385
13368         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13369         one of the operands is a register.
13370
13371 2011-06-20  Kai Tietz  <ktietz@redhat.com>
13372
13373         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13374         operations in combination with binary and.
13375
13376 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13377
13378         * regrename.c (do_replace): Don't update notes.
13379
13380 2011-06-20  Alan Modra  <amodra@gmail.com>
13381
13382         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13383         of toc-relative address in CONST.
13384         (rs6000_delegitimize_address): Recognize changed address.
13385         (rs6000_legitimize_reload_address): Likewise.
13386         (rs6000_emit_move): Don't force these constants to memory.
13387         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13388         toc-relative address in CONST.
13389         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13390         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13391
13392 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13393
13394         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13395         (count_trailing_zeros): Likewise.
13396
13397 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13398
13399         PR other/49325
13400         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13401         .init_array can be used with .ctors on targets.
13402         * configure: Regenerated.
13403
13404 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13405
13406         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13407         if the element type is volatile.
13408
13409 2011-06-18  Jan Hubicka  <jh@suse.cz>
13410
13411         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13412         extra name aliases.
13413         (lto_symtab_resolve_can_prevail_p): Likewise.
13414         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13415         * cgraphbuild.c (record_reference): Remove extra body alias code.
13416         (mark_load): Likewise.
13417         (mark_store): Likewise.
13418         * cgraph.h (varpool_node): Remove extra_name filed;
13419         add alias_of and extraname_alias.
13420         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13421         (varpool_alias_aliased_node): New inline function.
13422         (varpool_variable_node): New function.
13423         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13424         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13425         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13426         (input_varpool_node): Likewise.
13427         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13428         (varpool_externally_visible_p): Remove extra body alias code.
13429         (function_and_variable_visibility): Likewise.
13430         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13431         (ipa_pta_execute): Use it.
13432         * varpool.c (varpool_remove_node): Remove extra name alias code.
13433         (varpool_mark_needed_node): Likewise.
13434         (varpool_analyze_pending_decls): Analyze aliases.
13435         (assemble_aliases): New functoin.
13436         (varpool_assemble_decl): Use it.
13437         (varpool_create_variable_alias): New function.
13438         (varpool_extra_name_alias): Rewrite.
13439         (varpool_for_node_and_aliases): New function.
13440
13441 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
13442
13443         PR target/49411
13444         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13445         last_arg_constant and last argument doesn't match its predicate,
13446         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13447         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13448         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13449         spelling of error message.
13450         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13451         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13452         const_0_to_255_operand instead of const_int_operand.
13453
13454         Revert:
13455         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13456
13457         * config/i386/sse.md (blendbits): Remove mode attribute.
13458         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13459         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13460         Check integer value of operand 3 in insn constraint.
13461
13462 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
13463
13464         PR rtl-optimization/48542
13465         * reload.c (find_equiv_reg): Stop looking when finding a
13466         setjmp-type call.
13467         * reload1.c (reload_as_needed): Invalidate all reload
13468         registers when crossing a setjmp-type call.
13469
13470 2011-06-16  Jeff Law  <law@redhat.com>
13471
13472         * tree-ssa-threadupdate.c (struct redirection_data): New field
13473         intermediate_edge.
13474         (THREAD_TARGET2): Define.
13475         (redirection_data_eq): Also check that the intermediate edge is equal.
13476         (lookup_redirection_data): Drop useless argument.  Extract the
13477         outgoing_edge and intermediate edge from E.  Callers updated.
13478         (copy_phi_args, update_destination_phis): New functions.
13479         (fix_duplicate_block_edges): Likewise.
13480         (create_edge_and_update_destination_phis): Duplicate all the edges
13481         hung off e->aux.  Use copy_phi_args.
13482         (create_duplicates): Use fix_duplicate_block_edges.
13483         (fixup_template_block): Likewise.
13484         (redirect_edges): If necessary, redirect the joiner block's incoming
13485         edge to the duplicate of the joiner block.
13486         (thread_block): Don't muck up loops when threading through a joiner
13487         block.
13488         (thread_through_loop_header): Handle threading through a joiner block.
13489         (mark_threaded_blocks, register_jump_thread): Likewise.
13490         * tree-flow.h (register_jump_thread): Add new argument.  Callers
13491         updated.
13492         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13493         (thread_across_edge): Handle threading through a joiner block.
13494
13495 2011-06-16  Martin Jambor  <mjambor@suse.cz>
13496
13497         PR tree-optimization/49343
13498         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13499         calculate offset, provide 2nd operand for the new COMPONENT_REF.
13500
13501 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
13502
13503         * config/darwin-protos.h (machopic_select_rtx_section): Move to
13504         inside RTX_CODE ifdef.
13505
13506 2011-06-16  Tom de Vries  <tom@codesourcery.com>
13507
13508         PR target/45098
13509         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13510         Disallow NULL pointer for pointer arithmetic.
13511
13512 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13513
13514         PR target/49398
13515         Revert.
13516         2011-06-10  Wei Guozhi  <carrot@google.com>
13517
13518         PR target/45335
13519         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13520         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13521         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13522         related peephole2.
13523         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13524         related peephole2.
13525         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13526         (arm_legitimate_ldrd_p): New prototype.
13527         (arm_output_ldrd): New prototype.
13528         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13529         (arm_legitimate_ldrd_p): New function.
13530         (arm_output_ldrd): New function.
13531
13532 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
13533
13534         PR middle-end/46500
13535         * doc/tm.texi.in: Update Copyright date.
13536         * doc/tm.texi: Regenerate.
13537         * targhooks.c (default_setup_incoming_varargs): Replace
13538         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13539         (default_pretend_outgoing_varargs_named): Likewise.
13540         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13541         (hook_callee_copies_named): Likewise.
13542         (default_function_arg_advance): Likewise.
13543         (default_function_arg): Likewise.
13544         (default_function_incoming_arg): Likewise.
13545         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13546         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13547         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13548         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13549         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13550         * targhooks.h (default_setup_incoming_varargs): Likewise.
13551         (default_pretend_outgoing_varargs_named): Likewise.
13552         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13553         (hook_callee_copies_named): Likewise.
13554         (default_function_arg_advance): Likewise.
13555         (default_function_arg): Likewise.
13556         (default_function_incoming_arg): Likewise.
13557         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13558         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13559         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13560         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13561         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13562         * target.def (pass_by_reference): Likewise.
13563         (setup_incoming_varargs, strict_argument_naming): Likewise.
13564         (pretend_outgoing_varargs_named, callee_copies): Likewise.
13565         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13566         (function_incoming_arg): Likewise.
13567         * target.h: Don't include "tm.h" .
13568         (cumulative_args_t): New typedef.
13569         [GCC_TM_H] (get_cumulative_args): New static inline function.
13570         [GCC_TM_H] (pack_cumulative_args): Likewise.
13571         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13572         argument type with cumulative_args_t.
13573         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13574         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13575         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13576         (frv_arg_partial_bytes, frv_function_arg): Likewise.
13577         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13578         (frv_function_arg_1): Likewise.
13579         * config/s390/s390.c (s390_pass_by_reference): Likewise.
13580         (s390_function_arg_advance, s390_function_arg): Likewise.
13581         * config/m32c/m32c.c (m32c_function_arg): Likewise.
13582         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13583         (m32c_strict_argument_naming): Likewise.
13584         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13585         (spu_function_arg_advance): Likewise.
13586         (spu_setup_incoming_varargs): Likewise.  Make static.
13587         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13588         Remove prototype.
13589         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13590         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13591         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13592         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13593         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13594         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13595         (mep_pass_by_reference, mep_function_arg): Likewise.
13596         (mep_function_arg_advance): Likewise.
13597         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13598         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13599         (m32r_function_arg, m32r_function_arg_advance): Likewise.
13600         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13601         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13602         (ix86_function_arg, ix86_pass_by_reference): Likewise.
13603         (ix86_setup_incoming_varargs): Likewise.
13604         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13605         (sh_strict_argument_naming): Likewise.
13606         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13607         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13608         (sh_function_arg_advance, sh_function_arg): Likewise.
13609         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13610         (pdp11_function_arg_advance): Likewise.
13611         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13612         Likewise.
13613         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13614         * config/avr/avr.c (avr_function_arg): Likewise.
13615         (avr_function_arg_advance): Likewise.
13616         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13617         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13618         (xtensa_function_arg_1): Likewise.
13619         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13620         Likewise.
13621         (xstormy16_function_arg): Likewise.
13622         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13623         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13624         (fr30_function_arg_advance): Likewise.
13625         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13626         (lm32_function_arg, lm32_function_arg_advance): Likewise.
13627         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13628         (moxie_function_arg, moxie_function_arg_advance): Likewise.
13629         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13630         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13631         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13632         (cris_function_arg, cris_function_incoming_arg): Likewise.
13633         (cris_function_arg_advance, cris_function_arg_1): Likewise.
13634         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13635         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13636         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13637         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13638         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13639         (mn10300_arg_partial_bytes): Likewise.
13640         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13641         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13642         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13643         (ia64_function_arg_1): Likewise.
13644         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13645         (m68k_function_arg): Likewise.
13646         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13647         (rs6000_function_arg, setup_incoming_varargs): Likewise.
13648         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13649         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13650         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13651         (picochip_arg_advance): Likewise.
13652         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13653         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13654         (mcore_function_arg_advance): Likewise.
13655         * config/score/score.c (score_pass_by_reference): Likewise.
13656         (score_function_arg_advance): Likewise.
13657         (score_arg_partial_bytes): Likewise.  Make static.
13658         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13659         * config/arm/arm.c (arm_arg_partial_bytes): Replace
13660         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13661         (arm_function_arg, arm_function_arg_advance): Likewise.
13662         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13663         * config/pa/pa.c (pa_pass_by_reference): Likewise.
13664         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13665         (pa_function_arg): Likewise.
13666         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13667         (mips_function_arg, mips_function_arg_advance): Likewise.
13668         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13669         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13670         * config/vax/vax.c (vax_function_arg): Likewise.
13671         (vax_function_arg_advance): Likewise.
13672         * config/h8300/h8300.c (h8300_function_arg): Likewise.
13673         (h8300_function_arg_advance): Likewise.
13674         * config/v850/v850.c (v850_pass_by_reference): Likewise.
13675         (v850_strict_argument_naming, v850_function_arg): Likewise.
13676         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13677         (v850_setup_incoming_varargs): Likewise.
13678         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13679         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13680         (mmix_function_arg, mmix_pass_by_reference): Likewise.
13681         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13682         with const void *.
13683         * config/bfin/bfin.c (setup_incoming_varargs): Replace
13684         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13685         (bfin_function_arg_advance, bfin_function_arg): Likewise.
13686         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13687         * calls.c (emit_call_1): Change type of args_so_far to
13688         cumulative_args_t.  Changed all callers.
13689         (initialize_argument_information): Likewise.
13690         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13691         * dse.c (get_call_args): Likewise.
13692         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13693         * function.c (pass_by_reference, reference_callee_copied): Likewise.
13694         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13695         New member args_so_far_v.  Changed all users.
13696         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13697         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13698         * config/mips/mips.c (mips_output_args_xfer): Likewise.
13699         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13700         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13701         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13702         Likewise.
13703         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13704         m32r_pass_by_reference.
13705
13706 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
13707
13708         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13709         argument to be a VEC of statements.
13710         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13711         assert that pattern statements have to have their vector type set.
13712         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13713         Change the first argument to be a VEC of statements.  Update
13714         documentation.
13715         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13716         (vect_handle_widen_mult_by_const): New function.
13717         (vect_recog_widen_mult_pattern):  Change the first argument to be a
13718         VEC of statements.  Update documentation.  Check that the constant is
13719         INTEGER_CST.  Support multiplication by a constant that fits an
13720         intermediate type - call vect_handle_widen_mult_by_const.
13721         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13722         call.  Handle additional pattern statements if necessary.
13723
13724 2011-06-16  Nick Clifton  <nickc@redhat.com>
13725
13726         PR target/49427
13727         * config.gcc: Set cpu_type to v850 for any V850 architecture.
13728         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13729         md_file, extra_modes, out_file and extra_options are these are all
13730         deduced from cpu_type.
13731
13732 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13733
13734         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13735         truncation mask to 63.
13736
13737 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13738
13739         PR target/49313
13740         PR target/29524
13741         * longlong.h: Add AVR support:
13742         (count_leading_zeros): New macro.
13743         (count_trailing_zeros): New macro.
13744         (COUNT_LEADING_ZEROS_0): New macro.
13745         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13746         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13747         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13748         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13749         (LIB2FUNCS_EXCLUDE): Add _clz.
13750         * config/avr/libgcc.S (XCALL): Move up in file.
13751         (XJMP): New C Macro.
13752         (DEFUN): New asm macro.
13753         (ENDF): New asm macro.
13754         (__ffssi2): New function.
13755         (__ffshi2): New function.
13756         (__loop_ffsqi2): New function.
13757         (__ctzsi2): New function.
13758         (__ctzhi2): New function.
13759         (__clzdi2): New function.
13760         (__clzsi2): New function.
13761         (__clzhi2): New function.
13762         (__paritydi2): New function.
13763         (__paritysi2): New function.
13764         (__parityhi2): New function.
13765         (__parityqi2): New function.
13766         (__popcounthi2): New function.
13767         (__popcountsi2): New function.
13768         (__popcountdi2): New function.
13769         (__popcountqi2): New function.
13770         (__bswapsi2): New function.
13771         (__bswapdi2): New function.
13772         (__ashldi3): New function.
13773         (__ashrdi3): New function.
13774         (__lshrdi3): New function.
13775         Fix suspicous lines.
13776
13777 2011-06-16  Richard Guenther  <rguenther@suse.de>
13778
13779         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13780         the same as x != 0.
13781         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13782         to (bool) X & 1.
13783         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13784         equality compares against zero for the lower bit.
13785
13786 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
13787
13788         PR tree-optimization/49419
13789         * tree-vrp.c (execute_vrp): Call init_range_assertions
13790         before estimate_numbers_of_iterations, call
13791         free_number_of_iterations_estimates before calling
13792         remove_range_assertions.
13793
13794 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13795
13796         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13797         (struct partial_schedule): Add rows_length field.
13798         (verify_partial_schedule): Check rows_length.
13799         (ps_insert_empty_row): Handle rows_length.
13800         (create_partial_schedule): Likewise.
13801         (free_partial_schedule): Likewise.
13802         (reset_partial_schedule): Likewise.
13803         (create_ps_insn): Remove rest_count argument.
13804         (remove_node_from_ps): Update rows_length.
13805         (add_node_to_ps): Update rows_length and call create_ps_insn
13806         without passing row_rest_count.
13807         (rotate_partial_schedule): Update rows_length.
13808
13809 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13810
13811         * ddg.c (add_intra_loop_mem_dep): New function.
13812         (build_intra_loop_deps): Call it.
13813
13814 2011-06-13  Jeff Law  <law@redhat.com>
13815
13816         * df-problems.c (df_lr_local_compute): Manually CSE
13817         PIC_OFFSET_TABLE_REGNUM.
13818         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13819         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13820
13821 2011-06-13  Jan Hubicka  <jh@suse.cz>
13822
13823         * cgraphunit.c (handle_alias_pairs): New function.
13824         (cgraph_finalize_compilation_unit): Use it.
13825         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13826         as externally visible.
13827
13828 2011-06-15  Richard Guenther  <rguenther@suse.de>
13829
13830         * expr.c (expand_expr_real_2): Reduce all integral types to
13831         bitfield precision.
13832         (expand_expr_real_1): Likewise.
13833
13834 2011-06-15  Martin Jambor  <mjambor@suse.cz>
13835
13836         PR tree-optimization/48613
13837         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13838         ipa_node_params_vector is NULL.
13839
13840 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
13841
13842         PR debug/49382
13843         * dwarf2out.c (dw_loc_list_node): Add force field.
13844         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13845         location in the list, even if it is modified before first real insn.
13846         (output_loc_list): Emit empty ranges with force flag set.
13847         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13848
13849 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
13850
13851         PR target/49349
13852         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13853         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
13854         above a fence.  Update comments.
13855         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13856         placed just above it.  Do not allow NULL place_to_insert.
13857
13858 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
13859
13860         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13861         (slpeel_tree_peel_loop_to_edge): Don't call
13862         remove_dead_stmts_from_loop.
13863         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13864         remove irrelevant pattern statements.  For irrelevant statements
13865         check if it is the last statement of a detected pattern, use
13866         corresponding pattern statement instead.
13867         (destroy_loop_vec_info): No need to remove pattern statements,
13868         only free stmt_vec_info.
13869         (vect_transform_loop): For irrelevant statements check if it is
13870         the last statement of a detected pattern, use corresponding
13871         pattern statement instead.
13872         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13873         pattern statements.  Set basic block for the new statement.
13874         (vect_pattern_recog): Update documentation.
13875         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13876         operands of pattern statements.
13877         (vectorizable_call): Fix printing.  In case of a pattern statement
13878         use the lhs of the original statement when creating a dummy
13879         statement to replace the original call.
13880         (vect_analyze_stmt): For irrelevant statements check if it is
13881         the last statement of a detected pattern, use corresponding
13882         pattern statement instead.
13883         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13884         statements use gsi of the original statement.
13885
13886 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13887
13888         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13889         common/common-target-def.h.
13890         * target.def (default_target_flags, handle_option,
13891         supports_split_stack, optimization_table, init_struct,
13892         except_unwind_info, unwind_tables_default, have_named_sections):
13893         Move to common/common-target.def.
13894         * target.h (enum opt_levels, struct default_options): Move to
13895         common/common-target.h.
13896         * targhooks.c (default_except_unwind_info,
13897         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13898         default_target_handle_option, empty_optimization_table): Move to
13899         common/common-targhooks.c.
13900         * targhooks.h (default_except_unwind_info,
13901         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13902         default_target_handle_option, empty_optimization_table): Move to
13903         common/common-targhooks.h.
13904         * common/common-target-def.h: Include common/common-targhooks.h.
13905         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13906         defined.
13907         * common/common-target.def (handle_option, option_init_struct,
13908         option_optimization_table, default_target_flags,
13909         except_unwind_info, supports_split_stack, unwind_tables_default,
13910         have_named_sections): Move from target.def.
13911         (HOOK_PREFIX): Undefine at end of file.
13912         * common/common-target.h: Include input.h.
13913         (enum opt_levels, struct default_options): Move from target.h.
13914         * common/common-targhooks.c, common/common-targhooks.h: New.
13915         * config.gcc (target_has_targetm_common): Default to yes.
13916         (moxie*): Set target_has_targetm_common=no.
13917         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13918         * doc/tm.texi: Regenerate.
13919         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13920         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13921         (GCC_OBJS): Remove vec.o.
13922         (OBJS): Remove hooks.o and vec.o.
13923         (OBJS-libcommon-target): Add vec.o, hooks.o and
13924         common/common-targhooks.o.
13925         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13926         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13927         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13928         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13929         Update dependencies.
13930         (common/common-targhooks.o): New.
13931         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13932         * common/config/pa/pa-common.c: Include more headers.  Take
13933         copyright dates from pa.c.
13934         (pa_option_optimization_table, pa_handle_option,
13935         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13936         TARGET_HANDLE_OPTION): Move from pa.c.
13937         * common/config/alpha/alpha-common.c,
13938         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13939         common/config/bfin/bfin-common.c,
13940         common/config/cris/cris-common.c,
13941         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13942         common/config/h8300/h8300-common.c,
13943         common/config/i386/i386-common.c,
13944         common/config/ia64/ia64-common.c,
13945         common/config/iq2000/iq2000-common.c,
13946         common/config/lm32/lm32-common.c,
13947         common/config/m32c/m32c-common.c,
13948         common/config/m32r/m32r-common.c,
13949         common/config/m68k/m68k-common.c,
13950         common/config/mcore/mcore-common.c,
13951         common/config/mep/mep-common.c,
13952         common/config/microblaze/microblaze-common.c,
13953         common/config/mips/mips-common.c,
13954         common/config/mmix/mmix-common.c,
13955         common/config/mn10300/mn10300-common.c,
13956         common/config/pdp11/pdp11-common.c,
13957         common/config/picochip/picochip-common.c,
13958         common/config/rs6000/rs6000-common.c,
13959         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13960         common/config/score/score-common.c, common/config/sh/sh-common.c,
13961         common/config/sparc/sparc-common.c,
13962         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13963         common/config/vax/vax-common.c,
13964         common/config/xstormy16/xstormy16-common.c,
13965         common/config/xtensa/xtensa-common.c: New.
13966         * config/alpha/alpha.c: Include common/common-target.h.
13967         (alpha_option_optimization_table, alpha_handle_option,
13968         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13969         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13970         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13971         * config/arm/arm.c (arm_option_optimization_table,
13972         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13973         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13974         arm-common.c.
13975         * config/avr/avr.c (avr_option_optimization_table,
13976         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13977         to avr-common.c.
13978         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13979         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13980         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13981         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13982         * config/cris/cris.c (cris_option_optimization_table,
13983         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13984         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13985         cris-common.c.
13986         * config/fr30/fr30.c (fr30_option_optimization_table,
13987         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13988         to fr30-common.c.
13989         * config/frv/frv.c (frv_option_optimization_table,
13990         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13991         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13992         * config/h8300/h8300.c (h8300_option_optimization_table,
13993         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13994         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13995         * config/i386/i386-protos.h (ix86_handle_option): Declare.
13996         * config/i386/i386.c: Include common/common-target.h.
13997         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13998         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13999         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
14000         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
14001         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
14002         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
14003         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
14004         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
14005         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
14006         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
14007         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
14008         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
14009         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
14010         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
14011         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
14012         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
14013         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
14014         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
14015         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
14016         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
14017         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
14018         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
14019         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
14020         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
14021         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
14022         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
14023         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
14024         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
14025         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
14026         ix86_option_optimization_table, ix86_option_init_struct,
14027         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
14028         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14029         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
14030         i386-common.c.
14031         * config/i386/t-i386 (i386.o): Update dependencies.
14032         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
14033         * config/ia64/ia64.c (ia64_option_optimization_table,
14034         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14035         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14036         ia64_handle_option): Move to ia64-common.c.
14037         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
14038         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14039         * config/lm32/lm32.c (lm32_option_optimization_table,
14040         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14041         to lm32-common.c.
14042         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14043         m32c-common.c.
14044         * config/m32r/m32r.c (m32r_option_optimization_table,
14045         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14046         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14047         m32r_handle_option): Move to m32r-common.c.
14048         (m32r_memory_move_cost): Remove comment referring to
14049         TARGET_HANDLE_OPTION.
14050         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14051         Move to m68k-common.c.
14052         * config/mcore/mcore.c (mcore_option_optimization_table,
14053         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14054         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14055         * config/mep/mep.c (mep_option_optimization_table,
14056         mep_handle_option, TARGET_HANDLE_OPTION,
14057         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14058         Move to mep-common.c.
14059         * config/microblaze/microblaze.c
14060         (microblaze_option_optimization_table,
14061         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14062         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14063         * config/mips/mips.c (mips_handle_option,
14064         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14065         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14066         mips-common.c.
14067         * config/mmix/mmix.c (mmix_option_optimization_table,
14068         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14069         Move to mmix-common.c.
14070         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14071         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14072         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14073         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14074         * config/pa/pa.c: Include common/common-target.h.
14075         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14076         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14077         pa_handle_option): Move to pa-common.c.
14078         (pa_option_override): Use targetm_common.except_unwind_info.
14079         (pa_asm_output_mi_thunk, pa_function_section): Use
14080         targetm_common.have_named_sections.
14081         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14082         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14083         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14084         pdp11_handle_option, pdp11_option_init_struct): Move to
14085         pdp11-common.c.
14086         * config/picochip/picochip.c (picochip_option_optimization_table,
14087         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14088         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14089         * config/rs6000/rs6000.c: Include common/common-target.h.
14090         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14091         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14092         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14093         rs6000_handle_option): Move to rs6000-common.c.
14094         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14095         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14096         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14097         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14098         * config/s390/s390.c (processor_flags_table,
14099         s390_option_optimization_table, s390_option_init_struct,
14100         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14101         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14102         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14103         * config/s390/s390.h (processor_flags_table): Declare.
14104         * config/score/score.c (score_option_optimization_table,
14105         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14106         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14107         score_handle_option): Move to score-common.c.
14108         * config/sh/sh.c (sh_option_optimization_table,
14109         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14110         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14111         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14112         * config/sparc/sparc.c: Include common/common-target.h.
14113         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14114         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14115         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14116         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14117         spu_option_init_struct): Move to spu-common.c.
14118         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14119         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14120         * config/v850/v850.c (small_memory_physical_max,
14121         v850_handle_memory_optionn v850_handle_option,
14122         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14123         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14124         v850-common.c.
14125         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14126         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14127         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14128         Move to xtensa-common.c.
14129         * cfglayout.c: Include common/common-target.h.
14130         (fixup_reorder_chain): Use targetm_common.have_named_sections.
14131         * cfgrtl.c: Include common/common-target.h.
14132         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14133         targetm_common.have_named_sections.
14134         * dbxout.c: Include common/common-target.h.
14135         (dbxout_function_end): Use targetm_common.have_named_sections.
14136         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14137         targetm_common.except_unwind_info.
14138         * dwarf2out.c: Include common/common-target.h.
14139         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14140         dwarf2out_begin_prologue, dwarf2out_frame_init,
14141         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14142         targetm_common.except_unwind_info.
14143         * except.c: Include common/common-target.h.
14144         (init_eh, finish_eh_generation,
14145         output_one_function_exception_table): Use
14146         targetm_common.except_unwind_info.
14147         (switch_to_exception_section): Use targetm_common.have_named_sections.
14148         * explow.c: Include common/common-target.h.
14149         * expr.c: Include common/common-target.h.
14150         (build_personality_function): Use targetm_common.except_unwind_info.
14151         * function.c: Include common/common-target.h.
14152         (expand_function_end): Use targetm_common.except_unwind_info.
14153         * haifa-sched.c: Include common/common-target.h.
14154         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14155         * lto-opts.c: Include common/common-target.h instead of target.h.
14156         (lto_reissue_options): Use targetm_common.handle_option.
14157         * opts.c: Include common/common-target.h.
14158         (target_handle_option): Use targetm_common.handle_option.
14159         (init_options_struct): Update comment referring to
14160         targetm.target_option.optimization.  Use
14161         targetm_common.default_target_flags,
14162         targetm_common.unwind_tables_default and
14163         targetm_common.option_init_struct.
14164         (default_options_optimization): Use
14165         targetm_common.option_optimization_table.
14166         (finish_options): Use targetm_common.except_unwind_info,
14167         targetm_common.unwind_tables_default,
14168         targetm_common.have_named_sections and
14169         targetm_common.supports_split_stack.
14170         * toplev.c: Include common/common-target.h.
14171         (process_options): Use targetm_common.have_named_sections.
14172         * tree-tailcall.c: Include common/common-target.h.
14173         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14174         * tree.c: Include common/common-target.h.
14175         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14176         * varasm.c: Include common/common-target.h.
14177         (resolve_unique_section, hot_function_section,
14178         default_function_section): Use targetm_common.have_named_sections.
14179
14180 2011-06-14  Easwaran Raman  <eraman@google.com>
14181
14182         PR rtl-optimization/44194
14183         * dse.c: Include tree-flow.h
14184         (insn_info): Add new field non_frame_wild_read.
14185         (group_info): Add new fields escaped_n and escaped_p.
14186         (kill_on_calls): New variable.
14187         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14188         (dse_step0): Initialize kill_on_calls.
14189         (can_escape): New function.
14190         (set_usage_bits): Add additional parameter; record information
14191         about escaped locations.
14192         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14193         (dse_step2_nospill): Set kill_on_calls based on
14194         group->escaped_n and group->escaped_n.
14195         (add_wild_read): Refactor into...
14196         (reset_active_stores): ... New function, and
14197         (free_read_records): ... New function.
14198         (add_non_frame_wild_read): New function.
14199         (scan_insn): Call add_non_frame_wild_read on non-const calls.
14200         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14201         (dse_step5_nospill): Call scan_reads_nospill for instructions
14202         marked as non_frame_wild_read.
14203         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14204
14205 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
14206
14207         * common/common-target-def.h, common/common-target.def,
14208         common/common-target.h, common/config/default-common.c,
14209         common/config/pa/pa-common.c: New files.
14210         * Makefile.in (common_out_file, common_out_object_file,
14211         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14212         (OBJS-libcommon-target): Include $(common_out_object_file).
14213         (prefix.o): Update dependencies.
14214         ($(common_out_object_file), common/common-target-hooks-def.h,
14215         s-common-target-hooks-def-h): New.
14216         (s-tm-texi): Also check timestamp on common-target.def.
14217         (build/genhooks.o): Update dependencies.
14218         * config.gcc (common_out_file, target_has_targetm_common): Define.
14219         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14220         TARGET_ALWAYS_STRIP_DOTDOT.
14221         * configure.ac (common_out_object_file): Define.
14222         (common_out_file, common_out_object_file): Substitute.
14223         (common): Create directory.
14224         * configure: Regenerate.
14225         * doc/tm.texi.in (targetm_common): Document.
14226         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14227         * doc/tm.texi: Regenerate.
14228         * genhooks.c (hook_array): Also include common/common-target.def.
14229         * prefix.c (tm.h): Don't include.
14230         (common/common-target.h): Include.
14231         (ALWAYS_STRIP_DOTDOT): Don't define.
14232         (update_path): Use targetm_common.always_strip_dotdot instead of
14233         ALWAYS_STRIP_DOTDOT.
14234         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14235
14236 2011-06-14  David Li  <davidxl@google.com>
14237
14238         * passes.c (execute_function_todo): Remove TODO_dump_func.
14239         (execute_one_pass): Remove TODO_dump_func.
14240         (execute_function_dump): New function.
14241         * tree-vrp.c: Remove TODO_dump_func.
14242         * regrename.c: Remove TODO_dump_func.
14243         * fwprop.c: Remove TODO_dump_func.
14244         * tree-into-ssa.c: Remove TODO_dump_func.
14245         * tree-complex.c: Remove TODO_dump_func.
14246         * tracer.c: Remove TODO_dump_func.
14247         * tree-loop-distribution.c: Remove TODO_dump_func.
14248         * postreload-gcse.c: Remove TODO_dump_func.
14249         * postreload.c: Remove TODO_dump_func.
14250         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14251         * tree-tailcall.c: Remove TODO_dump_func.
14252         * ipa-cp.c: Remove TODO_dump_func.
14253         * final.c: Remove TODO_dump_func.
14254         * tree-emutls.c: Remove TODO_dump_func.
14255         * omp-low.c: Remove TODO_dump_func.
14256         * tree-ssa-dse.c: Remove TODO_dump_func.
14257         * tree-ssa-uncprop.c: Remove TODO_dump_func.
14258         * auto-inc-dec.c: Remove TODO_dump_func.
14259         * reorg.c: Remove TODO_dump_func.
14260         * tree-ssa-copyrename.c: Remove TODO_dump_func.
14261         * tree-ssa-ccp.c: Remove TODO_dump_func.
14262         * compare-elim.c: Remove TODO_dump_func.
14263         * mode-switching.c: Remove TODO_dump_func.
14264         * modulo-sched.c: Remove TODO_dump_func.
14265         * tree-call-cdce.c: Remove TODO_dump_func.
14266         * cse.c: Remove TODO_dump_func.
14267         * web.c: Remove TODO_dump_func.
14268         * tree-stdarg.c: Remove TODO_dump_func.
14269         * lto-streamer-out.c: Remove TODO_dump_func.
14270         * tree-ssa-math-opts.c: Remove TODO_dump_func.
14271         * tree-ssa-dom.c: Remove TODO_dump_func.
14272         * tree-nrv.c: Remove TODO_dump_func.
14273         * loop-init.c: Remove TODO_dump_func.
14274         * gimple-low.c: Remove TODO_dump_func.
14275         * ipa-inline.c: Remove TODO_dump_func.
14276         * tree-ssa-sink.c: Remove TODO_dump_func.
14277         * jump.c: Remove TODO_dump_func.
14278         * ifcvt.c: Remove TODO_dump_func.
14279         * tree-ssa-loop.c: Remove TODO_dump_func.
14280         * recog.c: Remove TODO_dump_func.
14281         * dse.c: Remove TODO_dump_func.
14282         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14283         * matrix-reorg.c: Remove TODO_dump_func.
14284         * tree-eh.c: Remove TODO_dump_func.
14285         * regmove.c: Remove TODO_dump_func.
14286         * function.c: Remove TODO_dump_func.
14287         * tree-vectorizer.c: Remove TODO_dump_func.
14288         * ipa-split.c: Remove TODO_dump_func.
14289         * gcse.c: Remove TODO_dump_func.
14290         * tree-if-conv.c: Remove TODO_dump_func.
14291         * init-regs.c: Remove TODO_dump_func.
14292         * tree-ssa-phiopt.c: Remove TODO_dump_func.
14293         * implicit-zee.c: Remove TODO_dump_func.
14294         * lower-subreg.c: Remove TODO_dump_func.
14295         * bt-load.c: Remove TODO_dump_func.
14296         * tree-dfa.c: Remove TODO_dump_func.
14297         * except.c: Remove TODO_dump_func.
14298         * emit-rtl.c: Remove TODO_dump_func.
14299         * store-motion.c: Remove TODO_dump_func.
14300         * cfgexpand.c: Remove TODO_dump_func.
14301         * tree-cfgcleanup.c: Remove TODO_dump_func.
14302         * cfgcleanup.c: Remove TODO_dump_func.
14303         * tree-ssa-pre.c: Remove TODO_dump_func.
14304         * tree-sra.c: Remove TODO_dump_func.
14305         * tree-mudflap.c: Remove TODO_dump_func.
14306         * tree-ssa-copy.c: Remove TODO_dump_func.
14307         * cfglayout.c: Remove TODO_dump_func.
14308         * tree-ssa-forwprop.c: Remove TODO_dump_func.
14309         * tree-ssa-dce.c: Remove TODO_dump_func.
14310         * ira.c: Remove TODO_dump_func.
14311         * tree-ssa.c: Remove TODO_dump_func.
14312         * integrate.c: Remove TODO_dump_func.
14313         * tree-optimize.c: Remove TODO_dump_func.
14314         * tree-ssa-phiprop.c: Remove TODO_dump_func.
14315         * tree-object-size.c: Remove TODO_dump_func.
14316         * combine.c: Remove TODO_dump_func.
14317         * bb-reorder.c: Remove TODO_dump_func.
14318         * cprop.c: Remove TODO_dump_func.
14319         * var-tracking.c: Remove TODO_dump_func.
14320         * tree-profile.c: Remove TODO_dump_func.
14321         * tree-vect-generic.c: Remove TODO_dump_func.
14322         * reg-stack.c: Remove TODO_dump_func.
14323         * sched-rgn.c: Remove TODO_dump_func.
14324         * tree-ssa-structalias.c: Remove TODO_dump_func.
14325         * tree-switch-conversion.c: Remove TODO_dump_func.
14326         * tree-cfg.c: Remove TODO_dump_func.
14327         * tree-ssa-reassoc.c: Remove TODO_dump_func.
14328         * combine-stack-adj.c: Remove TODO_dump_func.
14329         * dce.c: Remove TODO_dump_func.
14330         * tree-ssanames.c: Remove TODO_dump_func.
14331         * regcprop.c: Remove TODO_dump_func.
14332
14333 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14334
14335         PR middle-end/47364
14336         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14337         and properly handle result not in Pmode.
14338
14339 2011-06-14  Robert Millan  <rmh@gnu.org>
14340
14341         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14342         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14343         `config/linux.h'.
14344
14345         * config/i386/kfreebsd-gnu64.h: New file.
14346         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14347         with `i386/kfreebsd-gnu64.h'.
14348
14349         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14350         (GNU_USER_LINK_EMULATION64): New macros.
14351         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14352         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14353         of hardcoding `elf_i386' and `elf_x86_64'.
14354
14355 2011-06-14  Nick Clifton  <nickc@redhat.com>
14356
14357         PR target/49403
14358         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14359
14360         PR target/49402
14361         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14362
14363 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
14364
14365         PR fortran/49103
14366         * tree.h (DECL_NONSHAREABLE): Define.
14367         (struct tree_decl_common): Change decl_common_unused to
14368         decl_nonshareable_flag.
14369         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14370         Ignore vars with DECL_NONSHAREABLE bit set.
14371         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14372         on stores to automatic aggregate vars.
14373
14374         PR rtl-optimization/49390
14375         Revert:
14376         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
14377
14378         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14379         MEM_ALIAS_SET.
14380
14381 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
14382             Tom de Vries  <tom@codesourcery.com>
14383
14384         PR target/45098
14385         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14386         Document changed semantics.
14387         (max_stmt_executions, max_stmt_executions_int): Declare.
14388         * tree-data-ref.c (estimated_loop_iterations)
14389         (estimated_loop_iterations_int): Move functions...
14390         * tree-ssa-loop-niter.c (estimated_loop_iterations)
14391         (estimated_loop_iterations_int): here.
14392         (record_estimate): Change nb_iterations_upper_bound and
14393         nb_iterations_estimate semantics.
14394         (max_stmt_executions, max_stmt_executions_int): New function.
14395         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14396         (max_stmt_executions_tree): this.
14397         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14398         estimated_loop_iterations_tree.
14399         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14400         max_stmt_executions_int instead of estimated_loop_iterations_int.
14401         * predict.c (predict_loops): Idem.
14402         * tree-parloops.c (parallelize_loops): Idem.
14403         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14404         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14405         (init_omega_for_ddr_1): Idem.
14406         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14407         (loop_prefetch_arrays): Idem
14408         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14409         max_stmt_executions instead of estimated_loop_iterations.
14410         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14411         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14412         instead of nb_iterations_upper_bound.
14413
14414 2011-06-13  Jan Hubicka  <jh@suse.cz>
14415
14416         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14417
14418 2011-06-14  Richard Henderson  <rth@redhat.com>
14419
14420         PR debug/48459
14421         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14422         (based_loc_descr): Assert it's true.
14423         (compute_frame_pointer_to_fb_displacement): Set it, rather than
14424         aborting immediately.
14425
14426 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
14427             Mingfeng Wu  <mingfeng@faraday-tech.com>
14428
14429         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14430
14431 2011-06-13  Jan Hubicka  <jh@suse.cz>
14432
14433         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14434
14435 2011-06-13  Jan Hubicka  <jh@suse.cz>
14436
14437         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14438         similarly to DECL_COMDAT.
14439         * cgraphunit.c (cgraph_analyze_function): Likewise.
14440         * ipa.c (function_and_variable_visibility): Likewise.
14441
14442 2011-06-13  Jan Hubicka  <jh@suse.cz>
14443
14444         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14445         BINFO_VIRTUALS when streaming for ltrans unit.
14446
14447 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
14448
14449         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14450         (movdi_internal64): Same.
14451
14452 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
14453
14454         PR target/44618
14455         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14456         a set of similar patterns, where the MATCH_OPERAND for the function
14457         argument is replaced with individual references to hardware registers.
14458         (save_fpregs_<mode>): Ditto
14459         (restore_gpregs_<mode>): Ditto
14460         (return_and_restore_gpregs_<mode>): Ditto
14461         (return_and_restore_fpregs_<mode>): Ditto
14462         (return_and_restore_fpregs_aix_<mode>): Ditto
14463
14464 2011-06-13  Jan Hubicka  <jh@suse.cz>
14465
14466         * ipa-utils.c (postorder_stack): New structure.
14467         (ipa_reverse_postorder): Handle aliases.
14468
14469 2011-06-13  Jan Hubicka  <jh@suse.cz>
14470
14471         * ipa-inline.c (reset_edge_caches): Walk aliases.
14472         (update_caller_keys): Do not test inlinability of aliases.
14473         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14474         (do_estimate_growth): Fix typo.
14475
14476 2011-06-13  Jan Hubicka  <jh@suse.cz>
14477
14478         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14479         (can_remove_node_now_p): ... here; handle same comdat groups.
14480         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14481         (inline_call): Update use of can_remove_node_now_p.
14482
14483 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14484
14485         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14486         condition to disallow non-identical memory locations.
14487         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14488         preference to bit manipulation instructions.
14489
14490 2011-06-13  Jan Hubicka  <jh@suse.cz>
14491
14492         * cgraph.c (cgraph_for_node_thunks_and_aliases,
14493         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14494         (nonremovable_p): New function.
14495         (cgraph_can_remove_if_no_direct_calls_p): New function.
14496         (used_from_object_file_p): New functoin.
14497         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14498         references from aliases.
14499         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14500         * ipa-inline.c (check_caller_edge): New function.
14501         (want_inline_function_called_once_p): Use it; accept aliases called
14502         once, too.
14503         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14504
14505 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14506
14507         PR target/48454
14508         * config/arm/neon.md (vec_pack_trunc): Set the lengths
14509         correctly for the case with Quad vectors.
14510
14511 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
14512            Ira Rosen  <ira.rosen@linaro.org>
14513
14514         PR tree-optimization/49352
14515         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14516         all, make sure loop_use_stmt after the loop is a def stmt of a used
14517         SSA_NAME that is the only one defined inside of the loop.  Don't
14518         check for COND_EXPR and GIMPLE_BINARY_RHS.
14519         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14520         check_reduction is true.
14521
14522 2011-06-11  Jan Hubicka  <jh@suse.cz>
14523
14524         PR middle-end/49373
14525         * ipa.c (cgraph_externally_visible_p): Check resolution info.
14526
14527 2011-06-11  Jan Hubicka  <jh@suse.cz>
14528
14529         PR middle-end/48836
14530         * ipa-inline-transform.c: Include tree-pass.h
14531         (inline_transform): Set TODO_update_ssa_only_virtuals.
14532         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14533
14534 2011-06-11  Jan Hubicka  <jh@suse.cz>
14535
14536         PR middle-end/49378
14537         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14538         aliases and thunks.
14539
14540 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
14541
14542         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14543         Take number of iterations to peel into account for equally frequent
14544         misalignment values.
14545
14546 2011-06-11  Jan Hubicka  <jh@suse.cz>
14547
14548         * lto-streamer-out.c (produce_symtab): Stream out the newly
14549         represented aliases.
14550
14551 2011-06-11  Jan Hubicka  <jh@suse.cz>
14552
14553         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14554         varying args.
14555         (ipa_update_after_lto_read): Likewise.
14556         (ipa_write_node_info): Do not sream call_with_var_arguments.
14557         (ipa_read_node_info): Likewise.
14558
14559 2011-06-11  Jan Hubicka  <jh@suse.cz>
14560
14561         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14562
14563 2011-06-11  Jan Hubicka  <jh@suse.cz>
14564
14565         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14566         (lto_symtab_resolve_can_prevail_p): Likewise.
14567         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14568         * cgraph.c (same_body_aliases_done): New global var.
14569         (cgraph_same_body_alias_1): Rename to ...
14570         (cgraph_create_function_alias): ... this one; reorg to new
14571         representation.
14572         (cgraph_same_body_alias): Use cgraph_create_function_alias;
14573         record references when asked to.
14574         (cgraph_add_thunk): Fix formating.
14575         (cgraph_get_node): Kill same body alias code.
14576         (cgraph_node_for_asm): Likewise.
14577         (cgraph_remove_same_body_alias): Remove.
14578         (cgraph_remove_node): Kill same body alias code.
14579         (cgraph_mark_address_taken_node): Mark also the aliased function
14580         as having address taken.
14581         (dump_cgraph_node): Dump same body aliases.
14582         (cgraph_for_node_thunks_and_aliases): Update for new alias
14583         representation.
14584         (cgraph_for_node_and_aliases): Likewise.
14585         * cgraph.h (same_body): Kll pointer.
14586         (same_body_alias): Update comment.
14587         (same_body_aliases_done): Declare.
14588         (cgraph_remove_same_body_alias): Remove declaration.
14589         (cgraph_create_function_alias): Declare.
14590         (cgraph_process_same_body_aliases): Declare.
14591         (cgraph_function_with_gimple_body_p): Check for alias.
14592         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14593         (cgraph_alias_aliased_node): New function.
14594         (cgraph_function_node): Update for new aliases.
14595         (cgraph_function_or_thunk_node): Likewise.
14596         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14597         (inline_call): Remove dead aliases.
14598         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14599         name hack for same body aliases.
14600         (clone_of_p): Look through aliases.
14601         (verify_cgraph_node): Verify aliases.
14602         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14603         (cgraph_process_same_body_aliases): New function.
14604         (process_function_and_variable_attributes): Disable weakref warning on
14605         alias.
14606         (cgraph_analyze_functions): Handle aliases.
14607         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14608         (assemble_thunks): Rename to ...
14609         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14610         (cgraph_expand_function): Remove alias output code.
14611         (cgraph_output_in_order): Skip aliases.
14612         (cgraph_preserve_function_body_p): Aliases don't need preserving.
14613         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14614         (ipa_record_reference): Do not assert on alias references.
14615         (ipa_ref_has_aliases_p): New function.
14616         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14617         (ipa_ref_has_aliases_p): Declare.
14618         * lto-cgraph.c (lto_output_node): Handle aliases.
14619         (input_node): Likewise.
14620         * lto-streamer-out.c (lto_output): Skip aliases.
14621         (produce_symtab): Kill same_body_alias code.
14622         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14623         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14624         * ipa-inline.c (update_caller_keys): Walk aliases.
14625         (inline_small_functions): Fix thinko in previous patch.
14626         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14627         (function_and_variable_visibility): Do not walk same body aliases.
14628         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14629         (ipa_pta_execute): Use it.
14630
14631 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14632
14633         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14634         (*vec_dupv2df): Rename from vec_dupv2df.
14635         (vec_dupv2df): New expander.
14636
14637 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14638
14639         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14640
14641 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14642
14643         * config/i386/i386.md: Use default value in "isa" attribute.
14644         * config/i386/sse.md: Ditto.
14645         * config/i386/mmx.md: Ditto.
14646
14647 2011-06-10  Wei Guozhi  <carrot@google.com>
14648
14649         PR target/45335
14650         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14651         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14652         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14653         related peephole2.
14654         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14655         related peephole2.
14656         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14657         (arm_legitimate_ldrd_p): New prototype.
14658         (arm_output_ldrd): New prototype.
14659         * config/arm/arm.c (arm_check_ldrd_operands): New function.
14660         (arm_legitimate_ldrd_p): New function.
14661         (arm_output_ldrd): New function.
14662
14663 2011-06-10  David Li  <davidxl@google.com>
14664
14665         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14666         * passes.c (passr_eq): New function.
14667         (create_pass_tab): New function.
14668         (pass_traverse): New function.
14669         (dump_one_pass): New function.
14670         (dump_pass_list): New function.
14671         (dump_passes): New function.
14672
14673 2011-06-10  Jan Hubicka  <jh@suse.cz>
14674
14675         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14676         setting the nothrow flag.
14677         * ipa-reference.c (propagate): Skip aliases.
14678         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14679         (propagate_nothrow): Skip aliases; do not update cgraph.
14680         (local_pure_const): Do not update cgraph.
14681         * tree-profile.c (tree_profiling): Do fixup_cfg.
14682
14683 2011-06-10  Jan Hubicka  <jh@suse.cz>
14684
14685         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14686         (cgraph_local_node_p): ... here; handle aliases.
14687         (has_addr_references_p): Break out from ...;
14688         (cgraph_remove_unreachable_nodes) ... here.
14689
14690 2011-06-10  Jan Hubicka  <jh@suse.cz>
14691
14692         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14693         * common.opt (flag_inline_functions_called_once): Do not
14694         initialize to 1.
14695
14696 2011-06-10  Jan Hubicka  <jh@suse.cz>
14697
14698         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14699         (ipcp_initialize_node_lattices): Do not deal with aliases;
14700         Do not try to propagate through thunks.
14701         (ipcp_change_tops_to_bottom): Do not deal with aliases.
14702
14703 2011-06-10  Jan Hubicka  <jh@suse.cz>
14704
14705         * ipa-prop.c (ipa_write_node_info): Stream jump functions
14706         for indirect calls.
14707         (ipa_read_node_info): Likewise.
14708
14709 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14710
14711         PR lto/49302
14712         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14713         (build_and_insert_call): Likewise.
14714         (build_and_insert_ref): New.
14715         (gimple_expand_builtin_pow): Minor cleanup.
14716         (gimple_expand_builtin_cabs): New.
14717         (execute_cse_sincos): Add case for BUILT_IN_CABS.
14718
14719 2011-06-10  Jan Hubicka  <jh@suse.cz>
14720
14721         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14722         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14723         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14724         (ipcp_propagate_stage): Skip aliases when propagating.
14725         (ipcp_need_redirect_p): Skip aliases.
14726         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14727         collect_callers_of_node.
14728         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14729         for aliases.
14730         (ipa_compute_jump_functions): Look through aliases.
14731
14732 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14733
14734         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14735
14736 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14737
14738         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14739         Adjust comments.
14740         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14741
14742 2011-06-10  Jan Hubicka  <jh@suse.cz>
14743
14744         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14745         Update call of gimple_get_virt_method_for_binfo.
14746         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14747         refuse_thunks parameter.
14748         (gimple_fold_call): Update.
14749         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14750
14751 2011-06-10  Jan Hubicka  <jh@suse.cz>
14752
14753         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14754         (not_all_callers_have_enough_arguments_p): ... this one; turn into
14755         worker for cgraph_for_node_and_aliases.
14756         (convert_callers_for_node): Break out from ...
14757         (convert_callers): ... here.
14758         (modify_function): Use collect_callers_of_node.
14759         (ipa_early_sra): Use cgraph_for_node_and_aliases.
14760
14761 2011-06-10  Richard Guenther  <rguenther@suse.de>
14762
14763         PR tree-optimization/49361
14764         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14765         when not already in gimple form.
14766
14767 2011-06-10  Richard Guenther  <rguenther@suse.de>
14768
14769         PR bootstrap/49344
14770         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14771         FOR_EACH_PHI_OR_STMT_USE.
14772
14773 2011-06-10  Jan Hubicka  <jh@suse.cz>
14774
14775         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14776         (clone_inlined_nodes): ... here.
14777         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14778         to real destination prior inlining.
14779         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14780         can_early_inline_edge_p, want_early_inline_function_p,
14781         want_early_inline_function_p, want_inline_small_function_p,
14782         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14783         edge_badness, update_all_callee_keys, lookup_recursive_calls,
14784         add_new_edges_to_heap, inline_small_functions, flatten_function,
14785         inline_always_inline_functions, early_inline_small_functions): Use
14786         cgraph_function_or_thunk_node.
14787         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14788         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14789         (do_estimate_edge_growth_1): Break out from ...
14790         (do_estimate_growth) ... here; walk aliases.
14791         (inline_generate_summary): Skip aliases.
14792
14793 2011-06-10  Richard Guenther  <rguenther@suse.de>
14794
14795         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14796         forward when combining, visit inserted stmts when a stmt was changed.
14797
14798 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
14799
14800         * tree.h (error_operand_p): Add.
14801         * dbxout.c (dbxout_type_fields): Use the latter.
14802         * c-decl.c (add_stmt): Likewise.
14803         * gimplify.c (omp_add_variable, omp_notice_variable,
14804         gimplify_scan_omp_clauses): Likewise.
14805
14806 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
14807
14808         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14809         when a value is actually passed in regs.
14810
14811 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
14812             Laurent Rougé  <laurent.rouge@menta.fr>
14813
14814         * doc/invoke.texi (SPARC options): Add -mflat.
14815         * config/sparc/sparc.opt: Likewise.
14816         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14817         (sparc_flat_expand_prologue): Declare.
14818         (sparc_flat_expand_epilogue): Likewise.
14819         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14820         (CPP_ENDIAN_SPEC): Replace with...
14821         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
14822         (CPP_SPEC): Adjust to above change.
14823         (EXTRA_SPECS): Likewise.
14824         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14825         (INCOMING_REGNO): Likewise.
14826         (OUTGOING_REGNO): Likewise.
14827         (LOCAL_REGNO): Likewise.
14828         (SETUP_FRAME_ADDRESSES): Likewise.
14829         (FIXED_REGISTERS): Set 0 for %fp.
14830         (CALL_USED_REGISTERS): Likewise.
14831         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14832         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14833         (RETURN_ADDR_REGNUM): Define.
14834         (RETURN_ADDR_RTX): Use it.
14835         (INCOMING_RETURN_ADDR_REGNUM): Define.
14836         (INCOMING_RETURN_ADDR_RTX): Use it.
14837         (DWARF_FRAME_RETURN_COLUMN): Likewise.
14838         (EH_RETURN_REGNUM): Define.
14839         (EH_RETURN_STACKADJ_RTX): Use it.
14840         (EH_RETURN_HANDLER_RTX): Delete.
14841         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14842         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14843         Delete.
14844         (struct machine_function): Add frame_size, apparent_frame_size,
14845         frame_base_reg, frame_base_offset, n_global_fp_regs and
14846         save_local_in_regs_p fields.
14847         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14848         sparc_frame_base_offset, sparc_n_global_fp_regs,
14849         sparc_save_local_in_regs_p): New macros.
14850         (sparc_option_override): Error out if -fcall-saved-REG is specified
14851         for Out registers.
14852         (eligible_for_restore_insn): Fix formatting.
14853         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
14854         (eligible_for_sibcall_delay): Likewise.
14855         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14856         (sparc_legitimate_address_p): Adjust to above change.
14857         (save_global_or_fp_reg_p): New predicate.
14858         (return_addr_reg_needed_p): Likewise.
14859         (save_local_or_in_reg_p): Likewise.
14860         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
14861         (SORR_SAVE, SORR_RESTORE): Delete.
14862         (sorr_pred_t): New typedef.
14863         (sorr_act_t): New enum.
14864         (save_or_restore_regs): Rename to...
14865         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
14866         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14867         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
14868         mechanism.  Add CFI information for double-word saves in 32-bit mode.
14869         (emit_adjust_base_to_offset): New function extracted from...
14870         (emit_save_or_restore_regs): ...this.  Rename the rest to...
14871         (emit_save_or_restore_regs_global_fp_regs): ...this.
14872         (emit_save_or_restore_regs_local_in_regs): New function.
14873         (gen_create_flat_frame_[123]): New functions.
14874         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
14875         (sparc_flat_expand_prologue): New function.
14876         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14877         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
14878         (sparc_flat_expand_epilogue): New function.
14879         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14880         (output_return): Likewise.
14881         (output_sibcall): Likewise.
14882         (sparc_output_mi_thunk): Likewise.
14883         (sparc_frame_pointer_required): Likewise.
14884         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14885         function optimization.
14886         * config/sparc/sparc.md (flat): New attribute.
14887         (prologue): Add TARGET_FLAT handling.
14888         (save_register_window): Disable if TARGET_FLAT.
14889         (create_flat_frame_[123]): New patterns.
14890         (epilogue): Add TARGET_FLAT handling.
14891         (sibcall_epilogue): Likewise.
14892         (eh_return): New expander.
14893         (eh_return_internal): New insn and splitter.
14894         (return_internal): Add TARGET_FLAT handling.
14895         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14896         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14897         (nonlocal_goto): Add TARGET_FLAT handling.
14898         * config/sparc/t-elf: Add -mflat multilib.
14899         * config/sparc/t-leon: Likewise.
14900
14901 2011-06-10  Jan Hubicka  <jh@suse.cz>
14902
14903         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14904         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14905         (self_recursive_p): Use cgraph_function_node.
14906         (propagate_pure_const): Likewise.
14907         (propagate_nothrow): Likewise.
14908         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14909         cgraph_function_node.
14910         (propagate_bits): Likewise.
14911         (propagate): Likewise.
14912
14913 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14914             Richard Earnshaw  <rearnsha@arm.com>
14915
14916         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14917         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14918         (*thumb2_movdi_vfp): Delete.
14919         (*arm_movdi_vfp_cortexa8): Delete.
14920         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14921         (*movdi_vfp_cortexa8): Likewise.
14922
14923 2011-06-10  Richard Guenther  <rguenther@suse.de>
14924
14925         * stor-layout.c (initialize_sizetypes): Give names to all
14926         sizetype kinds.
14927
14928 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14929
14930         PR tree-optimization/49318
14931         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14932         irrelevant pattern statements.
14933
14934 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14935
14936         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14937
14938         PR bootstrap/49354
14939         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14940         to last assignment.
14941
14942 2011-06-09  Jan Hubicka  <jh@suse.cz>
14943
14944         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14945         do not recompute reachable flag.
14946         (cgraph_finalize_function, cgraph_analyze_functions): Set
14947         redefined_extern_inline here.
14948
14949 2011-06-09  Jan Hubicka  <jh@suse.cz>
14950
14951         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14952         (cgraph_only_called_directly_p): ... this one; bring offline.
14953         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14954         varpool_used_from_object_file_p): Drop names from the declaratoin.
14955         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14956         collect_callers_of_node): New.
14957         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14958         (cgraph_edge_recursive_p): Use cgraph_function_node.
14959         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14960         (cgraph_node_cannot_be_local_p_1): Break out from ...
14961         (cgraph_node_can_be_local_p): ... here; walk aliases.
14962         (cgraph_for_node_thunks_and_aliases): New function.
14963         (cgraph_for_node_and_aliases): New function.
14964         (cgraph_make_node_local_1): Break out from ...
14965         (cgraph_make_node_local) ... here; use
14966         cgraph_for_node_thunks_and_aliases.
14967         (cgraph_set_nothrow_flag_1): Break out from ...
14968         (cgraph_set_nothrow_flag) ... here;
14969         use cgraph_for_node_thunks_and_aliases.
14970         (cgraph_set_const_flag_1): Break out from ...
14971         (cgraph_set_const_flag) ... here;
14972         use cgraph_for_node_thunks_and_aliases.
14973         (cgraph_set_pure_flag_1): Break out from ...
14974         (cgraph_set_pure_flag) ... here;
14975         use cgraph_for_node_thunks_and_aliases.
14976         (cgraph_propagate_frequency_1): Break out from ...
14977         (cgraph_propagate_frequency) ... here; use
14978         cgraph_for_node_thunks_and_aliases.
14979         (cgraph_used_from_object_file_p): Do not care about aliases.
14980         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14981         New functions.
14982         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14983
14984 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14985
14986         PR rtl-optimization/49154
14987         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14988         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14989         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14990         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14991         * config/cris/cris.h (cris_register_move_cost): Remove
14992         !TARGET_V32 code.  Tweak comments.
14993
14994 2011-06-09  Jan Hubicka  <jh@suse.cz>
14995
14996         * cgraphbuild.c (record_eh_tables): Mark personality function as having
14997         address taken.
14998
14999 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
15000
15001         PR rtl-optimization/49154
15002         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
15003         is a matching slot in the hashtable, assign it to classes_ptr.
15004
15005         PR rtl-optimization/49154
15006         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
15007         register classes.
15008         * doc/tm.texi: Regenerate.
15009
15010 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15011
15012         PR target/49307
15013         * config/sh/sh.md (UNSPEC_CHKADD): New.
15014         (chk_guard_add): New define_insn_and_split.
15015         (symGOT_load): Use chk_guard_add instead of blockage.
15016
15017 2011-06-09  Kai Tietz  <ktietz@redhat.com>
15018
15019         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
15020
15021 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15022
15023         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
15024
15025 2011-06-09  Wei Guozhi  <carrot@google.com>
15026
15027         PR target/46975
15028         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
15029         (peephole2 for conditional move): Generate 16 bit instructions.
15030
15031 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
15032
15033         * config/i386/i386.md (*movdi_internal_rex64): Merge
15034         alternatives 6 and 8.
15035
15036 2011-06-09  David Li  <davidxl@google.com>
15037
15038         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15039         * passes.c (passr_eq): New function.
15040         (create_pass_tab): New function.
15041         (pass_traverse): New function.
15042         (dump_one_pass): New function.
15043         (dump_pass_list): New function.
15044         (dump_passes): New function.
15045
15046 2011-06-09  David Li  <davidxl@google.com>
15047
15048         * tree-complex.c (tree_lower_complex): Gate cleanup.
15049         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15050         (execute_optimize_stdarg): Ditto.
15051         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15052         (execute_cleanup_eh_1): Ditto.
15053         (execute_cleanup_eh): Ditto.
15054         * gcse.c (gate_rtl_pre): Ditto.
15055         (execute_rtl_pre): Ditto.
15056         * except.c (finish_eh_generation): Ditto.
15057         (convert_to_eh_region_ranges): Ditto.
15058         * cprop.c (one_cprop_pass): Ditto.
15059
15060 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15061
15062         PR target/48673
15063         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15064         in all basic blocks.
15065
15066 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15067
15068         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15069         (HAVE_ENABLE_EXECUTE_STACK): Define.
15070         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15071         (HAVE_ENABLE_EXECUTE_STACK): Define.
15072         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15073         (HAVE_ENABLE_EXECUTE_STACK): Define.
15074         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15075         (ENABLE_EXECUTE_STACK): Remove.
15076         (HAVE_ENABLE_EXECUTE_STACK): Define.
15077         [IN_LIBGCC2]: Don't include <windows.h>.
15078         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15079         (HAVE_ENABLE_EXECUTE_STACK): Define.
15080         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15081         (HAVE_ENABLE_EXECUTE_STACK): Define.
15082         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15083         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15084         (HAVE_ENABLE_EXECUTE_STACK): Define.
15085         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15086         (HAVE_ENABLE_EXECUTE_STACK): Define.
15087         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15088         (HAVE_ENABLE_EXECUTE_STACK): Define.
15089         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15090         (HAVE_ENABLE_EXECUTE_STACK): Define.
15091         * config/alpha/alpha.c (alpha_trampoline_init): Test
15092         HAVE_ENABLE_EXECUTE_STACK.
15093         * config/i386/i386.c (ix86_trampoline_init): Likewise.
15094         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15095         (sparc64_initialize_trampoline): Likewise.
15096         * libgcc2.c [L_enable_execute_stack]: Remove.
15097         * system.h (ENABLE_EXECUTE_STACK): Poison.
15098         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15099         * doc/tm.texi: Regenerate.
15100         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15101
15102 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
15103
15104         PR middle-end/49308
15105         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15106         variable.  After resetting and rescanning insn continue with previous
15107         statement.
15108
15109 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15110
15111         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15112         (gcc_cv_ld_hidden): Likewise.
15113         * configure: Regenerate.
15114         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15115         (ix86_stack_protect_fail): Mark unused.
15116         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15117         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15118         [TARGET_MACHO]: Don't define.
15119         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15120         (TARGET_STACK_PROTECT_FAIL): Likewise.
15121         (rs6000_stack_protect_fail): Mark unused.
15122         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15123         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
15124
15125 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15126
15127         * varasm.c (get_section): Print location of other conflict
15128         for section conflicts.
15129
15130 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15131
15132         * config/i386/driver-i386.c (host_detect_local_cpu):
15133         Add model 0x2d Intel CPU.
15134
15135 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15136
15137         * reginfo.c (global_regs_decl): Add.
15138         (globalize_reg): Add decl parameter. Compute location.  Pass location
15139         to warnings and add inform. Store decl in global_regs_decl.
15140         * rtl.h (globalize_reg): Update prototype.
15141         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15142
15143 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
15144
15145         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15146
15147 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15148
15149         PR target/49305
15150         * config/sh/predicates.md (general_movsrc_operand): Check
15151         mode for memory with indexed address for QI and HImode.
15152         (general_movdst_operand): Likewise.
15153
15154 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15155
15156         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15157
15158 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
15159
15160         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15161         (num_ssa_operands): Likewise.
15162         (op_iter_init_phiuse): Forward-declare.
15163         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15164
15165 2011-06-08  Nick Clifton  <nickc@redhat.com>
15166
15167         * doc/invoke.texi (ARM Options): Update description of
15168         -mthumb-interwork.
15169
15170 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15171
15172         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15173         unknown Intel family 0x6 CPUs.
15174
15175 2011-06-08  Martin Jambor  <mjambor@suse.cz>
15176
15177         * tree-sra.c (mark_rw_status): Removed.
15178         (analyze_access_subtree): New parameter parent instead of
15179         mark_read and mark_write, propagate from that.
15180
15181 2011-06-08  Julian Brown  <julian@codesourcery.com>
15182
15183         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15184         for double-precision helper functions in hard-float mode if only
15185         single-precision arithmetic is supported in hardware.
15186
15187 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
15188
15189         PR rtl-optimization/49303
15190         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
15191         code_motion_path_driver returned 0 or 1.
15192         (sel_region_finish): Clear h_d_i_d.
15193
15194 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15195
15196         * config/sh/sh.c (prepare_move_operands): Set pic register
15197         appropriately for global and local dynamic tls models even
15198         if flag_pic is unset.
15199
15200 2011-06-07  Jason Merrill  <jason@redhat.com>
15201
15202         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15203
15204 2011-06-07  Xinliang David Li  <davidxl@google.com>
15205         * passes.c (enable_disable_pass): Handle assembler name.
15206         (is_pass_explicitly_enabled_or_disabled): Ditto.
15207
15208 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15209
15210         PR tree-optimization/48497
15211         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15212
15213 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15214
15215         PR tree-optimization/46728
15216         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15217         to use gimple_val_nonnegative_real_p.
15218         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15219         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15220
15221 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15222
15223         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15224
15225 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
15226
15227         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15228         constant vectors.
15229
15230 2011-06-07  Richard Guenther  <rguenther@suse.de>
15231
15232         * stor-layout.c (initialize_sizetypes): Initialize all
15233         sizetypes based on target definitions.
15234         (set_sizetype): Remove.
15235         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15236         * tree.h (set_sizetype): Remove.
15237
15238 2011-06-07  Nick Clifton  <nickc@redhat.com>
15239
15240         * config.gcc: Unify V850 architecture options and add support for
15241         newer V850 architectures.
15242         * config/v850/t-v850e: Delete.
15243
15244 2011-06-07  Richard Guenther  <rguenther@suse.de>
15245
15246         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15247         Call set_sizetype from here.
15248
15249 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
15250
15251         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15252         (*maddhisi4tb, *maddhisi4tt): New define_insns.
15253
15254 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
15255             Andrew Stubbs  <ams@codesourcery.com>
15256
15257         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15258         multiplies.
15259         * doc/md.texi (Canonicalization of Instructions): Document widening
15260         multiply canonicalization.
15261
15262 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
15263
15264         PR gcov-profile/49299
15265         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15266
15267 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
15268
15269         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15270         a pointer.
15271         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15272         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15273         vect_recog_pow_pattern): Likewise.
15274         (vect_pattern_recog_1): Remove declaration.
15275         (widened_name_p): Remove declaration.  Add new argument to specify
15276         whether to check that both types are either signed or unsigned.
15277         (vect_recog_widen_mult_pattern): Update documentation.  Handle
15278         unsigned patterns and multiplication by constants.
15279         (vect_pattern_recog_1): Update vect_recog_func references.  Use
15280         statement information from the statement returned from pattern
15281         detection functions.
15282         (vect_pattern_recog): Update vect_recog_func reference.
15283         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15284         multiplication by a constant use the type of the other operand.
15285
15286 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15287
15288         PR rtl-optimization/49145
15289         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15290
15291 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
15292
15293         PR debug/49262
15294         * dwarf2out.c (native_encode_initializer): Decrement count in each
15295         iteration.
15296
15297         PR debug/49294
15298         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15299         non-MODE_INT modes.
15300
15301         PR c++/49264
15302         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15303         if stmt folded into nothing.
15304         * tree-inline.c (fold_marked_statements): If a builtin at the end of
15305         a bb folded into nothing, just update cgraph edges and move to next bb.
15306         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15307         to be NULL.  Don't compute count and frequency if new_call is NULL.
15308
15309 2011-06-04  Diego Novillo  <dnovillo@google.com>
15310
15311         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15312         (cgraph.o): Likewise.
15313         (cgraphunit.o): Likewise.
15314         * cgraphunit.c: Include lto-streamer.h
15315         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15316         if LTO is enabled.
15317         * lto-streamer-in.c (unpack_value_fields): Call
15318         streamer_hooks.unpack_value_fields if set.
15319         (lto_materialize_tree): For unhandled nodes, first try to
15320         call lto_streamer_hooks.alloc_tree, if it exists.
15321         (lto_input_ts_decl_common_tree_pointers): Move reading of
15322         DECL_INITIAL to lto_streamer_read_tree.
15323         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15324         (lto_streamer_read_tree): New.
15325         (lto_reader_init): Rename from lto_init_reader.
15326         Move initialization code to lto/lto.c.
15327         * lto-streamer-out.c (pack_value_fields): Call
15328         streamer_hooks.pack_value_fields if set.
15329         (lto_output_tree_ref): For tree nodes that are not normally indexable,
15330         call streamer_hooks.indexable_with_decls_p before giving up.
15331         (lto_output_ts_decl_common_tree_pointers): Move handling
15332         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15333         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15334         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
15335         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15336         (lto_streamer_write_tree): New.
15337         (lto_output): Call lto_streamer_init directly.
15338         (lto_writer_init): Remove.
15339         * lto-streamer.c (streamer_hooks): New.
15340         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15341         instead of lto_preload_common_nodes.
15342         (lto_is_streamable): Move from lto-streamer.h
15343         (lto_streamer_hooks_init): New.
15344         (streamer_hooks): New.
15345         (streamer_hooks_init): New.
15346         * lto-streamer.h (struct output_block): Forward declare.
15347         (struct lto_input_block): Likewise.
15348         (struct data_in): Likewise.
15349         (struct bitpack_d): Likewise.
15350         (struct streamer_hooks): Declare.
15351         (streamer_hooks): Declare.
15352         (lto_streamer_hooks_init): Declare.
15353         (lto_streamer_write_tree): Declare.
15354         (lto_streamer_read_tree): Declare.
15355         (streamer_hooks_init): Declare.
15356         (lto_is_streamable): Move to lto-streamer.c
15357
15358 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15359
15360         * longlong.h (smul_ppmm): The resulting register pair contains the
15361         higher order word first.
15362
15363 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15364
15365         PR tree-optimization/46728
15366         * builtins.c (powi_table): Remove.
15367         (powi_lookup_cost): Remove.
15368         (powi_cost): Remove.
15369         (expand_powi_1): Remove.
15370         (expand_powi): Remove.
15371         (expand_builtin_pow_root): Remove.
15372         (expand_builtin_pow): Remove.
15373         (expand_builtin_powi): Eliminate handling of constant exponent.
15374         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15375
15376 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15377
15378         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15379
15380 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15381
15382         * dce.c (reset_unmarked_insns_debug_uses): New.
15383         (delete_unmarked_insns): Skip debug insns.
15384         (prescan_insns_for_dce): Likewise.
15385         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15386         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15387         active reg can be found.
15388         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
15389         (convert_regs_1): Use it.
15390
15391 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15392
15393         * tree-pretty-print.c (dump_function_header): Add flags.
15394         Don't dump decl_uid with nouid.
15395         * tree-pretty-print.h (dump_function_header): Adjust.
15396         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15397         * passes.c (pass_init_dump_file): Pass dump_flags on.
15398         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15399
15400 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15401
15402         PR bootstrap/49270
15403         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15404
15405 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
15406
15407         PR tree-optimization/49243
15408         * calls.c (setjmp_call_p): Also check if fndecl has the
15409         returns_twice attribute.
15410
15411 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15412
15413         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15414         -ffast-math etc.
15415
15416 2011-06-06  Richard Henderson  <rth@redhat.com>
15417             Georg-Johann Lay  <avr@gjlay.de>
15418
15419         PR target/42210
15420         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15421         New predicates.
15422         * config/avr/avr.md ("insv"): New insn expander.
15423         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15424         "*insv.not.io", "*insv.reg"): New insns.
15425
15426 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
15427
15428         PR target/49285
15429         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15430         to nonimmediate_operand from memory_operand for the operand that is to
15431         be forced to memory by the expander.  Lose the constraints.
15432
15433 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15434
15435         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15436         EH return when delayed branches are disabled.
15437
15438 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
15439
15440         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15441         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
15442         calculation.
15443         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15444         Simplify MODE_V1DF and MODE_V2SF handling.
15445         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15446         Simplify MODE_SF handling.
15447
15448 2011-06-04  Jan Hubicka  <jh@suse.cz>
15449
15450         PR tree-optimization/48893
15451         PR tree-optimization/49091
15452         PR tree-optimization/49179
15453         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15454         Bounds check.
15455
15456 2011-06-04  Jan Hubicka  <jh@suse.cz>
15457
15458         PR lto/48954
15459         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15460         bitmaps.
15461
15462 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
15463
15464         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15465
15466 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15467
15468         PR target/49281
15469         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15470         to be strictly smaller than 1 << shiftcount.
15471
15472 2011-06-04  Jan Hubicka  <jh@suse.cz>
15473
15474         PR tree-optimize/48929
15475         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15476         of empty predicate.
15477
15478 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
15479
15480         PR debug/48333
15481         * calls.c (emit_call_1): Prefer the __builtin declaration of
15482         builtin functions.
15483
15484 2011-06-03   Diego Novillo  <dnovillo@google.com>
15485
15486         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15487         (lto_input_tree_pointers): Likewise.
15488         * lto-streamer-out.c (pack_value_fields): Likewise.
15489         (lto_output_tree_pointers): Likewise.
15490         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15491         and OPTIMIZATION_NODE.
15492
15493 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15494
15495         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15496         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15497         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15498         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15499         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15500         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15501         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15502         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15503         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15504         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15505         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15506         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15507         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15508         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15509         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15510         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15511         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15512         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15513         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15514         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15515         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15516         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15517         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15518         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15519         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15520         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15521         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15522         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15523         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15524         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15525         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15526         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15527         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15528         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15529         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15530         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15531         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15532         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15533         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15534         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15535         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15536         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15537         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15538         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15539         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15540         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15541         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15542         * system.h (MD_UNWIND_SUPPORT): Poison.
15543         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15544         * doc/tm.texi: Regenerate.
15545         * unwind-dw2.c: Include md-unwind-support.h instead of
15546         MD_UNWIND_SUPPORT.
15547         * config/ia64/unwind-ia64.c: Likewise.
15548         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15549
15550 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
15551
15552         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15553
15554 2011-06-03  Richard Henderson  <rth@redhat.com>
15555             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15556
15557         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15558         (sigill_hdlr): Correct insn, insn size.
15559         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15560
15561 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15562
15563         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15564         t-slibgcc-dummy.
15565         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15566         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15567         * config/mips/t-iris: Remove.
15568         * config/mips/t-irix6: New file.
15569         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15570
15571 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15572
15573         * Makefile.in (LIB2ADDEHDEP): Remove.
15574         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15575         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15576         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15577         * config/t-darwin (LIB2ADDEHDEP): Remove.
15578         * config/t-freebsd (LIB2ADDEHDEP): Remove.
15579         * config/t-linux (LIB2ADDEHDEP): Remove.
15580
15581 2011-06-03  Diego Novillo  <dnovillo@google.com>
15582
15583         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15584         (lto_register_var_decl_in_symtab): Likewise.
15585         (lto_register_function_decl_in_symtab): Likewise.
15586         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15587         logic to uniquify_nodes.
15588
15589 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15590
15591         * config/alpha/t-osf5: Remove.
15592         * config/alpha/t-osf-pthread: Remove.
15593         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15594         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15595
15596 2011-06-03  Julian Brown  <julian@codesourcery.com>
15597
15598         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15599         (strongarm1110): Use strongarm tuning.
15600         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15601         * config/arm/arm.c (arm_strongarm_tune): New.
15602         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15603         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15604         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15605         setting, using previous defaults or 1 for Cortex-A5.
15606         (arm_option_override): Set max_insns_skipped from current tuning.
15607
15608 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
15609
15610         * doc/install.texi (Options specification): Document --with-specs.
15611
15612 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15613
15614         * config/arm/neon.md (orndi3_neon): Actually split it.
15615
15616 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15617
15618         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15619         * var-tracking.c (reverse_op): Limite recurse depth to 5.
15620
15621 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15622
15623         PR debug/47590
15624         * target.def (delay_sched2, delay_vartrack): New.
15625         * doc/tm.texi.in: Update.
15626         * doc/tm.texi: Rebuild.
15627         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15628         * var-tracking.c (gate_handle_var_tracking): Likewise.
15629         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15630         (bfin_flag_var_tracking): Drop.
15631         (output_file_start): Don't save and override flag_var_tracking.
15632         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15633         (bfin_reorg): Test original variables.
15634         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15635         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15636         (ia64_flag_var_tracking): Drop.
15637         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15638         (ia64_file_start): Don't save and override flag_var_tracking.
15639         (ia64_override_options_after_change): Ditto
15640         flag_schedule_insns_after_reload.
15641         (ia64_reorg): Test original variables.
15642         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15643         (picochip_flag_var_tracking): Drop.
15644         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15645         (picochip_option_override): Don't save and override
15646         flag_schedule_insns_after_reload.
15647         (picochip_asm_file_start): Ditto flag_var_tracking.
15648         (picochip_reorg): Test original variables.
15649         * config/spu/spu.c (spu_flag_var_tracking): Drop.
15650         (TARGET_DELAY_VARTRACK): Define.
15651         (spu_var_tracking): New.
15652         (spu_machine_dependent_reorg): Call it.
15653         (asm_file_start): Don't save and override flag_var_tracking.
15654
15655 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15656
15657         PR target/49163
15658         * config/sh/predicates.md (general_movsrc_operand): Return 0
15659         for memory and memory subreg of which address is an invalid
15660         indexed address for QI and HImode.
15661         (general_movdst_operand): Likewise.
15662
15663 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15664
15665         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15666         edges only, when there is a non-local label in the function.
15667         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15668
15669 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15670
15671         * config/i386/constraints.md (Y3): New register constraint.
15672         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15673         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15674         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15675         *sse2_interleave_lowv2df.
15676
15677 2011-06-02  Julian Brown  <julian@codesourcery.com>
15678
15679         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15680         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15681         (arm_cortex_a5_tune): New.
15682
15683 2011-06-02  Julian Brown  <julian@codesourcery.com>
15684
15685         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15686         * config/arm/arm.c (arm_default_branch_cost): New.
15687         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15688         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15689         (arm_fa726_tune): Set branch_cost field using
15690         arm_default_branch_cost.
15691         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15692         current_tune structure.
15693         * dojump.c (tm_p.h): Include file.
15694
15695 2011-06-02  Julian Brown  <julian@codesourcery.com>
15696
15697         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15698         tuning.
15699         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15700         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15701         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15702         field.
15703         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15704         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15705         (arm_fa726te_tune): Add prefer_constant_pool setting.
15706         (arm_v6t2_tune, arm_cortex_tune): New.
15707         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15708         prefer_constant_pool setting.
15709
15710 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15711
15712         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15713         switch statement.
15714         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15715         (*movdf_internal) <case 6,7,8>: Ditto.
15716
15717         * config/i386/constraints.md (Y4): New register constraint.
15718         * config/i386/sse.md (vec_set<mode>_0): Merge with
15719         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15720         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15721         *vec_extractv2di_1_sse.
15722         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15723         and *vec_concatv2di_rex64_sse.
15724
15725 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
15726
15727         PR target/48807
15728         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15729         of cgraph_local_info for null before attempting to use it.
15730
15731 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15732
15733         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15734         (current_function_dynamic_alloc_count): Delete.
15735         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15736         (expand_builtin_nonlocal_goto): Remove obsolete comment.
15737         (expand_builtin_update_setjmp_buf): Remove dead code.
15738         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15739         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15740         support.
15741         * function.c (instantiate_virtual_regs): Likewise.
15742         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15743         for a block with a single abnormal incoming edge.
15744         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15745         (SETJMP_VIA_SAVE_AREA): Delete.
15746         * config/sparc/sparc-protos.h (load_got_register): Declare.
15747         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15748         (load_got_register): Make global.
15749         (sparc_frame_pointer_required): Add 'static'.
15750         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
15751         (sparc_builtin_setjmp_frame_value): New function.
15752         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15753         (save_stack_nonlocal): New expander.
15754         (restore_stack_nonlocal): Likewise.
15755         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15756         (nonlocal_goto_internal): New insn.
15757         (goto_handler_and_restore): Delete.
15758         (builtin_setjmp_setup): Likewise.
15759         (do_builtin_setjmp_setup): Likewise.
15760         (setjmp): Likewise.
15761         (builtin_setjmp_receiver): New expander.
15762
15763 2011-06-01  David Li  <davidxl@google.com>
15764
15765         PR middle-end/49261
15766         * tree-pretty-print.c (dump_function_header): Format cleanup.
15767
15768 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
15769
15770         PR target/49238
15771         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15772         needed when original operands are used for msw_skip comparison.
15773
15774 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15775
15776         PR debug/49250
15777         * var-tracking.c (add_uses, add_stores): Don't call
15778         cselib_subst_to_values on ENTRY_VALUE.
15779
15780 2011-06-01  Diego Novillo  <dnovillo@google.com>
15781
15782         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15783         output_record_start with LTO_null instead of output_zero.
15784         (lto_output_ts_binfo_tree_pointers): Likewise.
15785         (lto_output_tree): Likewise.
15786         (output_eh_try_list): Likewise.
15787         (output_eh_region): Likewise.
15788         (output_eh_lp): Likewise.
15789         (output_eh_regions): Likewise.
15790         (output_bb): Likewise.
15791         (output_function): Likewise.
15792         (output_unreferenced_globals): Likewise.
15793         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15794         instead of NUM_TREE_CODES.
15795         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15796         (lto_output_int_in_range): Change << to >> when shifting VAL.
15797
15798 2011-06-01  Diego Novillo  <dnovillo@google.com>
15799
15800         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15801         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15802
15803 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15804
15805         PR target/45074
15806         * optabs.h (valid_multiword_target_p): Declare.
15807         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15808         doing multi-word operations.
15809         * optabs.c (expand_binop): Likewise.
15810         (expand_doubleword_bswap): Likewise.
15811         (expand_absneg_bit): Likewise.
15812         (expand_unop): Likewise.
15813         (expand_copysign_bit): Likewise.
15814         (multiword_target_p): New function.
15815
15816 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15817
15818         PR rtl-optimization/48830
15819         PR rtl-optimization/48808
15820         PR rtl-optimization/48792
15821         * reload.c (push_reload): Check contains_reg_of_mode.
15822         * reload1.c (strip_paradoxical_subreg): New function.
15823         (gen_reload_chain_without_interm_reg_p): Use it to handle
15824         paradoxical subregs.
15825         (emit_output_reload_insns, gen_reload): Likewise.
15826
15827 2011-06-01  David Li  <davidxl@google.com>
15828
15829         * predict.c : Change pass name
15830         * ipa.c: Ditto.
15831         * dce.c: Ditto.
15832         * tree-profile.c: Ditto.
15833         * except.c: Ditto.
15834
15835 2011-06-01  David Li  <davidxl@google.com>
15836
15837         * tree-pretty-print.c (dump_function_header): New function.
15838         * final.c (rest_of_clean_state): Use header dumper.
15839         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15840         * passes.c (pass_init_dump_file): Use header dumper.
15841
15842 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15843
15844         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15845         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15846         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15847         New functions.
15848         (mem_loc_descriptor): Use them.
15849
15850         * var-tracking.c (create_entry_value): New function.
15851         (vt_add_function_parameter): Use it.
15852
15853 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15854
15855         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15856         Include <signal.h>, <ucontext.h>.
15857         (sigill_caught): Define.
15858         (sigill_hdlr): New function.
15859         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15860         insns can be executed.
15861         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15862         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15863
15864 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15865
15866         * config/t-slibgcc-darwin: Move to ...
15867         * config/t-slibgcc-dummy: ... this.  Clarify comments.
15868         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15869         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15870         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15871         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
15872         Remove i386/t-crtstuff from tmake_file.
15873         (i[34567]86-*-solaris2*): Remove t-svr4,
15874         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15875         t-slibgcc-dummy.
15876         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15877         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15878         sparc/t-crtfm from tmake_file.
15879         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15880         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15881         Remove extra_parts.
15882         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15883         * config/i386/t-nwld (SHLIB_LINK): Remove.
15884         * config/i386/t-rtems-i386: Rename to ...
15885         * config/i386/t-rtems: ... this.
15886         ($(T)crti.o, $(T)crtn.o): Remove.
15887         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15888         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15889         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15890         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15891         EXTRA_MULTILIB_PARTS): Remove.
15892         * config/sparc/t-sol2-64: Likewise.
15893         * config/sparc/t-sol2: Remove.
15894         * config/sparc/t-crtin: Remove.
15895         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15896         * config/i386/gmon-sol2.c: Remove.
15897         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15898         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15899         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15900         * config/i386/sol2-gc1.asm: Remove.
15901         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15902         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15903         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15904         * config/t-slibgcc-sld: Remove.
15905
15906 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15907
15908         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15909         base_type_for_mode with op_mode instead of mode.
15910
15911 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15912
15913         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15914         Cortex-A15.
15915         * config/arm/arm-tune.md: Regenerate.
15916         * config/arm/arm-tables.opt: Regenerate.
15917         * config/arm/arm.c (FL_DIV): Rename...
15918         (FL_THUMB_DIV): ... to this.
15919         (FL_ARM_DIV): Define.
15920         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15921         (arm_arch_hwdiv): Remove.
15922         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15923         (arm_issue_rate): Add cortexr5.
15924         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15925         __ARM_ARCH_EXT_IDIV__.
15926         (TARGET_IDIV): Define.
15927         (arm_arch_hwdiv): Remove.
15928         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15929         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15930         (divsi3, udivsi3): New patterns.
15931         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15932         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15933
15934 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15935
15936         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15937         * ipa-utils.c (searchc): Set scc_no.
15938
15939 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15940
15941         * ipa-utils.c (searchc_env): New field allow_overwritable.
15942         (searchc): do not ignore edges to overwritable nodes if indicated
15943         by env->allow_overwritable.
15944         (ipa_reduced_postorder): Set env.allow_overwritable.
15945
15946 2011-06-01  Richard Guenther  <rguenther@suse.de>
15947
15948         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15949         char_type_node.
15950         * lto-streamer.c (lto_record_common_node): Take node pointer,
15951         do not register types.
15952         (lto_preload_common_nodes): Explicitly skip preloading nodes
15953         that differ between frontends.
15954
15955 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15956
15957         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15958         NON_FLOAT_REGS.
15959
15960 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15961
15962         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15963         parameter value for dump. Dump cost on outermost call only.
15964         (rs6000_memory_move_cost): Dump cost on outermost call only.
15965
15966 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15967
15968         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15969         DW_OP_GNU_convert ops.
15970
15971         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15972         cselib_preserve_constants.
15973         (cselib_lookup_1): If cselib_preserve_constants,
15974         a new VALUE is being created for REG and there is a VALUE for the
15975         same register in wider mode, add another loc with lowpart SUBREG of
15976         the wider VALUE.
15977         (cselib_subst_to_values): Handle ENTRY_VALUE.
15978         * var-tracking.c  (replace_expr_with_values): Return NULL for
15979         ENTRY_VALUE too.
15980         * dwarf2out.c (convert_descriptor_to_signed): New function.
15981         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15982         instead of two shifts.
15983         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15984         the right mode if needed.
15985         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15986         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15987         convert_descriptor_to_signed.
15988         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15989         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15990
15991         PR target/48688
15992         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15993
15994 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15995
15996         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15997         of X87MODEI12 and SWI48x instead of SSEMODEI24.
15998         (SWI248x): New mode iterator, rename from X87MODEI.
15999         (X87MODEI): Remove mode iterator.
16000         (X87MODEI12): Ditto.
16001         (SSEMODEI24): Ditto.
16002
16003 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16004
16005         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
16006         * doc/invoke.texi: Document max-vartrack-expr-depth.
16007         * var-tracking.c (EXPR_DEPTH): New.
16008         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
16009
16010 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16011
16012         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
16013         * config/i386/sse.md: Add n to negated FMA pattern names.
16014
16015 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16016
16017         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
16018
16019 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16020
16021         * gengtype-state.c (read_state_params_structs): Initialize previous.
16022
16023 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16024
16025         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
16026         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
16027
16028 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16029
16030         * config/i386/i386.md (*movtf_internal): Avoid allocating general
16031         registers.  Penalize F*r->o alternative to prevent partial memory
16032         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
16033         CONST_DOUBLE immediates when optimizing function for size.  Do not move
16034         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16035         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
16036         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
16037         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
16038         alternatives.
16039         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16040
16041         (fp_register_operand splitters): Use fp_register_operand
16042         constraint.  Do not use FP_REG_P in insn condition.
16043         (any_fp_register_operand splitters): Use any_fp_register_operand
16044         constraint.  Do not use ANY_FP_REG_P in insn condition.
16045
16046 2011-05-31  Jan Hubicka  <jh@suse.cz>
16047
16048         * cgraph.h (cgraph_inline_failed_t): Give enum a name
16049         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16050         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16051         (lto_output_edge): Use output_enum and var_len_unsigned.
16052         (lto_output_varpool_node): Likewise.
16053         (input_overwrite_node): Do not take resolution parameter;
16054         extract it from a bitpack.
16055         (input_node): Do not read resolution; use input_enum and
16056         var_len_unsigned.
16057         (input_varpool_node): Likewise.
16058         (input_edge): Likewise.
16059         (input_cgraph_1): Likewise.
16060
16061 2011-05-31  Richard Guenther  <rguenther@suse.de>
16062
16063         * gimple.c (gimple_register_canonical_type): Do not register
16064         any types via gimple_register_type.
16065
16066 2011-05-31  Jan Hubicka  <jh@suse.cz>
16067
16068         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16069         of thunks.
16070
16071 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
16072
16073         PR rtl-optimization/49235
16074         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16075         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16076
16077 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
16078
16079         PR tree-optimization/49093
16080         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16081         data references.
16082
16083 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
16084
16085         PR debug/49047
16086         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16087         for concrete functions containing the code of cloned functions.
16088
16089 2011-05-31  Richard Guenther  <rguenther@suse.de>
16090
16091         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16092         to ...
16093         (forward_propagate_into_comparison_1): ... this.
16094         (forward_propagate_comparison): Rename to ...
16095         (forward_propagate_into_comparison): ... this.  Split out
16096         real forward propagation code to ...
16097         (forward_propagate_comparison): ... this.
16098         (forward_propagate_into_gimple_cond): Remove looping.
16099         (forward_propagate_into_cond): Likewise.
16100         (simplify_not_neg_expr): Return whether we have done something.
16101         (simplify_gimple_switch): Likewise.
16102         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16103         (ssa_forward_propagate_and_combine): ... this.  Re-structure
16104         to do a forward forward-propagation walk on BBs and a backward
16105         stmt combining walk on BBs.  Consistently re-scan changed statements.
16106         (pass_forwprop): Adjust.
16107
16108 2011-05-30  Ian Lance Taylor  <iant@google.com>
16109
16110         * godump.c (go_format_type): Correct length of name added to
16111         obstack for anonymous field.
16112
16113 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16114
16115         PR target/49186
16116         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16117         part of the second operand is 0.
16118
16119 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
16120
16121         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16122         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
16123         to memory for !TARGET_MEMORY_MISMATCH_STALL.
16124         (*movdf_internal_rex64): Do not penalize F->r alternative.
16125         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16126         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
16127         when optimizing function for size.  Do not move CONST_DOUBLEs
16128         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16129         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
16130         SUBREGs.  Do not check for MEM_P operands in the insn condition,
16131         check for ANY_FP_REGNO_P instead.
16132         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16133         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16134         function for speed.
16135         * config/i386/i386.c (ix86_option_override_internal): Do not
16136         set TARGET_INTEGER_DFMODE_MOVES here.
16137
16138 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16139
16140         PR target/49168
16141         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16142
16143 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16144
16145         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16146         DW_TAG_rvalue_reference_type even for
16147         -gdwarf-4 -fno-debug-types-section.
16148
16149 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16150
16151         PR tree-optimization/46728
16152         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16153         (build_and_insert_binop): New.
16154         (gimple_expand_builtin_pow): Reorder args for
16155         build_and_insert_call; use build_and_insert_binop; add more
16156         optimizations for fractional exponents.
16157
16158 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
16159
16160         PR bootstrap/49190
16161
16162         Revert:
16163         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16164
16165         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16166         tree_common.
16167         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16168         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16169         TS_BASE instead of TS_COMMON.
16170         * varasm.c (assemble_name): Remove assert.
16171
16172 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16173
16174         * config.gcc: Keep obselete list sorted.
16175
16176 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16177             Eric Botcazou  <ebotcazou@adacore.com>
16178
16179         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16180         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16181         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16182         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16183         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16184
16185 2011-05-30  Richard Guenther  <rguenther@suse.de>
16186
16187         * gimple.c (gimple_types_compatible_p_1): Compare record
16188         and union type members properly.
16189
16190 2011-05-30  Richard Guenther  <rguenther@suse.de>
16191
16192         PR tree-optimization/49210
16193         * ipa-split.c (split_function): Care for the case where the call
16194         result is not trivially convertible to the result holding variable.
16195
16196 2011-05-30  Richard Guenther  <rguenther@suse.de>
16197
16198         PR tree-optimization/49218
16199         * tree-vrp.c (adjust_range_with_scev): Properly check whether
16200         overflow occured.
16201
16202 2011-05-30  Richard Guenther  <rguenther@suse.de>
16203
16204         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16205         New function split out from ...
16206         (forward_propagate_into_gimple_cond): ... here.  Adjust.
16207         (forward_propagate_into_cond): Likewise.
16208         (forward_propagate_comparison): Also propagate into
16209         comparisons on assignment RHS.  Change return value to
16210         behave similar to forward_propagate_into_cond.
16211         (tree_ssa_forward_propagate_single_use_vars): Handle
16212         strict-overflow warnings properly for forward_propagate_comparison.
16213
16214 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16215
16216         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16217         from plugin linker.
16218         * configure: Regenerate.
16219
16220 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
16221
16222         PR tree-optimization/49199
16223         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16224         non-reduction operands are either defined in the loop or by induction.
16225
16226 2011-05-29  Xinliang David Li  <davidxl@google.com>
16227
16228         * opts-global.c (handle_common_deferred_options): Handle new options.
16229         * passes.c (register_one_dump_file): Call register_pass_name.
16230         (execute_one_pass): Check explicit enable/disable flag.
16231         (passr_hash): New function.
16232         (passr_eq): Ditto.
16233         (register_pass_name): Ditto.
16234         (get_pass_by_name): Ditto.
16235         (pass_hash): Ditto.
16236         (pass_eq): Ditto.
16237         (enable_pass): Ditto.
16238         (disable_pass): Ditto.
16239         (is_pass_explicitly_enabled_or_disabled): Ditto.
16240
16241 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
16242
16243         * config/i386/i386.md (*movoi_internal_avx): Use
16244         standard_sse_constant_opcode for alternative 0.
16245         (*movti_internal_sse): Ditto.
16246         (*movti_internal_rex64): Use standard_sse_constant_opcode for
16247         alternative 2.
16248         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16249         sselog1 type moves.
16250         (*movsi_internal): Ditto.
16251         (*movdi_internal): Ditto.  Add ssecvt type moves.
16252
16253 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16254
16255         PR target/48830
16256         * rtlanal.c (simplify_subreg_regno): Adjust comment.
16257
16258 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
16259
16260         PR rtl-optimization/49095
16261         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16262         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16263
16264 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16265
16266         PR target/43995
16267         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16268         recurse_p argument.  Only follow register copies if it is set,
16269         and prevent mips_find_pic_call_symbol from recursing.
16270         (mips_find_pic_call_symbol): Add a recurse_p argument.
16271         Pass it to mips_pic_call_symbol_from_set.
16272         (mips_annotate_pic_calls): Update accordingly.
16273
16274 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16275
16276         * emit-rtl.c (try_split): Use a loop to search for
16277         NOTE_INSN_CALL_ARG_LOCATIONs.
16278
16279 2011-05-29  Richard Guenther  <rguenther@suse.de>
16280
16281         PR tree-optimization/49217
16282         * ipa-pure-const.c (propagate_pure_const): Fix typos.
16283
16284 2011-05-28  Jan Hubicka  <jh@suse.cz>
16285
16286         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16287         length.
16288         (string_slot_free): Remove
16289         (create_output_block): Initialize obstack.
16290         (destroy_output_block): Free obstack.
16291         (lto_string_index): Add PERSISTENT parameter; do not duplicate
16292         the string unless it needs to be added into the hash.
16293         (lto_output_string_with_length): Add persistent attribute;
16294         handle NULL strings.
16295         (lto_output_string): Add PERSISTENT parameter.
16296         (output_string_cst, output_identifier): Simplify.
16297         (lto_output_location_bitpack): Update.
16298         (lto_output_builtin_tree): Update.
16299         * lto-streamer.h (struct output_block): Add obstack.
16300         (lto_output_string, lto_output_string_with_length): Remove
16301         declarations; functions are static now.
16302
16303 2011-05-28  Jan Hubicka  <jh@suse.cz>
16304
16305         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16306         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16307         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16308         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16309         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16310         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16311         unpack_ts_decl_with_vis_value_fields,
16312         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16313         lto_get_builtin_tree): Use enum and variable length i/o.
16314         * basic-block.h (profile_status_d): Add PROFILE_LAST.
16315         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16316         New functions.
16317         (bp_pack_enum, bp_unpack_enum): New macros.
16318
16319 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16320
16321         * genrecog.c: Remove redundant forward declarations.
16322
16323 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16324
16325         * config.gcc: Deprecate mips*-*-openbsd*.
16326
16327 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16328
16329         PR bootstrap/49195
16330         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16331         for match_op_dup.
16332
16333 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
16334
16335         PR middle-end/48981
16336         * gengtype.c (vec_prefix_type): New function.
16337         (note_def_vec): Use vec_prefix_type and change the length
16338         attribute to be based on the prefix.
16339         * vec.c: Include coretypes.h before vec.h.
16340         (struct vec_prefix): Remove.
16341         (vec_gc_p_reserve): Change the offsetof to sizeof.
16342         (vec_gc_p_reserve_exact): Likewise.
16343         (vec_heap_p_reserve): Likewise.
16344         (vec_heap_p_reserve_exact): Likewise.
16345         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16346         (vec_stack_p_reserve): Change the offsetof to sizeof.
16347         (vec_stack_p_reserve_exact): Likewise.
16348         * vec.h (struct vec_prefix): New struct definition.
16349         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16350         (VEC_T_GTY(T,B)): Likewise.
16351         (DEF_VEC_FUNC_P(T)): Use prefix field.
16352         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16353         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16354
16355 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16356
16357         PR tree-optimization/46728
16358         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16359         (powi_as_mults): Add gimple_set_location.
16360         (build_and_insert_call): New.
16361         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16362         0.5, 0.25, 0.75, 1./3., or 1./6.
16363
16364 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
16365
16366         * doc/contrib.texi: Update copyright years.
16367         (Contributors): Add Zdenek Sojka.
16368
16369 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
16370
16371         * c-decl.c (c_push_function_context): Copy the current statement
16372         list stack.
16373         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16374         (finish_struct): Call building_stmt_list_p instead of checking
16375         cur_stmt_list.
16376         * c-parser.c (c_parser_postfix_expression): Likewise.
16377         * c-typeck.c (c_end_compound_stmt): Likewise.
16378         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16379         * tree-iterator.c (stmt_list_cache): Change to a VEC.
16380         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16381         (free_stmt_list): Likewise.
16382         * tree.h (struct tree_statement_list): Include typed_tree instead
16383         of tree_common.
16384         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16385         as TS_TYPED instead of TS_COMMON.
16386
16387 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16388             Uros Bizjak  <ubizjak@gmail.com>
16389
16390         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16391         (HAVE_AS_IX86_TLSGDPTL): Define.
16392         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16393         (HAVE_AS_IX86_TLSLDMPLT): Define.
16394         * configure: Regenerate.
16395         * config.in: Regenerate.
16396         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16397         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16398         TARGET_SUN_TLS, use @tlsgdplt or @plt.
16399         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16400         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16401         @tlsldmplt or @plt.
16402         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16403
16404 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16405
16406         * sched-int.h (struct _haifa_deps_insn_data): New members cond
16407         and reverse_cond.
16408         (INSN_COND, INSN_REVERSE_COND): New macros.
16409         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16410         once.
16411         (sched_get_condition_with_rev): Cache the results, and look them up
16412         if possible.
16413         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16414         are clobbered by the current insn.
16415         * target.def (exposed_pipline): New sched data hook.
16416         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16417         * doc/tm.texi: Regenerate.
16418
16419 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16420
16421         PR tree-optimization/49170
16422         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
16423         sincos or cexp.
16424
16425 2011-05-27  Richard Guenther  <rguenther@suse.de>
16426
16427         PR middle-end/49189
16428         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16429         of comparisons.
16430
16431 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16432
16433         * haifa-sched.c (sched_scan_info): Remove.
16434         (schedule_block): Call sched_extend_luids rather than sched_init_luids
16435         with NULL args.
16436         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16437         Remove functions.
16438         (sched_scan): Remove.
16439         (sched_extend_luids): Renamed from luids_extend_insn and no longer
16440         static.  All callers changed.
16441         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16442         static.  All callers changed.
16443         (sched_init_luids): Remove all arguments except the first.  All
16444         callers changed.  Don't use sched_scan.
16445         (haifa_init_h_i_d): Likewise.
16446         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16447         manually rather than using sched_init_luids.  Likewise with
16448         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16449         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16450         rather than sched_init_luids with NULL args.
16451         * sel-sched-ir.c (new_insns): Remove variable.
16452         (sched_scan): New static function, previously in haifa-sched.c.  Remove
16453         all arguments but the first two; all callers changed.
16454         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16455         rather than sched_init_luids.
16456         (sel_init_bbs): Remove second argument.  All callers changed.
16457         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16458         with NULL arguments.
16459         (create_insn_rtx_from_pattern): Likewise.
16460         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16461         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16462         (sched_init_insn_luid, sched_extend_luids): Declare.
16463         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16464         declarations.
16465
16466 2011-05-27  Richard Guenther  <rguenther@suse.de>
16467
16468         PR middle-end/49177
16469         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16470         A CMP B ? (T) true : (T) false for non-integral types T again.
16471
16472 2011-05-27  Jan Hubicka  <jh@suse.cz>
16473
16474         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16475         so 0 means NULL string.
16476         (lto_output_string_with_length): ... here.
16477         (lto_output_string, output_string_cst, output_identifier): Update
16478         handling of NULL strings.
16479         (lto_output_location_bitpack): New function.
16480         (lto_output_location): Use it.
16481         (lto_output_tree_ref): Use output_record_start.
16482         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16483         len values.
16484         * lto-streamer-in.c (string_for_index): Break out from ...; offset
16485         values by 1.
16486         (input_string_internal): ... here;
16487         (input_string_cst, input_identifier, lto_input_string): Update handling
16488         of NULL strings.
16489         (lto_input_location_bitpack): New function
16490         (lto_input_location): Use it.
16491         (unpack_ts_type_common_value_fields): Pack align & alias in var len
16492         values.
16493         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16494         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16495         (bp_pack_value): Sanity check the value range.
16496         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16497         New functions.
16498         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16499         New functions.
16500
16501 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
16502
16503         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16504         call_arg_location instructions down the floor.
16505
16506 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
16507
16508         PR rtl-optimization/49154
16509         * ira.c (setup_pressure_classes): Process class without sublcasses
16510         as a candidate for pressure classes.
16511
16512 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
16513
16514         PR rtl-optimization/48575
16515         * genrecog.c (position_type): New enum.
16516         (position): New structure.
16517         (decision): Use position structure instead of a string.
16518         (root_pos, peep2_insn_pos_list): New variables.
16519         (next_position, compare_positions): New functions.
16520         (new_decision): Use position structures instead of strings.
16521         (maybe_both_true): Likewise.
16522         (change_state): Likewise.
16523         (write_tree): Likewise.
16524         (make_insn_sequence): Likewise.
16525
16526 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16527
16528         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16529         TS_BASE instead of TS_COMMON.
16530         (find_decls_types_r): Check for TS_TYPED structure before looking at
16531         TREE_TYPE.
16532         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16533         Add chain field.
16534         (BLOCK_CHAIN): Use new chain field.
16535
16536 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
16537
16538         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16539         moves expensive on Power7 also.
16540
16541 2011-05-26  Richard Guenther  <rguenther@suse.de>
16542
16543         * fold-const.c (fold_unary_loc): Remove bogus code.
16544
16545 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16546
16547         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16548         tree_common.
16549         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16550         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16551         TS_BASE instead of TS_COMMON.
16552         * varasm.c (assemble_name): Remove assert.
16553
16554 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16555
16556         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16557         substituted first.
16558         * libgcc-std.ver: Delete file.
16559
16560 2011-05-26  Richard Guenther  <rguenther@suse.de>
16561
16562         PR tree-optimization/48702
16563         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16564         only when we know the base address is within bounds.
16565         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16566         assume the base address of TARGET_MEM_REFs is in bounds.
16567
16568 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16569
16570         PR target/49099
16571         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16572         declaration in TARGET_SOLARIS.
16573
16574 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
16575
16576         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16577         The instruction is then expanded explicitly.
16578         (supported_compare): Callable instruction.
16579         (compare): Likewise.
16580
16581 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16582
16583         PR c++/49165
16584         * gimplify.c (shortcut_cond_r): Don't special case
16585         COND_EXPRs if they have void type on one of their arms.
16586
16587 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16588
16589         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16590         to reduce duplication, and to achieve a slightly more logical order
16591         of operations.
16592
16593 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16594
16595         PR tree-optimization/49161
16596         * tree-vrp.c (struct case_info): New type.
16597         (compare_case_labels): Sort case_info structs instead of
16598         trees, and not primarily by CASE_LABEL uids but by
16599         label_for_block indexes.
16600         (find_switch_asserts): Put case labels into struct case_info
16601         array instead of TREE_VEC, adjust sorting, compare label_for_block
16602         values instead of CASE_LABELs.
16603
16604 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16605
16606         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16607         ("orndi3_neon"): Likewise.
16608         ("bic<mode>3_neon"): Likewise.
16609
16610 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
16611
16612         PR tree-optimization/49038
16613         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16614         Ensure at least one epilogue iteration if required by data
16615         accesses with gaps.
16616         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16617         to mark loops that require peeling for gaps.
16618         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16619         (vect_get_known_peeling_cost): Take peeling for gaps into
16620         account.
16621         (vect_transform_loop): Generate epilogue if required by data
16622         access with gaps.
16623         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16624         loop as requiring an epilogue if there are gaps in the end of
16625         the strided group.
16626
16627 2011-05-25  Ian Lance Taylor  <iant@google.com>
16628
16629         * godump.c (go_format_type): Output the first field with a usable
16630         Go type, if any.
16631
16632 2011-05-25  Ian Lance Taylor  <iant@google.com>
16633
16634         * godump.c (go_format_type): Check for invalid type names, pointer
16635         target types, and struct field types.
16636
16637 2011-05-25  Jason Merrill  <jason@redhat.com>
16638
16639         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16640
16641 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
16642
16643         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16644
16645 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16646
16647         * config/i386/i386.md (*movqi_extv_1)): Put back
16648         "register_operand" check in "type" calculation.
16649         (*movqi_extzv_2): Likewise.
16650
16651 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16652
16653         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16654
16655 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16656
16657         PR bootstrap/49160
16658         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16659         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16660         __divxc3, __divtc3): Wrap definitions in #ifndef.
16661
16662 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16663
16664         PR target/49142
16665         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16666         "register_operand" check and replace q_regs_operand with
16667         QIreg_operand in "type" calculation.
16668         (*movqi_extv_1): Likewise.
16669         (*movqi_extzv_2_rex64): Likewise.
16670         (*movqi_extzv_2): Likewise.
16671
16672         * config/i386/predicates.md (QIreg_operand): New.
16673
16674 2011-05-25  Richard Guenther  <rguenther@suse.de>
16675
16676         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16677         type-based offset disambiguation, streamline MEM_REF and
16678         TARGET_MEM_REF handling.
16679
16680 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16681
16682         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16683         (bdesc_special_args): Add pause intrinsic.
16684
16685         * config/i386/i386.md (UNSPEC_PAUSE): New.
16686         (pause): Likewise.
16687         (*pause): Likewise.
16688         * config/i386/ia32intrin.h (__pause): Likewise.
16689
16690         * doc/extend.texi (X86 Built-in Functions): Add documentation for
16691         pause intrinsic.
16692
16693 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16694
16695         PR tree-optimization/46728
16696         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16697         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16698
16699 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
16700
16701         * tree.h (struct tree_exp): Inherit from struct tree_typed.
16702         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16703         instead of TS_COMMON.
16704
16705 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16706
16707         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16708         LIBGCC2_GNU_PREFIX is defined.
16709         (__N): New macro.
16710         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16711         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16712         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16713         __clz_tab): Define using __N.
16714         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16715         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16716         * target.def (libfunc_gnu_prefix): New hook.
16717         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16718         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16719         * doc/tm.texi: Regenerate.
16720         * system.h (LIBGCC2_GNU_PREFIX): Poison.
16721         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16722         account.
16723         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16724         (init_optabs): Likewise for the bswap libfuncs.
16725         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16726         and divide.
16727         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16728         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16729         * libgcc-std.ver: Remove.
16730         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16731         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16732         libgcc-std.ver.
16733         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16734         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16735         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16736         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16737         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16738         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16739         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16740         * config/fixed-bit.h (FIXED_OP): Define differently depending on
16741         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16742         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16743
16744 2011-05-25  Jan Hubicka  <jh@suse.cz>
16745
16746         * lto-streamer-out.c (output_record_start): Use lto_output_enum
16747         (lto_output_tree): Use output_record_start.
16748         * lto-streamer-in.c (input_record_start): Use lto_input_enum
16749         (lto_get_pickled_tree): Use input_record_start.
16750         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16751         (lto_value_range_error): New function.
16752         * lto-streamer.h (lto_value_range_error): Declare.
16753         (lto_output_int_in_range, lto_input_int_in_range): New functions.
16754         (lto_output_enum, lto_input_enum): New macros.
16755
16756 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16757
16758         * common.opt (flag_stack_usage_info): New variable.
16759         (-Wstack-usage): New option.
16760         * doc/invoke.texi (Warning options): Document -Wstack-usage.
16761         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16762         <OPT_fstack_usage>: Likewise.
16763         * toplev.c (output_stack_usage): Handle -Wstack-usage.
16764         * calls.c (expand_call): Test flag_stack_usage_info variable instead
16765         of flag_stack_usage.
16766         (emit_library_call_value_1): Likewise.
16767         * explow.c (allocate_dynamic_stack_space): Likewise.
16768         * function.c (instantiate_virtual_regs ): Likewise.
16769         (prepare_function_start): Likewise.
16770         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16771         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16772         * config/arm/arm.c (arm_expand_prologue): Likewise.
16773         (thumb1_expand_prologue): Likewise.
16774         * config/avr/avr.c (expand_prologue): Likewise.
16775         * config/i386/i386.c (ix86_expand_prologue): Likewise.
16776         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16777         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16778         * config/mips/mips.c (mips_expand_prologue): Likewise.
16779         * config/pa/pa.c (hppa_expand_prologue): Likewise.
16780         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16781         * config/s390/s390.c (s390_emit_prologue): Likewise.
16782         * config/sh/sh.c (sh_expand_prologue): Likewise.
16783         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16784         * config/spu/spu.c (spu_expand_prologue): Likewise.
16785
16786 2011-05-25  Richard Guenther  <rguenther@suse.de>
16787
16788         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16789         (gimple_canonical_types_compatible_p): Likewise.
16790
16791 2011-05-25  Jan Hubicka  <jh@suse.cz>
16792
16793         PR middle-end/49062
16794         * ipa.c (function_and_variable_visibility): Only add to same
16795         comdat group list if DECL_ONE_ONLY.
16796
16797 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
16798
16799         PR rtl-optimization/49014
16800         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16801
16802 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16803
16804         PR target/49128
16805         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16806
16807 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16808
16809         PR rtl-optimization/48757
16810         * ira-build.c (loop_with_eh_edge_p): Rename to
16811         loop_with_complex_edge_p, check edges on complexity, make function
16812         conditional.
16813         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16814         conditional.
16815
16816 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16817
16818         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16819         force flag_ira_share_save_slots to 0.
16820
16821 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16822
16823         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16824         (vt_initialize): Set PROLOGUE_BB unconditionally.
16825         Add block comment about CFA_BASE_RTX machinery.
16826         Reset FP_CFA_OFFSET to -1 on all invalid paths.
16827         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16828
16829 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
16830
16831         PR objc/48187
16832         * c-parser.c (c_parser_objc_class_instance_variables): More robust
16833         parsing of syntax error in ObjC instance variable lists.  In
16834         particular, avoid an infinite loop if there is a stray ']'.
16835         Updated error message.
16836
16837 2011-05-24  Ian Lance Taylor  <iant@google.com>
16838
16839         * godump.c (go_define): Don't accept a string immediately after
16840         another operand.
16841
16842 2011-05-24  Ian Lance Taylor  <iant@google.com>
16843
16844         * godump.c (struct godump_container): Add invalid_hash field.
16845         (go_format_type): Return false if type is found in invalid_hash.
16846         (go_output_typedef): Add invalid type to invalid_hash.
16847         (go_finish): Create and delete invalid_hash.
16848
16849 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16850
16851         PR tree-optimization/46728
16852         * tree-ssa-math-opts.c (powi_table): New.
16853         (powi_lookup_cost): New.
16854         (powi_cost): New.
16855         (powi_as_mults_1): New.
16856         (powi_as_mults): New.
16857         (gimple_expand_builtin_powi): New.
16858         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16859         (gate_cse_sincos): Remove sincos/cexp restriction.
16860
16861 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16862
16863         PR target/3746
16864         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16865         mips-tdump native.
16866         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16867         * mips-tdump.c: Likewise.
16868
16869 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16870
16871         PR target/49128
16872         * config/i386/driver-i386.c (host_detect_local_cpu): Always
16873         add -mno-XXX.  Handle FMA.
16874
16875 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16876
16877         PR rtl-optimization/48633
16878         * ira-build.c (loop_with_eh_edge_p): New function.
16879         (mark_loops_for_removal): Use it.
16880
16881 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16882
16883         PR rtl-optimization/48971
16884         * ira.c (setup_pressure_classes): Don't check register move cost
16885         for classes with one registers.  Don't add pressure class if there
16886         is a pressure class with the same available hard registers.
16887         Check contains_reg_of_mode.  Fix a typo in collecting
16888         temp_hard_regset.  Ignore hard registers not belonging to a class.
16889
16890 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
16891
16892         PR target/49133
16893         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16894
16895 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16896             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16897
16898         PR gcov-profile/48845
16899         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16900
16901 2011-05-24  Richard Guenther  <rguenther@suse.de>
16902
16903         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16904         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16905         (gimple_types_compatible_p_1): Adjust.
16906         (iterative_hash_canonical_type): Do not bother about complete vs.
16907         incomplete types.
16908         (gimple_canonical_types_compatible_p): Likewise.
16909
16910 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16911
16912         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16913
16914 2011-05-24  Richard Guenther  <rguenther@suse.de>
16915
16916         PR bootstrap/49078
16917         * gimple.c (gimple_register_canonical_type): Revert
16918         previous change.
16919         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16920         does not for a tree for the case where it matters.  Cache
16921         pointer-type alias-sets.
16922
16923 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16924
16925         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16926         (OBJS): Remove options.o, opts-common.o and prefix.o.
16927         (OBJS-libcommon-target): New.
16928         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16929         (BACKEND): Include libcommon-target.a.
16930         (MOSTLYCLEANFILES): Include libcommon-target.a.
16931         (libcommon-target.a): New.
16932         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16933         prefix.o.
16934
16935 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16936
16937         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16938         parts of output shared with the driver.
16939         * optc-gen.awk: Don't generate parts of output not shared with the
16940         driver.
16941         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16942         * doc/options.texi (SourcerInclude): Mention options-save.c.
16943         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16944         (OBJS): Add options-save.o.
16945         (options-save.c, options-save.o): New.
16946         (options.o): Update dependencies.
16947         (gcc-options.o): Remove.
16948         (mostlyclean): Remove options-save.c.
16949
16950 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16951
16952         PR debug/49032
16953         * dbxout.c: Include cgraph.h.
16954         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16955         and without value expr, return NULL if no varpool node exists for
16956         it or if it is not needed.
16957         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16958
16959         PR c/49120
16960         * c-decl.c (start_decl): Convert expr to void_type_node.
16961
16962 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16963
16964         PR rtl-optimization/48826
16965         * emit-rtl.c (try_split): When splitting a call that is followed
16966         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16967
16968 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16969
16970         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16971         parameters passed in memory prefer using DECL_INCOMING_RTL over
16972         the pseudos it will be copied into.
16973
16974 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16975
16976         PR target/47315
16977         * config/i386/i386.c (ix86_option_override_internal): Save the
16978         initial options after checking vzeroupper.
16979
16980 2011-05-23  David Li  <davidxl@google.com>
16981
16982         PR tree-optimization/48988
16983         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16984         Initialize has_valid_pred for each pred chain.
16985
16986 2011-05-23  Richard Guenther  <rguenther@suse.de>
16987
16988         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16989         (iterative_hash_gimple_type): Always hash type names.
16990
16991 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16992
16993         * c-typeck.c (build_function_call_vec): Tweak call to
16994         check_function_arguments.
16995
16996 2011-05-23  Richard Guenther  <rguenther@suse.de>
16997
16998         PR tree-optimization/49115
16999         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
17000         is not necessarily carried out, do not claim it kills the ref.
17001         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
17002
17003 2011-05-23  Richard Guenther  <rguenther@suse.de>
17004
17005         PR middle-end/15419
17006         * builtins.c (fold_builtin_memory_op): Be less restrictive about
17007         what pointer types we accept for folding.
17008
17009 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17010
17011         * gthr-gnat.c: Remove.
17012         * gthr-gnat.h: Remove.
17013         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
17014         * config/t-freebsd (LIB2ADDEH): Likewise.
17015         * config/t-linux (LIB2ADDEH): Likewise.
17016         * config/t-sol2 (LIB2ADDEH): Likewise.
17017         * config/ia64/t-vms (LIB2ADDEH): Likewise.
17018         * configure.ac (target_thread_file): Remove gnat handling.
17019         * configure: Regenerate.
17020         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
17021
17022 2011-05-23  Tristan Gingold  <gingold@adacore.com>
17023             Eric Botcazou  <ebotcazou@adacore.com>
17024
17025         * gcov.c (create_file_names): If no object directory is specified,
17026         keep the directory of the file.
17027
17028 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17029
17030         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
17031         * configure: Regenerate.
17032
17033 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
17034
17035         PR middle-end/48973
17036         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
17037         failed and the comparison has a single bit signed type, use
17038         constm1_rtx instead of const1_rtx for true value.
17039         (do_store_flag): If ops->type is single bit signed type, disable
17040         signel bit test optimization and pass -1 instead of 1 as last
17041         parameter to emit_store_flag_force.
17042
17043 2011-05-23  Tom de Vries  <tom@codesourcery.com>
17044
17045         PR target/45098
17046         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17047         function.
17048         (infer_loop_bounds_from_undefined): Use new function.
17049
17050 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17051
17052         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17053         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
17054         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17055         and -O0 otherwise.
17056         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17057
17058 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17059
17060         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17061         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17062         returns true.
17063
17064 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17065
17066         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17067
17068 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17069
17070         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17071         UNSPEC_MOVE_PIC pattern.
17072
17073 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17074
17075         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17076         (sparc-*-rtems*): Likewise.
17077         (sparc64-*-elf*): Likewise.
17078         (sparc64-*-rtems*): Likewise.
17079         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
17080         * config/sparc/t-crtin: New file.
17081         * config/sparc/t-sol2 (crti.o): Delete rule.
17082         (crtn.o): Likewise.
17083         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17084         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17085         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17086         (ENDFILE_SPEC): Add crtn.o.
17087
17088 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17089
17090         PR middle-end/48689
17091         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17092         CODE_CONTAINS_STRUCT (TS_COMMON).
17093
17094 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
17095
17096         PR middle-end/49029
17097         * expmed.c (extract_fixed_bit_field): Test whether target can be used
17098         only after deciding which mode to use.
17099
17100 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17101
17102         PR target/45098
17103         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17104         for call to get_shiftadd_cost.
17105
17106 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
17107
17108         PR target/49104
17109         * config/i386/cpuid.h (bit_MMXEXT): New define.
17110
17111 2011-05-22  Nick Clifton  <nickc@redhat.com>
17112
17113         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17114         initialisation of non-existant args[2] element.  Use args[] array
17115         not arg[] array to pass arguments to build_function_type_list.
17116
17117 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
17118
17119         PR tree-optimization/49087
17120         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17121
17122 2011-05-21  Jason Merrill  <jason@redhat.com>
17123
17124         PR c++/49092
17125         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17126         static storage duration.
17127
17128 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17129
17130         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17131         frame pointer.
17132
17133 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17134
17135         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17136         false if there are call-saved registers here...
17137         (sparc_can_use_return_insn_p): ...but here instead.
17138         (save_or_restore_regs): Fix thinko.
17139         (sparc_expand_prologue): Use current_function_is_leaf.
17140         (sparc_frame_pointer_required): Likewise.
17141
17142 2011-05-21  Nick Clifton  <nickc@redhat.com>
17143
17144         PR target/49098
17145         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17146
17147 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17148
17149         * gengtype.c (walk_type): Implemented "atomic" GTY option.
17150         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17151
17152 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
17153
17154         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
17155         * optc-gen.awk: Move common code to opt-read.awk.
17156         * opth-gen.awk: Likewise.
17157         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17158
17159 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
17160
17161         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17162
17163 2011-05-20  Tom de Vries  <tom@codesourcery.com>
17164
17165         PR target/45098
17166         * tree-ssa-loop-ivopts.c: Include expmed.h.
17167         (get_shiftadd_cost): New function.
17168         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
17169
17170 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17171
17172         PR bootstrap/49086
17173         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17174         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17175
17176 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17177
17178         * Makefile.in: Update comment referring to $(OBJS-common).
17179
17180 2011-05-20  Ian Lance Taylor  <iant@google.com>
17181
17182         * godump.c (go_output_typedef): Put enum constants in the macro
17183         hash table to avoid duplicate Go const definitions.
17184
17185 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17186
17187         * Makefile.in (LIBDEPS): Add libcommon.a.
17188         (LIBS): Likewise.
17189         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17190         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17191         pretty-print.o and version.o.
17192         (OBJS-libcommon): New.
17193         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17194         (BACKEND): Add libcommon.a.
17195         (MOSTLYCLEANFILES): Likewise.
17196         (libcommon.a): New.
17197         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17198         (cpp$(exeext)): Likewise.
17199         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17200         pretty-print.o and input.o.
17201         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17202         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17203         (errors.o): Remove.
17204         (mips-tfile): Don't explicitly use version.o.
17205         (mips-tdump): Likewise.
17206         (gcov.o): Depend on $(DIAGNOSTIC_H).
17207         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17208         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17209         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17210         * gcov-dump.c: Include intl.h and diagnostic.h.
17211         (main): Initialize diagnostics.
17212         * gcov.c: Include diagnostic.h.
17213         (fnotice): Remove.
17214         (main): Initialize diagnostics.
17215         * lto-wrapper.c: Include diagnostic.h.
17216         (main): Initialize diagnostics.
17217
17218 2011-05-20  Michael Matz  <matz@suse.de>
17219
17220         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17221
17222 2011-05-20  Michael Matz  <matz@suse.de>
17223             Richard Guenther  <rguenther@suse.de>
17224
17225         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17226         use lto_streamer_cache_append directly instead of returning a VEC.
17227         (preload_common_node): Remove.
17228         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17229         track seen nodes.
17230         (lto_streamer_cache_create): Call lto_preload_common_nodes.
17231
17232 2011-05-20  Richard Guenther  <rguenther@suse.de>
17233
17234         PR tree-optimization/49079
17235         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17236         MEM_REFs correctly for the trailing array access detection.
17237         Special case constants the same way as decls for overall size
17238         constraining.
17239
17240 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
17241
17242         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17243         argument expansion.
17244
17245 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17246
17247         PR tree-optimization/49073
17248         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17249         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17250         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17251
17252 2011-05-20  Richard Guenther  <rguenther@suse.de>
17253
17254         PR middle-end/48849
17255         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17256         of pointer types the same way the middle-end does.
17257
17258 2011-05-20  Richard Guenther  <rguenther@suse.de>
17259
17260         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17261         or pointer-to chains.  Delay all fixup to uniquify_nodes.
17262
17263 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
17264
17265         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17266         (fma4_fmaddsub): Likewise
17267
17268 2011-05-19  Jan Hubicka  <jh@suse.cz>
17269
17270         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17271         (GIMPLE_TYPE_PAIR_SIZE): New macro.
17272         (type_pair_cache): New static var.
17273         (lookup_type_pair): Use fixed sized custom hash; make inline.
17274         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17275         calls of lookup_type_pair.
17276         (print_gimple_types_stats): Remove cache stats.
17277         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17278         and gtc_ob.
17279
17280 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
17281
17282         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17283         when TARGET_RDRND is active.
17284         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17285         Generate dummy SImode target register when target is NULL.
17286
17287 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17288
17289         * config/arm/arm-fpus.def: New.
17290         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17291         arm-fpus.def.
17292         * config/arm/arm-tables.opt: Regenerate.
17293         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17294         (arm_option_override): Don't decode FPU name to string here.
17295         * config/arm/arm.opt (mfpu=): Use Enum.
17296         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17297         Update dependencies.
17298
17299 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17300
17301         * collect2.c: Include diagnostic.h.
17302         (fatal_perror, fatal, error, fancy_abort): Remove.
17303         (main): Set progname.  Call xmalloc_set_program_name and
17304         diagnostic_initialize.
17305         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17306         scan_libraries, resolve_lib_name): Call fatal_error instead of
17307         fatal and fatal_perror.
17308         * collect2.h (error, fatal, fatal_perror): Don't declare.
17309         * tlink.c: Include diagnostic-core.h.
17310         (recompile_files): Call fatal_error instead of fatal_perror.
17311         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17312         pretty-print.o and input.o.
17313         (collect2.o, tlink.o): Update dependencies.
17314
17315 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17316
17317         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17318
17319 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17320
17321         PR target/40483
17322         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17323         COMDAT group syntax, both SPARC and x86 variants.
17324         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17325         * configure: Regenerate.
17326         * config/sol2.h (TARGET_SOLARIS): Define.
17327         (PUSHSECTION_FORMAT): Remove.
17328         (SECTION_NAME_FORMAT): Define.
17329         * config/sol2.c: Include hashtab.h.
17330         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17331         expansion, using SECTION_NAME_FORMAT.
17332         (solaris_comdat_htab): New variable.
17333         (struct comdat_entry): Define.
17334         (comdat_hash): New function.
17335         (comdat_eq): New function.
17336         (solaris_elf_asm_comdat_section): New function.
17337         (solaris_define_comdat_signature): New function.
17338         (solaris_code_end): New function.
17339         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17340         (solaris_code_end): Declare.
17341         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17342         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17343         solaris_code_end.
17344         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17345         Remove ATTRIBUTE_UNUSED.
17346         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17347         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17348         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17349         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17350         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17351         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17352         (PUSHSECTION_FORMAT): Remove.
17353         (SECTION_NAME_FORMAT): Redefine.
17354
17355 2011-05-19  Kai Tietz  <ktietz@redhat.com>
17356
17357         * tree-cfg.c (verify_gimple_assign_binary): Barf on
17358         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17359         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17360
17361 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
17362             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17363
17364         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17365
17366 2011-05-19  Richard Guenther  <rguenther@suse.de>
17367
17368         PR middle-end/48985
17369         * tree-object-size.c (addr_object_size): If the pointed-to
17370         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17371
17372 2011-05-19  Richard Guenther  <rguenther@suse.de>
17373
17374         * gimple.c (gimple_types_compatible_p_1): Compare names of
17375         the types themselves.
17376         (iterative_hash_gimple_type): And hash them that way.
17377         (gimple_register_type_1): If we register a main variant properly
17378         initialize the leader to ourselves.
17379
17380 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17381
17382         PR target/45098
17383         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17384         get_loop_invariant_expr_id.
17385         (get_loop_invariant_expr_id): Use get_expr_id.
17386         (parm_decl_cost): New function.
17387         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17388         Improve bound cost estimation.  Use different inv_expr_id for elim and
17389         express cases.
17390
17391 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17392
17393         PR target/45098
17394         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17395         cost_base.cost == 0.
17396
17397 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17398
17399         PR target/49002
17400         * config/i386/sse.md
17401         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17402         load cast.
17403
17404 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17405
17406         PR tree-optimization/49039
17407         * tree-vrp.c (extract_range_from_binary_expr): For
17408         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17409         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17410
17411 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17412
17413         PR target/45098
17414         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17415
17416 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
17417
17418         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17419         (*tls_global_dynamic_64): Ditto.
17420         (*tls_local_dynamic_base_32_gnu): Ditto.
17421         (*tls_local_dynamic_base_64): Ditto.
17422         (tls_initial_exec_64_sun): Ditto.
17423
17424 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
17425
17426         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17427         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17428         bf592-none.
17429         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17430         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17431         * config/bfin/bfin.c (bfin_cpus): Add bf592.
17432         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17433         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17434         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17435         * config/bfin/elf.h (LIB_SPEC): Add bf592.
17436
17437 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
17438
17439         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17440         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17441         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17442         target_thread_pointer, arm_structure_size_boundary, struct
17443         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17444         struct abi_name, arm_all_abis): Remove.
17445         (arm_option_override) Don't process most enumerated option values here.
17446         Don't process target_fpe_name here.  Work with integer not string for
17447         structure size boundary; use separate diagnostics for each case.
17448         * config/arm/arm.h (enum float_abi_type, enum
17449         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17450         to arm-opts.h.
17451         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17452         arm_structure_size_boundary): Remove.
17453         * config/arm/arm.opt (mabi=): Use Enum and Init.
17454         (arm_abi_type): New Enum and EnumValue entries.
17455         (mfloat-abi=): Use Enum and Init.
17456         (float_abi_type): New Enum and EnumValue entries.
17457         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17458         (mfp16-format=): Use Enum and Init.
17459         (arm_fp16_format_type): New Enum and EnumValue entries.
17460         (mstructure-size-boundary=): Use UInteger and Init.
17461         (mtp=): Use Enum and Init.
17462         (arm_tp_type): New Enum and EnumValue entries.
17463
17464 2011-05-18  Richard Guenther  <rguenther@suse.de>
17465
17466         PR tree-optimization/49018
17467         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17468         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17469         gimple_has_side_effects.
17470
17471 2011-05-18  Richard Guenther  <rguenther@suse.de>
17472
17473         * gimple.c (gimple_register_type_1): New function, split out from ...
17474         (gimple_register_type): ... here.  Avoid infinite recursion.
17475
17476 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17477
17478         PR tree-optimization/41881
17479         * tree-vectorizer.h (struct _loop_vec_info): Add new field
17480         reduction_chains along with a macro for its access.
17481         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17482         (destroy_loop_vec_info): Free reduction chains.
17483         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17484         (vect_is_slp_reduction): New function.
17485         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17486         (vect_create_epilog_for_reduction): Support SLP reduction chains.
17487         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17488         definition types for reduction chains.
17489         (vect_supported_load_permutation_p): Don't allow permutations for
17490         reduction chains.
17491         (vect_analyze_slp_instance): Support reduction chains.
17492         (vect_analyze_slp): Try to build SLP instance from reduction chains.
17493         (vect_get_constant_vectors):  Handle reduction chains.
17494         (vect_schedule_slp_instance): Mark the first statement of the
17495         reduction chain as reduction.
17496
17497 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17498
17499         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17500         names for group elements access.
17501         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17502         reduction chains as well.  Remove data reference and interleaving
17503         related words from the fields names.
17504         * tree-vect-loop.c (vect_transform_loop): Use new names for group
17505         elements access.
17506         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17507         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17508         vect_update_interleaving_chain, vect_same_range_drs,
17509         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17510         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17511         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17512         vect_analyze_group_access, vect_analyze_data_ref_access,
17513         vect_create_data_ref_ptr, vect_transform_strided_load,
17514         vect_record_strided_load_vectors): Likewise.
17515         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17516         vect_model_load_cost, vectorizable_store, vectorizable_load,
17517         vect_remove_stores, new_stmt_vec_info): Likewise.
17518         * tree-vect-slp.c (vect_build_slp_tree,
17519         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17520
17521 2011-05-18  Richard Guenther  <rguenther@suse.de>
17522
17523         PR middle-end/48989
17524         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17525         operand verification.
17526         (verify_gimple_assign_binary): Likewise.
17527         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17528         to non-1-precision BOOLEAN_TYPEs.
17529
17530 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17531
17532         PR target/45098
17533         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17534
17535 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17536
17537         PR tree-optimization/49000
17538         * tree-ssa.c (execute_update_addresses_taken): Call
17539         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
17540         be rewritten and decl has been marked for renaming, reset
17541         the debug stmt.
17542
17543 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
17544
17545         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17546         enum_opts_set when testing if attributes have set -mfpmath=.
17547
17548 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17549
17550         * config/mips/mips.c (mips_handle_option): Remove unused variable.
17551
17552 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17553
17554         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17555         info->entry with 0
17556         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
17557         id.transform_lang_insert_block with NULL.
17558
17559 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17560
17561         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17562         (output_fp_compare): Change args 3 and 4 to bool.
17563         (ix86_expand_call): Change arg 6 to bool.
17564         (ix86_attr_length_immediate_default): Change arg 2 to bool.
17565         (ix86_attr_length_vex_default): Change arg 3 to bool.
17566         * config/i386/i386.md: Update all uses.
17567         * config/i386/i386.c: Ditto.
17568         (ix86_flags_dependent): Change return type to bool.
17569
17570 2011-05-17  Richard Guenther  <rguenther@suse.de>
17571
17572         * gimple.c (type_hash_pair_compare): Fix comparison.
17573
17574 2011-05-17  Richard Guenther  <rguenther@suse.de>
17575
17576         * gimple.c (iterative_hash_gimple_type): Simplify singleton
17577         case some more, fix final hash value of the non-singleton case.
17578
17579 2011-05-17  Richard Guenther  <rguenther@suse.de>
17580
17581         PR bootstrap/49013
17582         Revert
17583         2011-05-16  Richard Guenther  <rguenther@suse.de>
17584
17585         * gimple.c (gimple_types_compatible_p_1): Use names of the
17586         type itself, not its main variant.
17587         (iterative_hash_gimple_type): Likewise.
17588
17589 2011-05-17  Richard Guenther  <rguenther@suse.de>
17590
17591         * gimple.c (gimple_register_canonical_type): Use the main-variant
17592         leader for computing the canonical type.
17593
17594 2011-05-17  Nick Clifton  <nickc@redhat.com>
17595
17596         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17597         moves.
17598
17599         * config/rx/rx.md: Add peephole to remove redundant extensions
17600         after loads.
17601         (bitset_in_memory): Use rx_restricted_mem_operand.
17602         (bitinvert_in_memory): Likewise.
17603         (bitclr_in_memory): Likewise.
17604
17605 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
17606             Nick Clifton  <nickc@redhat.com>
17607
17608         * config/rx/rx.md: Add peepholes to match a register move followed
17609         by a comparison of the moved register.  Replace these with an
17610         addition of zero that does both actions in one instruction.
17611
17612 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
17613
17614         PR target/48986
17615         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17616         predicate to allow CONST_INT.
17617         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17618
17619 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17620
17621         * opts-common.c (opt_enum_arg_to_value): New.
17622         * opts.h (opt_enum_arg_to_value): Declare.
17623         * config/i386/i386.opt (fpmath): Remove.
17624         (mfpmath=): Use Enum, Init and Save.
17625         (fpmath_unit): New Enum and EnumValue entries.
17626         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17627         name for function fpmath state.
17628         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17629         * config/i386/i386.c: Include diagnostic.h.
17630         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17631         (ix86_target_string): Take enum fpmath_unit value instead of string.
17632         (ix86_debug_options): Update call to ix86_target_string.
17633         (ix86_option_override_internal): Don't process fpmath strings here.
17634         (x86_function_specific_save, ix86_function_specific_restore):
17635         Don't handle fpmath state specially.
17636         (ix86_function_specific_print): Pass fpmath state to
17637         ix86_target_string instead of printing in this function.
17638         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17639         Handle enum attributes.
17640         (IX86_ATTR_ENUM, ix86_opt_enum): New.
17641         (ix86_valid_target_attribute_tree): Update option_strings
17642         handling.  Handle fpmath as enum option.
17643         (ix86_can_inline_p): Update field names for function fpmath state.
17644         (ix86_expand_builtin): Update call to ix86_target_string.
17645         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17646         (ix86_fpmath): Remove.
17647         * config/i386/t-i386 (i386.o): Update dependencies.
17648
17649 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17650
17651         PR preprocessor/48677
17652         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17653         from decoded_options[0], not from itself.
17654
17655 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
17656
17657         * config/i386/constraints.md (z): New constraint.
17658         * config/i386/i386.c (c): New mode attribute.
17659         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17660         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17661         constraint for operand 0.
17662         (*call_vzeroupper): Ditto.
17663         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
17664         (*call_rex64_ms_sysv_vzeroupper): Ditto.
17665         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17666         Use "lzm" constraint for operand 0.
17667         (*call_pop_vzeroupper): Ditto.
17668         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17669         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
17670         constraint for operand 0.
17671         (*sibcall_vzeroupper): Ditto.
17672         (*sibcall_rex64_ms_sysv): Ditto.
17673         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17674         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17675         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
17676         (*sibcall_pop_vzeroupper): Ditto.
17677         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17678         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17679         mode iterator.  Use "<c>zm" constraint for operand 1.
17680         (*call_value_vzeroupper): Ditto.
17681         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
17682         for operand 1.
17683         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17684         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17685         *call_value_pop_1.  Use "lzm" constraint for operand 1.
17686         (*call_value_pop_vzeroupper): Ditto.
17687         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17688         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17689         mode iterator.  Use "Uz" constraint for operand 1.
17690         (*sibcall_value_vzeroupper): Ditto.
17691         (*sibcall_value_rex64_ms_sysv): Ditto.
17692         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17693         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
17694         constraint for operand 1.
17695         (*sibcall_value_pop_vzeroupper): Ditto.
17696         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17697         and "z" constraint for operand 2.
17698         (*tls_global_dynamic_32_gnu): Ditto.
17699         (*tls_local_dynamic_base_32_gnu): Ditto.
17700         (*tls_local_dynamic_base_64): Ditto.
17701         (*tls_local_dynamic_32_once): Ditto.
17702         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17703         Update all callers.
17704         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17705
17706 2011-05-16  Richard Guenther  <rguenther@suse.de>
17707
17708         * gimple.c (gimple_types_compatible_p_1): Use names of the
17709         type itself, not its main variant.
17710         (iterative_hash_gimple_type): Likewise.
17711
17712 2011-05-16  Richard Guenther  <rguenther@suse.de>
17713
17714         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17715         always visit pointer target and function result and argument types.
17716
17717 2011-05-16  Jason Merrill  <jason@redhat.com>
17718
17719         PR c++/48999
17720         * tree-inline.c (copy_statement_list): Put back recursion.
17721
17722 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17723
17724         PR target/27663
17725         PR target/41076
17726         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17727         * config/avr/avr.md ("*ior<mode>qi.byte0",
17728         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17729
17730 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17731
17732         PR target/45099
17733         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17734         register is needed for a function argument.
17735
17736 2011-05-16  Richard Guenther  <rguenther@suse.de>
17737
17738         * gimple.c (struct type_hash_pair): New type.
17739         (type_hash_pair_compare): New function.
17740         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17741
17742 2011-05-16  Revital Eres  <revital.eres@linaro.org>
17743
17744         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17745
17746 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17747
17748         * config/i386/i386.md (floating point move splitters): Fix
17749         usage of standard_80387_constant_p.
17750         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17751
17752 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17753
17754         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17755
17756 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17757
17758         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17759         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17760         (tree_ssa_lim_finalize): Likewise.
17761
17762 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
17763
17764         * config/i386/constraint.md (Yd, Yx): New register constraints.
17765         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
17766         Yd conditional register constraint.
17767         (*movtf_internal): Use standard_sse_constant_opcode.
17768         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
17769         Yx conditional register constraint.
17770         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
17771         Yd conditional register constraint.  Use standard_sse_constant_p to
17772         check for valid SSE constants and call standard_sse_constant_opcode to
17773         output SSE insn.
17774         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17775         constants and call standard_sse_constant_opcode to output SSE insn.
17776         * config/i386/i386.c (ix86_option_ovverride_internal): Set
17777         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
17778         optimize_size is set.
17779         (standard_sse_constant_opcode): Output conditional AVX insn templates.
17780
17781 2011-05-14  Tobias Burnus  <burnus@net-b.de>
17782
17783         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17784
17785 2011-05-13  Martin Jambor  <mjambor@suse.cz>
17786
17787         * ipa-prop.c (ipa_cst_from_jfunc): New function.
17788         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17789         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17790         (evaluate_conditions_for_ipcp_clone): Removed.
17791         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17792         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17793         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17794
17795 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17796
17797         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17798         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17799         lieu of MAY_HAVE_DEBUG_STMTS.
17800         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17801         debug statements if !MAY_HAVE_DEBUG_STMTS.
17802
17803 2011-05-13  Martin Thuresson  <martint@google.com>
17804
17805         PR gcov-profile/47793
17806         * libgcov.c (gcov_exit): Support relative profile paths.
17807         * doc/invoke.texi (-fprofile-dir): Update for above change.
17808
17809 2011-05-13  Richard Guenther  <rguenther@suse.de>
17810
17811         * gimple.c (gimple_canonical_types_compatible_p): Do not use
17812         type-pair caching, do not compare hashes.
17813
17814 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
17815
17816         PR middle-end/48965
17817         * tree-cfg.c (edge_to_cases_cleanup): Return true.
17818         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17819
17820 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17821
17822         * gimplify.c (gimplify_expr): Make sure operand is boolified.
17823         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17824         compatible type for TRUTH_NOT_EXPR.
17825
17826 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17827
17828         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17829         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
17830         can_create_pseudo_p ().
17831
17832 2011-05-13  Richard Guenther  <rguenther@suse.de>
17833
17834         PR lto/48978
17835         * gimple.c (iterative_hash_gimple_type): Revert change in
17836         pointer target and function result and argument hashing.
17837
17838 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
17839
17840         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17841         (*movxf_internal_nointeger): Ditto.
17842         (*movdf_internal_rex64): Ditto.
17843         (*movdf_internal): Ditto.
17844         (*movdf_internal_nointeger): Ditto.
17845         (*movsf_internal): Ditto.
17846         (sincos splitters): Use can_create_pseudo ().
17847
17848 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
17849
17850         * config/i386/i386-opts.h: New.
17851         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17852         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17853         ix86_section_threshold): Remove.
17854         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
17855         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17856         OPT_mbranch_cost_.
17857         (ix86_option_override_internal): Don't decode strings for options
17858         other than -march=, -mtune= and -mfpmath=.  Don't allow for
17859         __attribute__ uses in remaining diagnostics for options with
17860         string arguments.  Don't check for integer arguments being negative.
17861         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17862         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17863         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17864         ix86_branch_cost, ix86_section_threshold): Remove.
17865         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17866         HeaderInclude.
17867         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17868         but not Var.
17869         (masm=): Use Enum and Init.
17870         (asm_dialect): New Enum and EnumValue entries.
17871         (mbranch-cost=): Use UInteger.
17872         (mlarge-data-threshold=): Use UInteger and Init.
17873         (mcmodel=): Use Enum and Init.
17874         (cmodel): New Enum and EnumValue entries.
17875         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17876         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17877         mregparm=): Use UInteger.
17878         (mstringop-strategy=): Use Enum and Init.
17879         (stringop_alg): New Enum and EnumValue entries.
17880         (mtls-dialect=): Use Enum and Init.
17881         (tls_dialect): New Enum and EnumValue entries.
17882         (mabi=): Use Enum and Init.
17883         (calling_abi): New Enum and EnumValue entries.
17884         (mveclibabi=): Use Enum and Init.
17885         (ix86_veclibabi): New Enum and EnumValue entries.
17886
17887 2011-05-13  Nick Clifton  <nickc@redhat.com>
17888
17889         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17890         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17891
17892 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17893
17894         PR middle-end/48984
17895         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17896         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17897         (gimple_boolify): Check for cast for boolean_type_node instead for
17898         BOOLEAN_TYPE.
17899
17900 2011-05-13  Richard Guenther  <rguenther@suse.de>
17901
17902         PR tree-optimization/48172
17903         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17904         multiplying by number of iterations for equal step.
17905         (vect_create_cond_for_alias_checks): Likewise.
17906
17907 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17908
17909         * configure.ac: Use AS_HELP_STRING throughout.
17910         * configure: Regenerate.
17911
17912 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17913
17914         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17915         (ix86_emit_restore_regs_using_mov): Likewise.
17916         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17917
17918 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17919
17920         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17921         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17922         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17923         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17924         RTX_OK_FOR_OLO10_P): ...here.
17925         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17926         SYMBOLIC_CONST.
17927
17928 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17929
17930         * gimplify.c (gimple_boolify): Re-boolify expression
17931         arguments even if expression type is of kind BOOLEAN_TYPE.
17932         (gimplify_boolean_expr): Removed.
17933         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17934         and XOR. Additional take care that we keep expression's type.
17935         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17936         of TRUTH_AND|OR|XOR_EXPR.
17937
17938 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17939
17940         PR tree-optimization/48975
17941         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17942         on all bbs here and free and clear ifc_bbs at the end.
17943
17944 2011-05-12  Richard Guenther  <rguenther@suse.de>
17945
17946         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17947         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17948         until after simple checks.
17949         (gimple_types_compatible_p): Likewise.
17950         (iterative_hash_gimple_type): Always hash pointer targets
17951         and function return and argument types.
17952         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17953         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17954         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17955         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17956         completely in the simple compare section.
17957         (gimple_register_canonical_type): Query the cache again after
17958         registering.
17959
17960 2011-05-12  Richard Guenther  <rguenther@suse.de>
17961
17962         PR tree-optimization/48172
17963         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17964         the number of iterations from the segment size calculation.
17965         (vect_create_cond_for_alias_checks): Adjust.
17966
17967 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17968
17969         PR debug/48967
17970         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17971         if validate_subreg fails.
17972
17973 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17974
17975         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17976         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17977         early.
17978
17979 2011-05-12  DJ Delorie  <dj@redhat.com>
17980
17981         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17982         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17983         created builtin into rx_builtins array.
17984         (rx_builtin_decl): New function.
17985         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17986
17987 2011-05-12  DJ Delorie  <dj@redhat.com>
17988             Nick Clifton  <nickc@redhat.com>
17989
17990         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17991         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17992         (rx_is_legitimate_address): Add pre-decrement and post-increment
17993         addressing in HImode and QImode.  Fix test for out of range
17994         REG+INT addressing.
17995         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17996         (rx_align_for_label): Test label before extracting its usage count.
17997         (rx_adjust_insn_lengths): Fix selection of insn codes.
17998         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17999
18000 2011-05-11  Jason Merrill  <jason@redhat.com>
18001
18002         * tree.c (type_hash_canon): Use struct tree_type_non_common.
18003
18004 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18005
18006         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
18007         reindent the subsequent block.
18008
18009 2011-05-11  Satoru Takabayashi  <satorux@google.com>
18010             Paul Pluzhnikov  <ppluzhnikov@google.com>
18011
18012         * doc/install.texi (Configuration): Document --with-linker-hash-style.
18013         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
18014         * config.in: Add LINKER_HASH_STYLE.
18015         * configure.ac: Add --with-linker-hash-style.
18016         * configure: Regenerate.
18017
18018 2011-05-11  Richard Guenther  <rguenther@suse.de>
18019
18020         PR middle-end/48964
18021         * gimple.c (iterative_hash_canonical_type): Fix typo.
18022
18023 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
18024
18025         * config/i386/i386.c (legitimize_tls_address)
18026         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18027         expanders directly for TARGET_GNU2_TLS.  Determine pic and
18028         __tls_get_addr symbol reference here.  Update call to
18029         gen_tls_global_dynamic_{32,64} for added arguments.
18030         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18031         expanders directly for TARGET_GNU2_TLS.  Determine
18032         __tls_get_addr symbol reference here.  Update call to
18033         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
18034         unique UNSPEC REG_EQUIV to libcall block.
18035         (ix86_tls_get_addr): Declare static.
18036         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
18037         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
18038         Do not determine pic and __tls_get_addr symbol reference here. Do not
18039         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18040         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18041         (tls_global_dynamic_64): Add operand 2.  Do not determine
18042         __tls_get_addr symbol reference here.  Do not call
18043         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18044         (tls_local_dynamic_base64): Ditto for operand 1.
18045
18046 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18047
18048         * function.c (expand_function_start): Initialize stack_check_probe_note
18049         only if the generic stack checking mechanism is used.
18050
18051 2011-05-11  Richard Guenther  <rguenther@suse.de>
18052
18053         PR tree-optimization/15256
18054         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18055         (A & B) | C, combine (A op CST1) op CST2.
18056         (tree_ssa_forward_propagate_single_use_vars): Only bother to
18057         visit assigns that have uses.
18058
18059 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
18060
18061         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18062         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18063         (unpack_ts_type_common_value_fields): ...this.  Update comment.
18064         (unpack_value_fields): Adjust for renaming.
18065         (lto_input_ts_type_tree_pointers): Split into...
18066         (lto_input_ts_type_common_tree_pointer): ...this and...
18067         (lto_input_ts_type_non_common_tree_pointers): ...this.
18068         (lto_input_tree_pointers): Adjust for above split.
18069         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18070         (pack_ts_type_common_value_fields): ...this.  Update comment.
18071         (lto_output_ts_type_tree_pointers): Split into...
18072         (lto_output_ts_type_common_tree_pointers): ...this and...
18073         (lto_output_ts_type_non_common_tree_pointers): ...this.
18074         (lto_output_tree_pointers): Adjust for above split.
18075         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18076         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18077         * stor-layout.c (vector_type_mode): Adjust location of mode field.
18078         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18079         Define.
18080         (struct tree_type): Split into...
18081         (struct tree_type_common: ...this and...
18082         (struct tree_type_with_lang_specific): ...this and...
18083         (struct tree_type_non_common): ...this.  Adjust accessor macros
18084         accordingly.
18085         (TYPE_VALUES_RAW): Define.
18086         (union tree_node): Update for above changes.
18087         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18088         TS_TYPE_NON_COMMON.
18089         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18090         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18091         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18092         * treestructu.def (TS_TYPE): Remove.
18093         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18094         Define.
18095
18096 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
18097
18098         PR debug/48159
18099         * tree-ssa.c (reset_debug_uses): New function.
18100         * tree-flow.h (reset_debug_uses): New prototype.
18101         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18102         * tree-loop-distribution.c (generate_loops_for_partition): Call
18103         reset_debug_uses on the stmts that will be removed.  Keep around
18104         all debug stmts, don't count them as bits in partition bitmap.
18105         (generate_builtin): Don't count debug stmts or labels as bits in
18106         partition bitmap.
18107
18108 2011-05-11  Richard Guenther  <rguenther@suse.de>
18109
18110         * gimple.c (gimple_type_hash_1): Merge with ...
18111         (gimple_type_hash): ... this.
18112         (gtc_visit): Remove mode parameter and simplify accordingly.
18113         (gimple_types_compatible_p_1): Likewise.
18114         (gimple_types_compatible_p): Likewise.
18115         (iterative_hash_gimple_type): Likewise.
18116         (visit): Likewise.
18117         (gimple_type_eq): Adjust.
18118
18119 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18120
18121         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18122         enters the branch create an anti edge in the opposite direction
18123         to prevent the creation of reg-moves.
18124         * modulo-sched.c: Adjust comment to reflect the fact we are
18125         scheduling closing branch.
18126         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18127         (stage_count): New field in struct partial_schedule.
18128         (calculate_stage_count): New function.
18129         (normalize_sched_times): Rename to reset_sched_times and handle
18130         incrementing the sched time of the nodes by a constant value
18131         passed as parameter.
18132         (duplicate_insns_of_cycles): Skip closing branch.
18133         (sms_schedule_by_order): Schedule closing branch.
18134         (ps_insn_find_column): Handle closing branch.
18135         (sms_schedule): Call reset_sched_times and adjust the code to
18136         support scheduling of the closing branch.
18137         (ps_insert_empty_row): Update calls to normalize_sched_times
18138         and rotate_partial_schedule functions.
18139
18140 2011-05-11  Richard Guenther  <rguenther@suse.de>
18141
18142         PR middle-end/48953
18143         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18144
18145 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
18146
18147         * opts.c (finish_options): Move warning settings from process_options.
18148         * toplev.c (process_options): Move warning settings to finish_options.
18149
18150 2011-05-11  Richard Guenther  <rguenther@suse.de>
18151
18152         PR tree-optimization/18041
18153         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18154         (simplify_bitwise_binary): ... this.  Handle operand conversions
18155         by applying them to the result instead.
18156         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
18157
18158 2011-05-11  Richard Guenther  <rguenther@suse.de>
18159
18160         * gimple.c (gimple_canonical_types_compatible_p): Split out
18161         from gimple_types_compatible_p and friends.  Do not recurse
18162         to pointed-to types.
18163         (gimple_canonical_type_eq): Use it.
18164         (iterative_hash_canonical_type): Split out from
18165         iterative_hash_gimple_type and friends.  Do not recurse
18166         to pointed-to types.
18167         (gimple_canonical_type_hash): Use it, allocate the hash here.
18168
18169 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18170
18171         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18172         recognizing doloop.
18173
18174 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18175
18176         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18177         instead of PREV_INSN.
18178
18179 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18180
18181         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18182         * loop-doloop.c (doloop_condition_get): Likewise.
18183         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18184         (doloop_end): New.
18185         * config/arm/arm.md (*addsi3_compare0): Remove "*".
18186
18187 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
18188
18189         * tree.def (CASE_LABEL_EXPR): Add an operand.
18190         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18191
18192 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18193
18194         * c-decl.c (c_override_global_bindings_to_false): Remove.
18195         (global_bindings_p): Don't check
18196         c_override_global_bindings_to_false.
18197         * c-tree.h (c_override_global_bindings_to_false): Remove.
18198         * c-typeck.c (composite_type): Don't set
18199         c_override_global_bindings_to_false.
18200
18201 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
18202
18203         PR target/48857, 48495
18204         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18205         (VSX_MODE): Ditto.
18206         (VSX_MOVE_MODE): Ditto.
18207         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18208         VSX vector types.  Add V2DImode.
18209         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18210         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18211         (MODES_TIEABLE_P): Ditto.
18212
18213         * config/rs6000/rs6000.c (rs6000_emit_move): Use
18214         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18215         VSX_VECTOR_MODE.
18216         (init_cumulative_args): Ditto.
18217         (rs6000_function_arg_boundary): Ditto.
18218         (rs6000_function_arg_advance_1): Ditto.
18219         (rs6000_function_arg): Ditto.
18220         (rs6000_function_ok_for_sibcall): Ditto.
18221         (emit_frame_save): Ditto.
18222         (rs6000_function_value): Ditto.
18223         (rs6000_libcall_value): Ditto.
18224
18225 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18226
18227         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18228         i386/darwin-lib.h to $libgcc_tm_file.
18229         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18230
18231 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18232
18233         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18234
18235 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18236
18237         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18238         * config/rs6000/rs6000-tables.opt: New file (generated).
18239         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18240         rs6000/rs6000-tables.opt to extra_options.
18241         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18242         * config/rs6000/rs6000.c (rs6000_select): Remove.
18243         (processor_target_table): Move contents to rs6000-cpus.def.
18244         (darwin_rs6000_override_options): Check
18245         global_options_set.x_rs6000_cpu_index instead of
18246         rs6000_select[1].string.
18247         (rs6000_option_override_internal): Likewise.
18248         (rs6000_handle_option): Don't assert that global structures are in
18249         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
18250         (rs6000_default_cpu): New variable.
18251         (rs6000_file_start): Set it instead of local default_cpu.  Check
18252         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18253         global_options_set.x_rs6000_tune_index instead of rs6000_select.
18254         (rs6000_darwin_file_start): Check rs6000_default_cpu and
18255         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18256         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18257         rs6000_select): Remove.
18258         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18259         Remove.
18260         (mcpu=, mtune=): Use Var, Init, Enum and Save.
18261         * config/rs6000/t-rs6000
18262         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18263         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18264         global_options_set.x_rs6000_cpu_index instead of
18265         rs6000_select[1].string.
18266         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18267         global_options_set.x_rs6000_cpu_index instead of
18268         rs6000_select[1].string.
18269
18270 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18271
18272         * config.gcc (libgcc_tm_file): Define instead of including files
18273         from ../../libgcc/config/ in tm_file.
18274         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18275         * configure: Regenerate.
18276         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18277         libgcc_tm.h, cs-libgcc_tm.h): New.
18278         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18279         (clean): Remove libgcc_tm.h.
18280         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18281         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18282         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18283
18284 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
18285
18286         PR target/48896
18287         * config/avr/avr.c (avr_ret_register): Return unsigned int
18288         instead of int.
18289         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18290         it to avr_libcall_value.
18291         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18292         expand_expr.
18293         (avr_expand_binop_builtin): Ditto.
18294         (avr_expand_unop_builtin): Ditto.
18295
18296 2011-05-10  DJ Delorie  <dj@redhat.com>
18297
18298         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18299         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18300         * config/rx/rx.c (rx_align_for_label): Add label and
18301         uses_threshold parameters.  Do not align when the label is not
18302         used enough.
18303         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18304
18305 2011-05-10  Richard Guenther  <rguenther@suse.de>
18306
18307         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18308         a series of conversions and apply foldings similar to what
18309         fold-const does.
18310         (tree_ssa_forward_propagate_single_use_vars): Call it.
18311
18312 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
18313
18314         PR tree-optimization/48611
18315         PR tree-optimization/48794
18316         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18317         referenced from RESX or EH_DISPATCH arguments.
18318
18319         PR debug/48928
18320         * dfp.c (decimal_to_decnumber): Handle conversion from
18321         dconst{1,2,m1,half}.
18322
18323 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18324
18325         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18326         for !flag_prefer_avx128.
18327         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18328
18329 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18330
18331         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18332         (fold_ternary_loc): Use expr_location_or.
18333
18334 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18335
18336         PR debug/48853
18337         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18338         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18339         Pmode and mem_mode is not VOIDmode.
18340
18341 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
18342
18343         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18344         TYPE_QUAL_RESTRICT): Convert to enum.
18345
18346 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18347
18348         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18349         (const_pow2_1_to_8_operand): Ditto.
18350         (const_pow2_1_to_128_operand): Ditto.
18351         (const_pow2_1_to_32768_operand): Ditto.
18352         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18353         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
18354         in insn constraint to check integer value of operand 3.
18355         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18356
18357         (PINSR_MODE): New mode iterator.
18358         (sse2p4_1): New mode attribute.
18359         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18360         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18361         iterator.  Use const_int_operand instead of
18362         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
18363         exact_log2 in insn constraint to check integer value of operand 3.
18364
18365 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18366
18367         * config/i386/sse.md (blendbits): Remove mode attribute.
18368         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18369         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18370         Check integer value of operand 3 in insn constraint.
18371
18372 2011-05-09  Richard Guenther  <rguenther@suse.de>
18373
18374         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18375         for diagnostics.
18376         (lto_symtab_merge): Likewise.  Do not register types here.
18377         (lto_symtab_merge_decls_2): Likewise.
18378         (lto_symtab_merge_decls_1): Likewise.
18379         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18380         * gimple.c (enum gtc_mode): Declare.
18381         (gimple_types_compatible_p): Make static.
18382
18383 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18384
18385         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18386         temporary register to match Pmode.
18387
18388 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18389
18390         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18391         and *vec_concatv4si_1_avx.
18392
18393 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18394
18395         PR rtl-optimization/48927
18396         * ira-conflicts.c (commutative_constraint_p): Use
18397         recog_data.alternative_enabled_p to disable alternatives where
18398         "enabled" attribute is false.
18399         (get_dup_num): Ditto.
18400         * ira-lives.c (single_reg_class): Ditto.
18401         (ira_implicitly_set_insn_hard_regs): Ditto.
18402
18403 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18404
18405         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18406         (dataflow_set_preserve_mem_locs): Likewise.
18407
18408 2011-05-09  Philipp Thomas  <pth@suse.de>
18409
18410         * config/mep/mep.c (mep_validate_vliw): Syntax description
18411         should not be translated.
18412
18413 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
18414
18415         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18416         * config/mips/mips-tables.opt: New file (generated).
18417         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18418         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18419         MIPS_ARCH_OPTION_NATIVE): Define.
18420         * config/mips/mips.c (mips_cpu_info_table): Move contents to
18421         mips-cpus.def.
18422         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18423         mips_parse_cpu): Remove.
18424         (mips_cpu_info_from_opt, mips_default_arch): New.
18425         (mips_handle_option): Don't assert that global structures are in
18426         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18427         (mips_option_override): Use new variables and functions to set
18428         state of these options.  Use strcmp to check for individual CPU names.
18429         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18430         definition.
18431         * config/mips/mips.opt (march=): Use ToLower and Enum.
18432         (mips): Use ToLower, Enum and Var.
18433         (mtune=): Use ToLower and Enum.
18434         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18435
18436 2011-05-08  Jan Hubicka  <jh@suse.cz>
18437
18438         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18439         Arrange type pairs to be UID ordered.
18440         (gimple_lookup_type_leader): Make inline.
18441
18442 2011-05-09  Nick Clifton  <nickc@redhat.com>
18443
18444         PR target/48899
18445         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18446         PROCESSOR_DEFAULT.
18447
18448         PR target/48897
18449         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18450         variable 's'.
18451
18452 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
18453
18454         * combine.c (simplify_comparison): Abstract out parts into...
18455         (simplify_compare_const): ... new function.
18456         (try_combine): Generalize parallel arithmetic/compare combining
18457         to call simplify_compare_const() and CANONICALIZE_COMPARE().
18458
18459 2011-05-08  Jan Hubicka  <jh@suse.cz>
18460
18461         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18462         (cgraph_create_virtual_clone): Call hooks once virtual clone
18463         is finished.
18464         * cgraph.h (cgraph_clone_node): Update prototype.
18465         * ipa-cp.c (ipcp_estimate_growth): Use
18466         estimate_ipcp_clone_size_and_time.
18467         * ipa-inline-transform.c (clone_inlined_nodes): Update.
18468         * lto-cgraph.c (input_node): Update.
18469         * ipa-inline.c (recursive_inlining): Update.
18470         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18471         (evaluate_conditions_for_known_args): Break out from ...
18472         (evaluate_conditions_for_edge): ... here.
18473         (evaluate_conditions_for_ipcp_clone): New function.
18474         (inline_node_duplication_hook): Update clone summary based
18475         on parameter map.
18476         (estimate_callee_size_and_time): Rename to ...
18477         (estimate_node_size_and_time): take NODE instead of EDGE;
18478         take POSSIBLE_TRUTHS as argument.
18479         (estimate_callee_size_and_time): Update.
18480         (estimate_ipcp_clone_size_and_time): New function.
18481         (do_estimate_edge_time): Update.
18482
18483 2011-05-08  Richard Guenther  <rguenther@suse.de>
18484
18485         PR middle-end/48908
18486         PR middle-end/48905
18487         * expmed.c (expand_shift_1): Compute adjusted constant shift
18488         amount manually.
18489
18490 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18491
18492         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18493
18494 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18495
18496         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18497
18498 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
18499
18500         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18501
18502 2011-05-07  Jan Hubicka  <jh@suse.cz>
18503
18504         * ipa-inline-transform.c (inline_call): Account when program size
18505         decreases.
18506         * ipa-inline.c (relative_time_benefit): New function.
18507         (edge_badness): Reorganize to be power 2 based; fix thinko when
18508         computing badness for negative growth; update comments to match
18509         reality; better dumps.
18510
18511 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
18512
18513         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18514         type to bool and adjust comment.
18515         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18516         (fold_mathfn_compare): Remove calls to global_bindings_p.
18517         (fold_inf_compare): Likewise.
18518         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18519         * c-tree.h (global_bindings_p): Adjust prototype.
18520         * c-decl.c (global_bindings_p): Return bool and simplify.
18521
18522 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
18523
18524         PR tree-optimization/48837
18525         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18526         when accumulator transformation is performed.
18527
18528 2011-05-06  Jan Hubicka  <jh@suse.cz>
18529
18530         * i386.h (ix86_tune_indices): Add
18531         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18532         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18533         * i386.c (initial_ix86_tune_features): Add
18534         X86_SOFTARE_PREFETCHING_BENEFICIAL.
18535         (software_prefetching_beneficial_p): Remove predicate.
18536         (ix86_option_override_internal): Use new macro.
18537
18538 2011-05-06  Jan Hubicka  <jh@suse.cz>
18539
18540         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18541
18542 2011-05-06  Jan Hubicka  <jh@suse.cz>
18543
18544         * cgraph.c (cgraph_add_thunk): Create real function node instead
18545         of alias node; finalize it and mark needed/reachale; arrange visibility
18546         to be right and add it into the corresponding same comdat group list.
18547         (dump_cgraph_node): Dump thunks.
18548         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18549         cgraph_function_with_gimple_body_p,
18550         cgraph_first_function_with_gimple_body,
18551         cgraph_next_function_with_gimple_body): New functions.
18552         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18553         New macros.
18554         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18555         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18556         * cgraphunit.c (cgraph_finalize_function): Only look into possible
18557         devirtualization when optimizing.
18558         (verify_cgraph_node): Verify thunks.
18559         (cgraph_analyze_function): Analyze thunks.
18560         (cgraph_mark_functions_to_output): Output thunks only in combination
18561         with function they are assigned to.
18562         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18563         alias into normal node.
18564         (assemble_thunks): New functoin.
18565         (cgraph_expand_function): Use it.
18566         * lto-cgraph.c (lto_output_node): Stream thunks.
18567         (input_overwrite_node): Stream in thunks.
18568         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18569         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18570         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18571         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18572         (inline_analyze_function): Do not care about thunk jump functions.
18573         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18574         * ipa-prop.c (ipa_prop_write_jump_functions): Use
18575         cgraph_function_with_gimple_body_p.
18576         * passes.c (do_per_function_toporder): Use
18577         cgraph_function_with_gimple_body_p.
18578         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18579         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18580         (function_called_by_processed_nodes_p): Likewise.
18581
18582 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18583
18584         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18585         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18586         entries.
18587         (mabi=): Replace with separate entries for mabi=altivec,
18588         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18589         mabi=ieeelongdouble and mabi=ibmlongdouble.
18590         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18591         check for -mabi=spe without SPE ABI support here.
18592         (rs6000_handle_option): Replace OPT_mabi_ handling with
18593         OPT_mabi_altivec and OPT_mabi_spe handling.
18594
18595 2011-05-06  Cary Coutant  <ccoutant@google.com>
18596
18597         * dwarf2out.c (contains_subprogram_definition): New function.
18598         (should_move_die_to_comdat): Call it.
18599
18600 2011-05-06  Jeff Law  <law@redhat.com>
18601
18602         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18603         remove_ctrl_stmt_and_useless_edges.
18604         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18605         (fixup_template_block, thread_single_edge): Likewise.
18606         (mark_threaded_blocks): Use THREAD_TARGET.
18607
18608 2011-05-06  Alan Modra  <amodra@gmail.com>
18609
18610         PR target/48900
18611         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18612         const0_rtx as the arg to the dummy __tls_get_addr libcall.
18613
18614 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18615
18616         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18617         constraint modifier to "r".
18618
18619 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18620
18621         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18622         fall through for OPT_mcmodel_.
18623
18624 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18625
18626         * config/s390/s390.c (s390_asm_trampoline_template): Comment
18627         instruction sizes.
18628         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18629
18630 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18631
18632         PR target/47930
18633         * config/arm/arm.opt (marm): Document it.
18634         (mthumb): Reject negative variant.
18635
18636 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18637
18638         PR target/48898
18639         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18640         Fix typo in "ccvt" variable name.
18641
18642 2011-05-06  Tristan Gingold  <gingold@adacore.com>
18643
18644         PR target/48895
18645         * config/vms/vms-ar.c (main): Remove cwd variable.
18646
18647 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18648
18649         PR debug/48902
18650         * var-tracking.c (prepare_call_arguments): Move else before #endif.
18651
18652 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
18653
18654         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18655         * gimplify.c (gimplify_switch_expr): Likewise.
18656         * omp-low.c (expand_omp_sections): Likewise.
18657         * tree-eh.c (lower_try_finally_switch): Likewise.
18658         (lower_eh_dispatch): Likewise.
18659         * tree.h (build_case_label): Declare.
18660         * tree.c (build_case_label): Define.
18661
18662 2011-05-05  Jason Merrill  <jason@redhat.com>
18663
18664         PR c++/40975
18665         * tree-inline.c (copy_tree_r): Use copy_statement_list.
18666         (copy_statement_list): Don't recurse.
18667         * stor-layout.c (copy_self_referential_tree_r): Don't allow
18668         STATEMENT_LIST.
18669
18670 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18671
18672         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18673         through from -mfpu= handling.
18674         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18675
18676 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
18677
18678         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18679         POST_MODIFY.
18680
18681 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
18682
18683         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18684         for 11.31.
18685         (hppa[12]*-*-hpux11*): Ditto.
18686         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18687         * config/ia64/hpux-unix2003.h: New.
18688         * config/pa/pa-hpux1131.opt: New.
18689         * config/pa/pa-hpux1131.h: New.
18690         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18691         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18692         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18693
18694 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18695
18696         PR debug/48853
18697         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18698         instead of mode as 3rd argument to recursive call.
18699         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18700         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18701         VOIDmode.
18702         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18703         don't give up if mode is Pmode and mem_mode is not VOIDmode.
18704         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18705         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18706
18707 2011-05-05  Julian Brown  <julian@codesourcery.com>
18708
18709         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18710         parenthesis in D-register case.
18711
18712 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18713
18714         * opt-functions.awk (var_type_struct): Handle Enum options.
18715         * optc-gen.awk: Don't check range of variables of character type.
18716         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18717         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18718         rs6000_sdata_name, rs6000_explicit_options): Remove.
18719         (rs6000_option_override_internal): Check for -malign-power here.
18720         Use global_options_set instead of rs6000_explicit_options.
18721         (rs6000_parse_fpu_option): Remove.
18722         (rs6000_handle_option): Access variables via opts and opts_set
18723         pointers.  Use error_at and warning_at.  Add fall-through
18724         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18725         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18726         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18727         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18728         here.  Don't use rs6000_parse_fpu_option.
18729         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18730         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18731         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18732         (mrecip=): Use Var.
18733         (mspe): Use Var and Save.
18734         (mtraceback=): Use Enum and Var.
18735         (rs6000_traceback_type): New Enum and EnumValue entries.
18736         (mfloat-gprs=): Use Enum, Var and Save.
18737         (rs6000_float_gprs): New Enum and EnumValue entries.
18738         (mlong-double-): use Var and Save.
18739         (msched-costly-dep=, minsert-sched-nops=): Use Var.
18740         (malign-): Use Enum and Var.
18741         (rs6000_alignment_flags): New Enum and EnumValue entries.
18742         (mfpu=): Use Enum.
18743         (fpu_type_t): New Enum and EnumValue entries.
18744         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18745         global_options_set instead of rs6000_explicit_options.
18746         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18747         global_options_set instead of rs6000_explicit_options.
18748         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18749         global_options_set instead of rs6000_explicit_options.
18750         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18751         global_options_set instead of rs6000_explicit_options.
18752         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18753         global_options_set instead of rs6000_explicit_options.
18754         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18755         global_options_set instead of rs6000_explicit_options.
18756         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18757         definition.
18758         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18759         global_options_set instead of rs6000_explicit_options.
18760         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18761         (rs6000_cmodel): New Enum and EnumValue entries.
18762         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18763         global_options_set instead of rs6000_explicit_options.
18764         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18765         (mtls-size=): Use Enum and Var.
18766         (rs6000_tls_size): New Enum and EnumValue entries.
18767
18768 2011-05-05  Michael Matz  <matz@suse.de>
18769
18770         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18771         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18772         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18773         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18774         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18775         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18776         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18777         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18778         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18779         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18780         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18781         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18782         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18783         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18784         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18785         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18786
18787 2011-05-05  Richard Guenther  <rguenther@suse.de>
18788
18789         * expmed.c (expand_variable_shift): Rename to ...
18790         (expand_shift_1): ... this.  Take an expanded shift amount.
18791         For rotates recurse directly not building trees for the shift amount.
18792         (expand_variable_shift): Wrap around expand_shift_1.
18793         (expand_shift): Adjust.
18794
18795 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18796
18797         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18798
18799 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18800
18801         * tree.h (get_pending_sizes): Remove prototype.
18802         (put_pending_size): Likewise.
18803         (put_pending_sizes): Likewise.
18804         * stor-layout.c (pending_sizes): Delete.
18805         (get_pending_sizes): Likewise.
18806         (put_pending_size): Likewise.
18807         (put_pending_sizes): Likewise.
18808         (variable_size): Do not call put_pending_size and tidy up.
18809         * function.h (struct function): Remove dont_save_pending_sizes_p.
18810         * lto-streamer-in.c (input_function): Do not stream it.
18811         * lto-streamer-out.c (output_function): Likewise.
18812         * tree-inline.c (initialize_cfun): Do not copy it.
18813         * c-decl.c (store_parm_decls): Do not set it.
18814         * omp-low.c (create_task_copyfn): Likewise.
18815         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18816
18817 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
18818
18819         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18820         conditions.
18821         (*movdf_internal): Ditto.
18822         (*movdf_internal_nointeger): Ditto.
18823         (*movsf_internal): Ditto.
18824
18825 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18826
18827         * c-decl.c (finish_decl): Don't call get_pending_sizes.
18828         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
18829         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
18830         (c_variable_size): Remove.
18831         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
18832         call put_pending_sizes.
18833         (get_parm_info): Add parameter expr.  Use it to set
18834         arg_info->pending_sizes.
18835         (store_parm_decls): Use arg_info->pending_sizes instead or calling
18836         get_pending_sizes.
18837         * c-parser.c (c_parser_parms_declarator): Update call to
18838         c_parser_parms_list_declarator.
18839         (c_parser_parms_list_declarator): Take parameter expr.  Update
18840         call to push_parm_decl.  Update recursive call.  Don't call
18841         get_pending_sizes.  Update calls to get_parm_info.
18842         (c_parser_objc_method_definition): Update calls to
18843         c_parser_objc_method_decl and objc_start_method_definition.
18844         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18845         (c_parser_objc_method_decl): Add parameter expr.  Update call to
18846         grokparm.
18847         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18848         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18849         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18850
18851 2011-05-05  Michael Hope  <michael.hope@linaro.org>
18852
18853         PR pch/45979
18854         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18855         __ARM_EABI__ hosts.
18856
18857 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18858
18859         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18860         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18861         (spu_output_mi_thunk): New function.
18862
18863 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18864
18865         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18866         targetm.asm_out.print_operand.
18867         * config/sol2.c: Include target.h.
18868
18869 2011-05-04  Jan Hubicka  <jh@suse.cz>
18870
18871         * ipa-inline.c (reset_edge_caches): New function.
18872         (update_caller_keys): Add check_inlinablity_for; do not
18873         reset edge caches; remove now unnecesary loop.
18874         (update_callee_keys): Add comments; reset node_growth_cache of callee.
18875         (update_all_callee_keys): Likewise.
18876         (inline_small_functions): Sanity check cache; update code
18877         recomputing it.
18878
18879 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
18880
18881         PR rtl-optimization/47612
18882         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18883         as the last insn of the sequence to be moved.
18884
18885 2011-05-04  Tobias Burnus  <burnus@net-b.de>
18886
18887         PR fortran/48864
18888         * doc/invoke.texi (Ofast): Document that it
18889         enables Fortran's -fno-protect-parens.
18890
18891 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18892
18893         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18894
18895 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18896
18897         * stor-layout.c (variable_size): Do not issue errors.
18898
18899 2011-05-04  Richard Guenther  <rguenther@suse.de>
18900
18901         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18902         for array-ref indices.
18903         (tree_coverage_counter_addr): Likewise.
18904         (build_fn_info_type): Use size_int for index types.
18905         (build_gcov_info): Likewise.
18906
18907 2011-05-04  Richard Guenther  <rguenther@suse.de>
18908
18909         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18910         to build_int_cst.
18911         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18912         for constructor indices.
18913         (push_init_level): Likewise.
18914
18915 2011-05-04  Richard Guenther  <rguenther@suse.de>
18916
18917         * explow.c (promote_mode): Move variable declarations before code.
18918
18919 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18920
18921         * tree.h (build_function_type_array): Declare.
18922         (build_varargs_function_type_array): Declare.
18923         (build_function_type_vec, build_varargs_function_type_vec): Define.
18924         * tree.c (build_function_type_array_1): New function.
18925         (build_function_type_array): New function.
18926         (build_varargs_function_type_array): New function.
18927
18928 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18929
18930         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18931         before setting STMT_VINFO_TYPE.
18932
18933 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18934
18935         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18936         instead of spu_pass_by_reference.
18937
18938 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18939
18940         * calls.c (emit_library_call_value_1): Invoke
18941         promote_function_mode hook on libcall arguments.
18942         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18943         argument being NULL.
18944         * targhooks.c (default_promote_function_mode): Lisewise.
18945         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18946         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18947
18948         * doc/tm.texi: Document that TYPE argument might be NULL.
18949
18950 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18951
18952         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18953
18954 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18955
18956         From Bernd Schmidt
18957         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18958
18959 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18960
18961         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18962         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18963         Move ...
18964         * mips-tfile.c: ... here.
18965         Don't include coretypes.h, tm.h, filenames.h.
18966         (saber_stop): Remove definition and all calls.
18967         [__SABER__]: Remove.
18968         (__LINE__): Remove default.
18969         (Size_t, Ptrdiff_t): Remove definitions.
18970         Replace by size_t, ptrdiff_t.
18971         [!MIPS_DEBUGGING_INFO]: Remove.
18972         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18973         (progname): Add const.
18974         (STATIC): Remove.
18975         Replace all uses by static.
18976         (ALIGN_SYMTABLE_OFFSET): Remove default.
18977         * mips-tdump.c: Don't include coretypes.h, tm.h.
18978         Remove !MIPS_IS_STAB guard.
18979         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18980         $(TM_H), filenames.h dependencies.
18981         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18982
18983 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18984
18985         From Jie Zhang
18986         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18987         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18988
18989 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18990
18991         From Bernd Schmidt
18992         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18993         account and save/restore RETS.
18994         (PROFILE_BEFORE_PROLOGUE): Define.
18995         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
18996         the push insn to use predecrement.
18997
18998 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18999
19000         From Jie Zhang
19001         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
19002
19003 2011-05-04  Nick Clifton  <nickc@redhat.com>
19004
19005         * config/mn10300/mn10300.c: Include cfgloop.h.
19006         (DUMP): New macro.
19007         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
19008         Lcc or a FLcc insn into the instruction stream.
19009         (mn10300_block_contains_call): New function.  Returns true if the
19010         given basic block contains a CALL insn.
19011         (mn10300_loop_contains_call_insn): New function.  Returns true if
19012         the given loop contains a CALL insn.
19013         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
19014         to use the SETLB and Lcc or FLcc insns.
19015         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
19016         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
19017         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
19018         disable the SETLB optimization.
19019         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
19020         __SETLB__ or __NO_SETLB__.
19021         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
19022         (movsf_internal): Handle MDR register.
19023         (cmpsi): Make visible.
19024         (setlb): New pattern.
19025         (Lcc): New pattern.
19026         (FLcc): New pattern.
19027
19028 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
19029
19030         PR target/48860
19031         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
19032         for reg<->xmm moves.
19033         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
19034         (vec_concatv2di_rex64_sse): Ditto.
19035         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
19036         (*vec_extractv2di_1_rex64): Ditto.
19037
19038         Revert:
19039         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19040
19041         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19042         reg<->xmm moves.
19043         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19044
19045 2011-05-04  Richard Guenther  <rguenther@suse.de>
19046
19047         * tree.h (int_const_binop): Remove notrunc argument.
19048         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
19049         create integer constants that are properly truncated.
19050         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19051         (const_binop): Remove zero notrunc argument to int_const_binop.
19052         (size_binop_loc): Likewise.
19053         (fold_div_compare): Likewise.
19054         (maybe_canonicalize_comparison_1): Likewise.
19055         (fold_comparison): Likewise.
19056         (fold_binary_loc): Likewise.
19057         (multiple_of_p): Likewise.
19058         * expr.c (store_constructor): Likewise.
19059         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19060         (maybe_fold_stmt_addition): Likewise.
19061         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19062         * stor-layout.c (layout_type): Likewise.
19063         * tree-data-ref.c (tree_fold_divides_p): Likewise.
19064         * tree-sra.c (build_ref_for_offset): Likewise.
19065         (build_user_friendly_ref_for_offset): Likewise.
19066         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19067         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19068         * tree-ssa-loop-niter.c (inverse): Likewise.
19069         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19070         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19071         * tree-switch-conversion.c (check_range): Likewise.
19072         (build_constructors): Likewise.
19073         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19074         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19075         (extract_range_from_assert): Likewise.
19076         (vrp_int_const_binop): Likewise.
19077         (extract_range_from_binary_expr): Likewise.
19078         (extract_range_from_unary_expr): Likewise.
19079         (check_array_ref): Likewise.
19080         (find_case_label_range): Likewise.
19081         (simplify_div_or_mod_using_ranges): Likewise.
19082         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19083         comparing case labels for merging.
19084
19085 2011-05-03  Mark Wielaard  <mjw@redhat.com>
19086
19087         * dwarf2out.c (debug_str_hash_forced): Removed.
19088         (gen_label_for_indirect_string): Removed.
19089         (get_debug_string_label): Removed.
19090         (AT_string_form): Generate label directly.
19091         (output_indirect_string): Test indirect_string_node for
19092         DW_FORM_strp instead of checking label and refcount.
19093         (prune_indirect_string): Removed.
19094         (prune_unused_types): Don't check debug_str_hash_forced or
19095         call prune_indirect_string.
19096
19097 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19098
19099         PR other/48093
19100         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19101
19102 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19103
19104         PR debug/47994
19105         PR debug/47919
19106         * combine.c (try_combine): Skip debug insns at m_split tests.
19107
19108 2011-04-26  Mark Wielaard  <mjw@redhat.com>
19109
19110         PR42288
19111         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19112         when info_section_emitted.
19113
19114 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
19115
19116         * config/mips/mips-opts.h: New.
19117         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19118         to mips-opts.h.
19119         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19120         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19121         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
19122         via opts pointer.
19123         * config/mips/mips.h (enum mips_code_readable_setting): Move to
19124         mips-opts.h.
19125         (mips_abi, mips_code_readable): Don't declare.
19126         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19127         (mabi=): Use Enum and Var.
19128         (mips_abi): New Enum and EnumValue entries.
19129         (mcode-readable=): Use Enum and Var.
19130         (mips_code_readable_setting): New Enum and EnumValue entries.
19131         (mr10k-cache-barrier=): Use Enum and Var.
19132         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19133
19134 2011-05-03  Jan Hubicka  <jh@suse.cz>
19135
19136         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19137         replace hash by pointer map.
19138         (cgraph_node_set_element_def, cgraph_node_set_element,
19139         const_cgraph_node_set_element, varpool_node_set_element_def,
19140         varpool_node_set_element, const_varpool_node_set_element): Remove.
19141         (free_cgraph_node_set, free_varpool_node_set): New function.
19142         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19143         * tree-emutls.c: Free varpool node set.
19144         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19145         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19146         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19147         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19148         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19149         Move here from ipa.c; implement using pointer_map
19150         * ipa.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, varpool_node_set_new,
19153         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19154         dump_varpool_node_set, debug_varpool_node_set):
19155         Move to ipa-uitls.c.
19156         * passes.c (ipa_write_summaries): Update.
19157
19158 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19159
19160         From Mike Frysinger:
19161         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19162         bf542/bf544/bf547/bf548/bf549.
19163
19164 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19165
19166         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19167
19168 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19169
19170         From Bernd Schmidt:
19171         * config/bfin/bfin.md (MOVCC): New mode_macro.
19172         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19173         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
19174         comments from generated assembly.
19175
19176 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19177
19178         From Bernd Schmidt
19179         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19180         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19181         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19182         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19183         * config/bfin/lib1funcs.asm (___muldi3): New function.
19184
19185 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19186
19187         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19188         build_function_type_list instead of build_function_type.
19189         Rearrange initialization of `args' to do so.
19190
19191 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19192
19193         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19194         instead of build_function_type.
19195
19196 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19197
19198         * config/rs6000/rs6000.c (spe_init_builtins): Call
19199         build_function_type_list instead of build_function_type.
19200         (paired_init_builtins, altivec_init_builtins): Likewise.
19201         (builtin_function_type): Likewise.
19202
19203 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19204
19205         * config/sh/sh.c (sh_media_init_builtins): Call
19206         build_function_type_list instead of build_function_type.
19207
19208 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19209
19210         * config/sparc/sparc.c (sparc_file_end): Call
19211         build_function_type_list instead of build_function_type.
19212
19213 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19214
19215         * config/alpha/alpha.c (alpha_init_builtins): Call
19216         build_function_type_list instead of build_function_type.
19217
19218 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19219
19220         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19221         build_function_type_list instead of build_function_type.
19222
19223 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19224
19225         * config/iq2000/i2000.c (iq2000_init_builtins): Call
19226         build_function_type_list instead of build_function_type.
19227         Delete `endlink' variable.
19228
19229 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19230
19231         * config/avr/avr.c (avr_init_builtins): Call
19232         build_function_type_list instead of build_function_type.
19233
19234 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19235
19236         * config/picochip/picochip.c (picochip_init_builtins): Call
19237         build_function_type_list instead of build_function_type.
19238         Delete `endlink' variable.
19239
19240 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19241
19242         * config/bfin/bfin.c (bfin_init_builtins): Call
19243         build_function_type_list instead of build_function_type.
19244
19245 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19246
19247         From Bernd Schmidt
19248         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19249         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
19250
19251 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19252
19253         From Jie Zhang:
19254         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19255         libbffastfp overrides libgcc when -mfast-fp.
19256
19257 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19258
19259         Originally from Bernd Schmidt
19260         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19261         * config/bfin/bfin.c (override_options): Test it and error if
19262         TARGET_FDPIC.
19263
19264 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19265
19266         Originally From Bernd Schmidt
19267         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19268         FD-PIC.
19269
19270 2011-05-03  Jeff Law  <law@redhat.com>
19271
19272         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19273         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19274         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19275         than accessing AUX field directly.  Free the AUX field before
19276         clearing it.
19277         (thread_block, thread_through_loop_header): Likewise.
19278         (thread_single_edge, mark_threaded_blocks): Likewise.
19279         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
19280         (register_jump_thread): Do not attempt to thread to a NULL edge.
19281
19282 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19283
19284         * function.c (init_function_start): Call decide_function_section.
19285         * varasm.c (decide_function_section): New function.
19286         (assemble_start_function): When not using
19287         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19288         or first_function_block_is_cold.
19289         * rtl.h (decide_function_section): Declare.
19290
19291 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19292             Jakub Jelinek  <jakub@redhat.com>
19293
19294         PR target/48774
19295         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19296         only succeed if req_mode is the same as set_mode.
19297
19298 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19299
19300         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19301         * genemit.c (gen_exp): Handle RETURN.
19302         * emit-rtl.c (verify_rtx_sharing): Likewise.
19303         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19304         * rtl.c (copy_rtx): RETURN is shared.
19305         * rtl.h (enum global_rtl_index): Add GR_RETURN.
19306         (ret_rtx): New.
19307         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19308         * config/s390/s390.c (s390_emit_epilogue): Likewise.
19309         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19310         * config/cris/cris.c (cris_expand_return): Likewise.
19311         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19312         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19313         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19314         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19315         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19316         Likewise.
19317         * config/v850/v850.c (expand_epilogue): Likewise.
19318         * config/bfin/bfin.c (bfin_expand_call): Likewise.
19319         * config/arm/arm.md (epilogue): Likewise.
19320         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19321         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19322         variable to ret_reg.
19323
19324 2011-05-03  Richard Guenther  <rguenther@suse.de>
19325
19326         PR lto/48846
19327         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19328         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19329         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19330
19331 2011-05-03  Richard Guenther  <rguenther@suse.de>
19332
19333         * c-decl.c (grokdeclarator): Instead of looking at
19334         TREE_OVERFLOW check if the constant fits in the index type.
19335
19336 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19337
19338         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19339         (vec_store_lanes<mode><mode>): Likewise.
19340
19341 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19342
19343         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19344         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19345         convert_optab_index values.
19346         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19347         * genopinit.c (optabs): Initialize the new optabs.
19348         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19349         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19350         (expand_STORE_LANES): New functions.
19351         * tree.h (build_array_type_nelts): Declare.
19352         * tree.c (build_array_type_nelts): New function.
19353         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19354         (vect_model_load_cost): Likewise.
19355         (vect_store_lanes_supported, vect_load_lanes_supported)
19356         (vect_record_strided_load_vectors): Declare.
19357         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19358         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19359         (vect_transform_strided_load): Split out statement recording into...
19360         (vect_record_strided_load_vectors): ...this new function.
19361         * tree-vect-stmts.c (create_vector_array, read_vector_array)
19362         (write_vector_array, create_array_ref): New functions.
19363         (vect_model_store_cost): Add store_lanes_p argument.
19364         (vect_model_load_cost): Add load_lanes_p argument.
19365         (vectorizable_store): Try to use store-lanes functions for
19366         interleaved stores.
19367         (vectorizable_load): Likewise load-lanes and loads.
19368         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19369         to vect_model_store_cost.
19370         (vect_build_slp_tree): Likewise vect_model_load_cost.
19371
19372 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19373
19374         * hooks.h (hook_bool_mode_uhwi_false): Declare.
19375         * hooks.c (hook_bool_mode_uhwi_false): New function.
19376         * target.def (array_mode_supported_p): New hook.
19377         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19378         * doc/tm.texi: Regenerate.
19379         * stor-layout.c (mode_for_array): New function.
19380         (layout_type): Use it.
19381         * config/arm/arm.c (arm_array_mode_supported_p): New function.
19382         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19383
19384 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
19385
19386         PR target/48723
19387         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19388         for -fstack-check if the size to allocate is negative.
19389
19390 2011-05-02  Lawrence Crowl  <crowl@google.com>
19391
19392         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19393         (timevar_cond_start): New for starting a timer only when it is not
19394         already running.
19395         (timevar_cond_stop): New for stopping a timer when it was not already
19396         running.
19397
19398         * timevar.c (timevar_stop): Enable start/stop timers to start again.
19399         (timevar_cond_start): New as above.
19400         (timevar_cond_stop): New as above.
19401
19402         * timevar.def: Add start/stop timers for compiler phases,
19403         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19404         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19405         and TV_PHASE_FINALIZE.
19406         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19407         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19408         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19409         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19410         Make unused TV_OVERLOAD into a start/stop timer.
19411
19412         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19413         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19414         to indicate that they are start/stop timers.
19415
19416         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19417         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19418         Move initialization to do_compile.
19419         (do_compile): Add initialization from above.
19420         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19421
19422         * c-decl.c (c_write_global_declarations): Add start/stop of
19423         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19424
19425         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19426         or TV_PARSE_INLINE, as appropriate.
19427         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19428         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19429
19430 2011-05-02  Jason Merrill  <jason@redhat.com>
19431
19432         PR c++/40975
19433         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19434
19435 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
19436
19437         PR c/35445
19438         * c-decl.c (finish_decl): Only create a composite if the types are
19439         compatible.
19440
19441 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19442
19443         * config/fr30/fr30-protos.h (Mmode): Don't define.
19444         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
19445         definition where used.
19446         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19447         define.  Expand definitions where used.
19448         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19449         Expand definitions where used.
19450         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19451         rx_function_arg, rx_function_arg_advance,
19452         rx_function_arg_boundary): Expand definitions of those macros.
19453         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
19454         definition where used.
19455
19456 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19457
19458         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19459         reg<->xmm moves.
19460         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19461         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
19462         with *movv2sf_internal_rex64_avx.
19463         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19464         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19465         Use %v prefix in insn mnemonic to handle TARGET_AVX.
19466         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
19467         "vex" in "prefix" attribute calculation.
19468         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
19469
19470 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
19471
19472         PR target/47951
19473         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19474         inputs match the output.
19475
19476 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
19477
19478         PR target/47955
19479         * config/m68k/m68k.c (m68k_expand_prologue): Set
19480         current_function_static_stack_size.
19481
19482 2011-05-02   Jan Hubicka  <jh@suse.cz>
19483
19484         * lto-streamer.c (lto_streamer_cache_insert_1,
19485         lto_streamer_cache_lookup, lto_streamer_cache_create,
19486         lto_streamer_cache_delete): Use pointer map instead of hashtable.
19487         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19488
19489 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19490
19491         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19492         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19493         config/m68k/t-opts: New files.
19494         * config/m68k/m68k-tables.opt: New file (generated).
19495         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19496         extra_options and m68k/t-opts to tmake_file.
19497         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19498         (all_isas): Initialize using m68k-isas.def.
19499         (all_microarchs): Initialize using m68k-microarchs.def.
19500         (m68k_find_selection): Remove.
19501         (m68k_handle_option): Don't assert that global structures are in
19502         use.  Use error_at.  Access variables via opts pointer.  Don't
19503         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
19504         directly for -m68020-40 and -m68020-60.
19505         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19506         m68k_tune_entry here.
19507         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19508         to m68k-opts.h.
19509         (m68k_library_id_string): Remove declaration.
19510         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19511         (m68k_library_id_string): New Variable.
19512         (march=, mcpu=, mtune=): Use Enum and Var.
19513
19514 2011-05-02  Richard Guenther  <rguenther@suse.de>
19515
19516         * varasm.c (output_constructor_regular_field): Compute zero-based
19517         index with double-ints.  Make sure to ICE instead of producing
19518         wrong code.
19519         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19520         in asserts.  Properly use a signed type.
19521
19522 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19523
19524         * config/i386/sse.md (V): New mode iterator.
19525         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
19526         TARGET_SSE2.
19527         (V_256): Rename from AVX256MODE.
19528         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
19529         condition to all users.
19530         (VF1): Ditto.
19531         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
19532         condition to all users.
19533         (VF_128): Make V4SF mode unconditional.
19534         (VF_256): Rename from AVX256MODEF2P.
19535         (VI4F_128): Rename from SSEMODE4S.
19536         (VI8F_128): Rename from SSEMODE2D.
19537         (VI4F_256): Rename from AVX256MODE8P.
19538         (VI8F_256): Rename from AVX256MODE4P.
19539         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19540         (ssescalarmodesuffix): Remove SF and DF modes.
19541         (SSEMODE124): Remove.
19542         (SSEMODE1248): Ditto.
19543         (SSEMODEF2P): Ditto.
19544         (AVXMODEF2P): Ditto.
19545         (AVXMODEFDP): Ditto.
19546         (AVXMODEFSP): Ditto.
19547         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19548         unconditional.
19549         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
19550         unconditional.
19551         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19552         xop_pcmov_<mode>256.  Use V mode iterator.
19553
19554         Adjust RTX patterns globally for renamed mode attributes.
19555
19556 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19557
19558         * haifa-sched.c (sched_emit_insn): Emit insn before first
19559         non-scheduled insn.  Inform back-end about new insn.  Add
19560         new insn to scheduled_insns list.
19561
19562 2011-05-02  Richard Guenther  <rguenther@suse.de>
19563
19564         PR tree-optimization/48822
19565         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19566         (process_scc): Indicate which iteration we start.
19567
19568 2011-05-02  Jan Hubicka  <jh@suse.cz>
19569
19570         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19571         (lto_section_overrun): New.
19572         * lto-section-out.c (append_block): Rename to ...
19573         (lto_append_block): ... this one; export.
19574         (lto_output_1_stream): Move lto lto-streamer.h
19575         (lto_output_data_stream): Update.
19576         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19577         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19578         functions.
19579
19580 2011-05-02  Richard Guenther  <rguenther@suse.de>
19581
19582         * tree.c (tree_code_counts): New global array.
19583         (record_node_allocation_statistics): Count individual tree codes.
19584         (dump_tree_statistics): Dump individual code stats.
19585
19586 2011-05-01  Jan Hubicka  <jh@suse.cz>
19587
19588         * ipa-inline.c (caller_growth_limits): Fix thinko when
19589         looking for largest stack frame.
19590         * ipa-inline.h (dump_inline_summary): Declare.
19591         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19592         on stack usage.
19593         (dump_inline_summary): Export.
19594         (debug_inline_summary): Declare as DEBUG_FUNCTION.
19595
19596 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
19597
19598         * reginfo.c (memory_move_cost): Change rclass argument type form
19599         'enum reg_class' to reg_class_t.
19600         * reload.h (memory_move_cost): Update prototype.
19601         * postreload.c reload_cse_simplify_set): Change type dclass var to
19602         reg_class_t.
19603         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19604         Update prototype.
19605         (ira_allocate_and_set_costs): Change aclass argument type form
19606         'enum reg_class' to reg_class_t.
19607         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19608         Change aclass argument type to reg_class_t.
19609         (update_conflict_hard_reg_costs): Change type aclass and pref vars
19610         to reg_class_t.
19611         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19612         memory_move_cost call.
19613
19614         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19615         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19616         Change type tmp var to reg_class_t.
19617
19618 2011-04-30  Jan Hubicka  <jh@suse.cz>
19619
19620         * ipa-inline.c (can_inline_edge_p): Disregard limits when
19621         inlining into function with flatten attribute.
19622         (want_inline_small_function_p): Be more realistic about inlining
19623         cold calls where callee size grows.
19624
19625 2011-04-30  Jan Hubicka  <jh@suse.cz>
19626
19627         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19628         flags.
19629
19630 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
19631
19632         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19633         PRINT_OPERAND_PUNCT_VALID_P): Remove.
19634         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19635         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19636         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19637         (print_operand): Rename to...
19638         (sparc_print_operand): ...this. Make static. Adjust
19639         sparc_print_operand function call.
19640         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19641         functions.
19642
19643 2011-04-30  Jan Hubicka  <jh@suse.cz>
19644
19645         PR middle-end/48752
19646         * ipa-inline.c (early_inliner): Disable when doing late
19647         addition of function.
19648
19649 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
19650
19651         * dwarf2out.c (get_address_mode): New inline.
19652         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19653         if not dwarf_strict emit
19654         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19655         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19656         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
19657         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19658         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19659         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19660         mem_loc_descriptor callers.
19661         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19662         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19663         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19664         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19665         (base_types): New variable.
19666         (get_base_type_offset, calc_base_type_die_sizes,
19667         base_type_for_mode, mark_base_types, base_type_cmp,
19668         move_marked_base_types): New functions.
19669         (calc_die_sizes): Assert that die_offset is 0 or equal to
19670         next_die_offset.
19671         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19672         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
19673         callers.  If not dwarf_strict, call mem_loc_descriptor even for
19674         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19675         (gen_subprogram_die): Don't give up on call site parameters
19676         with non-integral or large integral modes.  Adjust
19677         mem_loc_descriptor callers.
19678         (prune_unused_types): Call prune_unused_types_mark on base_types
19679         vector entries.
19680         (resolve_addr): Call mark_base_types.
19681         (dwarf2out_finish): Call move_marked_base_types.
19682
19683         PR tree-optimization/48809
19684         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19685         type.
19686         (gen_inbound_check): Don't compute index_expr - range_min in utype
19687         again, instead reuse SSA_NAME initialized in build_arrays.
19688         Remove two useless gsi_for_stmt calls.
19689
19690 2011-04-29  Jeff Law  <law@redhat.com>
19691
19692         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19693
19694 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19695
19696         * cgraph.h (cgraph_postorder): Remove declaration.
19697         * ipa-utils.h (ipa_free_postorder_info): Declare.
19698         (ipa_reverse_postorder): Likewise.
19699         * cgraphunit.c: Include ipa-utils.h.
19700         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19701         * ipa-inline.c: Include ipa-utils.h.
19702         (ipa_inline): Update call to ipa_reverse_postorder.
19703         * ipa-pure-const.c (propagate_pure_const): Update call to
19704         ipa_reduced_postorder and ipa_print_order.  Call
19705         ipa_free_postorder_info to clean up.
19706         (propagate_nothrow): Likewise.
19707         * ipa-reference.c (propagate): Removed a useless call to
19708         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19709         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
19710         * ipa.c: Include ipa-utils.h.
19711         (ipa_profile): Update call to ipa_reverse_postorder.
19712         (cgraph_postorder): Moved to...
19713         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19714         (ipa_utils_print_order): Renamed to ipa_print_order.
19715         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19716         comments.
19717         (ipa_free_postorder_info): New function.
19718         * passes.c: Include ipa-utils.h.
19719         (do_per_function_toporder): Update call to ipa_reverse_postorder.
19720         (ipa_write_summaries): Likewise.
19721         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19722         (cgraphunit.o): Likewise.
19723         (ipa.o): Likewise.
19724         (ipa-inline.o): Likewise.
19725
19726 2011-04-29  Jan Hubicka  <jh@suse.cz>
19727
19728         * ipa-inline.h (clause_t): Turn into unsigned int.
19729         * ipa-inline-analysis.c (add_clause): Do more simplification.
19730         (and_predicates): Shortcut more cases.
19731         (predicates_equal_p): Move forward; check that clauses are properly
19732         ordered.
19733         (or_predicates): Shortcut more cases.
19734         (edge_execution_predicate): Rewrite as...
19735         (set_cond_stmt_execution_predicate): ... this function; handle
19736         __builtin_constant_p.
19737         (set_switch_stmt_execution_predicate): New .
19738         (compute_bb_predicates): New.
19739         (will_be_nonconstant_predicate): Update TODO.
19740         (estimate_function_body_sizes): Use compute_bb_predicates
19741         and free them later, always try to estimate if stmt is constant.
19742         (estimate_time_after_inlining, estimate_size_after_inlining):
19743         Gracefully handle optimized out edges.
19744         (read_predicate): Fix off by one error.
19745
19746 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
19747
19748         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19749
19750 2011-04-27  Xinliang David Li  <davidxl@google.com>
19751
19752         * tree-profile.c (init_ic_make_global_vars): Set
19753         tls attribute on ic vars.
19754         * coverage.c (coverage_end_function): Initialize
19755         function_list with zero.
19756
19757 2011-04-29  Richard Guenther  <rguenther@suse.de>
19758
19759         * builtins.c (fold_builtin_classify_type): Use integer_type_node
19760         for the type of the result.
19761         (fold_builtin_isascii): Likewise.
19762         (fold_builtin_toascii): Use integer_type_node where appropriate.
19763         (fold_builtin_logb): Likewise.
19764         (fold_builtin_frexp): Likewise.
19765         (fold_builtin_strstr): Likewise.
19766         (fold_builtin_strpbrk): Likewise.
19767         (fold_builtin_fputs): Likewise.
19768         (fold_builtin_sprintf): Likewise.
19769         (fold_builtin_snprintf): Likewise.
19770         (fold_builtin_printf): Likewise.
19771         (do_mpfr_remquo): Use a proper type for the assigned constant.
19772         (do_mpfr_lgamma_r): Likewise.
19773         * dwarf2out.c (resolve_one_addr): Use size_int.
19774         * except.c (init_eh): Likewise.
19775         (assign_filter_values): Use integer_type_node for filter values.
19776         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19777         indices.
19778         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19779         for EH region numbers.
19780         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19781         for the shift amount.
19782
19783 2011-04-29  Richard Guenther  <rguenther@suse.de>
19784
19785         * expr.h (expand_shift): Rename to ...
19786         (expand_variable_shift): ... this.
19787         (expand_shift): Take a constant shift amount.
19788         * expmed.c (expand_shift): Rename to ...
19789         (expand_variable_shift): ... this.
19790         (expand_shift): New wrapper around expand_variable_shift.
19791         * expr.c (convert_move, emit_group_load_1, emit_group_store,
19792         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19793         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19794         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19795         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19796         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19797         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19798         emit_store_flag_1, emit_store_flag): Likewise.
19799         * builtins.c (expand_builtin_signbit): Likewise.
19800         * calls.c (load_register_parameters): Likewise.
19801         * function.c (assign_parm_setup_block): Likewise.
19802         * lower-subreg.c (resolve_shift_zext): Likewise.
19803         * optabs.c (widen_bswap, expand_abs_nojump,
19804         expand_one_cmpl_abs_nojump, expand_float): Likewise.
19805         * spu/spu.c (spu_expand_extv): Likewise.
19806         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19807
19808 2011-04-29  Richard Guenther  <rguenther@suse.de>
19809
19810         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19811         for the remapped region number.
19812         * predict.c (build_predict_expr): Use integer_type_node for the
19813         predict kind.
19814         * fold-const.c (fold_binary_loc): Use integer_type_node for
19815         the shift amount.  Use a proper type for the PLUS_EXPR operand.
19816
19817 2011-04-29  Michael Matz  <matz@suse.de>
19818
19819         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19820         other trees that just builtins.
19821         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19822
19823 2011-04-29  Richard Guenther  <rguenther@suse.de>
19824
19825         * tree-nested.c (get_trampoline_type): Use size_int.
19826         (get_nl_goto_field): Likewise.
19827         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19828         for all indexes.
19829         (lower_eh_constructs_2): Likewise.
19830         (lower_resx): Likewise.
19831         (lower_eh_dispatch): Likewise.
19832         * tree-mudflap.c (mf_build_string): Use size_int.
19833         (mudflap_register_call): Use integer_type_node for the flag.
19834         (mudflap_enqueue_constant): Use size_int.
19835         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19836         instead of rebuilding it.
19837
19838 2011-04-29  Richard Guenther  <rguenther@suse.de>
19839
19840         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19841         Handle OBJ_TYPE_REF.
19842         (find_func_aliases_for_call): Use it more consistently.
19843
19844 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
19845
19846         * haifa-sched.c (last_nondebug_scheduled_insn): New.
19847         (rank_for_schedule): Use it.
19848         (schedule_block): Set it.
19849
19850 2011-04-28  David Li  <davidxl@google.com>
19851
19852         * tree.c (crc32_string): Use crc32_byte.
19853         (crc32_byte): New function.
19854         * tree.h (crc32_byte): New function.
19855         * gcov.c (read_graph_file): Handle new cfg_cksum.
19856         (read_count_file): Ditto.
19857         * profile.c (instrument_values): Ditto.
19858         (get_exec_counts): Ditto.
19859         (read_profile_edge_counts): Ditto.
19860         (compute_branch_probabilities): Ditto.
19861         (compute_value_histograms): Ditto.
19862         (branch_prob): Ditto.
19863         (end_branch_prob): Ditto.
19864         * coverage.c (read_counts_file): Ditto.
19865         (get_coverage_counts): Ditto.
19866         (tree_coverage_counter_addr): Ditto.
19867         (coverage_checksum_string): Ditto.
19868         (coverage_begin_output): Ditto.
19869         (coverage_end_function): Ditto.
19870         (build_fn_info_type): Ditto.
19871         (build_fn_info_value): Ditto.
19872         * libgcov.c (gcov_exit): Ditto.
19873         * gcov-dump.c (tag_function): Ditto.
19874         (compute_checksum): Remove.
19875
19876 2011-04-29  Alan Modra  <amodra@gmail.com>
19877
19878         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19879         unspec plus offset.  Tidy macho code.
19880
19881 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19882
19883         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19884         node instead of a decl.  Update all callers.
19885         * cgraph.h: Update declaration.
19886
19887 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
19888
19889         PR tree-optimization/48765
19890         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19891         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19892         to indicate if loop aware SLP is being used.  Scan the statements
19893         and update the vectorization factor according to the type of
19894         vectorization before statement analysis.
19895         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19896         pass it to vect_analyze_loop_operations.
19897         (vectorizable_reduction): Set number of copies to 1 in case of pure
19898         SLP statement.
19899         * tree-vect-stmts.c (vectorizable_conversion,
19900         vectorizable_assignment, vectorizable_shift,
19901         vectorizable_operation, vectorizable_type_demotion,
19902         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19903         Likewise.
19904         (vectorizable_condition): Move the check that it is not SLP
19905         vectorization before the number of copies check.
19906         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19907         to vectorize the loop using SLP.
19908
19909 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19910
19911         PR middle-end/48597
19912         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19913         inline asm.
19914
19915 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19916
19917         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19918         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19919         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19920         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19921         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19922         linux*.h headers.
19923         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19924         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19925         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19926         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19927         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19928         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19929         REG_NAME.
19930         * config/i386/linux.h (REG_NAME): Don't define.
19931         * config/i386/linux64.h (REG_NAME): Don't define.
19932         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19933         Undefine before defining.
19934
19935 2011-04-28  Jan Hubicka  <jh@suse.cz>
19936
19937         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19938         nonconstant_names array.
19939         (estimate_function_body_sizes): Build nonconstant_names array; handle
19940         BUILT_IN_CONSTANT_P.
19941
19942 2011-04-28  Richard Guenther  <rguenther@suse.de>
19943
19944         PR bootstrap/48804
19945         Revert
19946         2011-04-28  Richard Guenther  <rguenther@suse.de>
19947
19948         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19949         as late as possible.
19950
19951 2011-04-28  Richard Guenther  <rguenther@suse.de>
19952
19953         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19954         (debug_constraint): Do it here.
19955         (dump_constraints): And here.
19956         (rewrite_constraints): And here.
19957         (dump_constraint_edge): Remove.
19958         (dump_constraint_graph): Rewrite to produce DOT output.
19959         (solve_constraints): Build succ graph as late as possible.
19960         Dump constraint graphs before and after solving.
19961
19962 2011-04-28  Richard Guenther  <rguenther@suse.de>
19963
19964         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19965         New function split out from ...
19966         (find_func_aliases): ... here.  Call it.
19967         (find_func_aliases_for_call): Likewise.
19968
19969 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19970
19971         * internal-fn.h (internal_fn_name_array): Declare.
19972         (internal_fn_flags_array): Likewise.
19973
19974 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19975
19976         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19977         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19978         Move from sse.md.
19979         (ssemodefsuffix): Remove.
19980         (ssevecmodesuffix): New mode attribute.
19981         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19982         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19983         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19984         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19985         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19986         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19987         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19988         ssemodesuffix mode attribute.
19989         (float splitters): Use ssevecmodesuffix mode attribute.
19990         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19991         (sseinsmode): Rename from avxvecmode.
19992         (avxsizesuffix): Rename from avxmodesuffix.
19993         (sseintvecmode): Rename from avxpermvecmode.
19994         (ssedoublevecmode): Rename from ssedoublesizemode.
19995         (ssehalfvecmode): Rename from avxhalfvecmode.
19996         (ssescalarmode): Rename from avxscalarmode.
19997         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19998         templates for ssemodesuffix mode attribute.
19999         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
20000         mode attribute.
20001
20002         Adjust RTX patterns globally for renamed mode attributes.
20003
20004 2011-04-27  Jan Hubcika  <jh@suse.cz>
20005
20006         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
20007         * ipa-inline-analysis.c: Include alloc-pool.h.
20008         (edge_predicate_pool): New.
20009         (trye_predicate_p): New function
20010         (false_predicate_p): New function.
20011         (add_clause): Sanity check that false clauses are "optimized";
20012         never add clauses to predicate that is already known to be false.
20013         (and_predicate): Use flase_predicate_p.
20014         (evaulate_predicate): Rename to ...
20015         (evaluate_predicate): ... this one; update all callers; assert
20016         that false is not listed among possible truths.
20017         (dump_predicate): Use true_predicate_p.
20018         (account_size_time): Use false_predicate_p.
20019         (evaulate_conditions_for_edge): Rename to ...
20020         (evaluate_conditions_for_edge) ... this one.
20021         (edge_set_predicate): New function.
20022         (inline_edge_duplication_hook): Duplicate edge predicates.
20023         (inline_edge_removal_hook): Free edge predicates.
20024         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
20025         (dump_inline_summary): Update.
20026         (estimate_function_body_sizes): Set edge predicates.
20027         (estimate_calls_size_and_time): Handle predicates.
20028         (estimate_callee_size_and_time): Update.
20029         (remap_predicate): Add toplev_predicate; update comment.
20030         (remap_edge_predicates): New function.
20031         (inline_merge_summary): Compute toplev predicate; update.
20032         (read_predicate): New function.
20033         (read_inline_edge_summary): Use it.
20034         (inline_read_section): Likewise.
20035         (write_predicate): New function.
20036         (write_inline_edge_summary): Use it.
20037         (inline_write_summary): Likewise.
20038         (inline_free_summary): Free alloc pool and edge summary vec.
20039
20040 2011-04-27  Richard Guenther  <rguenther@suse.de>
20041
20042         * tree-ssa-structalias.c (changed_count): Remove.
20043         (changed): Use a bitmap.
20044         (unify_nodes): Adjust.
20045         (do_sd_constraint): Likewise.
20046         (do_ds_constraint): Likewise.
20047         (do_complex_constraint): Likewise.
20048         (solve_graph): Likewise.
20049
20050 2011-04-27  Jan Hubicka  <jh@suse.cz>
20051
20052         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20053
20054 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
20055
20056         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20057         (avx_vperm2f128_*_operand): Ditto.
20058         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20059         Use avx_vpermilp_parallel in insn condition.
20060         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20061         Use avx_vperm2f128_parallel in insn condition.
20062
20063 2011-04-27  Richard Guenther  <rguenther@suse.de>
20064
20065         * Makefile.in (tree-ssa-structalias.o): Remove
20066         gt-tree-ssa-structalias.h dependency.
20067         (GTFILES): Remove tree-ssa-structalias.c.
20068         * tree.c (allocate_decl_uid): New function.
20069         (make_node_stat): Use it.
20070         (copy_node_stat): Likewise.
20071         * tree.h (allocate_decl_uid): Declare.
20072         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20073         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20074         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20075         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20076         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20077         (struct heapvar_map): Likewise.
20078         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20079         heapvar_insert): Likewise.
20080         (make_heapvar_for): Rename to ...
20081         (make_heapvar): ... this.  Simplify.
20082         (fake_var_decl_obstack): New global var.
20083         (build_fake_var_decl): New function.
20084         (make_constraint_from_heapvar): Adjust.
20085         (handle_lhs_call): Likewise.
20086         (create_function_info_for): Likewise.
20087         (intra_create_variable_infos): Likewise.
20088         (init_alias_vars): Allocate fake_var_decl_obstack.
20089         (init_alias_heapvars, delete_alias_heapvars): Remove.
20090         (compute_points_to_sets): Do not call init_alias_heapvars.
20091         (ipa_pta_execute): Likewise.
20092         (delete_points_to_sets): Free fake_var_decl_obstack.
20093
20094 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20095
20096         * config/spu/divmovti4.c (union qword_UTItype): New data type.
20097         (si_from_UTItype, si_to_UTItype): New functions.
20098         (__udivmodti4): Use them to implement type-punning.
20099         * config/spu/multi3.c (union qword_TItype): New data type.
20100         (si_from_TItype, si_to_TItype): New functions.
20101         (__multi3): Use them to implement type-punning.
20102
20103 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20104
20105         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20106
20107 2011-04-27  Jan Hubicka  <jh@suse.cz>
20108
20109         * ipa-prop.c (function_insertion_hook_holder): New holder.
20110         (ipa_add_new_function): New function.
20111         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20112         Register/deregister holder.
20113
20114 2011-04-27  Richard Guenther  <rguenther@suse.de>
20115
20116         PR tree-optimization/48772
20117         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20118
20119 2011-04-27  Richard Guenther  <rguenther@suse.de>
20120
20121         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20122         TARGET_MEM_REF handling.
20123
20124 2011-04-27  Nick Clifton  <nickc@redhat.com>
20125
20126         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20127         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20128         (REG_CLASS_NAMES): Likewise.
20129         (REG_CLASS_CONTENTS): Likewise.
20130         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20131         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20132         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
20133         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
20134         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
20135         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20136         duplicate register classes.
20137         (frv_class_likely_spilled_p): Likewise.
20138         (frv_register_move_cost): Likewise.
20139
20140         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20141         end of the regno_reg_class array.
20142
20143 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
20144
20145         PR c/48742
20146         * c-typeck.c (build_binary_op): Don't wrap arguments if
20147         int_operands is true.
20148
20149 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
20150
20151         PR target/48767
20152         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20153         targetm.calls.must_pass_in_stack for void type.
20154
20155 2011-04-26  Jan Hubicka  <jh@suse.cz>
20156
20157         * cgraphbuild.c (build_cgraph_edges): Update call
20158         of cgraph_create_edge and cgraph_create_indirect_edge.
20159         * cgraph.c (cgraph_create_edge_including_clones,
20160         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20161         cgraph_update_edges_for_call_stmt_node): Do not take nest
20162         argument; do not initialize call_stmt_size/time.
20163         (dump_cgraph_node): Do not dump nest.
20164         (cgraph_clone_edge): Do not take loop_nest argument;
20165         do not propagate it; do not clone call_stmt_size/time.
20166         (cgraph_clone_node): Likewise.
20167         (cgraph_create_virtual_clone): Update.
20168         * cgraph.h (struct cgraph_edge): Remove
20169         call_stmt_size/call_stmt_time/loop_nest.
20170         (cgraph_create_edge, cgraph_create_indirect_edge,
20171         cgraph_create_edge_including_clones, cgraph_clone_node): Update
20172         prototype.
20173         * tree-emutls.c (gen_emutls_addr): Update.
20174         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20175         loop_nest; handle indirect calls, too.
20176         (clone_inlined_nodes): Do not care about updating inline summaries.
20177         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20178         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20179         stream call_stmt_size/call_stmt_time/loop_nest.
20180         * ipa-inline.c (edge_badness): Update.
20181         (ipa_inline): dump summaries after inlining.
20182         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20183         New.
20184         (inline_edge_summary): New function.
20185         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20186         (inline_edge_removal_hook): Handle edge summaries.
20187         (inline_edge_duplication_hook): New hook.
20188         (inline_summary_alloc): Alloc hooks.
20189         (initialize_growth_caches): Do not register removal hooks.
20190         (free_growth_caches); Do not free removal hook.
20191         (dump_inline_edge_summary): New function.
20192         (dump_inline_summary): Use it.
20193         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20194         (inline_update_callee_summaries): New function.
20195         (inline_merge_summary): Use it.
20196         (do_estimate_edge_time, do_estimate_edge_growth): Update.
20197         (read_inline_edge_summary): New function.
20198         (inline_read_section): Use it.
20199         (write_inline_edge_summary): New function.
20200         (inline_write_summary): Use it.
20201         (inline_free_summary): Free edge new holders.
20202         * tree-inline.c (copy_bb): Update.
20203
20204 2011-04-26  Jason Merrill  <jason@redhat.com>
20205
20206         * tree-eh.c (lower_try_finally_switch): Create the label along with
20207         the CASE_LABEL_EXPR.
20208
20209 2011-04-26  David S. Miller  <davem@davemloft.net>
20210             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20211
20212         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20213         * configure: Regenerate.
20214
20215 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20216
20217         PR target/48258
20218         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20219         reduction.
20220         (VEC_reduc): New code iterator and splitters for vector reduction.
20221         (VEC_reduc_name): Ditto.
20222         (VEC_reduc_rtx): Ditto.
20223         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20224         (reduc_<VEC_reduc_name>_v4sf): Ditto.
20225
20226         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20227         support for extracting SF on VSX.
20228
20229         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20230         generating xscvspdp.
20231         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20232         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20233         double add, minimum, maximum vector reduction.
20234         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20235         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20236         optimize double vector reduction.
20237         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20238
20239 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
20240
20241         * config/fr30/fr30.h (inhibit_libc): Don't define.
20242         * config/m32r/m32r-protos.h: Correct comment.
20243         * config/v850/v850.h (GHS_default_section_names,
20244         GHS_current_section_names): Use tree, not union tree_node *.
20245
20246 2011-04-26  Xinliang David Li  <davidxl@google.com>
20247
20248         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20249         * c-family/c-opts.c (c_common_handle_option): Set
20250         warn_maybe_uninitialized.
20251         * opts.c (common_handle_option): Ditto.
20252         * common.opt:  New option.
20253         * tree-ssa.c (warn_uninit): Add one more parameter.
20254         (warn_uninitialized_var): Pass warning code.
20255         * tree-flow.h: Interface change.
20256
20257 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20258
20259         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20260         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20261         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20262
20263 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20264
20265         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20266         * config/mips/mips.opt (mmips-tfile): Remove.
20267
20268         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20269         mips-tdump reference to ...
20270         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
20271         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20272         reference by Tru64 UNIX.
20273
20274 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
20275
20276         PR debug/48768
20277         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20278         is error_mark_node, set value to NULL.
20279
20280         PR tree-optimization/48734
20281         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20282         if return value from maybe_fold_*_comparsions isn't something
20283         the code is prepared to handle.
20284
20285 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
20286
20287         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20288         mode check.
20289         (ext_QIreg_nomode_operands): Remove.
20290         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20291         (*andsi_1): Ditto.
20292         (*andhi_1): Ditto.
20293
20294 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
20295
20296         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20297
20298 2011-04-26  Richard Guenther  <rguenther@suse.de>
20299
20300         * c-typeck.c (build_unary_op): Do not expand array-refs via
20301         pointer arithmetic.  Only adjust qualifiers for function types.
20302
20303 2011-04-26  Richard Guenther  <rguenther@suse.de>
20304
20305         PR middle-end/48694
20306         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20307         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20308         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
20309         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20310
20311 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
20312
20313         * doc/extend.texi: Document __underlying_type.
20314
20315 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
20316
20317         * config/rs6000/titan.md (automata_option "progress"): Remove.
20318
20319 2011-04-25  Jeff Law  <law@redhat.com>
20320
20321         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20322
20323 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
20324
20325         * system.h (ENUM_BITFIELD): Remove.
20326
20327 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
20328             Eric Botcazou  <ebotcazou@adacore.com>
20329
20330         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20331         for STORE_FLAG_VALUE==-1 case.
20332
20333 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
20334
20335         PR target/43804
20336         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20337         LEGITIMATE_PIC_OPERAND_P.
20338
20339 2011-04-24  Jan Hubicka  <jh@suse.cz>
20340
20341         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20342         WPA hack.
20343         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20344         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20345         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20346         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20347         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20348         Sanity check predicate length.
20349         (remap_predicate): Likewise; sanity check jump functions.
20350         (inline_read_section, inline_write_summary): Sanity check
20351         predicate length.
20352
20353 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
20354
20355         PR other/48748
20356         * doc/extend.texi (Type Traits): Document __is_standard_layout,
20357         __is_literal_type, and __is_trivial; update throughout about
20358         possibly cv-qualified void types.
20359
20360 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
20361
20362         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20363         testsuite and make it version agnostic.
20364
20365 2011-04-22  Jan Hubicka  <jh@suse.cz>
20366
20367         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20368
20369 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
20370
20371         PR c/48685
20372         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20373         to VOID_TYPE even around MODIFY_EXPR.
20374
20375 2011-04-22  Mike Stump  <mikestump@comcast.net>
20376
20377         * gensupport.c (read_md_rtx): Fix typo in comment.
20378         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20379         comment.
20380
20381 2011-04-22  Jan Hubicka  <jh@suse.cz>
20382
20383         * gengtype.c (open_base_files): Add ipa-inline.h include.
20384         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20385         ipa-prop.c; update all uses.
20386         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20387         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20388         merge summary of inlined function into former caller.
20389         * ipa-inline.c (max_benefit): Remove.
20390         (edge_badness): Compensate for removal of benefits.
20391         (update_caller_keys): Use
20392         reset_node_growth_cache/reset_edge_growth_cache.
20393         (update_callee_keys): Likewise.
20394         (update_all_callee_keys): Likewise.
20395         (inline_small_functions): Do not collect max_benefit; do not reset
20396         estimated_growth; call free_growth_caches and initialize_growth_caches.
20397         * ipa-inline.h (struct condition, type clause_t, struct predicate,
20398         struct size_time_entry): New structures.
20399         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20400         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20401         and estimated_growth.
20402         (edge_growth_cache_entry): New structure.
20403         (node_growth_cache, edge_growth_cache): New global vars.
20404         (estimate_growth): Turn into inline.
20405         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20406         initialize_growth_caches, free_growth_caches): Declare.
20407         (estimate_edge_growth): Rewrite.
20408         (estimate_edge_time): Implement as inline cache lookup.
20409         (reset_node_growth_cache, reset_edge_growth_cache): New inline
20410         functions.
20411         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20412         (NUM_CONDITIONS): New constant.
20413         (predicate_conditions): New enum.
20414         (IS_NOT_CONSTANT): New constant.
20415         (edge_removal_hook_holder): New var.
20416         (node_growth_cache, edge_growth_cache): New global vars.
20417         (true_predicate, single_cond_predicate, false_predicate,
20418         not_inlined_predicate, add_condition, add_clause, and_predicates,
20419         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20420         dump_clause, dump_predicate, account_size_time,
20421         evaulate_conditions_for_edge): New functions.
20422         (inline_summary_alloc): Move to heap.
20423         (inline_node_removal_hook): Clear condition and entry vectors.
20424         (inline_edge_removal_hook): New function.
20425         (initialize_growth_caches, free_growth_caches): New function.
20426         (dump_inline_summary): Update.
20427         (edge_execution_predicate): New function.
20428         (will_be_nonconstant_predicate): New function.
20429         (estimate_function_body_sizes): Compute BB and constantness predicates.
20430         (compute_inline_parameters): Do not clear estimated_growth.
20431         (estimate_edge_size_and_time): New function.
20432         (estimate_calls_size_and_time): New function.
20433         (estimate_callee_size_and_time): New function.
20434         (remap_predicate): New function.
20435         (inline_merge_summary): New function.
20436         (do_estimate_edge_time): New function based on...
20437         (estimate_edge_time): ... this one.
20438         (do_estimate_edge_growth): New function.
20439         (do_estimate_growth): New function based on....
20440         (estimate_growth): ... this one.
20441         (inline_analyze_function): Analyze after deciding on jump functions.
20442         (inline_read_section): New function.
20443         (inline_read_summary): Use it.
20444         (inline_write_summary): Write all the new data.
20445         * ipa-prop.c (ipa_get_param_decl_index): Export.
20446         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20447         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20448         Declare.
20449         (ipa_get_lattice): Move here from ipa-cp.c
20450         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20451         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20452         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20453         cgraph_edge_inlinable_p): Remove.
20454         * cgraphunit.c: Include ipainline.h
20455         (cgraph_process_new_functions): Update call of
20456         compute_inline_parameters.
20457
20458 2011-04-22  Richard Guenther  <rguenther@suse.de>
20459
20460         * tree.c (build_int_cst): Properly create canonicalized integer
20461         constants.
20462         (build_int_cst_type): Remove scary comments.
20463
20464 2011-04-22  Xinliang David Li  <davidxl@google.com>
20465
20466         * toplev.c (process_options): Enable -Werror=coverage-mismatch
20467         by default when -Wno-error is not specified.
20468         * opts-global.c (decode_options): Remove call to
20469         control_warning_options.
20470
20471 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20472
20473         PR tree-optimization/48717
20474         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20475         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20476
20477 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
20478
20479         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
20480         definition where used.
20481
20482 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20483
20484         PR c/48716
20485         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20486         TREE_STATIC variables declared inside of some OpenMP construct.
20487
20488 2011-04-22  Martin Jambor  <mjambor@suse.cz>
20489
20490         PR middle-end/48585
20491         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20492
20493 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
20494
20495         PR c/36750
20496         * c-typeck.c (pop_init_level): Do not warn about initializing
20497         with ` = {0}'.
20498
20499 2011-04-22  Alan Modra  <amodra@gmail.com>
20500
20501         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20502         when returning call_cookie.
20503         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20504         pointers, to functions with no more vector args than the current
20505         function, and some non-local calls for ABI_V4.
20506         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20507         sibcall_nonlocal_aix64): Combine to ..
20508         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
20509         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20510         (sibcall_value_nonlocal_aix<mode>): ..likewise.
20511         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20512         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
20513         operand.
20514         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20515         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20516         sibcall_value_symbolic_64): Delete.
20517
20518 2011-04-21  Xinliang David Li  <davidxl@google.com>
20519
20520         * cgraph.h: Remove pid.
20521         * cgraph.c: Remove pid.
20522         * value-prof.c (init_node_map): New function.
20523         (del_node_map): New function.
20524         (find_func_by_funcdef_no): New function.
20525         (gimple_ic_transform): Call new function.
20526         * cgraphunit.c (cgraph_finalize_function): Remove pid.
20527         * function.c (get_last_funcdef_no): New function.
20528         * function.h (get_last_funcdef_no): New function.
20529         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20530         to libgcov function.
20531         (tree-profiling): Call node map init and delete function.
20532
20533 2011-04-21  Ian Lance Taylor  <iant@google.com>
20534
20535         * godump.c (go_format_type): Use exported Go name for anonymous
20536         field name.
20537
20538 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20539
20540         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20541         Call builtin_function_type_list instead of builtin_function_type.
20542         (UNARY, BINARY, TRINARY, QUAD): Likewise.
20543
20544 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20545
20546         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20547         build_function_type_list instead of build_function_type.
20548         Delete variable `endlink'.
20549
20550 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20551
20552         * config/s390/s390.c (s390_init_builtins): Call
20553         build_function_type_list instead of build_function_type.
20554
20555 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20556
20557         * config/ia64/ia64.c (ia64_init_builtins): Call
20558         build_function_type_list instead of builtin_function_type.
20559
20560 2011-04-21  Easwaran Raman  <eraman@google.com>
20561
20562         * cfgexpand.c (stack_var): Remove OFFSET...
20563         (add_stack_var): ...and its reference here...
20564         (expand_stack_vars): ...and here.
20565         (stack_var_cmp): Sort by descending order of size.
20566         (partition_stack_vars): Change heuristic.
20567         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20568         (dump_stack_var_partition): Add newline after each partition.
20569
20570 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
20571             Jeff Law  <law@redhat.com>
20572
20573         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20574         * gengtype.c (matching_file_name_substitute): Likewise.
20575
20576 2011-04-21  Richard Guenther  <rguenther@suse.de>
20577
20578         PR lto/48703
20579         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20580
20581 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20582
20583         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20584
20585 2011-04-21  Richard Guenther  <rguenther@suse.de>
20586
20587         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20588         file name.
20589
20590 2011-04-21  Richard Guenther  <rguenther@suse.de>
20591
20592         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20593         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20594         Use DECL_P, not SSA_VAR_P.
20595         (ptr_derefs_may_alias_p): Likewise.
20596         (ptr_deref_may_alias_ref_p_1): Likewise.
20597         (decl_refs_may_alias_p): Likewise.
20598         (refs_may_alias_p_1): Likewise.
20599         (ref_maybe_used_by_call_p_1): Likewise.
20600         (call_may_clobber_ref_p_1): Likewise.
20601         (indirect_ref_may_alias_decl_p): Assume indirect refrences
20602         are either MEM_REF or TARGET_MEM_REF.
20603         (indirect_refs_may_alias_p): Likewise.
20604         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20605         for MEM_EXPR of indirect calls.
20606
20607 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20608
20609         * vmsdbgout.c (write_srccorr): Compute file length from the string.
20610         (dst_file_info_struct): Remove flen field.
20611         (lookup_filename): Remove code that set flen field.
20612
20613 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20614
20615         * config/ia64/ia64.c (ia64_start_function): Add a guard.
20616
20617 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
20618
20619         PR target/48708
20620         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20621         vec_extract and vec_concat for non-SSE4_1 targets.
20622
20623 2011-04-21  Richard Guenther  <rguenther@suse.de>
20624
20625         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20626         return statements.
20627
20628 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20629
20630         * config/i386/cygming.h (union tree_node, TREE): Don't define or
20631         undefine.
20632         (FILE): Don't undefine.
20633
20634 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20635
20636         * config/alpha/alpha.c (struct machine_function): Use rtx, not
20637         struct rtx_def *.
20638         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20639         struct rtx_def *.
20640         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20641         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20642         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20643         rtx_def *.
20644         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
20645         definitions where used.
20646         * config/microblaze/microblaze.h (struct microblaze_args): Use
20647         rtx, not struct rtx_def *.
20648         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20649         rtx_def *.
20650         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20651         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20652         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20653         not struct rtx_def *.
20654         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20655         struct rtx_def *.
20656         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20657         rtx_def *.
20658         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20659
20660 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20661
20662         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20663         operand_equal_p to compare DR_BASE_ADDRESSes.
20664         (vect_check_interleaving): Likewise.
20665
20666 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20667
20668         PR target/46329
20669         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20670         for all Neon struct constants.
20671
20672 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20673
20674         * target.def (legitimate_constant_p): New hook.
20675         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20676         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20677         * doc/tm.texi: Regenerate.
20678         * hooks.h (hook_bool_mode_rtx_true): Declare.
20679         * hooks.c (hook_bool_mode_rtx_true): Define.
20680         * system.h (LEGITIMATE_CONSTANT_P): Poison.
20681         * calls.c (precompute_register_parameters): Replace uses of
20682         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20683         (emit_library_call_value_1): Likewise.
20684         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20685         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20686         * ira-costs.c (scan_one_insn): Likewise.
20687         * recog.c (general_operand, immediate_operand): Likewise.
20688         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20689         * reload1.c (init_eliminable_invariants): Likewise.
20690
20691         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20692         mode argument.
20693         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20694         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20695         argument.
20696         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20697         * config/alpha/predicates.md (input_operand): Update call to
20698         alpha_legitimate_constant_p.
20699
20700         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20701         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20702         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20703         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20704         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20705         (arm_legitimate_constant_p): New functions.
20706         (arm_cannot_force_const_mem): Make static.
20707
20708         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20709
20710         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20711         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20712         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20713         instead of bfin_legitimate_constant_p.
20714         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
20715         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20716
20717         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20718
20719         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20720
20721         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20722         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20723         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20724         (frv_legitimate_constant_p): Make static.  Add a mode argument.
20725
20726         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20727         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20728         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20729
20730         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20731         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20732         * config/i386/i386.c (legitimate_constant_p): Rename to...
20733         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
20734         argument.
20735         (ix86_cannot_force_const_mem): Update accordingly.
20736         (ix86_legitimate_address_p): Likewise.
20737         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20738         * config/i386/i386.md: Update commentary.
20739
20740         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20741         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20742         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20743         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
20744
20745         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20746
20747         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20748         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20749         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20750         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
20751
20752         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20753         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20754         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20755
20756         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20757         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20758         (m32r_legitimate_constant_p): New function.
20759
20760         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20761         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20762         LEGITIMATE_CONSTANT_P.
20763         (LEGITIMATE_CONSTANT_P): Delete.
20764         * config/m68k/m68k.c (m68k_expand_prologue): Call
20765         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20766         (m68k_legitimate_constant_p): New function.
20767         * config/m68k/m68k.md: Update comments.
20768
20769         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20770         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20771         (mcore_legitimate_constant_p): New function.
20772
20773         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20774         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20775         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20776         Add a mode argument.
20777         (mep_legitimate_address): Update accordingly.
20778         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20779
20780         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20781         Delete.
20782         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20783         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20784         static.  Check OP's mode for VOIDmode.
20785         (microblaze_legitimate_constant_p): New function.
20786         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20787
20788         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20789         * config/mips/mips.c (mips_legitimate_constant_p): New function.
20790         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20791         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20792         * config/mips/predicates.md: Update comments.
20793
20794         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20795         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20796         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20797         (mmix_legitimate_constant_p): Make static, return a bool, and take
20798         a mode argument.
20799         (mmix_print_operand_address): Update accordingly.
20800
20801         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20802         Delete.
20803         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20804         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20805         static.  Add a mode argument.
20806         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20807
20808         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20809
20810         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20811         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20812         (pa_legitimate_constant_p): New function.
20813
20814         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20815
20816         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20817         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20818         (pdp11_legitimate_constant_p): New function.
20819
20820         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20821         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20822         (rs6000_legitimate_constant_p): New function.
20823
20824         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20825         (rx_legitimate_constant_p): ...this.
20826         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20827         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20828         (rx_legitimate_constant_p): ...this.
20829         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20830         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20831
20832         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20833         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20834         * config/s390/s390.c (legitimate_constant_p): Rename to...
20835         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
20836         and add a mode argument.
20837         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20838
20839         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20840
20841         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20842         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20843         (sh_legitimate_constant_p): New function.
20844
20845         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20846         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20847         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20848         (legitimate_constant_p): Rename to...
20849         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
20850         argument.
20851         (constant_address_p): Update accordingly.
20852
20853         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20854         argument and return a bool.
20855         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20856         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20857         (spu_legitimate_constant_p): Add a mode argument and return a bool.
20858         (spu_rtx_costs): Update accordingly.
20859         * config/spu/predicates.md (vec_imm_operand): Likewise.
20860
20861         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20862
20863         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20864         * config/v850/v850.c (v850_legitimate_constant_p): New function.
20865         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20866
20867         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20868         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20869         * config/vax/vax.c (legitimate_constant_p): Likewise.
20870
20871         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20872         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20873         (xtensa_legitimate_constant_p): New function.
20874
20875 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20876
20877         * target.def (cannot_force_const_mem): Add a mode argument.
20878         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20879         * doc/tm.texi: Regenerate.
20880         * hooks.h (hook_bool_mode_rtx_false): Declare.
20881         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20882         (hook_bool_mode_const_rtx_true): Likewise.
20883         (hook_bool_mode_rtx_false): New function.
20884         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20885         to be non-VOID.  Update call to cannot_force_const_mem.
20886         (find_reloads): Update accordingly.
20887         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20888         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20889         argument.
20890         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20891         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20892         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20893         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20894         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20895         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20896         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20897         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20898         (m68k_cannot_force_const_mem): ...this new function.
20899         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20900         argument.
20901         (mips_const_insns, mips_legitimize_const_move): Update calls.
20902         (mips_secondary_reload_class): Likewise.
20903         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20904         (pa_cannot_force_const_mem): ...this new function.
20905         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20906         (rs6000_cannot_force_const_mem): ...this new function.
20907         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20908         argument.
20909         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20910         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20911         to...
20912         (xtensa_cannot_force_const_mem): ...this new function.
20913
20914 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20915
20916         * config/mips/mips.c (mips16_build_function_stub): Call
20917         build_function_type_list instead of build_function_type.
20918         (mips16_build_call_stub): Likewise.
20919
20920 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20921
20922         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20923         instead of build_function_type.
20924
20925 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20926
20927         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20928         instead of build_function_type.
20929
20930 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20931
20932         PR target/48678
20933         * config/i386/i386.md (insv): Change operand 0 constraint to
20934         "register_operand".  Change operand 1 and 2 constraint to
20935         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20936         * config/i386/sse.md (sse4_1_pinsrb): Export.
20937         (sse2_pinsrw): Ditto.
20938         (sse4_1_pinsrd): Ditto.
20939         (sse4_1_pinsrq): Ditto.
20940         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20941         * config/i386/i386.c (ix86_expand_pinsr): New.
20942
20943 2011-04-20  Easwaran Raman  <eraman@google.com>
20944
20945         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20946         containing union type only with -fstrict-aliasing.
20947
20948 2011-04-20  Jim Meyering  <meyering@redhat.com>
20949
20950         Remove useless if-before-free tests.
20951         * calls.c (expand_call, save_area): Likewise.
20952         * cfgcleanup.c (try_forward_edges): Likewise.
20953         * collect2.c (collect_execute): Likewise.
20954         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20955         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20956         * coverage.c (coverage_checksum_string): Likewise.
20957         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20958         * cselib.c (cselib_init): Likewise.
20959         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20960         (df_set_clean_cfg): Likewise.
20961         * function.c (free_after_compilation): Likewise.
20962         * gcc.c (do_spec_1, main): Likewise.
20963         * gcov.c (create_file_names): Likewise.
20964         * gensupport.c (identify_predicable_attribute): Likewise.
20965         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20966         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20967         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20968         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20969         * ipa-pure-const.c (local_pure_const): Likewise.
20970         * ipa-reference.c (propagate): Likewise.
20971         * ira-costs.c (free_ira_costs): Likewise.
20972         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20973         * matrix-reorg.c (mat_free): Likewise.
20974         * prefix.c (get_key_value): Likewise.
20975         * profile.c (compute_value_histograms): Likewise.
20976         * reload1.c (free_reg_equiv): Likewise.
20977         * sched-deps.c (free_deps): Likewise.
20978         * sel-sched-ir.c (fence_clear): Likewise.
20979         * sese.c (set_rename, if_region_set_false_region): Likewise.
20980         * tree-data-ref.c (free_rdg): Likewise.
20981         * tree-eh.c (lower_try_finally): Likewise.
20982         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20983         * tree-ssa-live.c (delete_var_map): Likewise.
20984         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20985         * tree-ssa-pre.c (phi_trans_add): Likewise.
20986
20987 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20988
20989         PR tree-optimization/48611
20990         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20991         beyond ERT_MUST_NOT_THROW region.
20992
20993 2011-04-20  Catherine Moore  <clm@codesourcery.com>
20994
20995         * config/mips/mips.opt (mfix-24k): New.
20996         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20997         * config/mips/mips.md (length): Increase by 4 for stores if
20998         fixing 24K errata.
20999         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
21000         all noreorder if fixing 24K errata.
21001         * doc/invoke.texi: Document mfix-24k.
21002
21003 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
21004
21005         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
21006         quad-word modes, reduce to 9-bit index range when above 1016 limit.
21007
21008 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
21009
21010         * config/arm/arm.c (arm_gen_constant): Move movw support ....
21011         (const_ok_for_op): ... to here.
21012
21013 2011-04-20  Kai Tietz  <ktietz@redhat.com>
21014
21015         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
21016         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
21017
21018 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
21019
21020         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
21021
21022 2011-04-20  Richard Guenther  <rguenther@suse.de>
21023
21024         PR tree-optimization/47892
21025         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
21026         are if-convertible.
21027
21028 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
21029
21030         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
21031
21032 2011-04-20  Tristan Gingold  <gingold@adacore.com>
21033
21034         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
21035
21036 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
21037
21038         PR target/18145
21039
21040         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21041         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21042         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21043         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21044         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21045
21046         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21047         New prototype.
21048
21049         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21050         (avr_asm_named_section, avr_asm_output_aligned_common,
21051         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21052         New functions to update...
21053         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21054         (avr_asm_init_sections): Overwrite section callbacks for
21055         data_section, bss_section.
21056         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21057         from here to...
21058         (avr_file_end): ...here.
21059
21060 2011-04-20  Richard Guenther  <rguenther@suse.de>
21061
21062         PR middle-end/48695
21063         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21064         objects and types here.  Adjust for their offset before comparing.
21065
21066 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21067
21068         * tree-vect-stmts.c (vectorizable_store): Only chain one related
21069         statement per copy.
21070
21071 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21072
21073         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21074         (GIMPLE_H): Include $(INTERNAL_FN_H).
21075         (OBJS-common): Add internal-fn.o.
21076         (internal-fn.o): New rule.
21077         * internal-fn.def: New file.
21078         * internal-fn.h: Likewise.
21079         * internal-fn.c: Likewise.
21080         * gimple.h: Include internal-fn.h.
21081         (GF_CALL_INTERNAL): New gf_mask.
21082         (gimple_statement_call): Put fntype into a union with a new
21083         internal_fn field.
21084         (gimple_build_call_internal): Declare.
21085         (gimple_build_call_internal_vec): Likewise.
21086         (gimple_call_same_target_p): Likewise.
21087         (gimple_call_internal_p): New function.
21088         (gimple_call_internal_fn): Likewise.
21089         (gimple_call_fntype): Return null for internal calls.
21090         (gimple_call_set_fntype): Assert that the function is not internal.
21091         (gimple_call_set_fn): Likewise.
21092         (gimple_call_set_fndecl): Likewise.
21093         (gimple_call_set_internal_fn): New function.
21094         (gimple_call_addr_fndecl): Handle null functions.
21095         (gimple_call_return_type): Likewise null types.
21096         * gimple.c (gimple_build_call_internal_1): New function.
21097         (gimple_build_call_internal): Likewise.
21098         (gimple_build_call_internal_vec): Likewise.
21099         (gimple_call_same_target_p): Likewise.
21100         (gimple_call_flags): Handle calls to internal functions.
21101         (gimple_call_fnspec): New function.
21102         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21103         (gimple_has_side_effects): Handle null functions.
21104         (gimple_rhs_has_side_effects): Likewise.
21105         (gimple_call_copy_skip_args): Handle calls to internal functions.
21106         * cfgexpand.c (expand_call_stmt): Likewise.
21107         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21108         * gimple-fold.c (gimple_fold_call): Handle null functions.
21109         (gimple_fold_stmt_to_constant_1): Don't fold
21110         calls to internal functions.
21111         * gimple-low.c (gimple_check_call_args): Handle calls to internal
21112         functions.
21113         * gimple-pretty-print.c (dump_gimple_call): Likewise.
21114         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21115         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21116         (do_warn_unused_result): Likewise.
21117         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21118         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21119         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21120         the target of a call.
21121         (initialize_hash_element): Update accordingly.
21122         (hashable_expr_equal_p): Use gimple_call_same_target_p.
21123         (iterative_hash_hashable_expr): Handle calls to internal functions.
21124         (print_expr_hash_elt): Likewise.
21125         * tree-ssa-pre.c (can_value_number_call): Likewise.
21126         (eliminate): Handle null functions.
21127         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21128         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21129         (find_func_aliases): Likewise.
21130         * value-prof.c (gimple_ic_transform): Likewise.
21131         (gimple_indirect_call_to_profile): Likewise.
21132         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21133         * lto-streamer-out.c (output_gimple_stmt): Likewise.
21134
21135 2011-04-19  Jan Hubicka  <jh@suse.cz>
21136
21137         * ipa-inline-transform.c (save_inline_function_body): Add comments.
21138         * ipa-inline.c (inline_small_functions): Compute summaries first,
21139         populate heap later.
21140
21141 2011-04-19  Jan Hubicka  <jh@suse.cz>
21142
21143         * cgraph.h (save_inline_function_body): Remove.
21144         * ipa-inline-transform.c: New file, broke out of...
21145         * ipa-inline.c: ... this one; Update toplevel comment.
21146         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21147         make global.
21148         (update_noncloned_frequencies): Move to ipa-inline-transform.c
21149         (cgraph_mark_inline_edge): Rename to inline_call; move to
21150         ipa-inline-transform.c.
21151         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21152         move to ipa-inline-transform.c
21153         (recursive_inlining, inline_small_functions, flatten_function,
21154         ipa_inline, inline_always_inline_functions,
21155         early_inline_small_functions): Update.
21156         (inline_transform): Move to ipa-inline-transform.c.
21157         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21158         Declare.
21159         * Makefile.in (ipa-inline-transform.o): New file.
21160         * cgraphunit.c (save_inline_function_body): Move to
21161         ipa-inline-transform.c
21162
21163 2011-04-19  DJ Delorie  <dj@redhat.com>
21164
21165         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21166         registers if we already know there aren't any.
21167         (m32c_emit_epilogue): Don't emit a barrier here.
21168         (m32c_emit_eh_epilogue): Likewise.
21169         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21170         operands at expand time.
21171         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21172         int" wchar type.
21173         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21174         duplicates.  Provide aliases instead.
21175         * config/m32c/prologue.md (eh_return): Emit a barrier here.
21176         (eh_epilogue): Add a "(return)" here as a hint to other parts of
21177         the compiler.
21178
21179 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
21180
21181         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21182         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21183         (general_or_i64_p, sparc_register_move_cost): New function.
21184
21185 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21186
21187         * doc/install.texi (Configuration, --enable-threads): Remove mach.
21188         Add lynx, mipssde.  Sort table.
21189
21190 2011-04-19  Xinliang David Li  <davidxl@google.com>
21191
21192         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21193         not negative.
21194
21195 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
21196
21197         PR target/48678
21198         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21199         is a SUBREG with non-MODE_INT mode inside of it.
21200
21201 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21202
21203         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21204         also according to actual contants.
21205         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21206         (gimple_fold_call): Use it.
21207         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21208
21209 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21210
21211         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21212         non-pointer assignments.
21213
21214 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21215
21216         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21217         account anc_offset and otr_type from the indirect edge info.
21218         * ipa-prop.c (get_ancestor_addr_info): New function.
21219         (compute_complex_ancestor_jump_func): Assignment analysis moved to
21220         get_ancestor_addr_info, call it.
21221         (ipa_note_param_call): Do not initialize information about polymorphic
21222         calls, return the indirect call graph edge.  Remove the last
21223         parameter, adjust all callers.
21224         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21225         parameters.  Initialize polymorphic information in the indirect edge.
21226
21227 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21228
21229         PR lto/48148
21230         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21231         the types if they have different enumeration identifiers.
21232
21233 2011-04-19  Jan Hubicka  <jh@suse.cz>
21234
21235         * cgraph.h (cgraph_optimize_for_size_p): Declare.
21236         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21237         * predict.c (cgraph_optimize_for_size_p): Break out from ...
21238         (optimize_function_for_size_p) ... here.
21239
21240 2011-04-19  Richard Guenther  <rguenther@suse.de>
21241
21242         PR lto/48207
21243         * tree.c (free_lang_data): Do not reset the decl-assembler-name
21244         langhook.
21245
21246 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21247
21248         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21249         if DECL_NO_INLINE_WARNING_P is set on the function.
21250
21251 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
21252
21253         PR fortran/47976
21254         * reload1.c (inc_for_reload): Return void. All callers changed.
21255         (emit_input_reload_insns): Don't try to delete previous output
21256         reloads to a register, or record spill_reg_store for autoincs.
21257
21258 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
21259
21260         * gengtype.h: Updated copyright year.
21261         (struct input_file_st): Add inpisplugin field.
21262         (type_fileloc): New function.
21263         * gengtype.c
21264         (write_typed_struct_alloc_def): Add gcc_assert.
21265         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21266         (write_typed_alloc_defns): Don't output for plugin files.
21267         (input_file_by_name): Clear inpisplugin field.
21268         (main): Set inpisplugin field for plugin files.
21269
21270 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
21271
21272         * gengtype-state.c (string_eq): New.
21273         (read_state): Use string_eq instead of strcmp when creating the
21274         state_ident_tab.
21275
21276 2011-04-19  Wei Guozhi  <carrot@google.com>
21277
21278         PR target/47855
21279         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21280         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21281         linkage.
21282         * config/arm/constraints.md (Uu): New constraint.
21283         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21284
21285 2011-04-19  Tristan Gingold  <gingold@adacore.com>
21286
21287         * config.gcc (-*-*-*vms): Added.
21288         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21289         definitions moved.
21290         * config/vms/vms-ld.c: New file.
21291         * config/vms/vms-ar.c: New file.
21292         * config/vms/t-vmsnative: New file.
21293
21294 2011-04-18  Xinliang David Li  <davidxl@google.com>
21295
21296         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21297
21298 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21299
21300         PR middle-end/48661
21301         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21302         if TREE_TYPE (v) is non-NULL.
21303
21304         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21305         gimple_get_virt_mehtod_for_binfo.
21306         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21307         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21308         callers.
21309         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21310
21311 2011-04-18  Michael Matz  <matz@suse.de>
21312             Steve Ellcey  <sje@cup.hp.com>
21313
21314         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21315         use its mode as source mode if it isn't VOIDmode.
21316
21317 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
21318
21319         * doc/passes.texi: Fill crossref nodes.
21320
21321 2011-04-18  Jim Meyering  <meyering@redhat.com>
21322
21323         Fix doubled-word typos in comments and strings
21324         * config/alpha/vms-unwind.h: s/for for/for/
21325         * config/arm/unwind-arm.h: Likewise.
21326         * config/microblaze/microblaze.c: Likewise.
21327         * config/sh/constraints.md: s/in in/in/
21328         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21329
21330 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
21331
21332         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21333         (AVX_FLOAT_MODE_P): Ditto.
21334         (AVX128_VEC_FLOAT_MODE_P): Ditto.
21335         (AVX256_VEC_FLOAT_MODE_P): Ditto.
21336         (AVX_VEC_FLOAT_MODE_P): Ditto.
21337         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21338         (UNSPEC_MASKSTORE): Ditto.
21339         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21340         Merge from <sse>_movmsk<ssemodesuffix> and
21341         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
21342         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
21343         iterator.
21344         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21345         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21346         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21347
21348 2011-04-18  Jan Hubicka  <jh@suse.cz>
21349
21350         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21351
21352         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21353         (want_inline_function_called_once_p): Break out the logic from
21354         ipa_inline.
21355         (edge_badness): Ensure that profile is not misupdated.
21356         (lookup_recursive_calls): Prioritize by call frequencies.
21357         (inline_small_functions): Move program size estimates here;
21358         actually process whole queue even when unit growth has been
21359         met. (to properly compute inline_failed reasons and for the
21360         case unit size decrease.) Revisit comments on recursive inlining.
21361         (ipa_inline): Remove unit summary code; first inline hot calls
21362         of functions called once, cold calls next.
21363         (order, nnodes): Remove unused variables.
21364         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21365         (GTFILES): Remove ipa-inline.c
21366         * sel-sched.c (fill_insns): Silence uninitialized var warning.
21367
21368 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21369
21370         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21371
21372 2011-04-18  Jie Zhang  <jie@codesourcery.com>
21373             Richard Earnshaw  <rearnsha@arm.com>
21374
21375         * arm.c (neon_builtin_type_bits): Remove.
21376         (typedef enum neon_builtin_mode): New.
21377         (T_MAX): Don't define.
21378         (typedef enum neon_builtin_datum): Remove bits, codes[],
21379         num_vars and base_fcode.  Add mode, code and fcode.
21380         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21381         VAR10): Change accordingly.
21382         (neon_builtin_data[]): Change accordingly
21383         (arm_init_neon_builtins): Change accordingly.
21384         (neon_builtin_compare): Remove.
21385         (locate_neon_builtin_icode): Remove.
21386         (arm_expand_neon_builtin): Change accordingly.
21387
21388         * arm.h (enum arm_builtins): Move to ...
21389         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21390
21391         * arm.c (arm_builtin_decl): Declare.
21392         (TARGET_BUILTIN_DECL): Define.
21393         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21394         (arm_builtin_decls[]): New.
21395         (arm_init_neon_builtins): Store builtin declarations in
21396         arm_builtin_decls[].
21397         (arm_init_tls_builtins): Likewise.
21398         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
21399         (arm_builtin_decl): New.
21400
21401 2011-04-18  Richard Guenther  <rguenther@suse.de>
21402
21403         * tree.c (upper_bound_in_type): Build properly canonicalized
21404         INTEGER_CSTs.
21405         (lower_bound_in_type): Likewise.
21406
21407 2011-04-18  Richard Guenther  <rguenther@suse.de>
21408
21409         * gimple.h (gimple_call_addr_fndecl): New function.
21410         (gimple_call_fndecl): Use it.
21411         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21412         for direct calls.
21413         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21414         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21415
21416 2011-04-18  Richard Guenther  <rguenther@suse.de>
21417
21418         PR middle-end/48650
21419         * tree.c (build_string): STRING_CST is now derived from tree_typed.
21420
21421 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21422
21423         PR lto/48492
21424         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21425         DECL_IN_CONSTANT_POOL without RTL.
21426
21427 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
21428             Ira Rosen  <ira.rosen@linaro.org>
21429
21430         PR target/48252
21431         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21432         to match neon_vzip/vuzp/vtrn_internal.
21433         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21434         outputs explicitly dependent on both inputs.
21435         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21436
21437 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21438
21439         PR tree-optimization/48616
21440         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21441         whether the shift is by scalar or vector based on whether all SLP
21442         scalar stmts have the same rhs.
21443
21444 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
21445
21446         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21447         memory operands.
21448
21449 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
21450
21451         PR target/43700
21452         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21453         registers.
21454
21455 2011-04-17  Jan Hubicka  <jh@suse.cz>
21456
21457         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21458         * cgrpahunit.c (cgraph_finalize_function): Do not set
21459         finalized_by_frontend.
21460         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21461         finalized_by_frontend.
21462
21463 2011-04-17  Jan Hubicka  <jh@suse.cz>
21464
21465         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21466         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21467         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21468         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21469         method.
21470         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21471         gimple-fold.c
21472         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21473
21474 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21475
21476         PR lto/48538
21477         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21478         is non-null before accessing it.
21479         (input_cgraph): Remove trailing spaces.
21480
21481 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21482
21483         * params.def (sms-min-sc): New param flag.
21484         * modulo-sched.c (sms_schedule): Use it.
21485         * doc/invoke.texi (sms-min-sc): Document it.
21486
21487 2011-04-17  Jan Hubicka  <jh@suse.cz>
21488
21489         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21490         present, also set gimple_call_set_cannot_inline.
21491         * ipa-inline.c: Update toplevel comment.
21492         (MAX_TIME): Remove.
21493         (cgraph_clone_inlined_nodes): Fix linebreaks.
21494         (cgraph_check_inline_limits): Restructure to ...
21495         (caller_growth_limits): ... this one; be more tolerant
21496         on growth in nested inline chains; add explanatory comment;
21497         fix stack accounting thinko introduced by previous patch.
21498         (cgraph_default_inline_p): Remove.
21499         (report_inline_failed_reason): New function.
21500         (can_inline_edge_p): New function.
21501         (can_early_inline_edge_p): New function.
21502         (leaf_node_p): Move upwards in file.
21503         (want_early_inline_function_p): New function.
21504         (want_inline_small_function_p): New function.
21505         (want_inline_self_recursive_call_p): New function.
21506         (cgraph_edge_badness): Rename to ...
21507         (edge_badness) ... this one; fix linebreaks.
21508         (update_edge_key): Update call of edge_baddness; add
21509         detailed dump about queue updates.
21510         (update_caller_keys): Use can_inline_edge_p and
21511         want_inline_small_function_p.
21512         (cgraph_decide_recursive_inlining): Rename to...
21513         (recursive_inlining): Use can_inline_edge_p and
21514         want_inline_self_recursive_call_p; simplify and remove no longer
21515         valid FIXME.
21516         (cgraph_set_inline_failed): Remove.
21517         (add_new_edges_to_heap): Use can_inline_edge_p and
21518         want_inline_small_function_p.
21519         (cgraph_decide_inlining_of_small_functions): Rename to ...
21520         (inline_small_functions): ... this one; cleanup; use
21521         can/want predicates; cleanup debug ouput; work edges till fibheap
21522         is exhausted and do not stop once unit growth is reached; remove
21523         later loop processing remaining edges.
21524         (cgraph_flatten): Rename to ...
21525         (flatten_function): ... this one; use can_inline_edge_p
21526         and can_early_inline_edge_p predicates.
21527         (cgraph_decide_inlining): Rename to ...
21528         (ipa_inline): ... this one; remove unreachable nodes before
21529         inlining functions called once; simplify the pass.
21530         (cgraph_perform_always_inlining): Rename to ...
21531         (inline_always_inline_functions): ... this one; use
21532         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21533         (cgraph_decide_inlining_incrementally): Rename to ...
21534         (early_inline_small_functions): ... this one; simplify
21535         using new predicates; cleanup; make dumps prettier.
21536         (cgraph_early_inlining): Rename to ...
21537         (early_inliner): newer inline regular functions into always-inlines;
21538         fix updating of call stmt summaries.
21539         (pass_early_inline): Update for new names.
21540         (inline_transform): Fix formating.
21541         (gate_cgraph_decide_inlining): Rename to ...
21542         (pass_ipa_inline): ... this one.
21543         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21544         * ipa-inline-analysis.c (dump_inline_summary): Update.
21545         (compute_inline_parameters): Do not compute disregard_inline_limits;
21546         look for mismatching arguments.
21547         (estimate_growth): Fix handlig of non-trivial self recursion.
21548         (inline_read_summary): Do not read info->disregard_inline_limits.
21549         (inline_write_summary): Do not write info->disregard_inline_limits.
21550         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21551         and move all checks into can_inline_edge_p predicate; re-enable code
21552         comparing optimization levels.
21553         (expand_call_inline): Do not test inline_forbidden_into_p.
21554         * Makefile.in (ipa-inline.o): Update arguments.
21555
21556 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21557
21558         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21559
21560 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21561
21562         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21563
21564 2011-04-17  Michael Matz  <matz@suse.de>
21565
21566         PR tree-optimization/48622
21567         PR lto/48645
21568         * ipa-inline-analysis.c (inline_read_summary): Read size/time
21569         in same order as they're written.
21570
21571 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21572
21573         * config/pa/predicates.md: Reorganize and simplify predicates.
21574         Eliminate duplicate code checks.
21575         (arith_operand): Rename to arith14_operand
21576         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21577         * config/pa/pa.md: Use renamed operands.
21578         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21579         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21580         arith11_operand, adddi3_operand, indexed_memory_operand,
21581         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21582         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21583         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21584         move_dest_operand, move_src_operand, prefetch_cc_operand,
21585         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21586         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21587         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21588         div_operand, int5_operand, movb_comparison_operator,
21589         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21590         arith_double_operand, ireg_operand, lhs_lshift_operand,
21591         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21592         integer_store_memory_operand): Likewise.
21593         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21594         (integer_store_memory_operand, read_only_operand,
21595         function_label_operand, borx_reg_operand,
21596         non_hard_reg_operand): Likewise.
21597         (eq_neq_comparison_operator): Delete unused operator.
21598         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21599         function_label_operand.
21600         (emit_move_sequence): Likewise.
21601
21602 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21603
21604         * config/i386/sse.md (sseunpackmode): New mode attribute.
21605         (ssepackmode): Ditto.
21606         (vec_pack_trunc_<mode>): Macroize expander from
21607         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21608         (vec_unpacks_lo_<mode>): Macroize expander from
21609         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21610         (vec_unpacks_hi_<mode>): Macroize expander from
21611         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21612         (vec_unpacku_lo_<mode>): Macroize expander from
21613         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21614         (vec_unpacku_hi_<mode>): Macroize expander from
21615         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21616         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21617         ix86_expand_sse4_unpack.
21618         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21619
21620 2011-04-16  Jan Hubicka  <jh@suse.cz>
21621
21622         * cgraphbuild.c: Include ipa-inline.h.
21623         (reset_inline_failed): Use initialize_inline_failed.
21624         * cgraph.c: Include ipa-inline.h.
21625         (cgraph_create_node_1): Do not initialize estimated_growth.
21626         (initialize_inline_failed): More to ipa-inline-analysis.c
21627         (dump_cgraph_node): Do not dump inline flags.
21628         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21629         and disregard_inline_limits flags.
21630         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21631         time, size, estimated_growth.
21632         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21633         Update.
21634         * cgraphunit.c (cgraph_decide_is_function_needed): Use
21635         DECL_DISREGARD_INLINE_LIMITS.
21636         (cgraph_analyze_function): Do not initialize
21637         node->local.disregard_inline_limits.
21638         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21639         inlinable, versionable and disregard_inline_limits.
21640         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21641         cgraph_check_inline_limits, cgraph_default_inline_p,
21642         cgraph_edge_badness, update_caller_keys, update_callee_keys,
21643         add_new_edges_to_heap): Update.
21644         (cgraph_decide_inlining_of_small_function): Update; set
21645         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21646         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21647         cgraph_decide_inlining_incrementally): Update.
21648         * ipa-inline.h (inline_summary): Add inlinable, versionable,
21649         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21650         time, size and estimated_growth parameters.
21651         (estimate_edge_growth): Update.
21652         (initialize_inline_failed): Declare.
21653         * ipa-split.c: Include ipa-inline.h
21654         (execute_split_functions): Update.
21655         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21656         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21657         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21658         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21659         estimated_growth to INT_MIN.
21660         (inline_node_duplication_hook): Likewise.
21661         (dump_inline_summary): Dump new fields.
21662         (compute_inline_parameters): Update.
21663         (estimate_edge_time, estimate_time_after_inlining,
21664         estimate_size_after_inlining, estimate_growth, inline_read_summary,
21665         inline_write_summary):
21666         (initialize_inline_failed): Move here from cgraph.c.
21667         * tree-sra.c: Include ipa-inline.h.
21668         (ipa_sra_preliminary_function_checks): Update.
21669         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21670         ipa-inline.h.
21671
21672 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21673
21674         * config/i386/sse.md (V16): New mode iterator.
21675         (VI1, VI8): Ditto.
21676         (AVXMODEQI, AVXMODEDI): Remove.
21677         (sse2, sse3): New mode attribute.
21678         (mov<mode>): Use V16 mode iterator.
21679         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21680         (push<mode>1): Use V16 mode iterator.
21681         (movmisalign<mode>): Ditto.
21682         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21683         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21684         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21685         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21686         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21687         avx_movdqu<avxmodesuffix>.
21688         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21689         *avx_movdqu<avxmodesuffix>.
21690         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21691         avx_lddqu<avxmodesuffix>.
21692         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21693         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21694         avx_movnt<AVXMODEDI:mode>.
21695         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21696         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21697
21698 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
21699
21700         PR target/48629
21701         * haifa-sched.c (prune_ready_list, schedule_block): Use
21702         sched_pressure_p rather than flag_sched_pressure.
21703
21704 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
21705
21706         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21707         cgraph_get_node instead of cgraph_get_create_node.
21708
21709 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
21710
21711         * cfgexpand.c (expand_debug_expr): Use
21712         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21713
21714 2011-04-15  Michael Matz  <matz@suse.de>
21715
21716         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21717         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21718         * function.c (gimplify_parameters): Ditto.
21719         * gimplify.c (gimplify_vla_decl): Ditto.
21720
21721         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21722         (gimple_call_set_alloca_for_var): New inline function.
21723         (gimple_call_alloca_for_var_p): Ditto.
21724         * gimple.c (gimple_build_call_from_tree): Remember
21725         CALL_ALLOCA_FOR_VAR_P state.
21726         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21727
21728         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21729         calls if they were for VLA objects.
21730
21731 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21732
21733         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21734         of ADR_EXPRs.
21735
21736 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21737
21738         PR middle-end/48601
21739         * tree-emutls.c (lower_emutls_function_body): Call
21740         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
21741         result is non-NULL.
21742
21743 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
21744
21745         * c-decl.c (detect_field_duplicates): Call
21746         objc_detect_field_duplicates instead of objc_get_interface_ivars.
21747
21748 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
21749
21750         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21751         * gimple.c (gimple_asm_clobbers_memory_p): Define.
21752         * ipa-pure-const.c (check_stmt): Call it.
21753         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21754
21755 2011-04-15  Richard Guenther  <rguenther@suse.de>
21756
21757         PR tree-optimization/48290
21758         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21759         Properly decide inhibiting propagation based on the valueized
21760         operand.  Do loop-closed SSA form preserving here ...
21761         (init_copy_prop): ... not here.
21762
21763 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
21764
21765         PR target/48612
21766         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21767         (*ieee_smax<mode>3): Likewise.
21768
21769 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21770
21771         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21772         Replace match_operand with match_dup for the third operand in
21773         these expanders.
21774
21775 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21776
21777         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21778         to track processing of conditionals.  Update all callers.
21779         (try_combine, simplify_if_then_else): Update.
21780
21781 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21782
21783         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21784         -fsched-pressure.
21785
21786 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
21787
21788         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21789         instead of match_operand for operand 3.
21790
21791 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
21792
21793         * recog.h (insn_operand_data): Add an "allows_mem" field.
21794         * genoutput.c (output_operand_data): Initialize it.
21795         * optabs.c (maybe_legitimize_operand_same_code): New function.
21796         (maybe_legitimize_operand): Use it when matching the original
21797         op->value.
21798
21799 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21800
21801         * gimplify.c: Fix issues in comments throughout.
21802         (voidify_wrapper_expr): Fix long line.
21803         (build_stack_save_restore): Likewise.
21804         (gimplify_loop_expr): Likewise.
21805         (gimplify_compound_lval): Likewise.
21806         (gimplify_init_ctor_eval): Likewise.
21807         (gimplify_modify_expr_rhs): Likewise.
21808         (omp_notice_threadprivate_variable): Likewise.
21809
21810 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21811
21812         * cfgexpand.c (expand_call_stmt): Convert the function type to the
21813         original one if this is not a builtin function.
21814
21815 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
21816
21817         PR target/48605
21818         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21819         offset it as needed based on top 2 bits in operands[3], change
21820         MEM mode to SFmode and mask those 2 bits away from operands[3].
21821
21822 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21823
21824         * c-parser.c (c_parser_objc_protocol_definition): Updated for
21825         change from objc_declare_protocols() to objc_declare_protocol().
21826
21827 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
21828
21829         * config/i386/sse.md (sse4_1): New mode attribute.
21830         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21831         avx_blend<ssemodesuffix><avxmodesuffix> and
21832         sse4_1_blend<ssemodesuffix> using VF mode iterator.
21833         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21834         avx_blendv<ssemodesuffix><avxmodesuffix> and
21835         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21836         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21837         avx_dp<ssemodesuffix><avxmodesuffix> and
21838         sse4_1_dp<ssemodesuffix> using VF mode iterator.
21839         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21840         (sse4_1_packusdw): Merge with *avx_packusdw.
21841         (sse4_1_pblendvb): Merge with *avx_pblendvb.
21842         (sse4_1_pblendw): Merge with *avx_pblendw.
21843         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21844         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21845         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21846         VF mode iterator.
21847         (sse4_1_round<ssescalarmodesuffix>): Merge with
21848         *avx_round<ssescalarmodesuffix>.
21849         (aesenc): Merge with *avx_aesenc.
21850         (aesenclast): Merge with *avx_aesenclast.
21851         (aesdec): Merge with *avx_aesdec.
21852         (aesdeclast): Merge with *avx_aesdeclast.
21853         (pclmulqdq): Merge with *pclmulqdq.
21854         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21855         New predicate.
21856         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21857
21858 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21859
21860         PR middle-end/48608
21861         * cfgexpand.c (get_decl_align_unit): Renamed to ...
21862         (align_local_variable): This.  Update DECL_ALIGN.
21863         (add_stack_var): Updated.
21864         (expand_one_stack_var): Likewise.
21865
21866 2011-04-14  Richard Guenther  <rguenther@suse.de>
21867
21868         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21869         Remove.
21870         (dse_initialize_block_local_data, dse_leave_block,
21871         record_voperand_set, get_stmt_uid): Likewise.
21872         (dse_possible_dead_store_p): Allow any kind of killing stmt.
21873         (dse_optimize_stmt): Remove voperand set handling code.
21874         Simplify and improve to handle any kind of killing stmt.
21875         (dse_record_phi): Remove.
21876         (dse_enter_block): Simplify.
21877         (tree_ssa_dse): Likewise.
21878         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21879
21880 2011-04-14  Jan Hubicka  <jh@suse.cz>
21881
21882         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21883         * cgraph.h (struct inline_summary): Move to ipa-inline.h
21884         (cgraph_local_info): Remove inline_summary.
21885         * ipa-cp.c: Include ipa-inline.h.
21886         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21887         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21888         accesor.
21889         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21890         (input_overwrite_node): Do not set inline summary.
21891         (input_node): Do not stream inline summary.
21892         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21893         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21894         growth; we do not have inline parameters computed for that anyway.
21895         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21896         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21897         (inline_summary_t): New type and VECtor.
21898         (debug_inline_summary, dump_inline_summaries): Declare.
21899         (inline_summary): Use VOCtor.
21900         (estimate_edge_growth): Kill hack computing call stmt size directly.
21901         * lto-section-in.c (lto_section_name): Add inline section.
21902         * ipa-inline-analysis.c: Include lto-streamer.h
21903         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21904         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21905         (inline_summary_vec): Define.
21906         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21907         dump_inline_summaries): New functions.
21908         (estimate_function_body_sizes): Properly compute size/time of outgoing
21909         calls.
21910         (compute_inline_parameters): Alloc inline_summary; do not compute
21911         size/time of incomming calls.
21912         (estimate_edge_time): Avoid missing time summary hack.
21913         (inline_read_summary): Read inline summary info.
21914         (inline_write_summary): Write inline summary info.
21915         (inline_free_summary): Free all hooks and inline summary vector.
21916         * lto-streamer.h: Add LTO_section_inline_summary section.
21917         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21918         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21919
21920 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21921
21922         * tree-vectorizer.h (vect_strided_store_supported): Add a
21923         HOST_WIDE_INT argument.
21924         (vect_strided_load_supported): Likewise.
21925         (vect_permute_store_chain): Return void.
21926         (vect_transform_strided_load): Likewise.
21927         (vect_permute_load_chain): Delete.
21928         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21929         count argument.  Check that the count is a power of two.
21930         (vect_strided_load_supported): Likewise.
21931         (vect_permute_store_chain): Return void.  Update after above changes.
21932         Assert that the access is supported.
21933         (vect_permute_load_chain): Likewise.
21934         (vect_transform_strided_load): Return void.
21935         * tree-vect-stmts.c (vectorizable_store): Update calls after
21936         above interface changes.
21937         (vectorizable_load): Likewise.
21938         (vect_analyze_stmt): Don't check for strided powers of two here.
21939
21940 2011-04-14  Richard Guenther  <rguenther@suse.de>
21941
21942         PR tree-optimization/48590
21943         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21944         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21945         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21946         BUILT_IN_STACK_SAVE.
21947         * tree-ssa-dce.c (propagate_necessity): Handle
21948         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21949
21950 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21951
21952         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21953         objc_declare_class.
21954
21955 2011-04-14  Richard Guenther  <rguenther@suse.de>
21956
21957         * tree.h (get_object_alignment_1): Declare.
21958         * builtins.c (get_object_alignment_1): Split out worker from ...
21959         (get_object_alignment): ... here.
21960         * fold-const.c (get_pointer_modulus_and_residue): Use
21961         get_object_alignment_1.
21962
21963 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21964
21965         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21966         type parameter.
21967         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21968         parameter.  Generalise code to handle arrays as well as vectors.
21969         (vect_setup_realignment): Update accordingly.
21970         * tree-vect-stmts.c (vectorizable_store): Likewise.
21971         (vectorizable_load): Likewise.
21972
21973 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21974
21975         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21976         within the per-copy loop.
21977
21978 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21979
21980         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21981         in the dump file.
21982
21983 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21984
21985         * doc/options.texi (Negative): Explicitly mention that the
21986         Negative chain must be circular.
21987
21988 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21989
21990         * function.h (block_chainon): Declare.
21991         * function.c (block_chainon): Define.
21992
21993 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
21994             Eric Weddington  <eric.weddington@atmel.com>
21995             Georg-Johann Lay  <avr@gjlay.de>
21996
21997         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21998         New Includes
21999         (avr_init_builtins, avr_expand_builtin,
22000         avr_expand_delay_cycles, avr_expand_unop_builtin,
22001         avr_expand_binop_builtin ): New functions.
22002         (avr_builtin_id): New enum
22003         (struct avr_builtin_description): New struct
22004         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
22005         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
22006
22007         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
22008         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
22009         UNSPECV_DELAY_CYCLES): new enumeration values
22010         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
22011         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
22012         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
22013         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22014         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
22015         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
22016         "fmulsu"): New insns
22017
22018         * config/avr/avr-c.c: fix line endings
22019         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
22020         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
22021         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
22022         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
22023         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
22024
22025         * doc/extend.texi (AVR Built-in Functions): New node
22026         (Target Builtins): Add documentation of AVR
22027         built-in functions.
22028
22029 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
22030
22031         PR target/44643
22032         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
22033         alone. Error if non-const data has attribute progmem.
22034
22035 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22036
22037         * tree.h (struct tree_constructor): Include tree_typed instead of
22038         tree_common.
22039         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22040         TS_TYPED instead of TS_COMMON.
22041
22042 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22043
22044         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22045         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22046         (sse2_psadbw): Merge with *avx_psadbw.
22047         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22048         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22049         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22050         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22051         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22052         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22053         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22054         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22055         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22056         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22057         (ssse3_palignrti): Merge with *avx_palignrti.
22058
22059 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22060
22061         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22062         * tree-ssanames.c (fini_ssanames): VEC_free it.
22063         (make_ssa_name_fn): Update for VECness of free_ssanames.
22064         (release_ssa_name, release_dead_ssa_names): Likewise.
22065         * tree.h (struct tree_ssa_name): Include tree_typed instead of
22066         tree_common.
22067         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22068         TS_TYPED instead of TS_COMMON.
22069
22070 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22071
22072         * postreload-gcse.c (gcse_after_reload_main): Add calls to
22073         statistics_counter_event.
22074         * tree-ssa-copyrename.c (stats): Define.
22075         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
22076         statistics_counter_event.
22077         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22078         (bswap_stats, widen_mul_stats): Define.
22079         (insert_reciprocals): Increment rdivs_inserted.
22080         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
22081         rfuncs_inserted.  Add calls to statistics_counter_event.
22082         (execute_cse_sincos_1): Increment inserted.
22083         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
22084         statistics_counter_event.
22085         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
22086         of bswap_stats.  Add calls to statistics_counter_event.
22087         (convert_mult_to_widen): Increment widen_mults_inserted.
22088         (convert_plusminus_to_widen): Increment maccs_inserted.
22089         (convert_mult_to_fma): Increment fmas_inserted.
22090         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
22091         calls to statistics_counter_event.
22092
22093 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22094
22095         PR rtl-optimization/48455
22096         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22097         `temp_costs->mem_cost'.
22098
22099 2011-04-13  Jan Hubicka  <jh@suse.cz>
22100
22101         * ipa-inline.h: New file.
22102         * ipa-inline-analysis.c: New file. Broken out of ...
22103         * ipa-inline.c: ... this file; update toplevel comment;
22104         include ipa-inline.h
22105         (inline_summary): Move to ipa-inline.h
22106         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22107         ipa-inline-analysis.c.
22108         (cgraph_estimate_time_after_inlining): Rename to
22109         estiamte_time_after_inlining; move to ipa-inline-analysis.c
22110         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22111         to estimate_edge_growth.
22112         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22113         rename to estimate_size_after_inlining.
22114         (cgraph_mark_inline_edge): Update for new naming convention.
22115         (cgraph_check_inline_limits): Likewise.
22116         (cgraph_edge_badness): Likewise.
22117         (cgraph_decide_recursive_inlining): Likewise.
22118         (cgraph_decide_inlining_of_small_functions): Likewise.
22119         (cgraph_decide_inlining_incrementally): Likewise.
22120         (cgraph_estimate_growth): Rename to estimate_growth; move to
22121         ipa-inline-analysis.c.
22122         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22123         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22124         (compute_inline_parameters): Likewise.
22125         (compute_inline_parameters_for_current): Likewise.
22126         (pass_inline_parameters): Likewise.
22127         (inline_indirect_intraprocedural_analysis): Likewise.
22128         (analyze_function): Rename to inline_analyze_function; likewise.
22129         (add_new_function): Move to ipa-inline-analysis.c.
22130         (inline_generate_summary): Likewise.
22131         (inline_read_summary): Likewise.
22132         (inline_write_summary): Likewise.
22133         * Makefile.in (ipa-inline-analysis.c): New file.
22134
22135 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22136
22137         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22138         * configure: Regenerate.
22139
22140 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22141
22142         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22143         instead of tree_common.
22144         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22145         Likewise.
22146         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22147         TS_TYPED rather than TS_COMMON.
22148         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22149
22150 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
22151
22152         PR target/45263
22153         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22154         r20 around calls of __tablejump_elpm__
22155
22156 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
22157
22158         PR middle-end/48591
22159         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22160         NULL.
22161         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22162
22163 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
22164
22165         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22166         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22167         (cfi_vec): New typedef.
22168         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22169         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22170         (cie_cfi_vec): New static variable.
22171         (cie_cfi_head): Delete.
22172         (add_cfi): Accept a cfi_vec * as first argument. All callers and
22173         declaration changed. Use vector rather than list operations.
22174         (new_cfi): Don't initialize the dw_cfi_next field.
22175         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22176         rather than list operations.
22177         (lookup_cfa): Use vector rather than list operations.
22178         (output_cfis): New argument upto. Accept a cfi_vec rather than
22179         a dw_cfi_ref list head as argument. All callers changed.
22180         Iterate over the vector using upto as a maximum index.
22181         (output_all_cfis): New static function.
22182         (output_fde): Use vector rather than list operations. Use the
22183         new upto argument for output_cfis rather than manipulating a
22184         list.
22185         (dwarf2out_begin_prologue): Change initializations to match
22186         new struct members.
22187         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22188         from the vector length rather than searching for the end of a list.
22189         Use output_all_cfis.
22190         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22191
22192 2011-04-13  Nick Clifton  <nickc@redhat.com>
22193
22194         * config/rx/rx.md (movmemsi): Do not use this pattern when
22195         volatile pointers are involved.
22196
22197 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22198
22199         * config/i386/sse.md (pinsrbits): Remove.
22200         (sse2_packsswb): Merge with *avx_packsswb.
22201         (sse2_packssdw): Merge with *avx_packssdw.
22202         (sse2_packuswb): Merge with *avx_packuswb.
22203         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22204         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22205         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22206         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22207         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22208         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22209         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22210         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22211         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22212         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22213         (sse2_loadld): Merge with *avx_loadld.
22214         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22215         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22216         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22217         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22218         (vec_concatv2di): Merge with *vec_concatv2di_avx.
22219
22220 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
22221
22222         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22223         calling TREE_CHAIN.
22224         * print-tree.c (print_node): Likewise.
22225         * tree-inline.c (copy_tree_r): Likewise.
22226         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22227         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22228         instead of TS_COMMON.
22229         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22230         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22231         (copy_node_stat): Zero TREE_CHAIN only if necessary.
22232         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22233         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22234         ...and these...
22235         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22236         * tree.h: ...here.
22237         (TREE_CHAIN): Check for a TS_COMMON structure.
22238         (TREE_TYPE): Check for a TS_TYPED structure.
22239
22240 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
22241
22242         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22243         cgraph_get_create_node instead of cgraph_node.
22244
22245 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22246
22247         * c-parser.c (c_parser_initelt): Updated call to
22248         objc_build_message_expr.
22249         (c_parser_postfix_expression): Likewise.
22250
22251 2011-04-12  Kai Tietz  <ktietz@redhat.com>
22252
22253         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22254         MASK_MS_BITFIELD_LAYOUT bit.
22255
22256 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22257
22258         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22259         assert it is always true.
22260         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22261         moves.
22262
22263 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22264
22265         * c-parser.c (c_lex_one_token): Rewritten conditional used when
22266         compiling Objective-C to be more efficient.
22267
22268 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
22269
22270         * opts-common.c (decode_cmdline_options_to_array): Remove variable
22271         argv_copied.
22272
22273 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22274
22275         * recog.h, genoutput.c, optabs.c: Revert last patch.
22276
22277 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22278
22279         PR target/48090
22280         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22281
22282 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22283
22284         * recog.h (insn_operand_data): Add an "allows_mem" field.
22285         * genoutput.c (output_operand_data): Initialize it.
22286         * optabs.c (maybe_legitimize_operand_same_code): New function.
22287         (maybe_legitimize_operand): Use it when matching the original
22288         op->value.
22289
22290 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22291
22292         * genpreds.c (process_define_predicate): Move most processing
22293         to gensupport.c.  Continue to validate the expression.
22294         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22295         (process_define_predicate): Move processing to gensupport.c.
22296         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22297         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22298         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
22299         argument.
22300         (valid_predicate_name_p): New function, split out from old
22301         genpreds.c:process_define_predicate.
22302         (process_define_predicate): New function, combining code from
22303         old genpreds.c and genrecog.c functions.
22304         (process_rtx): Call it for DEFINE_PREDICATE and
22305         DEFINE_SPECIAL_PREDICATE.
22306
22307 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22308
22309         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22310         size of a '%A' memory reference.
22311         (T_DREG, T_QREG): New neon_builtin_type_bits.
22312         (arm_init_neon_builtins): Assert that the load and store operands
22313         are neon_struct_operands.
22314         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22315         (NEON_ARG_MEMORY): New builtin_arg.
22316         (neon_dereference_pointer): New function.
22317         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22318         Handle NEON_ARG_MEMORY.
22319         (arm_expand_neon_builtin): Update after above interface changes.
22320         Use NEON_ARG_MEMORY for loads and stores.
22321         * config/arm/predicates.md (neon_struct_operand): New predicate.
22322         * config/arm/iterators.md (V_two_elem): Tweak formatting.
22323         (V_three_elem): Use BLKmode for accesses that have no associated mode.
22324         (V_four_elem): Tweak formatting.
22325         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22326         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22327         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22328         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22329         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22330         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22331         (neon_vst4<mode>): Replace pointer operand with a memory operand.
22332         Use %A in the output template.
22333         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22334         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22335         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22336         the width of the memory access.  Remove post-increment.
22337         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22338
22339 2011-04-12  Nick Clifton  <nickc@redhat.com>
22340
22341         * config/v850/v850.c (expand_prologue): Do not use the CALLT
22342         instruction for interrupt handlers if the target is the basic V850
22343         architecture.
22344         (expand_epilogue): Likewise.
22345
22346 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22347
22348         PR rtl-optimization/48549
22349         * combine.c (propagate_for_debug): Also stop after BB_END of
22350         this_basic_block.  Process LAST and just stop processing after it.
22351         (combine_instructions): If last_combined_insn has been deleted,
22352         set last_combined_insn to its PREV_INSN.
22353
22354 2011-04-12  Richard Guenther  <rguenther@suse.de>
22355
22356         PR tree-optimization/46076
22357         * gimple.h (struct gimple_statement_call): Add fntype field.
22358         (gimple_call_fntype): Adjust.
22359         (gimple_call_set_fntype): New function.
22360         * gimple.c (gimple_build_call_1): Set the call function type.
22361         * gimplify.c (gimplify_call_expr): Preserve the function
22362         type the frontend used for the call.
22363         (gimplify_modify_expr): Likewise.
22364         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22365         function type.
22366         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22367         function type.
22368         * tree-ssa.c (useless_type_conversion_p): Function pointer
22369         conversions are useless.
22370
22371 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22372
22373         * cgraph.h (cgraph_node): Remove function declaration.
22374         (cgraph_create_node): Declare.
22375         (cgraph_get_create_node): Likewise.
22376         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22377         Updated all callers.
22378         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22379         the decl does not already exist.  Call cgraph_get_create_node instead
22380         of cgraph_node.
22381         (cgraph_get_create_node): New function.
22382         (cgraph_same_body_alias): Update comment.
22383         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22384         assert it does not return NULL.
22385         (cgraph_update_edges_for_call_stmt): Likewise.
22386         (cgraph_clone_edge): Likewise.
22387         (cgraph_create_virtual_clone): Likewise.
22388         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22389         instead of cgraph_node.
22390         (cgraph_add_new_function): Call cgraph_create_node or
22391         cgraph_get_create_node instead of cgraph_node.
22392         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22393         instead of cgraph_node.
22394         (record_eh_tables): Likewise.
22395         (mark_address): Likewise.
22396         (mark_load): Likewise.
22397         (build_cgraph_edges): Call cgraph_get_create_node instead
22398         of cgraph_node.
22399         (rebuild_cgraph_edges): Likewise.
22400         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22401         instead of cgraph_node.
22402         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22403         cgraph_node.
22404         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22405         cgraph_create_node instead of cgraph_node.
22406         * c-decl.c (finish_function): Call cgraph_get_create_node instead
22407         of cgraph_node.
22408         * lto-cgraph.c (input_node): Likewise.
22409         * lto-streamer-in.c (input_function): Likewise.
22410         * varasm.c (mark_decl_referenced): Likewise.
22411         (assemble_alias): Likewise.
22412
22413 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22414
22415         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22416         instead of cgraph_node and assert it does not return NULL.
22417         * lto-streamer-in.c (lto_read_body): Likewise.
22418         * omp-low.c (new_omp_context): Likewise.
22419         (create_task_copyfn): Likewise.
22420         * tree-emutls.c (lower_emutls_function_body): Likewise.
22421         * matrix-reorg.c (transform_allocation_sites): Likewise.
22422
22423 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22424
22425         PR c/48552
22426         * c-typeck.c (build_asm_expr): Error out on attempts to use
22427         void type outputs or inputs for constraints that allow reg or
22428         don't allow memory.
22429
22430 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
22431             Richard Earnshaw  <rearnsha@arm.com>
22432
22433         PR target/48250
22434         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22435         to use sign-magnitude offsets. Reject unsupported unaligned
22436         cases. Add detailed description in comments.
22437         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22438         condition from TARGET_32BIT to TARGET_ARM.
22439
22440 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
22441
22442         * tree.h (struct typed_tree): New.
22443         (struct tree_common): Include it instead of tree_base.
22444         (TREE_TYPE): Update for new location of type field.
22445         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22446         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22447         (union tree_node): Add typed field.
22448         * treestruct.def (TS_TYPED): New.
22449         * lto-streamer.c (check_handled_ts_structures): Handle it.
22450         * tree.c (MARK_TS_TYPED): New macro.
22451         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22452
22453 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
22454
22455         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22456         (force_nonfallthru): Do not alter the loop nest if no basic block
22457         was created.
22458
22459 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22460
22461         * config/i386/sse.md (VI): New mode iterator.
22462         (SSEMODEI): Remove.
22463         (AVX256MODEI): Ditto.
22464         (AVXMODEF4P): Ditto.
22465         (avxvecpsmode): Ditto.
22466         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
22467         (sse2_andnot<mode>3): New expander.
22468         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22469         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
22470         (<any_logic:code><mode>3): Use VI mode iterator.
22471         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22472         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
22473         (*andnottf3): Handle AVX three-operand constraints.
22474         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22475
22476 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22477             Robert Millan  <rmh@gnu.org>
22478
22479         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22480         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22481         GNU_USER_DYNAMIC_LINKER64): Define.
22482         (REG_NAME): Don't undefine.
22483         (MD_UNWIND_SUPPORT): Undefine.
22484         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22485         (REG_NAME): Don't undefine.
22486         (MD_UNWIND_SUPPORT): Undefine.
22487         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22488
22489 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22490
22491         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22492         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22493
22494 2011-04-11  Xinliang David Li  <davidxl@google.com>
22495
22496         * value-profile.c (check_ic_target): New function.
22497         (gimple_ic_transform): Sanity check indirect call target.
22498         * gimple-low.c (gimple_check_call_args): Interface change.
22499         (gimple_check_call_matching_types): New function.
22500         * tree-inline.c (tree_can_inline_p): Call new function.
22501
22502 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
22503
22504         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22505         tree-pretty-print.h & realmpfr.h.
22506
22507 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
22508
22509         PR middle-end/48464
22510         * ira.c (setup_pressure_classes): Fix typo in loop condition.
22511         (setup_allocno_and_important_classes): Ditto.
22512
22513 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22514
22515         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22516         GNU_USER_DYNAMIC_LINKER.
22517         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22518         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22519         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22520         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22521         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22522         GNU_USER_TARGET_OS_CPP_BUILTINS.
22523         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22524         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22525         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22526         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22527         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22528         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22529         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22530         GNU_USER_TARGET_OS_CPP_BUILTINS.
22531         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22532         GNU_USER_DYNAMIC_LINKER.
22533         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22534         GNU_USER_TARGET_OS_CPP_BUILTINS.
22535         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22536         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22537         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22538         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22539         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22540         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22541         GNU_USER_DYNAMIC_LINKER64): Remove.
22542         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22543         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22544         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22545         GNU_USER_DYNAMIC_LINKER.
22546         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22547         GNU_USER_TARGET_OS_CPP_BUILTINS.
22548         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22549         GNU_USER_TARGET_OS_CPP_BUILTINS.
22550         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22551         to GNU_USER_TARGET_OS_CPP_BUILTINS.
22552         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22553         GNU_USER_TARGET_OS_CPP_BUILTINS.
22554         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22555         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22556         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22557         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22558         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22559         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22560         GNU_USER_DYNAMIC_LINKER.
22561         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22562         GNU_USER_TARGET_OS_CPP_BUILTINS.
22563         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22564         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22565         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22566         GNU_USER_DYNAMIC_LINKER.
22567         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22568         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22569         * config/mips/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/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22574         GNU_USER_DYNAMIC_LINKERN32.
22575         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22576         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
22577         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
22578         GNU_USER_DYNAMIC_LINKER32.
22579         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22580         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22581         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22582         GNU_USER_DYNAMIC_LINKER.
22583         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22584         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22585         * config/pa/pa-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 GNU_USER_DYNAMIC_LINKER.
22588         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22589         GNU_USER_DYNAMIC_LINKER32.
22590         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22591         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22592         GNU_USER_DYNAMIC_LINKER.
22593         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22594         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22595         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22596         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
22597         GNU_USER_DYNAMIC_LINKER64.
22598         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22599         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22600         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22601         GNU_USER_DYNAMIC_LINKER.
22602         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22603         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22604         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22605         GNU_USER_DYNAMIC_LINKER.
22606         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22607         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22608         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22609         GNU_USER_DYNAMIC_LINKER32.
22610         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22611         GNU_USER_DYNAMIC_LINKER64.
22612         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22613         GNU_USER_DYNAMIC_LINKER64.
22614         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22615         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22616         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22617         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22618         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22619
22620 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22621
22622         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
22623         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22624         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22625         GNU_USER_DYNAMIC_LINKER.
22626         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22627         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
22628         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22629         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22630         GNU_USER_DYNAMIC_LINKER64.
22631         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22632         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22633         GNU_USER_LINK_EMULATION.
22634         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22635         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22636         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22637         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22638         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22639         CPP_SPEC, CC1_SPEC): Remove.
22640         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22641         (GNU_USER_DYNAMIC_LINKER): Define.
22642         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22643         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22644         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22645         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22646         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22647         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22648         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22649         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22650         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22651         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22652         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22653         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22654         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22655         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22656         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22657         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22658         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22659         GNU_USER_DYNAMIC_LINKER.
22660         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22661         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22662         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22663         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22664         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22665         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22666         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22667         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22668         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22669         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22670
22671 2011-04-11  Kai Tietz  <ktietz@redhat.com>
22672
22673         PR target/9601
22674         PR target/11772
22675         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22676         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22677         comment.
22678         (ix86_is_msabi_thiscall): Removed.
22679         (ix86_is_type_thiscall): Likewise.
22680         (ix86_get_callcvt): New function.
22681         (ix86_comp_type_attributes): Simplify check.
22682         (ix86_function_regparm): Use ix86_get_callcvt for calling
22683         convention attribute checks.
22684         (ix86_return_pops_args): Likewise.
22685         (ix86_static_chain): Likewise.
22686         (x86_this_parameter): Likewise.
22687         (x86_output_mi_thunk): Likewise.
22688         (ix86_function_type_abi): Optimize check for types without attributes.
22689         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22690         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22691         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22692         by flag-values.
22693         (IX86_BASE_CALLCVT): Helper macro.
22694         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22695         Use ix86_get_callcvt for calling convention attribute checks and avoid
22696         symbol-decoration for stdcall in TARGET_RTD case.
22697         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22698         Likewise.
22699         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22700         for declaration.
22701
22702 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22703
22704         * config/i386/sse.md (VI_128): New mode iterator.
22705         (VI12_128): Rename from SSEMODE12.
22706         (VI14_128): Rename from SSEMODE14.
22707         (VI124_128): New mode iterator.
22708         (VI24_128): Rename from SSEMODE248.
22709         (VI248_128): Rename from SSEMODE248.
22710         (SSEMODE124C8): Remove.
22711         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22712         (*sse2_<plusminus_insn><mode>3): Merge with
22713         *avx_<plusminus_insn><mode>3.
22714         (*mulv8hi3): Merge with *avx_mulv8hi3.
22715         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22716         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22717         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22718         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22719         (ashr<mode>3): Merge with *avx_ashr<mode>3.
22720         (lshr<mode>3): Merge with *avx_lshr<mode>3.
22721         (ashl<mode>3): Merge with *avx_ashl<mode>3.
22722         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22723         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22724         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22725         (*<smaxmin:code>v8hi3): Ditto.
22726         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22727         (*<smaxmin:code>v16qi3): Ditto.
22728         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22729         (*sse2_eq<mode>3): Ditto.
22730         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22731         (*sse2_gt<mode>3): Ditto.
22732         (vcondv2di): Split out of vcond<mode>.
22733         (vconduv2di): Split out of vcondu<mode>.
22734
22735 2011-04-11  Richard Guenther  <rguenther@suse.de>
22736
22737         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22738         before calling tree_low_cst.
22739
22740 2011-04-11  Richard Guenther  <rguenther@suse.de>
22741
22742         * stor-layout.c (layout_type): Compute all array index size operations
22743         in the original type.
22744         (initialize_sizetypes): Add comment.
22745         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22746
22747 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22748
22749         * common.opt (Tbss=, Tdata=, Ttext=): New options.
22750
22751 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22752
22753         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22754         of cgraph_node, handle NULL return value.
22755         (cgraph_global_info): Likewise.
22756         (cgraph_rtl_info): Likewise.
22757         * tree-inline.c (estimate_num_insns): Likewise.
22758         * gimplify.c (unshare_body): Likewise.
22759         (unvisit_body): Likewise.
22760         (gimplify_body): Likewise.
22761         * predict.c (optimize_function_for_size_p): Likewise.
22762         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22763         (call_may_clobber_ref_p_1): Likewise.
22764         * varasm.c (function_section_1): Likewise.
22765         (assemble_start_function): Likewise.
22766
22767 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22768
22769         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22770         of cgraph_node.
22771         * final.c (rest_of_clean_state): Likewise.
22772         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22773         * passes.c (pass_init_dump_file): Likewise.
22774         (execute_all_ipa_transforms): Likewise.
22775         (function_called_by_processed_nodes_p): Likewise.
22776         * predict.c (maybe_hot_frequency_p): Likewise.
22777         (probably_never_executed_bb_p): Likewise.
22778         (compute_function_frequency): Likewise.
22779         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22780         (unnest_nesting_tree_1): Likewise.
22781         (lower_nested_functions): Likewise.
22782         * tree-optimize.c (execute_fixup_cfg): Likewise.
22783         (tree_rest_of_compilation): Likewise.
22784         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22785         * tree-sra.c (ipa_early_sra): Likewise.
22786         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22787         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22788         * ipa.c (record_cdtor_fn): Likewise.
22789         * ipa-inline.c (cgraph_early_inlining): Likewise.
22790         (compute_inline_parameters_for_current): Likewise.
22791         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22792         * ipa-pure-const.c (local_pure_const): Likewise.
22793         * ipa-split.c (split_function): Likewise.
22794         (execute_split_functions): Likewise.
22795         * cgraphbuild.c (build_cgraph_edges): Likewise.
22796         (rebuild_cgraph_edges): Likewise.
22797         (cgraph_rebuild_references): Likewise.
22798         (remove_cgraph_callee_edges): Likewise.
22799         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22800         (verify_cgraph_node): Likewise.
22801         (cgraph_analyze_functions): Likewise.
22802         (cgraph_preserve_function_body_p): Likewise.
22803         (save_inline_function_body): Likewise.
22804         (save_inline_function_body): Likewise.
22805         * tree-inline.c (copy_bb): Likewise.
22806         (optimize_inline_calls): Likewise.
22807
22808 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22809
22810         PR tree-optimization/48195
22811         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22812         ipa_check_create_edge_args.
22813         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22814         ipa_check_create_edge_args.
22815         * ipa-inline.c (inline_generate_summary): Do not call
22816         ipa_check_create_node_params and ipa_check_create_edge_args.
22817         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22818         ipa_check_create_edge_args.
22819
22820 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
22821
22822         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22823         instead of loop.
22824         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22825         * function.c (record_hard_reg_sets): Likewise.
22826         * ira.c (compute_regs_asm_clobbered): Likewise.
22827         * sched-deps.c (sched_analyze_1): Likewise.
22828         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22829
22830 2011-04-09  Xinliang David Li  <davidxl@google.com>
22831
22832         PR tree-optimization/PR48484
22833         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22834         has_valid_pred lazily
22835
22836 2011-04-09  Duncan Sands  <baldrick@free.fr>
22837
22838         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22839
22840 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
22841
22842         * combine.c (combine_validate_cost): Adjust comments.  Set registered
22843         cost of I0 to zero at the end, if any.
22844
22845 2011-04-08  Xinliang David Li  <davidxl@google.com>
22846
22847         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22848         to insane profile data.
22849
22850 2011-04-08  Xinliang David Li  <davidxl@google.com>
22851
22852         * ipa-cp.c (ipcp_update_profiling): Correct
22853          negative scale factor due to insane profile data.
22854
22855 2011-04-08  Xinliang David Li  <davidxl@google.com>
22856
22857         * final.c (dump_basic_block_info): New function.
22858         (final): Dump basic block.
22859         (final_scan_insn): Remove old dump.
22860
22861 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
22862
22863         PR target/47829
22864         * config.gcc (i386-*-freebsd): Disable unwind table generation for
22865         crtbegin/crtend.
22866
22867 2011-04-08  Michael Matz  <matz@suse.de>
22868
22869         PR middle-end/48389
22870         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22871         functions.
22872         (rebuild_jump_labels): Call rebuild_jump_labels_1.
22873         * rtl.h (rebuild_jump_labels_chain): Declare.
22874         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22875         insns inserted on edges.
22876
22877 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
22878
22879         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22880         * config/arm/arm-arches.def: New.
22881         * config/arm/arm-opts.h: New.
22882         * config/arm/genopt.sh: New.
22883         * config/arm/arm-tables.opt: New (generated).
22884         * config/arm/arm.c (arm_handle_option, arm_target_help,
22885         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22886         (all_architectures): Get most table contents from arm-arches.def.
22887         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22888         arm_selected_tune here.
22889         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22890         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22891         (march=, mcpu=, mtune=): Use Enum and Var.
22892         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22893         (arm.o): Update dependencies.
22894
22895 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
22896
22897         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22898         of header_file.
22899         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22900         (write_typed_alloc_defns): Likewise.
22901         (main): Calls write_typed_alloc_defns with output_header.
22902
22903 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22904
22905         PR inline-asm/48435
22906         * ira-color.c (setup_profitable_hard_regs): Add comments.
22907         Don't take prohibited hard regs into account.
22908         (setup_conflict_profitable_regs): Rename to
22909         get_conflict_profitable_regs.
22910         (check_hard_reg_p): Check prohibited hard regs.
22911
22912 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22913
22914         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22915         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22916         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22917
22918 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22919
22920         PR target/48366
22921         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22922         move from floating point to shift amount register.
22923         (emit_move_sequence): Remove secondary reload support for floating
22924         point to shift amount amount register copies.
22925         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22926         amount register copies.
22927         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22928         register, return false if mode isn't a scalar integer mode.
22929         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22930
22931 2011-04-08  Richard Guenther  <rguenther@suse.de>
22932
22933         * gimple.c (gimple_call_flags): Remove kludge.
22934
22935 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22936
22937         * sel-sched.c (sel_region_init): Move call to
22938         sel_setup_region_sched_flags after setup_current_loop_nest.
22939
22940 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22941
22942         PR rtl-optimization/48272
22943         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22944         init_insn_reg_pressure_info.  Adjust a caller.
22945         * sched-int.h (init_insn_reg_pressure_info): Declare.
22946         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22947         when sched-pressure is enabled.
22948
22949 2011-04-08  Richard Guenther  <rguenther@suse.de>
22950
22951         * gimple.c (gimple_set_modified): Do not queue calls to
22952         MODIFIED_NORETURN_CALLS here ...
22953         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22954
22955 2011-04-08  Richard Guenther  <rguenther@suse.de>
22956
22957         PR lto/48467
22958         * toplev.c (lang_dependent_init): Do not open asm_out_file
22959         in WPA mode, nor perform debug machinery initialization.
22960         (finalize): Do not unlink asm_out_file in WPA mode.
22961
22962 2011-04-08  Richard Guenther  <rguenther@suse.de>
22963
22964         * gimple.h (gimple_call_fntype): New function.
22965         (gimple_call_return_type): Use it.
22966         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22967         * gimple-low.c (gimple_check_call_args): Likewise.
22968         * gimple.c (gimple_call_flags): Likewise.
22969         (gimple_call_arg_flags): Likewise.
22970         (gimple_call_return_flags): Likewise.
22971         * tree-cfg.c (verify_gimple_call): Likewise.
22972         (do_warn_unused_result): Likewise.
22973         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22974         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22975
22976 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22977
22978         PR rtl-optimization/48235
22979         * sel-sched.c (code_motion_process_successors): Recompute the last
22980         insn in basic block if control flow changed.
22981         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22982         Update condition for ilist_remove.
22983
22984 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22985
22986         PR rtl-optimization/48302
22987         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22988         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22989         it to record added preheader blocks.
22990         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22991         on to sel_add_loop_preheaders.
22992         (sel_region_init): Move call to setup_current_loop_nest after
22993         sel_init_bbs.
22994
22995 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22996
22997         PR target/48273
22998         * cfgloop.h (loop_has_exit_edges): New helper.
22999         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
23000         non-clonable.
23001         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
23002         that have no exit edges.
23003
23004 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23005
23006         PR rtl-optimization/48442
23007         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
23008         all callers.  Adjust assert.
23009
23010 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
23011
23012         PR tree-optimization/48377
23013         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
23014         is_packed to true even for types with smaller TYPE_ALIGN than
23015         TYPE_SIZE.
23016
23017 2011-04-08  Richard Guenther  <rguenther@suse.de>
23018
23019         PR bootstrap/48513
23020         * doc/tm.texi: Re-generate.
23021
23022 2011-04-08  Wei Guozhi  <carrot@google.com>
23023
23024         PR target/47855
23025         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
23026         * config/arm/arm.c (arm_attr_length_push_multi): New function.
23027         * config/arm/arm.md (*push_multi): Change the length computation to
23028         call a C function.
23029
23030 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
23031
23032         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
23033         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
23034         * doc/tm.texi: Regenerate.
23035         * system.h (ASM_OUTPUT_BSS): Poison.
23036         * varasm.c (asm_output_bss): Remove function.
23037         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
23038
23039         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23040         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23041         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23042         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23043         Likewise.
23044         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23045         Likewise.
23046         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23047         Likewise.
23048         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23049
23050 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23051
23052         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23053         EnumValue lines.
23054
23055 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23056
23057         * config/m68k/m68k.c (m68k_handle_option): Don't handle
23058         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23059         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23060         OPT_mcpu32.
23061         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23062         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23063         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23064         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23065         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23066         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23067         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23068         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23069         options.  Don't map other m68k options manually.  Don't handle
23070         old-style options as canonical.
23071         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23072         * doc/install.texi (m68k-*-*): Document binutils version requirement.
23073
23074 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
23075
23076         * basic-block.h (force_nonfallthru): Move to...
23077         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23078         (force_nonfallthru): ...here.
23079         * cfghooks.c (force_nonfallthru): New function.
23080         * cfgrtl.c (force_nonfallthru): Rename into...
23081         (rtl_force_nonfallthru): ...this.
23082         (commit_one_edge_insertion): Do not set AUX field.
23083         (commit_edge_insertions): Do not discover new basic blocks.
23084         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23085         (cfg_layout_rtl_cfg_hooks): Likewise.
23086         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23087         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
23088         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23089
23090 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
23091
23092         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23093         Remove macros.
23094
23095 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
23096
23097         * config/i386/sse.md: Update copyright year.
23098         (avxcvtvecmode): Remove.
23099         (sse_movhlps): Merge with *avx_movhlps.
23100         (sse_movlhps): Merge with *avx_movlhps.
23101         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23102         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23103         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23104         (sse_loadhps): Merge with *avx_loadhps.
23105         (sse_storelps): Merge with *avx_storelps.
23106         (sse_loadlps): Merge with *avx_loadlps.
23107         (sse_movss): Merge with *avx_movss.
23108         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23109         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23110         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23111         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23112         (vec_set<mode>_0): Ditto.
23113         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23114         (sse4_1_insertps): Merge with *avx_insertps.
23115         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23116         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23117         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23118         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23119         (sse2_storehpd): Merge with *avx_storehpd.
23120         (sse2_loadhpd): Merge with *avx_loadhpd.
23121         (sse2_loadlpd): Merge with *avx_loadlpd.
23122         (sse2_movsd): Merge with *avx_movsd.
23123         (*vec_concatv2df): Merge with *vec_concatv2df.
23124
23125 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
23126
23127         PR debug/48343
23128         * combine.c (combine_instructions): Add last_combined_insn,
23129         update it if insn is after it, pass it to all try_combine calls.
23130         (try_combine): Add last_combined_insn parameter, pass it instead of
23131         i3 to propagate_for_debug.
23132
23133 2011-04-07  Nick Clifton  <nickc@redhat.com>
23134
23135         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23136         to handle MDR <-> data register transfers.
23137         (movhi_internal): Likewise.
23138
23139 2011-04-07  Alan Modra  <amodra@gmail.com>
23140
23141         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23142         previous stack info.
23143
23144 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23145
23146         PR target/43920
23147         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
23148         flow_find_cross_jump.  Swap variables to implement backward replacement.
23149         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23150
23151 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23152
23153         PR target/43920
23154         * cfgcleanup.c (walk_to_nondebug_insn): New function.
23155         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
23156         and bb2.
23157         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23158         src1 or src2.  Redirect edges to the last basic block.  Update
23159         frequency and count on multiple basic blocks in case of fallthru.
23160
23161 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23162
23163         PR target/43920
23164         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23165         function.
23166         (old_insns_match_p): Change return type.  Replace return false/true
23167         with return dir_none/dir_both.  Use can_replace_by.
23168         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
23169         direction from dir_p.  Register replacement direction in dir, last_dir
23170         and afterlast_dir.  Handle new return type of old_insns_match_p using
23171         merge_dir.  Return replacement direction in dir_p.
23172         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23173         return type of old_insns_match_p.
23174         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23175         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23176         flow_find_cross_jump.
23177         * basic-block.h (enum replace_direction): New type.
23178         (flow_find_cross_jump): Add parameter to declaration.
23179
23180 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23181
23182         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23183         (AVXMODEDCVTPS2DQ): Ditto.
23184         (VEC_FLOAT_MODE): Ditto.
23185         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
23186         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23187         (<any_logic:code><mode>3): Use VF mode iterator.
23188         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23189         Use VF mode iterator.
23190         (copysign<mode>3): Use VF mode iterator.
23191         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
23192         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23193         (*<any_logic:code><MODEF:mode>3): Merge with
23194         *avx_<any_logic:code><MODEF:mode>3.
23195         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23196         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23197         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23198         (avx_cvtdq2ps<avxmodesuffix>): Remove.
23199         (sse2_cvtdq2ps): Use %v modifier.
23200         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23201         (avx_cvtps2dq<avxmodesuffix>): Remove.
23202         (sse2_cvtps2dq): Use %v modifier.
23203         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23204         (avx_cvttps2dq<avxmodesuffix>): Remove.
23205         (sse2_cvttps2dq): Use %v modifier.
23206         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23207         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23208         (sse2_cvtsd2siq): Fix insn template.
23209         (sse2_cvtsd2siq_2): Ditto.
23210         (sse2_cvttsd2siq): Ditto.
23211         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23212         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23213
23214 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23215
23216         * gcov-io.c: Use GCC Runtime Library Exception.
23217
23218 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
23219
23220         PR debug/48466
23221         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23222         as base_reg whatever register reg has been eliminated to, instead
23223         of hardcoding STACK_POINTER_REGNUM.
23224
23225 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23226
23227         * doc/tm.texi.in: Document C target hooks as separate from general
23228         target hooks.
23229         * doc/tm.texi: Regenerate.
23230         * genhooks.c (struct hook_desc): Add docname field.
23231         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
23232         docname field.
23233         (hook_array): Include c-target.def.
23234         (emit_documentation): Use docname field in output.
23235         (emit_init_macros): Take docname argument.  Only emit definitions
23236         for hooks matching docname.
23237         (main): Expect additional arguments in all cases.  Pass argument
23238         to emit_init_macros.
23239         * target.def: Move initial macro definitions and comments to
23240         target-hooks-macros.h.
23241         (gcc_targetcm): Move to c-family/c-target.def.
23242         * target.h (targetcm): Move declaration to c-family/c-target.h.
23243         * targhooks.c (default_handle_c_option): Move to
23244         c-family/c-opts.c.
23245         * targhooks.h (default_handle_c_option): Move declaration to
23246         c-family/c-common.h.
23247         * target-hooks-macros.h: New file.
23248         * config.gcc (target_has_targetcm): Define and use to add to
23249         c_target_objs and cxx_target_objs.
23250         * config/default-c.c: New file.
23251         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23252         of target.h and target-def.h.
23253         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23254         (darwin_objc_construct_string, darwin_cfstring_ref_p,
23255         darwin_check_cfstring_format_arg): Make static.
23256         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23257         TARGET_STRING_OBJECT_REF_TYPE_P,
23258         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23259         * config/darwin-protos.h (darwin_objc_construct_string,
23260         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23261         declare.
23262         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23263         TARGET_STRING_OBJECT_REF_TYPE_P,
23264         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23265         * config/t-darwin (darwin-c.o): Update dependencies.
23266         * system.h (TARGET_HAS_TARGETCM): Poison.
23267         * Makefile.in (TARGET_H): Update.
23268         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23269         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23270         (default-c.o): New target.
23271         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23272         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23273         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
23274         c-target.def.
23275         (build/genhooks.o): Update dependencies.
23276
23277 2011-04-06  Richard Guenther  <rguenther@suse.de>
23278
23279         * ipa-inline.c (enum inlining_mode): Remove.
23280         (cgraph_flatten): Use some other token.
23281         (cgraph_edge_early_inlinable_p): New function, split out from ...
23282         (cgraph_perform_always_inlining): New function, split out from ...
23283         (cgraph_decide_inlining_incrementally): ... here.
23284         (cgraph_mark_inline_edge): Adjust.
23285         (cgraph_early_inlining): Re-structure.
23286         (pass_early_inline): Require SSA form.
23287
23288 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
23289             Julian Brown  <julian@codesourcery.com>
23290             Mark Shinwell  <shinwell@codesourcery.com>
23291
23292         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23293         LO_REGS only for Thumb-1.
23294         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23295         be used in short instructions when optimising for size on Thumb-2.
23296
23297 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23298
23299         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23300         associated with user returns to be preserved.
23301
23302 2011-04-06  Tristan Gingold  <gingold@adacore.com>
23303
23304         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23305         symbol_queue_size, DBXOUT_DECR_NESTING,
23306         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23307         if XCOFF_DEBUGGING_INFO.
23308
23309 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23310
23311         * config/i386/i386.md (attribute isa): New.
23312         (attribute enabled): New.
23313         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23314         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23315         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23316         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23317         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23318         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23319         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23320         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23321
23322         * config/i386/sse.md (VF): New mode iterator.
23323         (VF1): Ditto.
23324         (VF2): Ditto.
23325         (VF_128): Ditto.
23326         (SSEMODEF4): Remove.
23327         (attribute sse): Handle V8SF and V4DF modes.
23328         (<absneg:code><mode>2): Use VF mode iterator.
23329         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
23330         mode iterator.
23331         (<plusminus_insn><mode>3): Use VF mode iterator.
23332         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23333         Use VF mode iterator.
23334         (<sse>_vm<plusminus_insn><mode>3): Merge with
23335         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
23336         (mul<mode>3): Use VF mode iterator.
23337         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
23338         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
23339         mode iterator.
23340         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23341         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23342         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
23343         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
23344         mode iterator.
23345         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23346         Use VF1 mode iterator.
23347         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23348         (sqrt<VF2:mode>2): New expander.
23349         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23350         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23351         and sqrtv2df2.  Use VF mode iterator.
23352         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
23353         mode iterator.
23354         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23355         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23356         Use VF1 mode iterator.
23357         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23358         (<smaxmin:code><mode>3): Use VF mode iterator.
23359         (*<smaxmin:code><mode>3_finite): Merge with
23360         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
23361         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23362         (<sse>_vm<smaxmin:code><mode>2): Merge with
23363         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
23364         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
23365         mode iterator.
23366         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
23367         mode iterator.
23368         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23369         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23370         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23371         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23372         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
23373         VF mode iterator.
23374         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23375         Use VF_128 mode iterator.
23376         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
23377         mode iterator.
23378         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
23379         VF_128 mode iterator.
23380         (vcond<mode>): Use VF mode iterator.
23381         * config/i386/predicates.md (sse_comparison_operator): Merge with
23382         avx_comparison_float_operator.  Do not declare as special_predicate.
23383         * config/i386/i386.c (struct builtin_description): Update for renamed
23384         compare patterns.
23385         (ix86_expand_args_builtin): Ditto.
23386         (ix86_expand_sse_compare_mask): Ditto.
23387
23388 2011-04-06  Richard Guenther  <rguenther@suse.de>
23389
23390         * tree-inline.c (estimate_num_insns): For calls simply account
23391         for all passed arguments and a used return value.
23392
23393 2011-04-06  Richard Guenther  <rguenther@suse.de>
23394
23395         PR tree-optimization/47663
23396         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23397         call_stmt_time fields.
23398         (cgraph_edge_inlinable_p): Declare.
23399         (cgraph_edge_recursive_p): New inline function.
23400         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23401         (cgraph_clone_edge): Copy it.
23402         * ipa-inline.c (cgraph_estimate_edge_time): New function.
23403         Account for call stmt time.
23404         (cgraph_estimate_time_after_inlining): Take edge argument.
23405         (cgraph_estimate_edge_growth): Account call stmt size.
23406         (cgraph_estimate_size_after_inlining): Take edge argument.
23407         (cgraph_mark_inline_edge): Adjust.
23408         (cgraph_check_inline_limits): Likewise.
23409         (cgraph_recursive_inlining_p): Remove.
23410         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23411         (cgraph_decide_recursive_inlining): Take edge argument and
23412         adjust.
23413         (cgraph_decide_inlining_of_small_functions): Do not avoid
23414         diags for recursive inlining here.
23415         (cgraph_flatten): Adjust.
23416         (cgraph_decide_inlining_incrementally): Likewise.
23417         (estimate_function_body_sizes): Remove call cost handling.
23418         (compute_inline_parameters): Initialize caller edge call costs.
23419         (cgraph_estimate_edge_growth): New function.
23420         (cgraph_estimate_growth): Use it.
23421         (cgraph_edge_badness): Likewise.
23422         (cgraph_check_inline_limits): Take an edge argument.
23423         (cgraph_decide_inlining_of_small_functions): Adjust.
23424         (cgraph_decide_inlining): Likewise.
23425         * tree-inline.c (estimate_num_insns): Only account for call
23426         return value if it is used.
23427         (expand_call_inline): Avoid diagnostics on recursive inline
23428         functions here.
23429         * lto-cgraph.c (lto_output_edge): Output edge call costs.
23430         (input_edge): Input edge call costs.
23431
23432 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23433
23434         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23435
23436 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
23437
23438         * doc/invoke.texi (Spec Files): Fix typo.
23439
23440 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23441
23442         * profile.c (branch_prob): Move declaration of local variable.  Remove
23443         obsolete ??? comment.  Expand the location explicitly instead of using
23444         the LOCATION_FILE and LOCATION_LINE macros.
23445
23446 2011-04-06  Wei Guozhi  <carrot@google.com>
23447
23448         PR target/47855
23449         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23450         (arm_cond_branch): Likewise.
23451         (arm_cond_branch_reversed): Likewise.
23452         (arm_jump): Likewise.
23453         (push_multi): Likewise.
23454         * config/arm/constraints.md (Py): New constraint.
23455
23456 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23457
23458         PR bootstrap/48471
23459         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23460         Move these...
23461         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23462         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23463         #ifdef DBX_DEBUGGING_INFO.
23464
23465 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
23466
23467         PR bootstrap/48403
23468         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23469         if old and new states differ.
23470
23471 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23472
23473         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23474         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23475         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23476         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23477         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23478         mcfv4e): Use Alias.
23479         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23480         ColdFire options to -mcpu= options.
23481
23482 2011-04-05  Jeff Law  <law@redhat.com>
23483
23484         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23485         check if BB is a successor of LOOP->header and return
23486         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23487
23488 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23489
23490         * cprop.c (struct reg_use): Remove.
23491         (reg_use_table): Make an array of RTX.
23492         (find_used_regs, constprop_register, local_cprop_pass,
23493         bypass_block): Simplify users of reg_use_table.
23494         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
23495         on one of the uses found by find_used_regs.
23496
23497 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23498
23499         PR bootstrap/48469
23500         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23501         declaration.
23502
23503 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23504
23505         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23506         as an rtx.
23507         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23508
23509 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23510
23511         PR middle-end/48441
23512         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23513
23514 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23515
23516         * combine.c: Include obstack.h.
23517         (struct insn_link): Define.
23518         (uid_log_links): Adjust type.
23519         (FOR_EACH_LOG_LINK): New macro.
23520         (insn_link_obstack): Declare.
23521         (alloc_insn_link): Define.
23522         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
23523         type of link variables.
23524         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23525         (try_combine, record_promoted_values, distribute_notes): Likewise.
23526         (distribute_links): Likewise.  Tweak prototype.
23527         (clear_log_links): Delete.
23528         (adjust_for_new_dest): Call alloc_insn_link.
23529         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23530
23531 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23532
23533         * gcse.c (modify_mem_list): Convert to an array of VECs.
23534         (canon_modify_mem_list, compute_transp): Tweak formatting.
23535         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
23536         (load_killed_in_block_p): Likewise.
23537         (record_last_mem_set_info): Likewise.
23538         (clear_modify_mem_tables): Likewise.
23539
23540 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23541
23542         PR middle-end/48461
23543         * function.c (emit_use_return_register_into_block): Only define if
23544         HAVE_return.
23545
23546 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
23547
23548         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23549
23550 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23551
23552         * config/rx/rx-opts.h: New.
23553         * config/rx/rx.c (rx_cpu_type): Remove.
23554         (rx_handle_option): Don't assert that global structures are in
23555         use.  Access variables via opts pointer.  Defer most handling of
23556         OPT_mint_register_.  Use error_at.
23557         (rx_option_override): Handle deferred OPT_mint_register_ here.
23558         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23559         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23560         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23561         (rx_cpu_types): New Enum and EnumValue entries.
23562         (mint-register=): Use Defer and use Var accordingly.
23563
23564 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23565
23566         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23567         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23568         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23569         Move these...
23570         (debug_free_queue, debug_nesting, symbol_queue_index):
23571         ...and these...
23572         * dbxout.c: ...to here.  Make static.
23573
23574 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23575
23576         * gcse.c (modify_pair): Define.  Define a VEC of it.
23577         (canon_modify_mem_list): Convert to an array of VECs.
23578         (free_insn_expr_list_list): Delete.
23579         (clear_modify_mem_tables): Call VEC_free instead.
23580         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23581         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23582         (canon_list_insert, compute_transp): Likewise.
23583
23584 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23585
23586         PR target/43920
23587         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23588         for size.
23589
23590 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23591
23592         PR target/43920
23593         * function.c (emit_use_return_register_into_block): New function.
23594         (thread_prologue_and_epilogue_insns): Use
23595         emit_use_return_register_into_block.
23596
23597 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23598
23599         PR target/43920
23600         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23601         insn.
23602
23603 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23604
23605         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23606
23607 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
23608
23609         * config/arm/arm.md (define_constants for unspec): Replace with
23610         define_c_enum.
23611         (define_constants for unspecv): Replace with define_c_enum.
23612         * config/arm/neon.md (define_constants for unspec): Replace with
23613         define_c_enum.
23614
23615 2011-04-04  Richard Henderson  <rth@redhat.com>
23616
23617         PR bootstrap/48400
23618         * dwarf2out.c (output_line_info): Always emit line info from
23619         at least one section.
23620         (dwarf2out_init): Create text_section_line_info here ...
23621         (set_cur_line_info_table): ... not here.
23622
23623 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23624
23625         PR target/48380
23626         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23627         not called.
23628
23629         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23630
23631 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
23632
23633         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23634         (expr_equiv_p): Remove.
23635         (insert_set_in_table): Look at <dest, src> pair instead of expr.
23636         (hash_scan_set): Update call to insert_set_in_table.
23637         (dump_hash_table): Dump <dest, src> pair.
23638         (lookup_set): Simplify.  Lookup <dest, src> pair.
23639         (compute_transp): Remove, fold heavily simplified code into...
23640         (compute_local_properties): ...here.  Expect COMP and TRANSP
23641         unconditionally.
23642         (find_avail_set): Take set directly from struct expr.
23643         (find_bypass-set): Likewise.
23644         (bypass_block): Likewise.
23645         (cprop_insn): Likewise.  Remove redundant INSN_P test.
23646
23647         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23648         checks on form of COND from find_implicit_sets to here.
23649         (find_implicit_sets): Cleanup control flow. Split critical edges
23650         if it exposes implicit sets.  Allocate/resize implicit_sets as
23651         necessary.
23652         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23653         changed something.  Run df_analyze after find_implicit_sets if any
23654         edges were split.  Do not allocate implicit_sets here.
23655
23656         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23657         (gcse_obstack): Renamed to cprop_obstack.
23658         (GNEW, GNEWVEC, GNEWVAR): Remove.
23659         (gmalloc): Remove.
23660         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23661         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23662         (gcse_alloc): Likewise, and rename to cprop_alloc.
23663         (alloc_gcse_men, free_gcse_mem): Remove.
23664         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23665         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23666         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23667
23668         * cprop.c (oprs_not_set_p): Remove.
23669         (mark_set, mark_clobber): Remove.
23670         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23671         (reg_not_set_p): New function.
23672         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23673         (cprop_insn): Likewise.
23674         (cprop_jump): Use FOR_EACH_EDGE.
23675
23676 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
23677
23678         PR bootstrap/48403
23679         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23680         (rank_for_schedule): Use scheduled_insns vector instead of
23681         last_scheduled_insn.
23682         (ok_for_early_queue_removal): Likewise.
23683         (queue_to_ready): Search forward in nonscheduled_insns_begin if
23684         we have a dbg_cnt.
23685         (choose_ready): Likewise.
23686         (commit_schedule): Use VEC_iterate.
23687         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
23688         a dbg_cnt, use it and ensure the first insn is in the ready list.
23689         (haifa_sched_init): Allocate scheduled_insns.
23690         (sched_extend_ready_list): Don't allocate it; reserve space.
23691         (haifa_sched_finish): Free it.
23692
23693 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23694
23695         * optc-gen.awk: Always remove type from Variable entry before
23696         recording in var_seen.
23697
23698 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23699
23700         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23701         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23702         call to tidy_fallthru_edges.
23703
23704 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23705
23706         * doc/options.texi (ToLower): Document.
23707         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23708         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23709         * opts.h (cl_option): Add cl_tolower field.
23710         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23711         arguments with lowercase strings.
23712         * config/rx/rx.opt (mcpu=): Add ToLower.
23713         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23714         argument.
23715
23716 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23717
23718         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23719
23720 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23721
23722         * config/vax/vax.c: Include reload.h.
23723
23724 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
23725
23726         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23727         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23728         (sparc_preferred_reload_class): New function.
23729
23730 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
23731
23732         PR debug/48401
23733         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23734         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23735
23736 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
23737
23738         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23739         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23740
23741 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
23742
23743         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23744         (ASM_OUTPUT_ALIGNED_BSS): Define.
23745
23746 2011-04-03  Michael Matz  <matz@suse.de>
23747
23748         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23749         and next_slot members.
23750         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23751         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23752         (lto_streamer_cache_append): Declare.
23753         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23754         unsigned index, remove offset parameter, ensure that we append
23755         or update existing entries.
23756         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23757         parameter, update next_slot for append.
23758         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23759         parameter.
23760         (lto_streamer_cache_insert_at): Likewise.
23761         (lto_streamer_cache_append): New function.
23762         (lto_streamer_cache_lookup): Use unsigned index.
23763         (lto_streamer_cache_get): Likewise.
23764         (lto_record_common_node): Don't test tree_node_can_be_shared.
23765         (preload_common_node): Adjust call to lto_streamer_cache_insert.
23766         (lto_streamer_cache_delete): Don't free offsets member.
23767         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23768         (lto_output_string_with_length): Use lto_output_data_stream.
23769         (lto_output_tree_header): Remove ix parameter, don't write it.
23770         (lto_output_builtin_tree): Likewise.
23771         (lto_write_tree): Adjust callers to above, don't track and write
23772         offset, write unsigned index.
23773         (output_unreferenced_globals): Don't emit all global vars.
23774         (write_global_references): Use unsigned indices.
23775         (lto_output_decl_state_refs): Likewise.
23776         (write_symbol): Likewise.
23777         * lto-streamer-in.c (lto_input_chain): Move earlier.
23778         (input_function): Use unsigned index.
23779         (input_alias_pairs): Don't read and then ignore all global vars.
23780         (lto_materialize_tree): Remove ix_p parameter, don't read index,
23781         don't pass it back, use lto_streamer_cache_append.
23782         (lto_register_var_decl_in_symtab): Use unsigned index.
23783         (lto_register_function_decl_in_symtab): Likewise.
23784         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23785         index.
23786         (lto_get_builtin_tree): Don't read index, use
23787         lto_streamer_cache_append.
23788         (lto_read_tree): Adjust call to lto_materialize_tree.
23789
23790         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23791         don't use function calls in arguments to MIN.
23792
23793         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23794         twice.
23795
23796         * gimple.c (gimple_type_leader_entry): Mark deletable.
23797
23798 2011-04-03  Alan Modra  <amodra@gmail.com>
23799
23800         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23801
23802 2011-04-03  Michael Matz  <matz@suse.de>
23803
23804         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23805         an integer.
23806         * tree.h (tree_decl_non_common.vindex): Adjust comment.
23807
23808 2011-04-03  Michael Matz  <matz@suse.de>
23809
23810         * cgraphbuild.c (record_reference): Canonicalize constructor values.
23811         * gimple-fold.c (canonicalize_constructor_val): Accept being called
23812         without function context.
23813         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23814         current_function_decl and cfun.
23815
23816 2011-04-03  Michael Matz  <matz@suse.de>
23817
23818         * tree.c (decl_init_priority_insert): Don't create entry for
23819         default priority.
23820         (decl_fini_priority_insert): Ditto.
23821         (fields_compatible_p, find_compatible_field): Remove.
23822         * tree.h (fields_compatible_p, find_compatible_field): Remove.
23823         * gimple.c (gimple_compare_field_offset): Adjust block comment.
23824
23825 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
23826
23827         * combine.c (try_combine): Remove useless local variable.
23828
23829 2011-04-03  Richard Guenther  <rguenther@suse.de>
23830             Ira Rosen  <ira.rosen@linaro.org>
23831
23832         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23833         non-variable offsets and compare the remaining bases of the two
23834         accesses instead of looking for exact same data-ref.
23835
23836 2011-04-02  Kai Tietz  <ktietz@redhat.com>
23837
23838         PR target/48416
23839         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23840
23841         * i386.c (ix86_is_msabi_thiscall): New helper function.
23842         (ix86_is_type_thiscall): New helper function.
23843         (ix86_comp_type_attributes): Handle thiscall for method-functions
23844         special.
23845         (init_cumulative_args): Likewise.
23846         (find_drap_reg): Likewise.
23847         (ix86_static_chain): Likewise.
23848         (x86_this_parameter): Likewise.
23849         (x86_output_mi_thunk): Likewise.
23850
23851 2011-04-01  Olivier Hainque  <hainque@adacore.com>
23852             Nicolas Setton  <setton@adacore.com>
23853             Eric Botcazou  <ebotcazou@adacore.com>
23854
23855         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23856         (add_gnat_descriptive_type_attribute): New function.
23857         (gen_array_type_die): Call it.
23858         (gen_enumeration_type_die): Likewise.
23859         (gen_struct_or_union_type_die): Likewise.
23860         (modified_type_die): Likewise.
23861         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23862         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23863         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23864
23865 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23866
23867         PR bootstrap/48148
23868         * dwarf2out.c (resolve_addr): Don't call force_decl_die
23869         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23870
23871         Revert:
23872         2011-03-17  Richard Guenther  <rguenther@suse.de>
23873
23874         PR bootstrap/48148
23875         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23876         origin for decls in other ltrans units.
23877         (input_varpool_node): Likewise.
23878
23879 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23880
23881         PR middle-end/48335
23882         * expr.c (expand_assignment): Handle all possibilities
23883         if TO_RTX is CONCAT.
23884         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23885         (store_split_bit_field): If SUBREG_REG (op0) or
23886         op0 itself has smaller mode than word, return it
23887         for offset 0 and const0_rtx for out-of-bounds stores.
23888         If word is const0_rtx, skip it.
23889
23890 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
23891
23892         * config/h8300/h8300.c (print_operand_address): Rename to...
23893         (h8300_print_operand_address): ...this. Make static. Adjust comments.
23894         Call h8300_print_operand and h8300_print_operand_address instead of
23895         print_operand and print_operand_address. Declare.
23896         (print_operand): Renake to...
23897         (h8300_print_operand): ...this. Make static. Adjust comments.
23898         Call h8300_print_operand instead of print_operand. Declare.
23899         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23900         (h8300_register_move_cost): Likewise.
23901         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23902         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23903         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23904         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23905         * config/h8300/h8300-protos.h (print_operand): Delete.
23906         (print_operand_address): Delete.
23907
23908 2011-04-01  Richard Henderson  <rth@redhat.com>
23909
23910         PR 48400
23911         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23912         in strict mode before dwarf4.  Re-order tests to early out
23913         before switching sections.
23914
23915 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23916
23917         * config/h8300/constraints.md: New file.
23918         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23919         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23920         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23921         * config/h8300/predicates.md (bit_operand): Likewise.
23922         (incdec_operand): Use satisfies_constraint_M and
23923         satisfies_constraint_O.  Don't use C code block.
23924         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23925         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23926         (compute_mov_length): Use satisfies_constraint_G.
23927         (fix_bit_operand): Use satisfies_constraint_U.
23928         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23929         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23930         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23931         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23932         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23933         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23934         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23935         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23936         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23937         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23938         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23939         (EXTRA_MEMORY_CONSTRAINT): Delete.
23940
23941 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23942             Michael Meissner  <meissner@linux.vnet.ibm.com>
23943
23944         PR target/48262
23945         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23946         operands, as per the specifications.
23947
23948         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23949         (vec_extract_evenv4sf): Ditto.
23950         (vec_extract_evenv8hi): Ditto.
23951         (vec_extract_evenv16qi): Ditto.
23952         (vec_extract_oddv4si): Ditto.
23953
23954 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23955
23956         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23957         high_pc attribute if the CU has no associated code. Only output
23958         DW_AT_entry_pc for CU if not generating strict dwarf and
23959         dwarf_version < 4.
23960
23961 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23962
23963         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23964         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23965         out of ...
23966         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23967         * final.c (final_start_function): Call the new function rather
23968         than using a NULL argument for dwarf2out_frame_debug.
23969
23970         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23971         that contains the prologue.
23972
23973         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23974         changed.  Print it in debugging output.
23975
23976         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23977
23978         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23979         Split most of the code into...
23980         (begin_move_insn): ... here.  New function.
23981         (ebb_sched_info): Add a pointer to it.
23982         * haifa-sched.c (scheduled_insns): New static variable.
23983         (sched_extend_ready_list): Allocate it.
23984         (schedule_block): Use it to record the order of scheduled insns.
23985         Perform RTL changes to move insns only after all scheduling
23986         decisions have been made.
23987         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23988         begin_move_insn field.
23989         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23990         * sched-int.h (struct haifa_sched_info): Remove second argument
23991         from begin_schedule_ready hook.  Add new member begin_move_insn.
23992         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23993         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23994
23995         * haifa-sched.c (prune_ready_list): New function, broken out of
23996         schedule_block.
23997         (schedule_block): Use it.
23998
23999 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24000
24001         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
24002
24003 2011-04-01  Kai Tietz  <ktietz@redhat.com>
24004
24005         * config.gcc (*-*-mingw*): Allow as option the
24006         posix threading model.
24007         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
24008         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
24009         definition.
24010         (CPP_SPEC): Add pthread/no-pthread handling.
24011         (LIB_SPEC): Likewise.
24012         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24013         (LIB_SPEC): Likewise.
24014         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
24015         flag to pass -pthread option for shared libgcc build.
24016         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
24017         for shared libgcc build.
24018         * config/i386/t-mingw-pthread: New file.
24019         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
24020         New define to enable use of library pthread by default.
24021         * config/i386/mingw.opt (pthread): New driver option.
24022         (no-pthread): New driver option.
24023         * config/i386/cygming.opt: Make sure trailing empty line is retained.
24024         * config/i386/mingw-w64.opt: Likewise.
24025
24026 2011-04-01  Gary Funck  <gary@intrepid.com>
24027
24028         * c-decl.c (grokdeclarator): Fix formatting.
24029
24030 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24031
24032         * expr.c (emit_block_move_via_movmem): Use n_generator_args
24033         instead of n_operands.
24034         (set_storage_via_setmem): Likewise.
24035         * optabs.c (maybe_gen_insn): Likewise.
24036         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
24037         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
24038         (mips_expand_builtin_direct): Likewise.
24039         * config/spu/spu.c (expand_builtin_args): Likewise.
24040
24041 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24042
24043         * recog.h (insn_data_d): Add n_generator_args.
24044         * genoutput.c (data): Likewise.
24045         (output_insn_data): Print it.
24046         (max_opno, num_dups): Delete.
24047         (scan_operands): Just fill in "d->operand[...]".
24048         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24049
24050 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24051
24052         * gensupport.h (pattern_stats): New structure.
24053         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24054         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24055         (max_operand_1, max_operand_vec): Delete.
24056         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24057
24058 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
24059
24060         * emit-rtl.c (emit_pattern_after_setloc): New function.
24061         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24062         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24063         (emit_pattern_after): New function.
24064         (emit_insn_after, emit_jump_insn_after): Call it.
24065         (emit_call_insn_after, emit_debug_insn_after): Likewise.
24066         (emit_pattern_before_setloc): New function.
24067         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24068         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24069         Likewise.
24070         (emit_pattern_before): New function.
24071         (emit_insn_before, emit_jump_insn_before): Call it.
24072         (emit_call_insn_before, emit_debug_insn_before): Likewise.
24073
24074 2011-03-31  Richard Henderson  <rth@redhat.com>
24075
24076         * dwarf2out.c (dw_separate_line_info_ref): Remove.
24077         (dw_separate_line_info_entry): Remove.
24078         (enum dw_line_info_opcode): New.
24079         (dw_line_info_entry): Use it.
24080         (dw_line_info_table, dw_line_info_table_p): New.
24081         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24082         (line_info_table, line_info_label_num): Remove.
24083         (line_info_table_in_use): Remove.
24084         (separate_line_info_table): Remove.
24085         (separate_line_info_table_allocated): Remove.
24086         (separate_line_info_table_in_use): Remove.
24087         (LINE_INFO_TABLE_INCREMENT): Remove.
24088         (line_info_label_num): New.
24089         (cur_line_info_table): New.
24090         (text_section_line_info, cold_text_section_line_info): New.
24091         (separate_line_info): New.
24092         (SEPARATE_LINE_CODE_LABEL): Remove.
24093         (print_dwarf_line_table): Remove.
24094         (debug_dwarf): Don't dump it.
24095         (output_one_line_info_table): New.
24096         (output_line_info): Use it.
24097         (new_line_info_table): New.
24098         (set_cur_line_info_table): New.
24099         (dwarf2out_switch_text_section): Use it.
24100         (dwarf2out_begin_function): Likewise.
24101         (push_dw_line_info_entry): New.
24102         (dwarf2out_source_line): Rewrite for new line info tables.
24103         (dwarf2out_init): Remove dead initailizations.
24104
24105 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24106
24107         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
24108         various flags.
24109         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24110         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24111         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24112         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24113         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24114         * opt-functions.awk (flag_init, switch_bit_fields): New.
24115         (switch_flags): Don't handle flags moved to bit-fields.  Don't
24116         generate CL_MISSING_OK or CL_SAVE.
24117         * optc-gen.awk: Update to generate bit-field output as well as
24118         flags field.
24119         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24120         bit-field instead of CL_REJECT_DRIVER flag.
24121         * opts-common.c (generate_canonical_option,
24122         decode_cmdline_option): Use bit-fields instead of CL_* flags.
24123         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24124         instead of CL_REJECT_NEGATIVE flag.
24125         * toplev.c (print_switch_values): Use cl_report bit-field instead
24126         of CL_REPORT flag.
24127
24128 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24129
24130         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24131         a zero minimum index only if it is redundant.
24132
24133 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
24134
24135         PR rtl-optimization/48381
24136         * ira-color.c (assign_hard_reg): Use hard reg set intersection
24137         instead of ira_class_hard_reg_index for calculating conflicting
24138         hard registers.
24139
24140 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
24141
24142         * cprop.c: Clean up hash table building.
24143         (reg_avail_info): Remove.
24144         (oprs_available_p): Remove.
24145         (record_last_reg_set_info): Remove.
24146         (record_last_set_info): Remove.
24147         (reg_available_p): New function.
24148         (gcse_constant_p): Do not treat unfolded conditions as constants.
24149         (make_set_regs_unavailable): New function.
24150         (hash_scan_set): Simplify with new reg_available_p.
24151         (compute_hash_table_work): Traverse insns stream only once.
24152         Do not compute reg_avail_info. Traverse insns in reverse order.
24153         Record implicit sets after recording explicit sets from the block.
24154
24155 2011-03-31  Michael Matz  <matz@suse.de>
24156
24157         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24158
24159 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
24160
24161         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24162         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24163         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24164         (h8300_mode_dependent_address_p): New function.
24165         (h8300_get_index): Make static.
24166
24167 2011-03-31  Jeff Law  <law@redhat.com>
24168
24169         * reload1.c (elimination_effects): Fix typo in recent change.
24170
24171         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24172         typo potentially leading to null pointer dereference.
24173
24174         * caller-save.c (new_saved_hard_reg): Eliminate return value.
24175         (setup_save_areas): Corresponding changes to avoid useless
24176         assignments.
24177
24178         * jump.c (reversed_comparison_code_parts): Avoid successive return
24179         statements when REVERSE_CONDITION is defined.
24180
24181         * expr.c (expand_assignment): Avoid useless assignments.
24182         (expand_expr_real_1): Likewise.
24183         (expand_expr_real_2): Avoid useless statements.
24184
24185         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24186
24187         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24188
24189         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24190         statements.
24191
24192         * stmt.c (expand_expr_stmt): Avoid useless assignment.
24193
24194 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24195
24196         PR target/47109
24197         * doc/tm.texi.in (TARGET_VERSION): Remove.
24198         * doc/tm.texi: Regenerate.
24199         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24200         * collect2.c (main): Don't use TARGET_VERSION.
24201         * mips-tdump.c (main): Don't use TARGET_VERSION.
24202         * mips-tfile.c (main): Don't use TARGET_VERSION.
24203         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24204         * config/rs6000/vxworksae.h: Remove.
24205         * config/alpha/alpha.h (TARGET_VERSION): Remove.
24206         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24207         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24208         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24209         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24210         * config/arm/arm.h (TARGET_VERSION): Remove.
24211         * config/arm/coff.h (TARGET_VERSION): Remove.
24212         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24213         * config/arm/elf.h (TARGET_VERSION): Remove.
24214         * config/arm/freebsd.h (TARGET_VERSION): Remove.
24215         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24216         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24217         * config/arm/pe.h (TARGET_VERSION): Remove.
24218         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24219         * config/arm/semi.h (TARGET_VERSION): Remove.
24220         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24221         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24222         * config/arm/vxworks.h (TARGET_VERSION): Remove.
24223         * config/avr/avr.h (TARGET_VERSION): Remove.
24224         * config/bfin/bfin.h (TARGET_VERSION): Remove.
24225         * config/fr30/fr30.h (TARGET_VERSION): Remove.
24226         * config/frv/frv.h (TARGET_VERSION): Remove.
24227         * config/h8300/h8300.h (TARGET_VERSION): Remove.
24228         * config/i386/cygwin.h (TARGET_VERSION): Remove.
24229         * config/i386/darwin.h (TARGET_VERSION): Remove.
24230         * config/i386/darwin64.h (TARGET_VERSION): Remove.
24231         * config/i386/djgpp.h (TARGET_VERSION): Remove.
24232         * config/i386/freebsd.h (TARGET_VERSION): Remove.
24233         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24234         * config/i386/gnu.h (TARGET_VERSION): Remove.
24235         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24236         * config/i386/i386elf.h (TARGET_VERSION): Remove.
24237         * config/i386/linux.h (TARGET_VERSION): Remove.
24238         * config/i386/linux64.h (TARGET_VERSION): Remove.
24239         * config/i386/lynx.h (TARGET_VERSION): Remove.
24240         * config/i386/mingw32.h (TARGET_VERSION): Remove.
24241         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24242         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24243         * config/i386/netware.h (TARGET_VERSION): Remove.
24244         * config/i386/nto.h (TARGET_VERSION): Remove.
24245         * config/i386/openbsd.h (TARGET_VERSION): Remove.
24246         * config/i386/vxworks.h (TARGET_VERSION): Remove.
24247         * config/ia64/elf.h (TARGET_VERSION): Remove.
24248         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24249         * config/ia64/hpux.h (TARGET_VERSION): Remove.
24250         * config/ia64/linux.h (TARGET_VERSION): Remove.
24251         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24252         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24253         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24254         * config/lm32/lm32.h (TARGET_VERSION): Remove.
24255         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24256         * config/m32c/m32c.h (TARGET_VERSION): Remove.
24257         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24258         * config/m32r/m32r.h (TARGET_VERSION): Remove.
24259         * config/m68k/linux.h (TARGET_VERSION): Remove.
24260         * config/m68k/m68k.h (TARGET_VERSION): Remove.
24261         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24262         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24263         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24264         * config/mep/mep.h (TARGET_VERSION): Remove.
24265         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24266         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24267         * config/mips/iris6.h (MACHINE_TYPE): Remove.
24268         * config/mips/linux.h (TARGET_VERSION): Remove.
24269         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24270         * config/mips/vxworks.h (TARGET_VERSION): Remove.
24271         * config/mmix/mmix.h (TARGET_VERSION): Remove.
24272         * config/mn10300/linux.h (TARGET_VERSION): Remove.
24273         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24274         * config/pa/pa.h (TARGET_VERSION): Remove.
24275         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24276         * config/picochip/picochip.h (TARGET_VERSION): Remove.
24277         * config/rs6000/aix.h (TARGET_VERSION): Remove.
24278         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24279         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24280         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24281         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24282         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24283         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24284         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24285         * config/rs6000/linux.h (TARGET_VERSION): Remove.
24286         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24287         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24288         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24289         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24290         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24291         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24292         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24293         * config/s390/linux.h (TARGET_VERSION): Remove.
24294         * config/s390/s390.h (TARGET_VERSION): Remove.
24295         * config/s390/tpf.h (TARGET_VERSION): Remove.
24296         * config/score/score.h (TARGET_VERSION): Remove.
24297         * config/sh/linux.h (TARGET_VERSION): Remove.
24298         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24299         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24300         * config/sh/sh.h (TARGET_VERSION): Remove.
24301         * config/sh/sh64.h (TARGET_VERSION): Remove.
24302         * config/sh/superh.h (TARGET_VERSION): Remove.
24303         * config/sh/vxworks.h (TARGET_VERSION): Remove.
24304         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24305         * config/sparc/linux.h (TARGET_VERSION): Remove.
24306         * config/sparc/linux64.h (TARGET_VERSION): Remove.
24307         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24308         TARGET_NAME32, TARGET_NAME): Remove.
24309         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24310         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24311         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24312         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24313         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24314         * config/spu/spu.h (TARGET_VERSION): Remove.
24315         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24316         * config/v850/v850.h (TARGET_VERSION): Remove.
24317         * config/vax/linux.h (TARGET_VERSION): Remove.
24318         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24319         * config/xtensa/elf.h (TARGET_VERSION): Remove.
24320         * config/xtensa/linux.h (TARGET_VERSION): Remove.
24321
24322 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24323
24324         PR target/48142
24325         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24326         frame-related from frame-unrelated adjustments to the stack pointer.
24327
24328 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
24329
24330         * common.opt (fdebug-types-section): Move earlier.
24331         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24332
24333 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
24334
24335         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24336         var.
24337
24338 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
24339
24340         * tree.h (CASE_CHAIN): Define.
24341         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24342         (gimple_redirect_edge_and_branch): Likewise.
24343
24344 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24345
24346         PR middle-end/48367
24347         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24348         calculation.
24349
24350 2011-03-30  Jeff Law  <law@redhat.com>
24351
24352         * PR bootstrap/48371
24353         * reload1.c (reload): Fix botch in last change.
24354
24355         * reload.h (struct reload): Fix typo introduced in last change.
24356
24357 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24358
24359         * config/arm/arm.opt (mhard-float, msoft-float): Mark
24360         Undocumented.  Remove help text.
24361         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24362         -mhard-float.
24363
24364 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24365
24366         * doc/options.texi (NegativeAlias): Document.
24367         (Alias): Mention NegativeAlias.
24368         * opt-functions.awk: Handle NegativeAlias.
24369         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24370         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24371         * opts.h (CL_NEGATIVE_ALIAS): Define.
24372         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24373         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24374         OPT_mspe_.
24375         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24376         Alias entries.
24377         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24378         mno-spe and mno-isel instead of mspe=no and -misel=no.
24379
24380 2011-03-29  Mark Wielaard  <mjw@redhat.com>
24381
24382         * common.opt (fdebug-types-section): New flag.
24383         * doc/invoke.texi: Document new -fno-debug-types-section flag.
24384         * dwarf2out.c (use_debug_types): New define.
24385         (struct die_struct): Mark die_id with GTY desc use_debug_types.
24386         (print_die): Guard output of type unit signatures using
24387         use_debug_types.
24388         (build_abbrev_table): Replace assert of dwarf_version >= 4
24389         with assert on use_debug_types.
24390         (size_of_die): Likewise.
24391         (unmark_dies): Likewise.
24392         (value_format): Decide AT_ref_external form on use_debug_types.
24393         (output_die): Replace dwarf_version version check guard with
24394         use_debug_types where appropriate.
24395         (modified_type_die): Likewise.
24396         (gen_reference_type_die): Likewise.
24397         (dwarf2out_start_source_file): Likewise.
24398         (dwarf2out_end_source_file): Likewise.
24399         (prune_unused_types_walk_attribs): Likewise.
24400         (dwarf2out_finish): Likewise.
24401
24402 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24403
24404         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24405
24406 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24407
24408         PR rtl-optimization/48332
24409         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24410         mode of input operand N and modeN to its actual mode.
24411
24412 2011-03-30  Jeff Law  <law@redhat.com>
24413
24414         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24415         define accessor macro.
24416         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24417         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24418         (reg_equiv_init): Likewise.
24419         (reg_equivs_size): New variable.
24420         (reg_equiv_init_size): Remove.
24421         (allocate_initial_values): Move prototype to here from....
24422         * integrate.h (allocate_initial_values): Remove prototype.
24423         * integrate.c: Include reload.h.
24424         (allocate_initial_values): Corresponding changes.
24425         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24426         (fix_reg_equiv_init, no_equiv): Corresponding changes.
24427         (update_equiv_regs): Corresponding changes.
24428         (ira): Corresponding changes.
24429         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24430         (push_secondary_reload): Corresponding changes.
24431         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24432         (make_memloc, find_reloads_address): Corresponding changes.
24433         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24434         (find_reloads_address_1): Corresponding changes.
24435         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24436         (refers_to_regno_for_reload_p): Corresponding changes.
24437         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24438         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24439         * reload1.c: Include ggc.h.
24440         (grow_reg_equivs): New function.
24441         (replace_pseudos_in, reload): Corresponding changes.
24442         (calculate_needs_all_insns, alter_regs): Corresponding changes.
24443         (eliminate_regs_1, elimination_effects): Corresponding changes.
24444         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24445         (delete_output_reload): Likewise.
24446         * caller-save.c (mark_referenced_regs): Corresponding changes.
24447         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24448         * frv/predicates.md (frv_load_operand): Corresponding changes.
24449         * microblaze/microblaze.c (double_memory_operand): Corresponding
24450         changes.
24451         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24452         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24453         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24454         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24455         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24456         changes.
24457         * pa/pa.c (emit_move_sequence): Corresponding changes.
24458         * vax/vax.c (nonindexed_address_p): Corresponding changes.
24459
24460 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24461
24462         PR target/47551
24463         * config/arm/arm.c (coproc_secondary_reload_class): Handle
24464         structure modes.  Don't check neon_vector_mem_operand for
24465         vector or structure modes.
24466
24467 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24468             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24469
24470         PR target/43590
24471         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24472         operand 1 and reshuffle the operands to match.
24473         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24474
24475 2011-03-30  Christian Schüler  <cschueler@gmx.de>
24476
24477         PR driver/48208
24478         * config/c.opt (F): Added 'Driver' to -F option.
24479
24480         PR driver/48260
24481         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24482           handler function.
24483         * config/darwin.opt: Added '-arch' option.
24484
24485 2011-03-30  Nick Clifton  <nickc@redhat.com>
24486
24487         * config/rx/rx.md: Add peepholes and patterns to combine
24488         extending loads and simple arithmetic instructions.
24489         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24490         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24491         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24492         modes to use pre-decrement and post-increment addressing.
24493         (rx_is_restricted_memory_address): Add range checking of REG+INT
24494         addresses.
24495         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
24496         (rx_memory_move_cost): Adjust cost of stores.
24497         (rx_adjust_insn_length): New function.
24498
24499 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
24500
24501         PR c/48305
24502         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24503         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24504         matching arg00/arg01 types.
24505
24506 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
24507
24508         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24509         last_location to UNKNOWN_LOCATION.
24510
24511 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24512
24513         PR target/48349
24514         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24515         FLOAT_SSE_REGS.
24516
24517 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24518             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24519
24520         PR bootstrap/48337
24521         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24522         Init(PROCESSOR_V7).
24523         (sparc_cpu): Likewise.
24524         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24525         PROCESSOR_V7.
24526
24527 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24528
24529         PR target/48336
24530         PR middle-end/48342
24531         PR rtl-optimization/48345
24532         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24533         hard regs for given mode from profitable regs when doing secondary
24534         allocation.
24535
24536 2011-03-29  Jeff Law  <law@redhat.com>
24537
24538         PR bootstrap/48327
24539         * tree-ssa-threadupdate.c (struct redirection_data): Remove
24540         do_not_duplicate field.
24541         (lookup_redirection_data): Corresponding changes.
24542         (create_duplicates): Always create a template block.
24543         (redirect_edges): Remove code which reused the original block
24544         when it was going to become unreachable code.
24545         (thread_block): Don't set do_not_duplicate field.
24546
24547 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
24548
24549         * lto-opts.c (register_user_option_p, lto_register_user_option):
24550         Make type argument unsigned.
24551         * lto-streamer.h (lto_register_user_option): Make type argument
24552         unsigned.
24553         * opth-gen.awk: Make CL_* macros unsigned.
24554         * opts-common.c (find_opt): Make lang_mask argument unsigned.
24555         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24556         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24557         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24558         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24559         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24560         (find_opt): Make lang_mask argument unsigned.
24561
24562 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24563
24564         PR rtl-optimization/48331
24565         PR rtl-optimization/48334
24566         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24567         for any used algorithm.
24568
24569 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24570
24571         * ira-conflicts.c (build_object_conflicts): Add unused attribute
24572         to parent_max.
24573
24574 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
24575
24576         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24577         (alpha_option_override): Don't set alpha_sr_alias_set.
24578         (emit_frame_store_1): Use gen_frame_mem rather than calling
24579         set_mem_alias_set.
24580         (alpha_expand_epilogue): Ditto.
24581
24582 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
24583
24584         PR tree-optimization/48290
24585         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24586         vectorization, check that relevant phis in the basic block after
24587         the inner loop are really inner loop's exit phis.
24588
24589 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
24590
24591         PR debug/48190
24592         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24593         (cached_dw_loc_list_def): New structure.
24594         (cached_dw_loc_list): New typedef.
24595         (cached_dw_loc_list_table): New variable.
24596         (cached_dw_loc_list_table_hash): New function.
24597         (cached_dw_loc_list_table_eq): Likewise.
24598         (add_location_or_const_value_attribute): Take a bool cache_p.
24599         Cache the list when the parameter is true.
24600         (gen_formal_parameter_die): Update caller.
24601         (gen_variable_die): Likewise.
24602         (dwarf2out_finish): Likewise.
24603         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24604         while generating debug info for the decl.
24605         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24606         (dwarf2out_init): Initialize cached_dw_loc_list_table.
24607         (resolve_addr): Cache the result of resolving a chain of
24608         location lists.
24609
24610 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24611
24612         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24613         conflict object hard regset nodes have intersecting hard reg sets.
24614
24615         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24616         after regstat_init_n_sets_and_refs.
24617
24618         * ira.c: Add more comments at the top.
24619         (setup_stack_reg_pressure_class, setup_pressure_classes):
24620         Add comments how we compute the register pressure classes.
24621         (setup_allocno_and_important_classes): Add more comments.
24622         (setup_class_translate_array, reorder_important_classes)
24623         (setup_reg_class_relations): Add comments.
24624
24625         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
24626         start of the file.
24627
24628         * ira-color.c: Add 2011 to the Copyright line.
24629         (assign_hard_reg):  Add more comments.
24630         (improve_allocation): Ditto.
24631
24632         * ira-costs.c: Add 2011 to the Copyright line.
24633         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24634         comments.
24635         (setup_regno_cost_classes_by_mode): Ditto.
24636
24637         Initial patches from ira-improv branch:
24638
24639         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24640
24641         * ira-build.c (ira_create_object): Remove initialization of
24642         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
24643         (ira_create_allocno): Remove initialization of
24644         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24645         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24646         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24647         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24648         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24649         Initialize ALLOCNO_ADD_DATA.
24650         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24651         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24652         ALLOCNO_REG.
24653         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
24654         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24655
24656         * ira.c (ira_reallocate): Remove.
24657         (setup_pressure_classes): Call
24658         ira_init_register_move_cost_if_necessary.  Use
24659         ira_register_move_cost instead of ira_get_register_move_cost.
24660         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24661         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24662
24663         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24664         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24665         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24666         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24667         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24668         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24669         Fix formatting.
24670         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24671         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24672         (struct allocno_color_data): New.
24673         (allocno_color_data_t): New typedef.
24674         (allocno_color_data): New definition.
24675         (ALLOCNO_COLOR_DATA): New macro.
24676         (struct object_color_data): New.
24677         (object_color_data_t): New typedef.
24678         (object_color_data): New definition.
24679         (OBJECT_COLOR_DATA): New macro.
24680         (update_copy_costs, calculate_allocno_spill_cost): Call
24681         ira_init_register_move_cost_if_necessary.  Use
24682         ira_register_move_cost instead of ira_get_register_move_cost.
24683         (move_spill_restore, update_curr_costs): Ditto.
24684         (allocno_spill_priority): Make it inline.
24685         (color_pass): Allocate and free allocno_color_dat and object_color_data.
24686         (struct coalesce_data, coalesce_data_t): New.
24687         (allocno_coalesce_data): New definition.
24688         (ALLOCNO_COALESCE_DATA): New macro.
24689         (merge_allocnos, coalesced_allocno_conflict_p): Use
24690         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24691         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24692         (coalesce_allocnos): Ditto.
24693         (setup_coalesced_allocno_costs_and_nums): Ditto.
24694         (collect_spilled_coalesced_allocnos): Ditto.
24695         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24696         (setup_slot_coalesced_allocno_live_ranges): Ditto.
24697         (coalesce_spill_slots): Ditto.
24698         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
24699         free allocno_coalesce_data.
24700
24701         * ira-conflicts.c: Fix formatting.
24702         (process_regs_for_copy): Call
24703         ira_init_register_move_cost_if_necessary.  Use
24704         ira_register_move_cost instead of ira_get_register_move_cost.
24705         (build_object_conflicts): Optimize.
24706
24707         * ira-costs.c (record_reg_classes): Optimize.  Call
24708         ira_init_register_move_cost_if_necessary.  Use
24709         ira_register_move_cost, ira_may_move_in_cost, and
24710         ira_may_move_out_cost instead of ira_get_register_move_cost and
24711         ira_get_may_move_cost.
24712         (record_address_regs): Ditto.
24713         (scan_one_insn): Optimize.
24714         (find_costs_and_classes): Optimize.
24715         (process_bb_node_for_hard_reg_moves): Call
24716         ira_init_register_move_cost_if_necessary.  Use
24717         ira_register_move_cost instead of ira_get_register_move_cost.
24718
24719         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24720         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24721         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24722         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24723         definitions.
24724         (ira_initiate_emit_data, ira_finish_emit_data)
24725         (create_new_allocno): New functions.
24726         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24727         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24728         Use ira_register_move_cost instead of ira_get_register_move_cost.
24729
24730         * ira-int.h: Fix some comments.
24731         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24732         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24733         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24734         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
24735         add_data.
24736         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
24737         bitfield after mode.  Make hard_regno a short int.  Make
24738         hard_regno short.  Remove first_coalesced_allocno and
24739         next_coalesced_allocno.  Move mem_optimized_dest_p,
24740         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24741         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
24742         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24743         temp, colorable_p.  Add new member add_data.
24744         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24745         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24746         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24747         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24748         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24749         (ALLOCNO_ADD_DATA): New macro.
24750         (ira_emit_data_t): New typedef.
24751         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
24752         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24753         from struct ira_allocno.
24754         (ALLOCNO_EMIT_DATA): New macro.
24755         (ira_allocno_emit_data, allocno_emit_reg): New.
24756         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24757         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24758         (OBJECT_ADD_DATA): New macro.
24759         (ira_reallocate): Remove.
24760         (ira_initiate_emit_data, ira_finish_emit_data): New.
24761         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24762         (ira_init_register_move_cost_if_necessary): New.
24763         (ira_object_conflict_iter_next): Merge into
24764         ira_object_conflict_iter_cond.
24765         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24766
24767         * ira-live.c (process_single_reg_class_operands): Call
24768         ira_init_register_move_cost_if_necessary.  Use
24769         ira_register_move_cost instead of ira_get_register_move_cost.
24770
24771         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24772
24773         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24774
24775         * ira-costs.c: Fix formatting.
24776         (cost_classes, cost_classes_num): Remove.
24777         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24778         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24779         (cost_classes_del, cost_classes_htab): New.
24780         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24781         (initiate_regno_cost_classes, setup_cost_classes): New.
24782         (setup_regno_cost_classes_by_aclass): New.
24783         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24784         (record_reg_classes): Use regno_cost_classes instead of
24785         cost_classes.  Move checking opposite operand up.
24786         (record_address_regs): Use regno_cost_classes
24787         instead of cost_classes.
24788         (scan_one_insn): Ditto.  Use always general register.
24789         (print_allocno_costs): Use regno_cost_classes instead of
24790         cost_classes.
24791         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
24792         (find_costs_and_classes): Set up cost classes for each registers.
24793         Use also their mode for this.  Use regno_cost_classes instead of
24794         cost_classes.
24795         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24796         cost_classes.
24797         (free_ira_costs, ira_init_costs): Don't use cost_classes.
24798         (ira_costs, ira_set_pseudo_classes): Call
24799         initiate_regno_cost_classes and finish_regno_cost_classes.
24800
24801         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
24802
24803         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24804
24805         * target.def (ira_cover_classes): Remove.
24806
24807         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24808
24809         * doc/tm.texi.in: Ditto.
24810
24811         * ira-conflicts.c: Remove mentioning cover classes from the file.
24812         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
24813         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
24814
24815         * targhooks.c (default_ira_cover_classes): Remove.
24816
24817         * targhooks.h (default_ira_cover_classes): Ditto.
24818
24819         * haifa-sched.c: Remove mentioning cover classes from the file.
24820         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24821         ira_pressure_classes and ira_pressure_classes_num instead of
24822         ira_reg_class_cover_size and ira_reg_class_cover.  Use
24823         sched_regno_pressure_class instead of sched_regno_cover_class.
24824         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24825         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24826
24827         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
24828         classes from the file.
24829         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24830         (struct object_hard_regs, struct object_hard_regs_node): New.
24831         (struct ira_object): New members profitable_hard_regs,
24832         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24833         (struct ira_allocno): Rename cover_class to aclass.  Rename
24834         cover_class_cost and updated_cover_class_cost to class_cost and
24835         updated_class_cost.  Remove splay_removed_p and
24836         left_conflict_size.  Add new members colorable_p.
24837         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24838         (ALLOCNO_COLORABLE_P): New macro.
24839         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24840         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24841         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24842         (OBJECT_...): Rename parameter C to O.
24843         (OBJECT_PROFITABLE_HARD_REGS): New macro.
24844         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24845         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24846         (struct target_ira_int): New members x_ira_max_memory_move_cost,
24847         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24848         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24849         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24850         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
24851         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
24852         x_ira_reg_class_subunion.
24853         (ira_max_memory_move_cost, ira_max_register_move_cost)
24854         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24855         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24856         (ira_important_class_nums, ira_reg_class_superunion): New macros.
24857         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24858         (ira_reg_class_union): Rename to ira_reg_class_subunion.
24859         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24860         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24861         (ira_tune_allocno_costs_and_cover_classes): Rename to
24862         ira_tune_allocno_costs.
24863         (ira_debug_hard_regs_forest): New.
24864         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24865         (ira_object_conflict_iter_next): Fix comments.
24866         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24867         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24868         cover_class to aclass.
24869         (ira_allocate_and_accumulate_costs): Ditto.
24870         (ira_allocate_and_set_or_copy_costs): Ditto.
24871
24872         * opts.c (decode_options): Remove ira_cover_class check.
24873
24874         * ira-color.c: Remove mentioning cover classes from the file.  Use
24875         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24876         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24877         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24878         (splay-tree.h): Remove include.
24879         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24880         before copy_freq_compare_func.
24881         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24882         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24883         New definitions.
24884         (hard_regs_roots, hard_regs_node_vec): Ditto.
24885         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24886         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24887         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24888         (create_new_object_hard_regs_node): Ditto.
24889         (add_new_object_hard_regs_node_to_forest): Ditto.
24890         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24891         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24892         Ditto.
24893         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24894         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24895         (remove_unused_object_hard_regs_nodes): Ditto.
24896         (enumerate_object_hard_regs_nodes): Ditto.
24897         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24898         (object_hard_regs_subnode_t): Ditto.
24899         (struct object_hard_regs_subnode): Ditto.
24900         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24901         (setup_object_hard_regs_subnode_index): Ditto.
24902         (get_object_hard_regs_subnodes_num): Ditto.
24903         (form_object_hard_regs_nodes_forest): Ditto.
24904         (finish_object_hard_regs_nodes_tree): Ditto.
24905         (finish_object_hard_regs_nodes_forest): Ditto.
24906         (allocnos_have_intersected_live_ranges_p): Rename to
24907         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24908         (pseudos_have_intersected_live_ranges_p): Rename to
24909         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24910         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24911         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24912         (update_copy_costs): Remove assert.  Skip cost update if the hard
24913         reg does not belong the class.
24914         (assign_hard_reg): Process only profitable hard regs.
24915         (uncolorable_allocnos_num): Make it scalar.
24916         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24917         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24918         and ira_reg_class_max_nregs.
24919         (bucket_allocno_compare_func): Check frequency first.
24920         (sort_bucket): Add compare function as a parameter.
24921         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24922         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24923         (push_allocno_to_stack): Rewrite for checking new allocno
24924         colorability.
24925         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24926         (push_only_colorable): Pass new parameter to sort_bucket.
24927         (push_allocno_to_spill): Remove.
24928         (allocno_spill_priority_compare): Make it inline and rewrite.
24929         (splay_tree_allocate, splay_tree_free): Remove.
24930         (allocno_spill_sort_compare): New function.
24931         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24932         build and use splay tree.  Choose first allocno in uncolorable
24933         allocno bucket to spill.  Remove setting spill cost.
24934         (all_conflicting_hard_regs): Remove.
24935         (setup_allocno_available_regs_num): Check only profitable hard
24936         regs.  Print info about hard regs nodes.
24937         (setup_allocno_left_conflicts_size): Remove.
24938         (put_allocno_into_bucket): Don't call
24939         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24940         (improve_allocation): New.
24941         (color_allocnos): Call setup_profitable_hard_regs,
24942         form_object_hard_regs_nodes_forest, improve_allocation,
24943         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24944         (print_loop_title): Use pressure classes.
24945         (color_allocnso): Ditto.
24946         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24947         and allocnos_for_spilling.
24948         (ira_sort_regnos_for_alter_reg): Don't setup members
24949         {first,next}_coalesced_allocno.
24950         (color): Remove allocating and freeing removed_splay_allocno_vec.
24951         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24952         prohibited_class_mode_regs.
24953
24954         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24955         formatting.
24956         (update_allocno_pressure_excess_length): Use pressure classes.
24957         (inc_register_pressure, dec_register_pressure): Check for pressure
24958         class.
24959         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24960         pressure class.  Use ira_reg_class_nregs instead of
24961         ira_reg_class_max_nregs.
24962         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24963         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24964         (single_reg_class): Use ira_reg_class_nregs instead of
24965         ira_reg_class_max_nregs.
24966         (process_bb_node_lives): Use pressure classes.
24967
24968         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24969         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24970         (change_loop): Use pressure classes.
24971         (modify_move_list): Call ira_set_allocno_class instead of
24972         ira_set_allocno_cover_class.
24973
24974         * ira-build.c: Remove mentioning cover classes from the file.  Use
24975         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24976         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24977         ALLOCNO_UPDATED_CLASS_COST instead of
24978         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24979         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24980         (ira_create_allocno): Remove initialization of
24981         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24982         ALLOCNO_COLORABLE_P.
24983         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24984         Update conflict regs for the objects.
24985         (create_cap_allocno): Remove assert.  Don't propagate
24986         ALLOCNO_AVAILABLE_REGS_NUM.
24987         (ira_free_allocno_costs): New function.
24988         (finish_allocno): Change a part of code into call of
24989         ira_free_allocno_costs.
24990         (low_pressure_loop_node_p): Use pressure classes.
24991         (object_range_compare_func): Don't compare classes.
24992         (setup_min_max_conflict_allocno_ids): Ditto.
24993
24994         * loop-invariant.c: Remove mentioning cover classes from the file.
24995         Use ira_pressure_classes and ira_pressure_classes_num instead of
24996         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
24997         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24998         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24999         Use reg_allocno_class instead of reg_cover_class.
25000         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
25001         STACK_REG_COVER_CLASS.
25002         (get_regno_cover_class): Rename to get_regno_pressure_class.
25003         (move_loop_invariants): Initialize and finalize regstat.
25004
25005         * ira.c: Remove mentioning cover classes from the file.  Add
25006         comments about coloring without cover classes.  Use ALLOCNO_CLASS
25007         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
25008         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
25009         setup_class_subset_and_memory_move_costs.
25010         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
25011         (setup_cover_and_important_classes): Rename to
25012         setup_allocno_and_important_classes.
25013         (setup_class_translate_array): New.
25014         (setup_class_translate): Call it for allocno and pressure classes.
25015         (cover_class_order): Rename to allocno_class_order.
25016         (comp_reg_classes_func): Use ira_allocno_class_translate instead
25017         of ira_class_translate.
25018         (reorder_important_classes): Set up ira_important_class_nums.
25019         (setup_reg_class_relations): Set up ira_reg_class_superunion.
25020         (print_class_cover): Rename to print_classes.  Add parameter.
25021         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25022         Print pressure classes too.
25023         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
25024         setup_reg_subclasses.
25025         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25026         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25027         (setup_prohibited_class_mode_regs): Use
25028         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
25029         (clarify_prohibited_class_mode_regs): New function.
25030         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
25031         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
25032         (ira_init_once): Initialize them.
25033         (free_register_move_costs): Process them.
25034         (ira_init): Move calls of find_reg_classes and
25035         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
25036         Call clarify_prohibited_class_mode_regs.
25037         (ira_no_alloc_reg): Remove.
25038         (too_high_register_pressure_p): Use pressure classes.
25039
25040         * sched-deps.c: Remove mentioning cover classes from the file.
25041         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
25042         ira_pressure_classes and ira_pressure_classes_num instead of
25043         ira_reg_class_cover_size and ira_reg_class_cover.
25044         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25045         sched_regno_pressure_class instead of sched_regno_cover_class.
25046         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
25047         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25048
25049         * ira.h: Add 2010 to Copyright.
25050         (ira_no_alloc_reg): Remove external.
25051         (struct target_ira): Rename x_ira_hard_regno_cover_class,
25052         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25053         x_ira_class_translate to x_ira_hard_regno_allocno_class,
25054         x_ira_allocno_classes_num, x_ira_allocno_classes, and
25055         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
25056         x_ira_pressure_classes, x_ira_pressure_class_translate, and
25057         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
25058         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
25059         x_ira_no_alloc_regs.
25060         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25061         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25062         ira_allocno_classes_num and ira_allocno_classes.
25063         (ira_class_translate): Rename to ira_allocno_class_translate.
25064         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25065         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25066         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25067         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25068         (ira_no_alloc_regs): New.
25069
25070         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
25071         classes from the file.  Use ALLOCNO_CLASS instead of
25072         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
25073         ALLOCNO_COVER_CLASS_COST.
25074         (regno_cover_class): Rename to regno_aclass.
25075         (record_reg_classes): Use ira_reg_class_subunion instead of
25076         ira_reg_class_union.
25077         (record_address_regs): Check overflow.
25078         (scan_one_insn): Ditto.
25079         (print_allocno_costs): Print total mem cost fore regional allocation.
25080         (print_pseudo_costs): Use REG_N_REFS.
25081         (find_costs_and_classes): Use classes intersected with them on the
25082         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
25083         ira_reg_class_union.  Use ira_allocno_class_translate and
25084         regno_aclass instead of ira_class_translate and regno_cover_class.
25085         Modify code for finding regno_aclass.  Setup preferred classes for
25086         the next pass.
25087         (setup_allocno_cover_class_and_costs): Rename to
25088         setup_allocno_class_and_costs.  Use regno_aclass instead of
25089         regno_cover_class.  Use ira_set_allocno_class instead of
25090         ira_set_allocno_cover_class.
25091         (init_costs, finish_costs): Use regno_aclass instead of
25092         regno_cover_class.
25093         (ira_costs): Use setup_allocno_class_and_costs instead of
25094         setup_allocno_cover_class_and_costs.
25095         (ira_tune_allocno_costs_and_cover_classes): Rename to
25096         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
25097         by processing objects.  Use ira_reg_class_max_nregs instead of
25098         ira_reg_class_nregs.
25099
25100         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25101
25102         * sched-int.h: Remove mentioning cover classes from the file.
25103         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25104
25105         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
25106         classes from the file.
25107         (struct reg_pref): Rename coverclass into allocnoclass.
25108         (reg_cover_class): Rename to reg_allocno_class.
25109
25110         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25111
25112         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25113
25114         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25115
25116         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25117
25118         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25119
25120         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25121
25122         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25123
25124         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25125
25126         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25127
25128         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25129
25130         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25131         (i386_ira_cover_classes): Ditto.
25132
25133         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25134
25135         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25136
25137         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25138
25139         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25140
25141         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25142
25143         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25144
25145         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25146         (mips_ira_cover_classes): Ditto.
25147
25148         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25149
25150         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25151
25152         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25153
25154         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25155
25156         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25157
25158         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25159         (IRA_COVER_CLASSES_VSX): Ditto.
25160
25161         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25162         (rs6000_ira_cover_classes): Ditto.
25163
25164         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25165
25166         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25167
25168         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25169
25170         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25171
25172         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25173
25174         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25175
25176         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25177
25178         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25179
25180         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25181
25182         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25183
25184 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
25185
25186         PR debug/48253
25187         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25188         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25189         dw_fde_unlikely_section_end_label, cold_in_std_section,
25190         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25191         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25192         fields.
25193         (output_fde): Use dw_fde_second_{begin,end} if second is
25194         true, otherwise dw_fde_{begin,end}.
25195         (output_call_frame_info): Test dw_fde_second_begin != NULL
25196         instead of dw_fde_switched_sections.
25197         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25198         fields, initialize new fields.  Initialize in_std_section
25199         unconditionally from the first partition.
25200         (dwarf2out_end_epilogue): Don't override dw_fde_end when
25201         dw_fde_second_begin is non-NULL.
25202         (dwarf2out_switch_text_section): Stop initializing removed
25203         dw_fde_struct fields, initialize new fields, initialize
25204         also dw_fde_end here.  Set dw_fde_switch_cfi even when
25205         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
25206         (struct var_loc_list_def): Add last_before_switch field.
25207         (arange_table, arange_table_allocated, arange_table_in_use,
25208         ARANGE_TABLE_INCREMENT, add_arange): Removed.
25209         (size_of_aranges): Count !in_std_section and !second_in_std_section
25210         hunks in fdes, instead of looking at arange_table_in_use.
25211         (output_aranges): Add aranges_length argument, don't call
25212         size_of_aranges here.  Instead of using aranges_table*
25213         emit ranges for fdes when !in_std_section resp.
25214         !second_in_std_section.
25215         (dw_loc_list): Break ranges crossing section switch.
25216         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
25217         use dw_fde_second_end instead of dw_fde_end as end of last range.
25218         (gen_subprogram_die): Don't call add_arange.  Use
25219         dw_fde_{begin,end} for first partition and if switched
25220         section dw_fde_second_{begin,end} for the second.
25221         (var_location_switch_text_section_1,
25222         var_location_switch_text_section): New functions.
25223         (dwarf2out_begin_function): Initialize cold_text_section even
25224         when function_section () isn't text_section.
25225         (prune_unused_types): Don't walk arange_table.
25226         (dwarf2out_finish): Don't needlessly test
25227         flag_reorder_blocks_and_partition when testing cold_text_section_used.
25228         If info_section_emitted, call size_of_aranges and if it indicates
25229         non-empty .debug_aranges, call output_aranges with the computed
25230         size.  Stop using removed dw_fde_struct fields, use
25231         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25232         for second.
25233
25234         PR debug/48203
25235         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25236         create ENTRY_VALUE if incoming or address of incoming's MEM
25237         is a hard REG.
25238         * dwarf2out.c (mem_loc_descriptor): Don't emit
25239         DW_OP_GNU_entry_value of DW_OP_fbreg.
25240         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25241         on ENTRY_VALUE is able to find the canonical parameter VALUE.
25242         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25243         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25244         ENTRY_VALUE_EXPs.
25245         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25246         is a REG_P or MEM_P with REG_P address, compute hash directly
25247         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25248         (preserve_only_constants): Don't clear VALUES forwaring
25249         ENTRY_VALUE to some other VALUE.
25250
25251 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
25252
25253         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25254         instead of GEN_INT.
25255
25256 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25257
25258         * cfgexpand.c (expand_gimple_cond): Always set the source location and
25259         block before expanding the statement.
25260         (expand_gimple_stmt_1): Likewise.  Set them here...
25261         (expand_gimple_stmt): ...and not here.  Tidy.
25262         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25263         unknown.
25264
25265 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25266
25267         * Makefile.in: New rule for cprop.o.
25268         * gcse.c: Move constant/copy propagation to cprop.c.
25269         (compute_local_properties): Only handle expression tables.
25270         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25271         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25272         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25273         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25274         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25275         compute_cprop_data, find_used_regs, try_replace_reg,
25276         find_avail_set, cprop_jump, constprop_register, cprop_insn,
25277         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25278         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25279         find_bypass_set, reg_killed_on_edge, bypass_block,
25280         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25281         execute_rtl_cprop, pass_rtl_cprop): Move to...
25282         * cprop.c: ...here.  New file, constant/copy propagation for RTL
25283         moved from gcse.c to here with minor cleanups in duplicated code.
25284
25285 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
25286
25287         * config/i386/i386.c (flag_opts): Fix a typo in
25288         -mavx256-split-unaligned-store.
25289
25290 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25291
25292         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25293         LIBCALL_VALUE): Remove macros.
25294         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25295         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25296         (h8300_function_value, h8300_libcall_value,
25297         h8300_function_value_regno_p): New functions.
25298
25299 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25300
25301         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25302
25303 2011-03-28  Jeff Law  <law@redhat.com>
25304
25305         * tree-ssa-threadupdate.c (redirect_edges): Call
25306         create_edge_and_update_destination_phis as needed.
25307         (create_edge_and_update_destination_phis): Accept new BB argument.
25308         All callers updated.
25309         (thread_block): Do not update the profile when threading around
25310         intermediate blocks.
25311         (thread_single_edge): Likewise.
25312         (determine_bb_domination_status): If BB is not a successor of the
25313         loop header, return NONDOMINATING.
25314         (register_jump_thread): Note when we register a jump thread around
25315         an intermediate block.
25316         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25317         (thread_across_edge): Use it.
25318
25319 2011-03-28  Tristan Gingold  <gingold@adacore.com>
25320
25321         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25322         when for_return is 2.
25323
25324 2011-03-28  Jeff Law  <law@redhat.com>
25325
25326         * var-tracking.c (canonicalize_values_mark): Delete unused
25327         lhs assignment.
25328         (canonicalize_values_star, set_variable_part): Likewise.
25329         (clobber_variable_part, delete_variable_part): Likewise.
25330
25331 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25332
25333         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25334
25335 2011-03-28  Martin Jambor  <mjambor@suse.cz>
25336
25337         * tree-inline.c (expand_call_inline): Do not check that destination
25338         node is analyzed.
25339         (optimize_inline_calls): Assert that destination node is analyzed.
25340         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25341         not call tree_lowering_passes.
25342         * cgraph.h (cgraph_analyze_function): Declare.
25343         * cgraphunit.c (cgraph_analyze_function): Make public.
25344
25345 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
25346
25347         * config/sparc/sparc-opts.h: New.
25348         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25349         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25350         (sparc_option_override): Store processor_type enumeration rather
25351         than string in cpu_default.  Remove name and enumeration from
25352         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
25353         without using sparc_select.  Use target_flags_explicit instead of
25354         fpu_option_set.
25355         * config/sparc/sparc.h (enum processor_type): Move to
25356         sparc-opts.h.
25357         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25358         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25359         HeaderInclude entry.
25360         (mcpu=, mtune=): Use Var and Enum.
25361         (sparc_processor_type): New Enum and EnumValue entries.
25362
25363 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25364             Iain Sandoe  <iains@gcc.gnu.org>
25365
25366         PR target/48245
25367         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25368
25369 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25370
25371         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25372         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25373         Insert new statements at it in lieu of STMT.
25374         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25375         * tree-vect-stmts.c (vectorizable_store): Likewise.
25376         (vectorizable_load): Likewise.
25377
25378 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
25379
25380         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25381         (divtf3): Ditto.
25382         (multf3): Ditto.
25383         (subtf3): Ditto.
25384
25385 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25386
25387         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25388         unaligned 256bit load/store.
25389         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25390         (*avx_movdqu<avxmodesuffix>): Likewise.
25391
25392 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25393
25394         PR target/48288
25395         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25396         * config/pa/pa.md (iordi3): Use new predicate in expander.
25397         (iorsi3): Likewise.
25398
25399 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
25400
25401         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25402         FUNCTION_VALUE_REGNO_P): Remove macros.
25403         * config/mips/mips-protos.h (mips_function_value): Remove.
25404         * config/mips/mips.c (mips_function_value): Rename to...
25405         (mips_function_value_1): ... this. Make static.  Handle receiving
25406         the function type in 'fn_decl_or_type' argument.
25407         (mips_function_value, mips_libcall_value,
25408         mips_function_value_regno_p): New function.
25409         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25410         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25411
25412 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25413
25414         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25415         and -mavx256-split-unaligned-store.
25416         (ix86_option_override_internal): Split 32-byte AVX unaligned
25417         load/store by default.
25418         (ix86_avx256_split_vector_move_misalign): New.
25419         (ix86_expand_vector_move_misalign): Use it.
25420
25421         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25422         -mavx256-split-unaligned-store.
25423
25424         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25425         256bit load/store.  Generate unaligned store on misaligned memory
25426         operand.
25427         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25428         256bit load/store.
25429         (*avx_movdqu<avxmodesuffix>): Likewise.
25430
25431         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25432         -mavx256-split-unaligned-store.
25433
25434 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25435
25436         PR target/38598
25437         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25438         Update commentary.
25439
25440 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25441
25442         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25443         opno arguments with an expand_operand.  Use create_input_operand.
25444         (mips_prepare_builtin_target): Delete.
25445         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25446         functions.
25447         (mips_expand_builtin_direct): Use create_output_operand and
25448         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
25449         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
25450         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25451
25452 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
25453
25454         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25455         function.
25456         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25457
25458 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25459
25460         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25461         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
25462         basic blocks and call commit_edge_insertions directly.
25463         (fixup_abnormal_edges): Move from here to...
25464         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
25465         on the edges and return whether some have actually been inserted.
25466         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25467         compensation code.
25468
25469 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
25470
25471         PR rtl-optimization/48144
25472         * sel-sched-ir.c (merge_history_vect): Factor out from ...
25473         (merge_expr_data): ... here.
25474         (av_set_intersect): Rename to av_set_code_motion_filter.
25475         Update all callers.  Call merge_history_vect when an expression
25476         is found in both sets.
25477         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25478
25479 2011-03-26  Alan Modra  <amodra@gmail.com>
25480
25481         * config/rs6000/predicates.md (word_offset_memref_op): Handle
25482         cmodel medium addresses.
25483         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25484         64-bit gpr loads and stores.
25485         (rs6000_secondary_reload_ppc64): New function.
25486         * config/rs6000/rs6000-protos.h: Declare it.
25487         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25488
25489 2011-03-26  Alan Modra  <amodra@gmail.com>
25490
25491         PR target/47487
25492         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25493         GNU Go in traceback table.
25494
25495 2011-03-25  Richard Henderson  <rth@redhat.com>
25496
25497         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25498         if there are exactly 6 operands.
25499         (set_storage_via_setmem): Similarly.
25500
25501 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25502
25503         * collect2.c (write_c_file_stat): Handle backslash
25504         as right-hand directory separator.
25505         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25506         checking just for slash.
25507         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25508         instead of checking for trailing slash.
25509         * gcc.c (record_temp_file): Use filename_cmp instead
25510         of strcmp.
25511         (do_spec_1): Likewise.
25512         (replace_outfile_spec_function): Likewise.
25513         (is_directory): Use filename_ncmp instead of strncmp.
25514         (print_multilib_info): Likewise.
25515         * gcov.c (find_source): Use filename_cmp instead
25516         instead of strcmp.
25517         (make_gcov_file_name): Fix order of slash/backslash
25518         checks.
25519         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25520         (add_standard_paths): Likewise.
25521         * mips-tfile.c (saber_stop): Handle backslash.
25522         * prefix.c (update_path): Use filename_ncmp instead of
25523         strncmp.
25524         * profile.c (output_location): Use filename_cmp instead
25525         of strcmp.
25526         * read-md.c (handle_toplevel_file): Handle backslash.
25527         * tlink.c (frob_extension):  Likewise.
25528         * tree-cfg.c (same_line_p): Use filename_cmp instead of
25529         strcmp.
25530         * tree-dump.c (dequeue_and_dump): Handle backslash.
25531         * tree.c (get_file_function_name): Likewise.
25532         * gengtype.c (read_input_list): Likewise.
25533         (get_file_realbasename): Likewise.
25534         (get_output_file_with_visibility): Use filename_cmp
25535         instead of strcmp.
25536
25537 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
25538
25539         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25540         case to VFPv1.
25541
25542 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25543
25544         * fold-const.c (expr_location_or): New function.
25545         (fold_truth_not_expr): Call it.
25546
25547 2011-03-25  Jeff Law  <law@redhat.com>
25548
25549         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25550         va_end.
25551         * c-family/c-common.c (def_fn_type): Likewise.
25552         * emit-rtl.c (gen_rtvec): Likewise.
25553         * lto/lto-lang.c (def_fn_type): Likewise.
25554
25555 2011-03-25  Richard Guenther  <rguenther@suse.de>
25556
25557         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25558         also generate copies.
25559         (fini_copy_prop): Handle constant values properly.
25560
25561 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
25562
25563         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25564         mode size instead of bitsize with DWARF2_ADDR_SIZE.
25565         (hash_loc_operands, compare_loc_operands): Handle
25566         DW_OP_GNU_entry_value.
25567
25568 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25569
25570         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25571         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25572         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25573         comment and use macro TARGET_64BIT_MS_ABI instead.
25574         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25575         and change default behavior for 32-bit MS_ABI.
25576         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25577         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25578         32-bit, too.
25579         (ix86_cfun_abi): Likewise.
25580         (ix86_maybe_switch_abi): Adjust comment.
25581         (init_cumulative_args): Check for bit-ness in MS_ABI case.
25582         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25583         instead of checking for SYSV_ABI.
25584         (ix86_nsaved_sseregs): Likewise.
25585         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25586         to 16 bytes.
25587         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25588         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25589         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25590         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25591         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25592
25593 2011-03-25  Richard Guenther  <rguenther@suse.de>
25594
25595         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25596         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25597         (verify_gimple): Remove.
25598         * tree-cfg.c (verify_gimple_call): Merge verification
25599         from verify_stmts.
25600         (verify_gimple_phi): Merge verification from verify_stmts.
25601         (verify_gimple_label): New function.
25602         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25603         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25604         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25605         (verify_stmts): Rename to verify_gimple_in_cfg.
25606         (verify_gimple_in_cfg): New function.
25607         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25608         * tree-ssa.c (verify_ssa): Likewise.
25609         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25610
25611 2011-03-25  Richard Guenther  <rguenther@suse.de>
25612
25613         * passes.c (init_optimization_passes): Add FRE pass after
25614         early SRA.
25615
25616 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
25617             Andrew Stubbs  <ams@codesourcery.com>
25618
25619         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25620         for Cortex-A8.
25621         (arm_movdi_vfp_cortexa8): New pattern.
25622         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25623         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25624         instructions when tuning for Cortex-A8.  Set attribute "arch".
25625         * config/arm/arm.md: Move include arm-tune.md up a bit.
25626         (define_attr "arch"): Add "onlya8" and "nota8" values.
25627         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25628
25629 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25630
25631         PR bootstrap/48282
25632         Revert:
25633         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25634
25635         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25636         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25637         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25638         * passes.c (init_optimization_passes): Move
25639         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25640
25641 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25642
25643         * c-typeck.c (comptypes_internal): Replace target
25644         hook call of comp_type_attributes by version in tree.c file.
25645         * gimple.c (gimple_types_compatible_p_1): Likewise.
25646         * tree-ssa.c (useless_type_conversion_p): Likewise.
25647         * tree.c (build_type_attribute_qual_variant): Likewise.
25648         (attribute_value_equal): New static helper function.
25649         (comp_type_attributes): New function.
25650         (merge_attributes): Use attribute_value_equal for comparison.
25651         (attribute_list_contained): Likewise.
25652         * tree.h (comp_type_attributes): New prototype.
25653
25654 2011-03-25  Richard Guenther  <rguenther@suse.de>
25655
25656         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25657         of complex types at -O0.
25658         (verify_gimple_assign_binary): Likewise.
25659         (verify_gimple_assign_ternary): Likewise.
25660
25661 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25662
25663         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25664         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25665
25666 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25667
25668         PR debug/48041
25669         * dwarf2out.c (output_abbrev_section): Only write table when
25670         abbrev_die_table_in_use > 1.
25671
25672 2011-02-24  Richard Henderson  <rth@redhat.com>
25673
25674         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25675         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25676         (alpha_expand_unaligned_load_words): Use extql.
25677         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25678         (emit_insxl): Handle all modes for consistency.
25679
25680 2011-02-24  Richard Henderson  <rth@redhat.com>
25681
25682         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25683         (alpha_expand_unaligned_load): Likewise.
25684         (alpha_expand_unaligned_store): Likewise.
25685         (alpha_expand_unaligned_load_words): Likewise.
25686         (alpha_expand_unaligned_store_words): Likewise.
25687         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25688         (alpha_split_lock_test_and_set_12): Likewise.
25689         (print_operand, alpha_fold_builtin_extxx): Likewise.
25690         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25691         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25692         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25693         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25694         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25695         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25696         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25697         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25698         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25699         (extwl, extll, extql): Similarly.
25700         (inswh, inslh, insqh): Similarly.
25701         (mskbl, mskwl, mskll, mskql): Similarly.
25702         (mskwh, msklh, mskqh): Similarly.
25703
25704 2011-02-24  Richard Henderson  <rth@redhat.com>
25705
25706         * config/alpha/alpha.md (attribute isa): Add er, ner.
25707         (attribute enabled): Handle them.
25708         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25709
25710 2011-02-24  Richard Henderson  <rth@redhat.com>
25711
25712         * config/alpha/alpha.md (attribute isa): Add vms.
25713         (attribute enabled): Handle it.
25714         (*movsf): Merge *movsf_{nofix,fix,nofp}.
25715         (*movdf): Merge *movdf_{nofix,fix,nofp}.
25716         (*movtf): Rename from *movtf_internal for consistency.
25717         (*movsi): Merge with *movsi_nt_vms.
25718         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25719         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25720         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25721         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25722
25723 2011-02-24  Richard Henderson  <rth@redhat.com>
25724
25725         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25726         (extendqisi2, extendhisi2): Likewise.
25727         (extendqidi2): Simplify BWX/non-BWX expansions.
25728         (extendhidi2): Similarly.
25729
25730 2011-02-24  Richard Henderson  <rth@redhat.com>
25731
25732         * config/alpha/alpha.md (attribute isa): New.
25733         (attribute enabled): New.
25734         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25735         (zero_extendqisi2, zero_extendqidi2): Similarly.
25736         (zero_extendhisi2, zero_extendhidi2): Similarly.
25737         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25738
25739 2011-02-24  Richard Henderson  <rth@redhat.com>
25740
25741         * config/alpha/predicates.md (input_operand): Revert last change;
25742         update comment to mention 32-bit VMS rather than Windows.
25743
25744 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25745
25746         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25747         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25748         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25749         * passes.c (init_optimization_passes): Move
25750         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25751
25752 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25753
25754         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25755
25756 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25757
25758         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25759         correctly.
25760
25761 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
25762
25763         PR debug/48204
25764         * simplify-rtx.c (simplify_const_unary_operation): Call
25765         real_convert when changing mode class with FLOAT_EXTEND.
25766
25767 2011-03-24  Nick Clifton  <nickc@redhat.com>
25768
25769         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25770         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25771         * config/rx/rx.c (rx_option_override): Set align_jumps,
25772         align_loops and align_labels if not set by the user.
25773         (rx_align_for_label): New function.
25774         (rx_max_skip_for_label): New function.
25775         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25776         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25777         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25778         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25779         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25780
25781 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25782
25783         PR rtl-optimization/48263
25784         * optabs.c (expand_binop_directly): Reinstate convert_modes code
25785         and original commutative_p handling.  Use maybe_gen_insn.
25786
25787 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25788
25789         * reload.c (find_reloads_subreg_address): Add address_reloaded
25790         parameter and return true there if the full address has been
25791         reloaded.
25792         (find_reloads_toplev): Pass address_reloaded flag.
25793         (find_reloads_address_1): Don't use address_reloaded parameter.
25794
25795 2011-03-24  Jeff Law  <law@redhat.com>
25796
25797         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25798         unused variable "ann".
25799         (remove_unused_locals): Likewise.
25800
25801         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25802         statement.
25803
25804         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25805         after it is freed.
25806
25807 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25808
25809         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25810         for invalid symbolic addresses.
25811         (s390_secondary_reload): Don't use s390_check_symref_alignment for
25812         larl operands.
25813
25814 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25815
25816         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25817         the argument in calls to fold_truth_not_expr.
25818
25819 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25820
25821         * tree.c (record_node_allocation_statistics): New function.
25822         (make_node_stat, copy_node_stat, build_string): Call it.
25823         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25824         (build1_stat, build_omp_clause): Likewise.
25825
25826 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25827
25828         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25829         last commit.
25830
25831 2011-03-24  Richard Guenther  <rguenther@suse.de>
25832
25833         PR tree-optimization/48271
25834         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25835         blocks that still exist.
25836
25837 2011-03-24  Richard Guenther  <rguenther@suse.de>
25838
25839         PR tree-optimization/48270
25840         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25841         not free datarefs before ddrs.
25842
25843 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25844
25845         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25846         from the address built for a reference with variable offset.
25847
25848 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25849
25850         PR target/48237
25851         * config/i386/i386.md (*movdf_internal_rex64): Do not split
25852         alternatives that can be handled with movq or movabsq insn.
25853         (*movdf_internal): Disable for !TARGET_64BIT.
25854         (*movdf_internal_nointeger): Ditto.
25855         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25856
25857 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25858
25859         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25860         (FUNCTION_ARG_ADVANCE): Likewise.
25861         * tm.texi.in: Change references to them to hook references.
25862         * tm.texi: Regenerate.
25863         * targhooks.c (default_function_arg): Eliminate check for target macro.
25864         (default_function_incoming_arg): Likewise.
25865         (default_function_arg_advance): Likewise.
25866         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25867         (function_arg_advance): Likewise.
25868         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25869
25870 2011-03-24  Richard Guenther  <rguenther@suse.de>
25871
25872         PR middle-end/48269
25873         * tree-object-size.c (addr_object_size): Do not double-account
25874         for MEM_REF offsets.
25875
25876 2011-03-24  Diego Novillo  <dnovillo@google.com>
25877
25878         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25879         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25880         (lto_input_data_block): Move from lto-opts.c.  Make extern.
25881         Update all users.
25882         (lto_input_string): Rename from input_string.  Make extern.
25883         Update all users.
25884         * lto-streamer-out.c (lto_output_string_with_length): Rename from
25885         output_string_with_length.
25886         Output 0 to indicate a non-NULL string.  Update all callers to
25887         not emit 0.
25888         (lto_output_string): Rename from output_string.  Make extern.
25889         Update all users.
25890         (lto_output_decl_state_streams): Make extern.
25891         (lto_output_decl_state_refs): Make extern.
25892         * lto-streamer.h (lto_input_string): Declare.
25893         (lto_input_data_block): Declare.
25894         (lto_output_string): Declare.
25895         (lto_output_string_with_length): Declare.
25896         (lto_output_decl_state_streams): Declare.
25897         (lto_output_decl_state_refs): Declare.
25898
25899 2011-03-24  Richard Guenther  <rguenther@suse.de>
25900
25901         PR tree-optimization/46562
25902         * tree.c (build_invariant_address): New function.
25903         * tree.h (build_invariant_address): Declare.
25904         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25905         a renamed function moved ...
25906         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25907         Take valueization callback parameter.
25908         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25909         * gimple-fold.h: New file.
25910         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25911         (ccp_fold, fold_const_aggregate_ref,
25912         fold_ctor_reference, fold_nonarray_ctor_reference,
25913         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25914         get_base_constructor): Move ...
25915         * gimple-fold.c: ... here.
25916         (gimple_fold_stmt_to_constant_1): New function
25917         split out from ccp_fold.  Take a valueization callback parameter.
25918         Valueize all operands.
25919         (gimple_fold_stmt_to_constant): New wrapper function.
25920         (fold_const_aggregate_ref_1): New function split out from
25921         fold_const_aggregate_ref.  Take a valueization callback parameter.
25922         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25923         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25924         invariant POINTER_PLUS_EXPRs to invariant form.
25925         (vn_valueize): New function.
25926         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25927         * tree-vrp.c (vrp_valueize): New function.
25928         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25929         to fold statements to constants.
25930         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25931         function declarations.
25932         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25933         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25934
25935 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25936
25937         * config/h8300/predicates.md (jump_address_operand): Fix register
25938         mode check.
25939
25940 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25941
25942         * doc/invoke.texi (max-stores-to-sink): Document.
25943         * params.h (MAX_STORES_TO_SINK): Define.
25944         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25945         if either vectorization or if-conversion is disabled.
25946         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25947         tree-vect-data-refs.c vect_equal_offsets.
25948         (dr_equal_offsets_p): New function.
25949         (find_data_references_in_bb): Remove static.
25950         * tree-data-ref.h (find_data_references_in_bb): Declare.
25951         (dr_equal_offsets_p): Likewise.
25952         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25953         (vect_drs_dependent_in_basic_block): Update calls to
25954         vect_equal_offsets.
25955         (vect_check_interleaving): Likewise.
25956         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25957         (cond_if_else_store_replacement): Rename to...
25958         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25959         documentation.
25960         (cond_if_else_store_replacement): New function.
25961         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25962         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25963
25964 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25965
25966         PR target/46934
25967         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25968         to subtract lower bound instead of GEN_INT().
25969
25970 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25971
25972         PR other/48179
25973         PR other/48221
25974         PR other/48234
25975         * doc/extend.texi (Alignment): Move section to match order in TOC.
25976         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25977         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25978
25979 2011-03-23  Jeff Law  <law@redhat.com>
25980
25981         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25982         before removing the edge.
25983
25984         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25985         it may have been freed by redirect_branch_edge or
25986         redirect_edge_succ_nodup.
25987
25988 2011-03-23  Richard Guenther  <rguenther@suse.de>
25989
25990         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25991         (check_va_list_escapes): Likewise.
25992         (check_all_va_list_escapes): Likewise.
25993
25994 2011-03-23  Richard Guenther  <rguenther@suse.de>
25995
25996         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25997         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25998         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25999         (alias.o): Likewise.
26000         (ipa-type-escape.o): Remove.
26001         (ipa-struct-reorg.o): Likewise.
26002         (GTFILES): Remove ipa-struct-reorg.c.
26003         * alias.c: Do not include ipa-type-escape.h.
26004         * tree-ssa-alias.c: Likewise.
26005         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
26006         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
26007         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
26008         and ipa-type-escape passes.
26009         * tree-pass.h (pass_ipa_type_escape): Remove.
26010         (pass_ipa_struct_reorg): Likewise.
26011         * ipa-struct-reorg.h: Remove.
26012         * ipa-struct-reorg.c: Likewise.
26013         * ipa-type-escape.h: Likewise.
26014         * ipa-type-escape.c: Likewise.
26015         * doc/invoke.texi (-fipa-struct-reorg): Remove.
26016         (--param struct-reorg-cold-struct-ratio): Likewise.
26017         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26018         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26019         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
26020
26021 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26022
26023         * config/s390/2084.md: Enable all insn reservations also for z9_ec
26024         cpu attribute value.
26025         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
26026         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
26027         * config/s390/s390.c (processor_flags_table): New constant array.
26028         (s390_handle_arch_option): Remove.
26029         (s390_handle_option): Remove s390_handle_arch_option invocations
26030         and OPT_mwarn_framesize_ handling.
26031         (s390_option_override): Remove s390_handle_arch_option invocation.
26032         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
26033         warnings.
26034         * config/s390/s390.md (cpu attribute): Add z9_ec value.
26035         * config/s390/s390.opt (s390_tune, s390_arch)
26036         (march=): Replace s390_arch_option enum and values with
26037         processor_type.  Set variable name to s390_arch.  Set
26038         initialization value.
26039         (mtune=): Replace s390_arch_option with processor_type.  Set
26040         variable name to s390_tune.  Set initialization value.
26041
26042 2011-03-23  Julian Brown  <julian@codesourcery.com>
26043
26044         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26045         accesses which are not naturally aligned.
26046
26047 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26048
26049         PR target/47553
26050         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26051
26052 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26053
26054         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26055         parameter from "int" to "enum insn_code".
26056         (expand_operand_type): New enum.
26057         (expand_operand): New structure.
26058         (create_expand_operand): New function.
26059         (create_fixed_operand, create_output_operand): Likewise
26060         (create_input_operand, create_convert_operand_to): Likewise.
26061         (create_convert_operand_from, create_address_operand): Likewise.
26062         (create_integer_operand): Likewise.
26063         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26064         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26065         (expand_insn, expand_jump_insn): Likewise.
26066         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26067         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26068         (expand_movstr, expand_builtin___clear_cache): Likewise.
26069         (expand_builtin_lock_release): Likewise.
26070         * explow.c (allocate_dynamic_stack_space): Likewise.
26071         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
26072         and use the default handling in that case.
26073         * expmed.c (check_predicate_volatile_ok): Delete.
26074         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26075         (emit_cstore): Likewise.
26076         * expr.c (emit_block_move_via_movmem): Likewise.
26077         (set_storage_via_setmem, expand_assignment): Likewise.
26078         (emit_storent_insn, try_casesi): Likewise.
26079         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
26080         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26081         (expand_vec_shift_expr, expand_binop_directly): Likewise.
26082         (expand_twoval_unop, expand_twoval_binop): Likewise.
26083         (expand_unop_direct, emit_indirect_jump): Likewise.
26084         (emit_conditional_move, vector_compare_rtx): Likewise.
26085         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26086         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26087         (expand_sync_lock_test_and_set): Likewise.
26088         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
26089         (emit_unop_insn): Likewise.
26090         (expand_copysign_absneg): Change icode to an insn_code.
26091         (create_convert_operand_from_type): New function.
26092         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26093         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26094         (expand_insn, expand_jump_insn): Likewise.
26095         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26096         than const_int_operand for operand 2.
26097
26098 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26099
26100         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26101         if possible.
26102
26103 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26104
26105         * emit-rtl.c (emit_pattern_before_noloc): New function.
26106         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26107         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26108         (emit_pattern_after_noloc): New function.
26109         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26110         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26111
26112 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26113
26114         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26115         (__ffsDI2): Likewise.
26116
26117 2011-03-22  Richard Henderson  <rth@redhat.com>
26118
26119         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26120         of !TARGET_ABI_OPEN_VMS.
26121         (alpha_trampoline_init, alpha_start_function): Likewise.
26122         (alpha_expand_epilogue, alpha_file_start): Likewise.
26123         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26124         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26125         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26126         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26127         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26128
26129 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26130
26131         * config/s390/s390-opts.h: New.
26132         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26133         s390_arch_flags, s390_warn_framesize, s390_stack_size,
26134         s390_stack_guard): Remove.
26135         (s390_handle_arch_option): Return void.  Take enum
26136         s390_arch_option value instead of string and searching array.
26137         (s390_handle_option): Don't assert that global structures are in
26138         use.  Access variables via opts pointer.  Use error_at.  Don't use
26139         sscanf for -mstack-guard= or -mstack-size=.  Update call to
26140         s390_handle_arch_option.
26141         (s390_option_override): Update call to s390_handle_arch_option.
26142         (s390_emit_prologue): Use %d format for s390_stack_size in
26143         diagnostic.  Use %wd for HOST_WIDE_INT.
26144         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26145         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26146         * config/s390/s390.opt (config/s390/s390-opts.h): New
26147         HeaderInclude entry.
26148         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26149         s390_arch_flags, s390_warn_framesize): New Variable entries.
26150         (s390_arch_option): New Enum and EnumValue entries.
26151         (march=): Use Enum instead of Var.
26152         (mstack-guard=, mstack-size=): Use UInteger and Var.
26153         (mtune=): Use Enum.
26154
26155 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26156
26157         * config/score/score.c (score_handle_option): Don't assert that
26158         global structures are in use.  Access target_flags via opts
26159         pointer.  Use value of -march= option to determine target_flags
26160         settings.
26161         * config/score/score.opt (march=): Use Enum.
26162         (score_arch): New Enum and EnumValue entries.
26163
26164 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26165
26166         * config/mep/mep.c (option_mtiny_specified): Remove.
26167         (mep_option_override): Move register handling for -mivc2 from
26168         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
26169         instead of option_mtiny_specified.
26170         (mep_handle_option): Access target_flags via opts pointer.  Don't
26171         assert that global structures are in use.  Defer part of -mivc2
26172         handling and move it to mep_option_override.
26173         * config/mep/mep.opt (IVC2): New Mask entry.
26174         (mivc2): Use Var and Defer instead of Mask.
26175
26176 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26177
26178         * config/v850/v850-opts.h: New.
26179         * config/v850/v850.c (small_memory): Replace with
26180         small_memory_physical_max array.  Make that array static const.
26181         (v850_handle_memory_option): Take integer value of argument.  Take
26182         gcc_options pointer, option text and location.  Return void.
26183         Update for changes to small memory structures.
26184         (v850_handle_option): Access target_flags via opts pointer.  Don't
26185         assert that global structures are in use.  Update calls to
26186         v850_handle_memory_option.
26187         (v850_encode_data_area): Update references to small memory settings.
26188         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26189         (enum small_memory_type): Move to v850-opts.h.
26190         * config/v850/v850.opt (config/v850/v850-opts.h): New
26191         HeaderInclude entry.
26192         (small_memory_max): New Variable entry.
26193         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
26194         (mtda, mzda): Likewise.
26195
26196 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26197
26198         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26199         pointer.  Don't assert that global structures are in use.
26200
26201 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26202
26203         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26204         via opts pointer.  Don't assert that global structures are in use.
26205
26206 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26207
26208         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26209         (munix=93): Use Var.
26210         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26211         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26212         * config/pa/pa-opts.h: New.
26213         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26214         (pa_handle_option): Don't assert that global structures are in
26215         use.  Access target_flags via opts pointer.  Don't handle
26216         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26217         OPT_munix_98 here.
26218         (pa_option_override): Handle deferred OPT_mfixed_range_.
26219
26220 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26221
26222         * config/mn10300/mn10300-opts.h: New.
26223         * config/mn10300/mn10300.c (mn10300_processor,
26224         mn10300_tune_string): Remove.
26225         (mn10300_handle_option): Don't assert that global structures are
26226         in use.  Access mn10300_processor via opts pointer.  Don't handle
26227         OPT_mtune_ here.
26228         * config/mn10300/mn10300.h (enum processor_type): Move to
26229         mn10300-opts.h.
26230         (mn10300_processor): Remove.
26231         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26232         HeaderInclude entry.
26233         (mn10300_processor): New Variable entry.
26234         (mtune=): Use Var.
26235
26236 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26237
26238         * config/microblaze/microblaze.c: Don't include opts.h.
26239         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26240         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26241         (mno-clearbss): Use Var and Warn.
26242
26243 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26244
26245         * config/m32r/m32r-opts.h: New.
26246         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26247         (m32r_handle_option): Don't assert that global structures are in
26248         use.  Access target_flags and m32r_cache_flush_func via opts
26249         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
26250         OPT_mno_flush_trap here.
26251         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26252         include of m32r-opts.h.
26253         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26254         HeaderInclude entry.
26255         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26256         (mmodel=): Use Enum and Var.
26257         (m32r_model): New Enum and EnumValue entries.
26258         (mno-flush-trap): Use Var.
26259         (msdata=): Use Enum and Var.
26260         (m32r_sdata): New Enum and EnumValue entries.
26261
26262 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26263
26264         * config/m32c/m32c.c: Don't include opts.h.
26265         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26266         m32c_handle_option): Remove.
26267         (m32c_option_override): Check global_options_set.x_target_memregs
26268         instead of target_memregs_set.
26269         * config/m32c/m32c.h (target_memregs): Remove.
26270         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26271         variable.
26272
26273 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26274
26275         * config/iq2000/iq2000-opts.h: New.
26276         * config/iq2000/iq2000.c: Don't include opts.h.
26277         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26278         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26279         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26280         HeaderInclude entry.
26281         (iq2000_tune): New Variable entry.
26282         (march=): Add comment.  Use Enum.
26283         (iq2000_arch): New Enum and EnumValue entries.
26284         (mcpu=): Use Enum and Var.
26285         (iq2000_tune): New Enum and EnumValue entries.
26286
26287 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26288
26289         * config/ia64/ia64-opts.h: New.
26290         * config/ia64/ia64.c (ia64_tune): Remove.
26291         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26292         here.  Use error_at.
26293         (ia64_option_override): Handle deferred OPT_mfixed_range_.
26294         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26295         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26296         HeaderInclude entry.
26297         (ia64_tune): New Variable entry.
26298         (mfixed-range=): Use Defer and Var.
26299         (mtune=): Use Enum and Var.
26300         (ia64_tune): New Enum and EnumValue entries.
26301
26302 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26303
26304         * config/frv/frv-opts.h: New.
26305         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26306         frv-opts.h.
26307         (frv_cpu_type): Remove.
26308         * config/frv/frv.c: Don't include opts.h.
26309         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26310         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26311         (frv_cpu_type): New Variable entry.
26312         (frv_cpu): New Enum and EnumValue entries.
26313
26314 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26315
26316         * config/cris/cris.c (cris_handle_option): Access target_flags via
26317         opts pointer.  Don't assert that global structures are in use.
26318         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26319         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26320
26321 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26322
26323         * config/bfin/bfin-opts.h: New.
26324         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26325         bfin_si_revision, bfin_workarounds): Remove.
26326         (bfin_cpus): Make static const.
26327         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26328         not bfin_lib_id_given.
26329         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
26330         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26331         pointer. Use error_at.  Don't assert that global structures are in use.
26332         * config/bfin/bfin.h: Include bfin-opts.h.
26333         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26334         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26335         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26336         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26337         entries.
26338
26339 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26340
26341         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26342         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26343         or -msoft-float here.
26344         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26345         -msoft-float and -mhard-float.
26346         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26347         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26348         msoft-float.
26349         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26350         -msoft-float.
26351         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26352         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26353         not mhard-float.
26354         (LIBGCC_SPEC): Don't handle -msoft-float.
26355         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26356         -mhard-float.
26357         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26358         msoft-float.
26359         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26360         -mfloat-abi=*, not -msoft-float and -mhard-float.
26361         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26362         -msoft-float.
26363         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26364         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26365         mhard-float and msoft-float.
26366         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26367         mfloat-abi=soft in comments, not mhard-float and msoft-float.
26368         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26369         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26370         mhard-float.
26371         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26372         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26373         msoft-float.
26374         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26375         not mhard-float.
26376         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26377         not msoft-float.
26378
26379 2011-03-22  Richard Henderson  <rth@redhat.com>
26380
26381         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26382         TARGET_ABI_WINDOWS_NT.
26383         (alpha_output_function_end_prologue): Likewise.
26384         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26385         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26386         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26387         (trap, *movsi_nt_vms): Likewise.
26388         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26389         (*tablejump_osf_nt_internal): Remove.
26390         * config/alpha/predicates.md (input_operand): Only test Pmode.
26391
26392 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26393
26394         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26395         via opts pointer.  Use error_at.  Don't assert that global
26396         structures are in use.
26397
26398 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26399
26400         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26401         (ix86_handle_option): Access ix86_isa_flags and
26402         ix86_isa_flags_explicit via opts pointer.  Don't assert that
26403         global structures are in use.
26404         (ix86_function_specific_save, ix86_function_specific_restore):
26405         Update ix86_isa_flags_explicit field name.
26406         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26407         (ix86_isa_flags_explicit): Rename TargetSave entry to
26408         x_ix86_isa_flags_explicit.
26409
26410 2011-03-22  Richard Henderson  <rth@redhat.com>
26411
26412         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26413         (alpha_option_override, direct_return): Likewise.
26414         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26415         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26416         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26417         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26418         (alpha_expand_epilogue, alpha_end_function): Likewise.
26419         (alpha_init_libfuncs): Likewise.
26420         (struct machine_function): Remove unicosmk members.
26421         (print_operand) ['t']: Remove.
26422         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26423         unicosmk_output_module_name, unicosmk_output_common,
26424         current_section_align, unicosmk_output_text_section_asm_op,
26425         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26426         unicosmk_section_type_flags, unicosmk_unique_section,
26427         unicosmk_asm_named_section, unicosmk_insert_attributes,
26428         unicosmk_output_align, unicosmk_defer_case_vector,
26429         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26430         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26431         unicosmk_output_ssib, unicosmk_add_call_info_word,
26432         unicosmk_extern_head, unicosmk_output_default_externs,
26433         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26434         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26435         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26436         * config/alpha/alpha-protos.h: Update.
26437         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26438         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26439         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26440         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26441         (*mulsi_se, mulvsi3): Likewise.
26442         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26443         (*divmodsi_internal, call, call_value, realign): Likewise.
26444         (moddi3, umoddi3): Likewise; remove duplicate expander.
26445         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26446         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26447         (*movdi_nofix): Remove r/U alternative.
26448         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26449         * config/alpha/constraints.md ("U"): Remove.
26450         * config/alpha/predicates.md (call_operand"): Don't test
26451         TARGET_ABI_UNICOSMK.
26452
26453 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26454
26455         * target.def (handle_option): Take gcc_options and
26456         cl_decoded_option pointers and location_t.
26457         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26458         * doc/tm.texi: Regenerate.
26459         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26460         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26461         * lto-opts.c (lto_reissue_options): Generate option structure for
26462         targetm.handle_option call.
26463         * opts.c (target_handle_option): Update call to
26464         targetm.handle_option.  Remove assertions about values now passed
26465         down to hook.
26466         * targhooks.c (default_target_handle_option): New.
26467         * targhooks.h (default_target_handle_option): Declare.
26468         * config/alpha/alpha.c: Include opts.h.
26469         (alpha_handle_option): Update to new hook interface.
26470         * config/arm/arm.c: Include opts.h.
26471         (arm_handle_option): Update to new hook interface.
26472         * config/arm/t-arm (arm.o): Update dependencies.
26473         * config/bfin/bfin.c: Include opts.h.
26474         (bfin_handle_option): Update to new hook interface.
26475         * config/cris/cris.c: Include opts.h.
26476         (cris_handle_option): Update to new hook interface.
26477         * config/frv/frv.c: Include opts.h.
26478         (frv_handle_option): Update to new hook interface.
26479         * config/i386/i386.c: Include opts.h.
26480         (ix86_handle_option): Update to new hook interface.
26481         (ix86_valid_target_attribute_inner_p): Generate option structure
26482         for call to ix86_handle_option.
26483         * config/i386/t-i386 (i386.o): Update dependencies.
26484         * config/ia64/ia64.c: Include opts.h.
26485         (ia64_handle_option): Update to new hook interface.
26486         * config/ia64/t-ia64 (ia64.o): Update dependencies.
26487         * config/iq2000/iq2000.c: Include opts.h.
26488         (iq2000_handle_option): Update to new hook interface.
26489         * config/m32c/m32c.c: Include opts.h.
26490         (m32c_handle_option): Update to new hook interface.
26491         * config/m32r/m32r.c: Include opts.h.
26492         (m32r_handle_option): Update to new hook interface.
26493         * config/m68k/m68k.c: Include opts.h.
26494         (m68k_handle_option): Update to new hook interface.
26495         * config/mep/mep.c: Include opts.h.
26496         (mep_handle_option): Update to new hook interface.
26497         * config/microblaze/microblaze.c: Include opts.h.
26498         (microblaze_handle_option): Update to new hook interface.
26499         * config/mips/mips.c: Include opts.h.
26500         (mips_handle_option): Update to new hook interface.
26501         * config/mn10300/mn10300.c: Include opts.h.
26502         (mn10300_handle_option): Update to new hook interface.
26503         * config/pa/pa.c: Include opts.h.
26504         (pa_handle_option): Update to new hook interface.
26505         * config/pdp11/pdp11.c: Include opts.h.
26506         (pdp11_handle_option): Update to new hook interface.
26507         * config/rs6000/rs6000.c: Include opts.h.
26508         (rs6000_handle_option): Update to new hook interface.
26509         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26510         * config/rx/rx.c: Include opts.h.
26511         (rx_handle_option): Update to new hook interface.
26512         * config/s390/s390.c: Include opts.h.
26513         (s390_handle_option): Update to new hook interface.
26514         * config/score/score.c: Include opts.h.
26515         (score_handle_option): Update to new hook interface.
26516         * config/sh/sh.c: Include opts.h.
26517         (sh_handle_option): Update to new hook interface.
26518         * config/sparc/sparc.c: Include opts.h.
26519         (sparc_handle_option): Update to new hook interface.
26520         * config/v850/v850.c: Include opts.h.
26521         (v850_handle_option): Update to new hook interface.
26522
26523 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26524
26525         * gcc.c (driver_unknown_option_callback): Only permit and save
26526         unknown -Wno- options.
26527         (driver_wrong_lang_callback): Save options directly instead of via
26528         driver_unknown_option_callback.
26529
26530 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26531
26532         * combine.c (simplify_set): Try harder to find the best CC mode when
26533         simplifying a nested COMPARE on the RHS.
26534
26535 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26536
26537         * config/alpha/gnu.h: Remove.
26538         * config/arc: Remove directory.
26539         * config/arm/netbsd.h: Remove.
26540         * config/arm/t-pe: Remove.
26541         * config/crx: Remove directory.
26542         * config/i386/netbsd.h: Remove.
26543         * config/m68hc11: Remove directory.
26544         * config/m68k/uclinux-oldabi.h: Remove.
26545         * config/mcore/mcore-pe.h: Remove.
26546         * config/mcore/t-mcore-pe: Remove.
26547         * config/netbsd-aout.h: Remove.
26548         * config/rs6000/gnu.h: Remove.
26549         * config/sh/sh-symbian.h: Remove.
26550         * config/sh/symbian-base.c: Remove.
26551         * config/sh/symbian-c.c: Remove.
26552         * config/sh/symbian-cxx.c: Remove.
26553         * config/sh/symbian-post.h: Remove.
26554         * config/sh/symbian-pre.h: Remove.
26555         * config/sh/t-symbian: Remove.
26556         * config/svr3.h: Remove.
26557         * config/vax/netbsd.h: Remove.
26558         * config.build: Don't handle i[34567]86-*-pe.
26559         * config.gcc: Remove handling of deprecations for most deprecated
26560         targets.
26561         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26562         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26563         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26564         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26565         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26566         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26567         Remove cases.
26568         * config.host: Don't handle i[34567]86-*-pe.
26569         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26570         (ASM_SPEC32): Don't handle -mcall-gnu.
26571         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26572         -mcall-gnu.
26573         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26574         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26575         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26576         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26577         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26578         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26579         conditional on SYMBIAN.
26580         * configure.ac: Don't handle powerpc*-*-gnu*.
26581         * configure: Regenerate.
26582         * doc/extend.texi (interrupt attribute): Don't mention CRX.
26583         * doc/install-old.texi (m6811, m6812): Don't mention.
26584         * doc/install.texi (arc-*-elf*): Don't document multilib option.
26585         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26586         (m68k-uclinuxoldabi): Don't mention.
26587         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26588         Remove.
26589         (-mcall-gnu): Remove.
26590         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26591         families): Remove constraint documentation.
26592
26593 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
26594
26595         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26596         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26597         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26598
26599 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26600
26601         PR target/48226
26602         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26603         vector when peeking at the next token for vector, don't expand the
26604         keywords.
26605
26606 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
26607
26608         * config/avr/avr-protos.h (expand_epilogue): Change prototype
26609         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26610         * config/avr/avr.c (init_cumulative_args)
26611         (avr_function_arg_advance): Use it.
26612         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26613         sibcall epilogues.
26614         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26615         (avr_function_ok_for_sibcall): ...this new function.
26616         (avr_lookup_function_attribute1): New static Function.
26617         (avr_naked_function_p, interrupt_function_p)
26618         (signal_function_p, avr_OS_task_function_p)
26619         (avr_OS_main_function_p): Use it.
26620         * config/avr/avr.md ("sibcall", "sibcall_value")
26621         ("sibcall_epilogue"): New expander.
26622         ("*call_insn", "*call_value_insn"): New insn.
26623         ("call_insn", "call_value_insn"): Remove
26624         ("call", "call_value", "epilogue"): Change expander to handle
26625         sibling calls.
26626
26627 2011-03-21  Nick Clifton  <nickc@redhat.com>
26628
26629         * doc/invoke.texi (Overall Options): Move closing brace to end of
26630         options list.
26631         (Optimization Options): Add missing @gol.
26632         (Directory Options): Likewise.
26633         (i386 and x86-64 Options): Likewise.
26634         (RS6000 and PowerPC Options): Likewise.
26635         (i386 and x86-64 Windows Options): Likewise.
26636         (V850 Options): Add text missing from descriptions.
26637
26638 2011-03-22  Richard Henderson  <rth@redhat.com>
26639
26640         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26641         (avr_incoming_return_addr_rtx): New.
26642         (emit_push_byte): New.
26643         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
26644         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
26645         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
26646         (emit_pop_byte): New.
26647         (expand_epilogue): Use it.  Pop frame pointer by bytes.
26648         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26649         (INCOMING_RETURN_ADDR_RTX): New.
26650         (INCOMING_FRAME_SP_OFFSET): New.
26651         (ARG_POINTER_CFA_OFFSET): New.
26652         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26653         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26654         (pophi): Remove.
26655
26656         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26657
26658 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26659
26660         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26661         (FUNCTION_ARG_ADVANCE): Likewise.
26662         * tm.texi.in: Change references to them to hook references.
26663         * tm.texi: Regenerate.
26664         * targhooks.c (default_function_arg): Eliminate check for target
26665         macro.
26666         (default_function_incoming_arg): Likewise.
26667         (default_function_arg_advance): Likewise.
26668         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26669         (function_arg_advance): Likewise.
26670         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26671
26672 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26673
26674         * tree.c (build_call_1): New function.
26675         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26676
26677 2011-03-22  Richard Guenther  <rguenther@suse.de>
26678
26679         PR tree-optimization/48228
26680         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26681         for single-arg PHIs.
26682
26683 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
26684
26685         PR rtl-optimization/48143
26686         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26687         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26688         sse2_cvtps2pd): Likewise.
26689
26690 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26691
26692         * recog.c (canonicalize_change_group): Use validate_unshare_change.
26693
26694 2011-03-22  Richard Guenther  <rguenther@suse.de>
26695
26696         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26697         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26698         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26699         and REALIGN_LOAD_EXPR.
26700         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26701         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26702         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26703         DOT_PROD_EXPR case ...
26704         (expand_expr_real_2): ... here.
26705         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26706         and REALIGN_LOAD_EXPR.
26707         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26708         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26709         (vect_create_epilog_for_reduction): Likewise.
26710         (vectorizable_reduction): Likewise.
26711         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26712         * tree-vect-stmts.c (vectorizable_load): Likewise.
26713
26714 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26715
26716         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26717
26718 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26719
26720         * config/s390/s390.c (s390_delegitimize_address): Fix offset
26721         handling for PLTOFF/GOTOFF.
26722
26723 2011-03-22  Nick Clifton  <nickc@redhat.com>
26724
26725         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26726         trailing backslash from the end of the macro definition.
26727
26728 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26729
26730         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26731         and PLT unspecs.
26732
26733 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
26734
26735         * expr.h (prepare_operand): Move to...
26736         * optabs.h (prepare_operand): ...here and change the insn code
26737         parameter from "int" to "enum insn_code".
26738         (insn_operand_matches): Declare.
26739         * expr.c (init_expr_target): Use insn_operand_matches.
26740         (compress_float_constant): Likewise.
26741         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26742         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26743         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26744         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26745         Likewise.
26746         (gen_cond_trap): Likewise.
26747         (prepare_operand): Likewise.  Change icode to an insn_code.
26748         (insn_operand_matches): New function.
26749         * reload.c (find_reloads_address_1): Use insn_operand_matches.
26750         * reload1.c (gen_reload): Likewise.
26751         * targhooks.c (default_secondary_reload): Likewise.
26752
26753 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26754
26755         * config/alpha/alpha.md (unspec): New define_c_enum.
26756         (unspecv): Ditto.
26757
26758 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26759
26760         PR debug/48214
26761         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26762         between a call and its CALL_ARG_LOCATION note.
26763
26764 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
26765
26766         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26767
26768 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26769
26770         PR c/42544
26771         PR c/48197
26772         * c-common.c (shorten_compare): If primopN is first sign-extended
26773         to opN and then zero-extended to result type, set primopN to opN.
26774
26775 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
26776
26777         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26778         for barrier handlers.
26779
26780 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26781
26782         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26783         UNSPEC constants to be in the unspec enumeration, and redefine
26784         all UNSPECV constants to be in the unspecv enumeration, so that
26785         dumps print which unspec/unspec_volatile this is.
26786         * config/rs6000/vector.md (UNSPEC_*): Ditto.
26787         * config/rs6000/paired.md (UNSPEC_*): Ditto.
26788         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26789         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26790         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26791
26792         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26793         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26794         UNSPECV_LWSYNC, since these are used as unspec_volatile.
26795         * config/rs6000/sync.md (isync, lwsync): Ditto.
26796
26797 2011-03-21  Richard Guenther  <rguenther@suse.de>
26798
26799         * params.def (lto-min-partition): Fix typo.
26800
26801 2011-03-21  Richard Guenther  <rguenther@suse.de>
26802
26803         PR c/47939
26804         * c-decl.c (grokdeclarator): Drop to the main variant only
26805         for array types.  Drop flag_gen_aux_info check.
26806
26807 2011-03-21  Richard Guenther  <rguenther@suse.de>
26808
26809         PR translation/47911
26810         * params.def (lto-partitions): Fix typo.
26811         (lto-min-partition): Fix wording.
26812
26813 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
26814
26815         * config/rs6000/t-freebsd: Remove duplication from file.
26816
26817 2011-03-21  Richard Guenther  <rguenther@suse.de>
26818
26819         PR middle-end/47661
26820         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26821
26822 2011-03-21  Richard Guenther  <rguenther@suse.de>
26823
26824         PR lto/48210
26825         * params.def (lto-partitions): Require at least 1 partition.
26826
26827 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26828
26829         * gthr-solaris.h: Remove.
26830         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26831         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26832         (LIB_SPEC): Likewise.
26833         * config/sol2.opt (threads): Remove.
26834         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26835         (sparc*-*-solaris2*): Likewise.
26836         * configure.ac (enable_threads): Enable solaris support.
26837         * configure: Regenerate.
26838         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26839         * doc/install.texi (Configuration, --enable-threads=lib): Remove
26840         solaris.
26841
26842 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26843
26844         * config.gcc: Obsolete *-*-solaris2.8*.
26845         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26846
26847 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26848
26849         PR bootstrap/48135
26850         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26851         reference.  Solaris 8 perl works.
26852
26853 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26854
26855         PR bootstrap/48135
26856         * doc/install.texi (Prerequisites): Move jar etc. up.
26857         Explain support library version requirements.
26858
26859 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26860
26861         PR bootstrap/48135
26862         * doc/install.texi (Prerequisites): Move Perl to build
26863         requirements.  Always necessary on Solaris 2 with Sun ld.
26864
26865 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26866
26867         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26868         binutils 2.21.
26869         (Specific, i?86-*-solaris2.[89]): Likewise.
26870         (Specific, i?86-*-solaris2.10): Likewise.
26871         (Specific, mips-sgi-irix6): Likewise.
26872         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26873         Update for binutils 2.21.
26874
26875 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26876
26877         * configure.ac (gcc_cv_lto_plugin): Fix typo.
26878         Allow -fuse-linker-plugin for non-default plugin linker.
26879         * configure: Regenerate.
26880
26881 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
26882
26883         PR bootstrap/48167
26884         * gengtype.c (files_rules): Added rule for cp/parser.h.
26885
26886 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26887
26888         PR target/48213
26889         * config/s390/s390.c (s390_delegitimize_address): Don't call
26890         lowpart_subreg if orig_x has BLKmode.
26891
26892 2011-03-21  Kai Tietz  <ktietz@redhat.com>
26893
26894         PR target/12171
26895         * doc/plugins.texi: Adjust documentation for plugin register_callback.
26896         * tree.h (attribute_spec): Add new member affects_type_identity.
26897         * attribs.c (empty_attribute_table): Adjust attribute_spec
26898         initializers.
26899         * config/alpha/alpha.c: Likewise.
26900         * config/arc/arc.c: Likewise.
26901         * config/arm/arm.c: Likewise.
26902         * config/avr/avr.c: Likewise.
26903         * config/bfin/bfin.c: Likewise.
26904         * config/crx/crx.c: Likewise.
26905         * config/darwin.h: Likewise.
26906         * config/h8300/h8300.c: Likewise.
26907         * config/i386/cygming.h: Likewise.
26908         * config/i386/i386.c: Likewise.
26909         * config/ia64/ia64.c: Likewise.
26910         * config/m32c/m32c.c: Likewise.
26911         * config/m32r/m32r.c: Likewise.
26912         * config/m68hc11/m68hc11.c: Likewise.
26913         * config/m68k/m68k.c: Likewise.
26914         * config/mcore/mcore.c: Likewise.
26915         * config/mep/mep.c: Likewise.
26916         * config/microblaze/microblaze.c: Likewise.
26917         * config/mips/mips.c: Likewise.
26918         * config/rs6000/rs6000.c: Likewise.
26919         * config/rx/rx.c: Likewise.
26920         * config/sh/sh.c: Likewise.
26921         * config/sol2.h: Likewise.
26922         * config/sparc/sparc.c: Likewise.
26923         * config/spu/spu.c: Likewise.
26924         * config/stormy16/stormy16.c: Likewise.
26925         * config/v850/v850.c: Likewise.
26926
26927 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26928
26929         * simplify-rtx.c (simplify_binary_operation_1): Handle
26930         (xor (and A B) C) case when B and C are both constants.
26931
26932 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26933
26934         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26935
26936 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26937
26938         PR bootstrap/48168
26939         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26940
26941 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26942
26943         PR rtl-optimization/48156
26944         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26945         assume df and df_lr are not NULL.
26946
26947 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26948
26949         PR debug/48023
26950         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26951         between a call and its CALL_ARG_LOCATION note.
26952
26953 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26954
26955         PR debug/48178
26956         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26957         between a call and its corresponding CALL_ARG_LOCATION note.
26958
26959 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26960
26961         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26962         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26963         * haifa-sched.c (setup_ref_regs): Ditto.
26964         * caller-save.c (add_used_regs_1): Ditto.
26965         * dse.c (look_for_hardregs): Ditto.
26966         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26967         * sched-rgn.c (check_live_1): Ditto.
26968
26969 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26970
26971         * c-decl.c (diagnose_mismatched_decls): Give an error for
26972         redefining a typedef with variably modified type.
26973
26974 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26975
26976         * c-decl.c (grokfield): Don't allow typedefs for structures or
26977         unions with no tag by default.
26978         * doc/extend.texi (Unnamed Fields): Update.
26979
26980 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26981
26982         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26983         Rewrite using indirect functions.
26984         (lwp_slwpcb): Ditto.
26985         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26986         (avx_vinsertf128<mode>): Ditto.
26987
26988 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26989
26990         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26991         unspecs.
26992
26993 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26994
26995         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26996         splitting between a call and its corresponding CALL_ARG_LOCATION note.
26997
26998 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
26999
27000         PR rtl-optimization/48170
27001         * gcse.c (hoist_code): Remove bogus asserts.
27002
27003 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
27004
27005         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
27006         computation for prologue/epilogue.
27007
27008 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27009
27010         * Makefile.in (check-consistency): Remove.
27011
27012 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
27013
27014         PR debug/48176
27015         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
27016         arange_table_in_use is 0, but either text_section_used or
27017         cold_text_section_used is true.  Don't call it if
27018         !info_section_emitted.
27019
27020 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
27021
27022         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
27023         FUNCTION_VALUE_REGNO_P): Remove.
27024         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
27025         Remove.
27026         * config/avr/avr.c (avr_ret_register): Make static inline.
27027         (avr_function_value_regno_p): New function.
27028         (avr_libcall_value): Make static. Add 'func' argument.
27029         (avr_function_value): Make static. Rename 'func' argument to
27030         'fn_decl_or_type', forward it to avr_libcall_value. Call
27031         avr_ret_register function instead of RET_REGISTER macro.
27032         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27033
27034 2011-03-18  Jason Merrill  <jason@redhat.com>
27035
27036         PR c++/23372
27037         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
27038
27039 2011-03-18  Richard Guenther  <rguenther@suse.de>
27040
27041         * doc/install.texi (--enable-gold): Remove.
27042         (--with-plugin-ld): Document.
27043         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27044
27045 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
27046
27047         PR middle-end/47790
27048         * expr.c (optimize_bitfield_assignment_op): Revamp to work
27049         again after expansion changes.
27050
27051 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
27052
27053         * combine.c (try_combine): Do simplification only call of
27054         subst() on i2 even when i1 is present. Update comments.
27055
27056 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
27057
27058         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27059         and UNSPEC_PCREL_SYMOFF.
27060
27061 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27062
27063         * config/s390/s390.md: Use define_c_enum for the unspec constant
27064         definitions.
27065
27066 2011-03-18  Richard Henderson  <rth@redhat.com>
27067             Jakub Jelinek  <jakub@redhat.com>
27068
27069         PR bootstrap/48161
27070         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27071         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27072
27073 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
27074
27075         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27076         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27077         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27078         Change return type to bool.
27079         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27080
27081 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27082
27083         PR debug/48163
27084         * var-tracking.c (prepare_call_arguments): If CALL target
27085         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27086         pc instead of looking it up using cselib_lookup and use
27087         Pmode for it if x has VOIDmode.
27088         * dwarf2out.c (gen_subprogram_die): If also both first and
27089         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27090
27091         PR debug/48163
27092         * function.c (assign_parms): For data.passed_pointer parms
27093         use MEM of data.entry_parm instead of data.entry_parm itself
27094         as DECL_INCOMING_RTL.
27095         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27096         also when passed and declared mode is the same, DECL_RTL
27097         is a MEM with pseudo as address and DECL_INCOMING_RTL is
27098         a MEM too.
27099
27100 2011-03-16  Jeff Law  <law@redhat.com>
27101
27102         PR rtl-optimization/37273
27103         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27104         handle them like argument loads from stack slots.  Do not double
27105         count memory for memory constants and argument loads from stack slots.
27106
27107 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27108
27109         PR debug/48160
27110         * var-tracking.c (prepare_call_arguments): Check SUBREG.
27111
27112 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27113
27114         PR target/48171
27115         * config/i386/i386.opt: Add Save to -mavx and -mfma.
27116
27117 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27118
27119         PR bootstrap/48153
27120         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27121         if dwarf_strict.
27122         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27123         Clear call_arg_locations and call_arg_loc_last always.
27124
27125         PR middle-end/48152
27126         * var-tracking.c (prepare_call_arguments): If argument needs to be
27127         passed by reference, adjust argtype and mode.
27128
27129 2011-03-17  Richard Guenther  <rguenther@suse.de>
27130
27131         PR middle-end/48134
27132         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27133         a value make sure to fold the statement.
27134
27135 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
27136
27137         PR target/43872
27138         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27139         return condition with !cfun->calls_alloca.
27140
27141 2011-03-17  Richard Guenther  <rguenther@suse.de>
27142
27143         PR bootstrap/48148
27144         * lto-cgraph.c (input_overwrite_node): Clear the abstract
27145         origin for decls in other ltrans units.
27146         (input_varpool_node): Likewise.
27147
27148 2011-03-17  Richard Guenther  <rguenther@suse.de>
27149
27150         PR middle-end/48165
27151         * tree-object-size.c (compute_object_offset): Properly return
27152         the offset operand of MEM_REFs as sizetype.
27153
27154 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27155
27156         PR rtl-optimization/48141
27157         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27158         * dse.c: Include params.h.
27159         (active_local_stores_len): New variable.
27160         (add_wild_read, dse_step1): Clear it when setting active_local_stores
27161         to NULL.
27162         (record_store, check_mem_read_rtx): Decrease it when removing
27163         from the chain.
27164         (scan_insn): Likewise.  Increase it when adding to chain, if it
27165         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27166         set active_local_stores to NULL before the addition.
27167         * Makefile.in (dse.o): Depend on $(PARAMS_H).
27168
27169         PR rtl-optimization/48141
27170         * dse.c (record_store): If no positions are needed in an insn
27171         that cannot be deleted, at least unchain it from active_local_stores.
27172
27173 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
27174
27175         PR debug/47510
27176         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27177         (lookup_type_die_strip_naming_typedef): ... here.
27178         (get_context_die): Use it.
27179         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27180         the anonymous struct named by the naming typedef.
27181
27182 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27183
27184         PR target/48154
27185         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27186         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27187
27188 2011-03-16  Jeff Law  <law@redhat.com>
27189
27190         * tree-vrp.c (identify_jump_threads): Slightly simplify type
27191         check for operands of conditional.  Allow type to be a pointer.
27192
27193 2011-03-16  Richard Guenther  <rguenther@suse.de>
27194
27195         PR tree-optimization/48149
27196         * fold-const.c (fold_binary_loc): Fold
27197         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27198
27199 2011-03-16  Richard Guenther  <rguenther@suse.de>
27200
27201         PR tree-optimization/26134
27202         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27203         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27204         (non_rewritable_mem_ref_base): Handle complex type component
27205         accesses, constrain offsets for vector and complex extracts
27206         more properly.
27207
27208 2011-03-16  Richard Guenther  <rguenther@suse.de>
27209
27210         PR tree-optimization/48146
27211         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27212         operands avoiding the need for renaming.
27213
27214 2011-03-16  Richard Guenther  <rguenther@suse.de>
27215
27216         * gimple-fold.c (maybe_fold_reference): Open-code relevant
27217         constant folding.  Move MEM_REF canonicalization first.
27218         Rely on fold_const_aggregate_ref for initializer folding.
27219         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27220
27221 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27222
27223         PR middle-end/48136
27224         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27225         arg0/arg1 or their arguments are always fold converted to matching
27226         types.
27227
27228         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27229         to nargs.
27230
27231 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27232
27233         PR lto/46944
27234         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27235         Handle in-tree gold.
27236         (ld_vers): Extract binutils version for gold.
27237         (gcc_cv_ld_hidden): Handle gold here.
27238         (gcc_cv_lto_plugin): Determine level of linker plugin support.
27239         * configure: Regenerate.
27240         * config.in: Regenerate.
27241         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27242         -fuse-linker-plugin otherwise.
27243         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
27244         (LINK_COMMAND_SPEC): Use it.
27245         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27246
27247 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27248
27249         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27250         * calls.c: Remove debug.h include.
27251         (emit_call_1): Don't call virtual_call_token debug hook.
27252         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27253         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27254         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27255         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27256         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27257         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27258         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27259         dwarf2out_virtual_call): Remove.
27260         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27261         copy_call_info and virtual_call hooks.
27262         (dwarf2out_init): Don't initialize vcall_insn_table,
27263         debug_dcall_section and debug_vcall_section.
27264         (prune_unused_types): Don't mark nodes from dcall_table.
27265         (dwarf2out_finish): Don't output dcall or vcall tables.
27266         * final.c (final_scan_insn): Don't call direct_call or
27267         virtual_call debug hooks.
27268         * debug.h (struct gcc_debug_hooks): Remove direct_call,
27269         virtual_call_token, copy_call_info and virtual_call hooks.
27270         (debug_nothing_uid): Remove prototype.
27271         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27272         copy_call_info and virtual_call hooks.
27273         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27274         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27275         * debug.c (do_nothing_debug_hooks): Likewise.
27276         (debug_nothing_uid): Remove.
27277         * doc/invoke.texi (-fenable-icf-debug): Remove.
27278         * common.opt (-fenable-icf-debug): Likewise.
27279
27280         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27281         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27282         call's MEM.  Handle functions returning aggregate through a hidden
27283         first pointer.  For virtual calls add clobbered pc to call arguments
27284         chain.
27285         * dwarf2out.c (gen_subprogram_die): Emit
27286         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27287         can't be emitted.
27288
27289         PR debug/45882
27290         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27291         * rtl.h (ENTRY_VALUE_EXP): Define.
27292         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27293         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27294         * print-rtl.c (print_rtx): Likewise.
27295         * gengtype.c (adjust_field_rtx_def): Likewise.
27296         * var-tracking.c (vt_add_function_parameter): Adjust
27297         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27298         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27299         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27300         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27301         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27302
27303         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27304         Call var_location debug hook even on CALL_INSNs.
27305         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27306         * rtl.def (ENTRY_VALUE): New.
27307         * dwarf2out.c: Include cfglayout.h.
27308         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27309         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27310         (struct call_arg_loc_node): New type.
27311         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27312         tail_call_site_count): New variables.
27313         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27314         DW_TAG_GNU_call_site_parameter.
27315         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27316         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27317         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27318         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27319         and DW_AT_GNU_all_source_call_sites.
27320         (mem_loc_descriptor): Handle ENTRY_VALUE.
27321         (add_src_coords_attributes): Don't add enything if
27322         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27323         (dwarf2out_abstract_function): Save and clear call_arg_location,
27324         call_site_count and tail_call_site_count around dwarf2out_decl call.
27325         (gen_call_site_die): New function.
27326         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27327         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27328         (dwarf2out_function_decl): Clear call_arg_locations,
27329         call_arg_loc_last, set call_site_count and tail_call_site_count
27330         to -1 and free block_map.
27331         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27332         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
27333         followed by any real instructions.
27334         (dwarf2out_begin_function): Set call_site_count and
27335         tail_call_site_count to 0.
27336         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27337         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27338         attempt to force a DIE for it and worst case remove the attribute.
27339         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27340         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27341         the decl itself.
27342         * var-tracking.c: Include tm_p.h.
27343         (vt_stack_adjustments): For calls call note_register_arguments.
27344         (argument_reg_set): New variable.
27345         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27346         ensure the VALUE is resolved.
27347         (call_arguments): New variable.
27348         (prepare_call_arguments): New function.
27349         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27350         (struct expand_loc_callback_data): Add ignore_cur_loc field.
27351         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27352         always use the best expression.
27353         (vt_expand_loc): Add ignore_cur_loc argument.
27354         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27355         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27356         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27357         note for all calls.
27358         (vt_add_function_parameter): Use cselib_lookup_from_insn.
27359         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27360         argument.  Don't call cselib_preserve_only_values and
27361         cselib_reset_table.
27362         (note_register_arguments): New function.
27363         (vt_initialize): Compute argument_reg_set.  Call
27364         vt_add_function_parameters before processing basic blocks instead of
27365         afterwards.  For calls call prepare_call_arguments before calling
27366         cselib_process_insn.
27367         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27368         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27369         (var-tracking.o): Depend on $(TM_P_H).
27370         * cfglayout.h (insn_scope): New prototype.
27371         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27372         * cfglayout.c (insn_scope): No longer static.
27373         * insn-notes.def (CALL_ARG_LOCATION): New.
27374         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27375         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27376         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27377         nothing for DECL_EXTERNAL BLOCK_VARS.
27378
27379 2011-03-16  Alan Modra  <amodra@gmail.com>
27380
27381         PR target/45844
27382         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27383         create invalid offset address for vsx splat insn.
27384         * config/rs6000/predicates.md (splat_input_operand): New.
27385         * config/rs6000/vsx.md (vsx_splat_*): Use it.
27386
27387 2011-03-15  Xinliang David Li  <davidxl@google.com>
27388
27389         PR c/47837
27390         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27391         (normalize_preds): New function.
27392         (is_use_properly_guarded): Normalize def predicates.
27393
27394 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27395
27396         PR target/46788
27397         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27398         in the output template.
27399
27400 2011-03-15  Richard Guenther  <rguenther@suse.de>
27401
27402         PR middle-end/47650
27403         * tree-pretty-print.c (dump_function_declaration): Properly
27404         dump unprototyped and varargs function types.
27405
27406 2011-03-15  Richard Guenther  <rguenther@suse.de>
27407
27408         PR tree-optimization/13954
27409         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27410         and friends.
27411
27412 2011-03-15  Richard Guenther  <rguenther@suse.de>
27413
27414         PR tree-optimization/48037
27415         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27416         selects into BIT_FIELD_REFs.
27417         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27418         vector select.
27419
27420 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
27421
27422         PR tree-optimization/48129
27423         * builtins.c (fold_builtin_snprintf): Convert to type of
27424         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27425         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27426
27427 2011-03-15  Richard Guenther  <rguenther@suse.de>
27428
27429         PR tree-optimization/41490
27430         * tree-ssa-dce.c (propagate_necessity): Handle returns without
27431         value but with VUSE.
27432         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27433         return statements.
27434         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27435         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27436         * tree-tailcall.c (find_tail_calls): Ignore returns.
27437
27438 2011-03-15  Richard Guenther  <rguenther@suse.de>
27439
27440         PR middle-end/48031
27441         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27442         or variable-indexed array accesses when in gimple form.
27443
27444 2011-03-15  Richard Guenther  <rguenther@suse.de>
27445
27446         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27447
27448 2011-03-15  Alan Modra  <amodra@gmail.com>
27449
27450         PR target/48032
27451         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27452         presume symbol_refs without a symbol_ref_decl are suitably
27453         aligned, nor other trees we may see here.  Handle anchor symbols.
27454         (legitimate_constant_pool_address_p): Comment.  Add mode param.
27455         Check cmodel=medium addresses.  Adjust all calls.
27456         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27457         creating cmodel=medium optimized access to locals.
27458         * config/rs6000/constraints.md (R): Pass QImode to
27459         legitimate_constant_pool_address_p.
27460         * config/rs6000/predicates.md (input_operand): Pass mode to
27461         legitimate_constant_pool_address_p.
27462         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27463         Update prototype.
27464
27465 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27466
27467         PR target/48053
27468         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27469         64-bit constants being loaded into registers other than GPRs such
27470         as loading 0 into a VSX register.
27471
27472 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27473
27474         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27475
27476 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27477
27478         PR middle-end/47917
27479         * builtins.c (fold_builtin_snprintf): New function.
27480         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27481         (fold_builtin_4): Likewise.
27482
27483         PR middle-end/38878
27484         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27485         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
27486         and C - X == X also strip nops from +/-/p+ operand.
27487         When optimizing -X == C, fold C to arg0's type.
27488
27489         PR debug/47946
27490         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27491         emit it as add_AT_int instead of add_AT_unsigned.
27492
27493 2011-03-14  Tom Tromey  <tromey@redhat.com>
27494
27495         * unwind-dw2.c: Include sys/sdt.h if it exists.
27496         (_Unwind_DebugHook): Use STAP_PROBE2.
27497         * config.in, configure: Rebuild.
27498         * configure.ac: Check for sys/sdt.h.
27499
27500 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
27501
27502         * config/i386/i386.md (ROUND_FLOOR): New constant.
27503         (ROUND_CEIL): Ditto.
27504         (ROUND_TRUNC): Ditto.
27505         (ROUND_MXCSR): Ditto.
27506         (ROUND_NO_EXC): Ditto.
27507         (rint<mode>2): Use new defines instead of numerical constants.
27508         (floor<mode>2): Ditto.
27509         (ceil<mode>2): Ditto.
27510         (btrunc<mode>2): Ditto.
27511         * config/i386/i386-builtin-types.def: Define ROUND function type
27512         aliases.
27513         * config/i386/i386.c (enum ix86_builtins): Add
27514         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27515         (struct builtin_description): Add
27516         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27517         (ix86_expand_sse_round): New static function.
27518         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27519         function types.
27520         (ix86_builtin_vectorized_function): Handle
27521         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27522
27523 2011-03-14  Tom Tromey  <tromey@redhat.com>
27524
27525         * c-parser.c (c_parser_asm_string_literal): Clear
27526         warn_overlength_strings.
27527
27528 2011-03-14  Tom Tromey  <tromey@redhat.com>
27529
27530         * c-parser.c (disable_extension_diagnostics): Save
27531         warn_overlength_strings.
27532         (restore_extension_diagnostics): Restore warn_overlength_strings.
27533
27534 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27535
27536         * BASE-VER: Change to 4.7.0.
27537
27538 2011-03-14  Richard Guenther  <rguenther@suse.de>
27539
27540         PR middle-end/48098
27541         * tree.c (build_vector_from_val): Adjust assert to requirements
27542         and reality.
27543
27544 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27545
27546         PR bootstrap/48102
27547         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27548
27549 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
27550
27551         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27552         terms of target_flags_explicit. Adjust copyright year.
27553
27554         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27555         * config/rs6000/t-freebsd: New file. Add override for
27556         LIB2FUNCS_EXTRA.
27557
27558 2011-03-13  Chris Demetriou  <cgd@google.com>
27559
27560         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27561         (-fno-diagnostics-show-option): this, to reflect current default.
27562         (-Werror=): Update text about -fno-diagnostics-show-option.
27563
27564 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
27565
27566         PR target/48053
27567         * config/rs6000/predicates.md (easy_vector_constant_add_self,
27568         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27569         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27570         mode is not V2DImode or V2DFmode.
27571         (vspltis_constant): Do not handle V2DImode and V2DFmode.
27572         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27573         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27574         registers to 0.
27575         (movdi_internal64): Likewise.
27576
27577 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
27578
27579         PR tree-optimization/47127
27580         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27581         parameter.
27582         (set_cloog_options): Same.
27583         (scop_to_clast): Same.
27584         (print_clast_stmt): Do not call cloog_state_malloc and
27585         cloog_state_free.
27586         (print_generated_program): Same.
27587         (gloog): Same.
27588         * graphite-clast-to-gimple.h (cloog_state): Declared.
27589         (scop_to_clast): Adjust declaration.
27590         * graphite.c (cloog_state): Defined here.
27591         (graphite_initialize): Call cloog_state_malloc.
27592         (graphite_finalize): Call cloog_state_free.
27593
27594 2011-03-11  Jason Merrill  <jason@redhat.com>
27595
27596         * attribs.c (lookup_attribute_spec): Take const_tree.
27597         * tree.h: Adjust.
27598
27599 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
27600
27601         * config/sparc/sparc.c (sparc_option_override): Use
27602         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27603
27604 2011-03-11  Richard Guenther  <rguenther@suse.de>
27605
27606         PR tree-optimization/48067
27607         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27608         multiplication result will be only used once on the target
27609         stmt.
27610
27611 2011-03-11  Richard Guenther  <rguenther@suse.de>
27612
27613         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27614
27615 2011-03-11  Richard Guenther  <rguenther@suse.de>
27616
27617         PR lto/48073
27618         * tree.c (find_decls_types_r): Do not walk types only reachable
27619         from IDENTIFIER_NODEs.
27620
27621 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27622
27623         PR middle-end/48044
27624         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27625         all vnode->force_output nodes as needed.
27626
27627 2011-03-11  Jason Merrill  <jason@redhat.com>
27628
27629         PR c++/48069
27630         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27631         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27632
27633 2011-03-11  Martin Jambor  <mjambor@suse.cz>
27634
27635         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27636         cgraph_node.
27637
27638 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27639
27640         PR tree-optimization/48063
27641         * ipa-inline.c (cgraph_decide_inlining): Don't try to
27642         inline functions called once if !tree_can_inline_p (node->callers).
27643
27644 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
27645
27646         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27647         extra_objs.
27648         * config/score/score3.c: Delete.
27649         * config/score/score3.h: Delete.
27650         * config/score/mul-div.S: Delete.
27651         * config/score/sfp-machine.h: Add new file.
27652         * config/score/constraints.md: Add new file.
27653         * config/score/t-score-softfp: Add new file.
27654         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27655         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27656         (score7_extra_constraint): Delete.
27657         (score7_option_override): Remove unused code.
27658         * config/score/score.c: Remove score3 and score5 define and code.
27659         * config/score/score.h: Remove score3 and score5 define and code.
27660         * config/score/score.md: Remove score3 template and unusual insn.
27661         * config/score/score.opt: Remove score3 and score5 options.
27662
27663 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27664
27665         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27666         when _HPUX_SOURCE is defined.
27667         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27668
27669 2011-03-10  Jason Merrill  <jason@redhat.com>
27670
27671         PR c++/48029
27672         * stor-layout.c (layout_type): Don't set structural equality
27673         on arrays of incomplete type.
27674         * tree.c (type_hash_eq): Handle comparing them properly.
27675
27676 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27677
27678         PR debug/48043
27679         * config/s390/s390.c (s390_delegitimize_address): Make sure the
27680         result mode matches original rtl mode.
27681
27682 2011-03-10  Nick Clifton  <nickc@redhat.com>
27683
27684         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27685         (andsi3, andsi3_flags): Fix timings for three operand alternative.
27686
27687 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
27688
27689         PR rtl-optimization/47866
27690         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27691         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27692         if target wasn't scalar.
27693         * function.c (assign_stack_temp_for_type): Assert that neither
27694         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27695         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27696         macro.
27697         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27698
27699 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27700
27701         * config/s390/s390-protos.h (s390_label_align): New prototype.
27702         * config/s390/s390.c (s390_label_align): New function.
27703         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27704
27705 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
27706
27707         PR target/47755
27708         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27709         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
27710         (output_vec_const_move): Ditto.
27711
27712 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
27713
27714         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27715         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27716         * config/mips/mips.c (mips_preferred_reload_class): Make static.
27717         Change 'rclass' argument and result type to reg_class_t.
27718         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27719
27720 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
27721
27722         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27723         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27724         (TARGET_MEMORY_MOVE_COST): Define.
27725         (avr_register_move_cost, avr_memory_move_cost): New Functions.
27726
27727 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
27728
27729         PR debug/47881
27730         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27731         removed anything.
27732
27733         PR tree-optimization/48022
27734         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27735         for EQ/NE_EXPR.
27736
27737 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
27738
27739         PR debug/47991
27740         * var-tracking.c (find_use_val): Return NULL for
27741         cui->sets && cui->store_p BLKmode MEMs.
27742
27743 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
27744
27745         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27746         Remove.
27747         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27748         xstormy16_print_operand_address): Remove.
27749         * config/stormy16/stormy16.c (xstormy16_print_operand,
27750         xstormy16_print_operand_address): Make static.
27751         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27752
27753 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
27754
27755         PR target/47862
27756         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27757         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27758         before definition.
27759
27760 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
27761
27762         PR bootstrap/48000
27763         * cfgloopmanip.c (fix_bb_placements): Return immediately
27764         if FROM is BASE_LOOP's header.
27765
27766 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
27767
27768         * gimplify.c (gimplify_function_tree): Fix building calls
27769         to __builtin_return_address.
27770
27771 2011-03-07  Alan Modra  <amodra@gmail.com>
27772
27773         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27774         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27775         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27776         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27777         return_mode args.
27778         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27779         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27780         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27781         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27782         * config/rs6000/rs6000.c
27783         (rs6000_elf_end_indicate_exec_stack): Rename to..
27784         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
27785         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
27786         (rs6000_file_start): ..here.
27787         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27788         file scope variables.
27789         (call_ABI_of_interest): New function.
27790         (init_cumulative_args): Set above vars when function return value
27791         is a float, vector, or small struct.
27792         (rs6000_function_arg_advance_1): Likewise for function args.
27793         (rs6000_va_start): Set rs6000_passes_float if variable arg function
27794         references float args.
27795
27796 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
27797
27798         * doc/cfg.texi: Remove "See" before @ref.
27799         * doc/invoke.texi: Likewise.
27800
27801 2011-03-05  Jason Merrill  <jason@redhat.com>
27802
27803         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27804
27805 2011-03-05  Anthony Green  <green@moxielogic.com>
27806
27807         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27808
27809 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
27810
27811         PR rtl-optimization/47899
27812         * cfgloopmanip.c (fix_bb_placements): Fix first argument
27813         to flow_loop_nested_p when moving the loop upward.
27814
27815 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
27816
27817         PR target/47719
27818         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
27819
27820 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
27821
27822         PR tree-optimization/47967
27823         * ipa-cp.c (build_const_val): Return NULL instead of creating
27824         VIEW_CONVERT_EXPR for mismatching sizes.
27825         (ipcp_create_replace_map): Return NULL if build_const_val failed.
27826         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27827         give up on versioning.
27828
27829 2011-03-05  Alan Modra  <amodra@gmail.com>
27830
27831         PR target/47986
27832         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27833         full cmodel medium/large lo_sum + high addresses.
27834
27835 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27836
27837         * config/s390/s390.c (s390_decompose_address): Reject non-literal
27838         pool references in UNSPEC_LTREL_OFFSET.
27839
27840 2011-03-04  Jan Hubicka  <jh@suse.cz>
27841
27842         PR lto/47497
27843         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27844         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27845         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27846         Add node pointers.
27847         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27848         cgraph_add_thunk): Add node pointers.
27849         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27850         associated to right node.
27851         (input_node): Update use of cgraph_same_body_alias
27852         and cgraph_add_thunk.
27853
27854 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27855
27856         * config/i386/i386.opt (mprefer-avx128): New flag.
27857         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27858         modes when the flag -mprefer-avx128 is on.
27859
27860 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
27861
27862         * dwarf2out.c (compare_loc_operands): Fix address handling.
27863
27864 2011-03-04  Alan Modra  <amodra@gmail.com>
27865
27866         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27867
27868 2011-03-04  Richard Guenther  <rguenther@suse.de>
27869
27870         PR middle-end/47968
27871         * expmed.c (extract_bit_field_1): Prefer vector modes that
27872         vec_extract patterns can handle.
27873
27874 2011-03-04  Richard Guenther  <rguenther@suse.de>
27875
27876         PR middle-end/47975
27877         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27878
27879 2011-03-04  Richard Henderson  <rth@redhat.com>
27880
27881         * explow.c (emit_stack_save): Remove 'after' parameter.
27882         (emit_stack_restore): Likewise.
27883         * expr.h: Update to match.
27884         * builtins.c, calls.c, stmt.c: Likewise.
27885         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27886         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27887         * function.c (expand_function_end): Insert the emit_stack_save
27888         sequence before parm_birth_insn instead of after.
27889
27890 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
27891
27892         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27893         (ssse3_pmaddubsw128): Ditto.
27894         (ssse3_pmaddubsw): Ditto.
27895
27896 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27897
27898         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27899
27900 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27901
27902         PR c/47963
27903         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27904         on TYPE_SIZE_UNIT if it is a DECL.
27905
27906         PR debug/47283
27907         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27908         first operand is not is_gimple_mem_ref_addr, try to fold it.
27909         If the operand still isn't is_gimple_mem_ref_addr, clear
27910         MEM_EXPR on op0.
27911
27912 2011-03-03  Richard Guenther  <rguenther@suse.de>
27913
27914         PR middle-end/47283
27915         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27916         match comment.
27917         (refs_may_alias_p_1): For release branches return true if
27918         we are confused by our input.
27919
27920 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27921
27922         * config/s390/s390.c (s390_function_value): Rename to ...
27923         (s390_function_and_libcall_value): ... this.
27924         (s390_function_value): New function.
27925         (s390_libcall_value): New function.
27926         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27927         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27928         target macro definitions.
27929         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27930
27931 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27932
27933         * config/i386/freebsd64.h (CC1_SPEC): Define.
27934         * config/i386/linux64.h (CC1_SPEC): Define.
27935         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27936
27937 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27938
27939         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27940         Remove.
27941         * config/stormy16/stormy16.c: Include reload.h.
27942         (xstormy16_memory_move_cost): New function.
27943         (TARGET_MEMORY_MOVE_COST): Define.
27944
27945 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27946
27947         PR rtl-optimization/47925
27948         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27949         with side effects.  Remove the more-specific check for volatile asms.
27950
27951 2011-03-02  Alan Modra  <amodra@gmail.com>
27952
27953         PR target/47935
27954         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27955         toc relative addresses for valid offsets.
27956
27957 2011-03-01  Richard Guenther  <rguenther@suse.de>
27958
27959         PR tree-optimization/47890
27960         * tree-vect-loop.c (get_initial_def_for_induction): Set
27961         related stmt properly.
27962
27963 2011-03-01  Richard Guenther  <rguenther@suse.de>
27964
27965         PR lto/47924
27966         * lto-streamer.c (lto_record_common_node): Also register
27967         the canonical type.
27968
27969 2011-03-01  Richard Guenther  <rguenther@suse.de>
27970
27971         PR lto/46911
27972         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27973         Do not stream DECL_ABSTRACT_ORIGIN.
27974         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27975         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27976         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27977         Do not stream DECL_ABSTRACT_ORIGIN.
27978         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27979         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27980
27981 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27982
27983         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27984         FUNCTION_VALUE_REGNO_P): Remove.
27985         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27986         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27987         Add 'outgoing' argument.
27988         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27989         function.
27990         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27991         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27992
27993 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
27994
27995         PR debug/28047
27996         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27997         (lookup_filename): Likewise.
27998         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27999
28000 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
28001             Jakub Jelinek  <jakub@redhat.com>
28002
28003         PR middle-end/47893
28004         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
28005         (assign_stack_local_1): Change last argument type to int.
28006         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
28007         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
28008         don't record padding space into frame_space_list nor use those areas.
28009         (assign_stack_local): Adjust caller.
28010         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
28011         of assign_stack_local, pass 0 as last argument.
28012         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
28013         callers.
28014
28015 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
28016
28017         PR debug/47283
28018         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
28019         Use target address_mode and pointer_mode hooks instead of hardcoded
28020         Pmode and ptr_mode.  Handle some simple cases of extending if
28021         POINTERS_EXTEND_UNSIGNED < 0.
28022         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
28023         Call convert_debug_memory_address.
28024         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
28025         convert_debug_memory_address.
28026
28027         PR middle-end/46790
28028         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
28029         * configure: Regenerated.
28030         * config.in: Regenerated.
28031         * varasm.c (default_function_section): Return NULL
28032         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
28033
28034 2011-02-28  Martin Jambor  <mjambor@suse.cz>
28035
28036         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
28037         the description to match the printed values.
28038
28039 2011-02-28  Richard Guenther  <rguenther@suse.de>
28040
28041         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28042         of the copied scope tree.
28043
28044 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28045
28046         * doc/extend.texi (Function Attributes): Avoid deeply (and
28047         wrongly) nested tables.
28048
28049 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
28050
28051         PR middle-end/47903
28052         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28053         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28054         r isn't op0 nor op1.
28055
28056 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28057
28058         * config/avr/avr.md: Remove magic comment for emacs.
28059
28060 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28061
28062         PR target/45261
28063         * config/avr/avr.c (avr_option_override): Use error on bad options.
28064         (avr_help): New function.
28065         (TARGET_HELP): Define.
28066
28067 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
28068
28069         PR target/42240
28070         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28071         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28072
28073 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
28074
28075         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28076         (ARM Options): Ditto.
28077         (i386 and x86-64 Options): Ditto.
28078         (RX Options): Ditto.
28079         (SPARC Options): Ditto.
28080
28081 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
28082
28083         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28084         FreeBSD 6 and later.  Generally use cpu generic.
28085
28086 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
28087
28088         * doc/cpp.texi: Update copyright years.
28089
28090 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28091
28092         PR target/46898
28093         * config/lm32/lm32.md (ashrsi3): Added needed variable.
28094
28095 2011-02-25  Jon Beniston  <jon@beniston.com>
28096
28097         PR target/46898
28098         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28099         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28100         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28101         (lm32_block_move_inline): Add type cast to remove warning.
28102         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28103         (gen_int_relational): Move declarations to start of function.
28104
28105 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
28106
28107         PR tree-optimization/45470
28108         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28109         can throw internally only.
28110         * tree-vect-stmts.c (vectorizable_call): Likewise.
28111
28112 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
28113
28114         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28115         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28116         * config/stormy16/stormy16-protos.h
28117         (xstormy16_preferred_reload_class): Remove.
28118         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28119         static. Change 'rclass' argument and return type to reg_class_t.
28120         (TARGET_PREFERRED_RELOAD_CLASS,
28121         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28122
28123 2011-02-24  Richard Guenther  <rguenther@suse.de>
28124
28125         * lto-streamer-in.c (input_bb): Do not find referenced vars
28126         in debug statements.
28127
28128 2011-02-23  Jason Merrill  <jason@redhat.com>
28129
28130         * common.opt (fabi-version): Document v5 and v6.
28131
28132 2011-02-23  Richard Guenther  <rguenther@suse.de>
28133
28134         PR tree-optimization/47849
28135         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28136
28137 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28138
28139         * opts-common.c (decode_cmdline_option): Print empty string
28140         argument as "" in decoded->orig_option_with_args_text.
28141         * gcc.c (execute): Print empty string argument as ""
28142         in the verbose output.
28143         (do_spec_1): Keep empty string argument.
28144
28145 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
28146
28147         * config.gcc: Declare score-* and crx-* obsolete.
28148
28149 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28150
28151         PR rtl-optimization/47763
28152         * web.c (web_main): Ignore naked clobber when replacing register.
28153
28154 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
28155
28156         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28157         Remove.
28158
28159 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28160
28161         PR doc/47848
28162         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28163
28164 2011-02-22  Mike Stump  <mikestump@comcast.net>
28165
28166         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28167         assembler.
28168         * configure: Regenerate.
28169
28170 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
28171
28172         PR rtl-optimization/46002
28173         * ira-color.c (update_copy_costs): Change class intersection
28174         test to reg_class_contents[] test of 'hard_regno'.
28175
28176 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
28177
28178         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28179         than Driver option.
28180         * config/hpux11.opt (mt): Likewise.
28181         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28182         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28183         * config/vax/elf.opt (mno-asm-pic): Likewise.
28184         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28185
28186 2011-02-21  Mike Stump  <mikestump@comcast.net>
28187
28188         PR target/47822
28189         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28190         tree so we can get save the type.
28191         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28192         for CFString instead of trying to use past the end of the builtins.
28193         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28194         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28195         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28196         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28197         Rename to darwin_builtin_cfstring.
28198         (darwin_init_cfstring_builtins): Return the built type.
28199
28200 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
28201
28202         PR target/47840
28203         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28204         (_mm256_insert_epi64): Use _mm_insert_epi64.
28205
28206 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
28207
28208         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28209         * config/stormy16/stormy16-protos.h
28210         (xstormy16_mode_dependent_address_p): Remove.
28211         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28212         Make static. Change return type to bool. Change argument type to
28213         const_rtx. Remove dead code.
28214         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28215
28216 2011-02-21  Richard Guenther  <rguenther@suse.de>
28217
28218         PR lto/47820
28219         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28220         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28221         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28222         TUs context.
28223         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28224         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28225
28226 2011-02-20  Richard Guenther  <rguenther@suse.de>
28227
28228         PR lto/47822
28229         * tree.c (free_lang_data_in_decl): Clean builtins from
28230         the TU decl BLOCK_VARS.
28231
28232 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
28233
28234         PR debug/47620
28235         PR debug/47630
28236         * haifa-sched.c (fix_tick_ready): Skip tick computation
28237         for debug insns.
28238
28239 2011-02-19  Richard Guenther  <rguenther@suse.de>
28240
28241         PR lto/47647
28242         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28243         Remove lazy BLOCK_VARS streaming.
28244         (lto_input_ts_block_tree_pointers): Likewise.
28245         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28246
28247 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28248
28249         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28250
28251 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28252
28253         * config/i386/biarch32.h, config/i386/mach.h,
28254         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28255
28256 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
28257
28258         PR target/47800
28259         * config/i386/i386.md (peephole2 for shift and plus): Use
28260         operands[1] original mode in the first insn.
28261
28262 2011-02-18  Mike Stump  <mikestump@comcast.net>
28263
28264         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28265
28266 2011-02-18  Jan Hubicka  <jh@suse.cz>
28267
28268         PR middle-end/47788
28269         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28270         to zero when the function is not inlinable at all.
28271
28272 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28273
28274         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28275         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28276         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28277         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28278         * config/pa/t-pa64: Likewise.
28279         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28280
28281 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28282
28283         PR driver/47787
28284         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28285
28286 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28287
28288         PR target/47792
28289         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28290
28291 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
28292
28293         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28294         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28295         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28296         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28297         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28298         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28299         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28300         m32r_load_postinc_p, m32r_store_preinc_predec_p,
28301         m32r_legitimate_address_p): New functions.
28302         * config/m32r/constraints.md (constraint "S"): Don't use
28303         STORE_PREINC_PREDEC_P.
28304         (constraint "U"): Don't use LOAD_POSTINC_P.
28305
28306 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
28307
28308         PR rtl-optimization/46178
28309         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28310         compute ira_hard_regno_cover_class[].
28311
28312 2011-02-18  Richard Guenther  <rguenther@suse.de>
28313
28314         PR lto/47798
28315         * lto-streamer.h (lto_global_var_decls): Declare.
28316         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28317         statics for global var processing.
28318
28319 2011-02-18  Richard Guenther  <rguenther@suse.de>
28320
28321         PR tree-optimization/47737
28322         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28323         edge dominance check.
28324
28325 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28326
28327         PR debug/47780
28328         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28329         avoid invalid rtx sharing.
28330
28331 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
28332
28333         * doc/cpp.texi (Obsolete Features): Add background on the
28334         origin of assertions.
28335
28336 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
28337
28338         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28339         objc_abi == 2.
28340         * config/darwin.c (output_objc_section_asm_op): Added support for
28341         ABI v1 and v2.
28342         (is_objc_metadata): New.
28343         (darwin_objc2_section): New.
28344         (darwin_objc1_section): New.
28345         (machopic_select_section): Added support for ABI v1 and v2.
28346         (darwin_emit_objc_zeroed): New.
28347         (darwin_output_aligned_bss): Detect objc metadata and treat it
28348         appropriately.
28349         (darwin_asm_output_aligned_decl_common): Same.
28350         (darwin_asm_output_aligned_decl_local): Same.
28351         * config/darwin-sections.def: Updated for ABI v1 and v2.
28352         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28353         compiling Objective-C code for the NeXT runtime, default to using
28354         ABI version 0 for 32-bit, and version 2 for 64-bit.
28355
28356 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28357
28358         * common.opt (optimize_fast): New Variable.
28359         * opts.c (default_options_optimization): Use opts->x_optimize_fast
28360         instead of local variable ofast.
28361
28362 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
28363
28364         * doc/invoke.texi (fobjc-abi-version): Documented.
28365         (fobjc-nilcheck): Documented.
28366         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28367         version.
28368
28369 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28370
28371         PR driver/47390
28372         * common.opt (export-dynamic): New Driver option.
28373         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28374
28375 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28376
28377         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28378
28379 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
28380             Jan Hubicka  <jh@suse.cz>
28381
28382         PR debug/47106
28383         PR debug/47402
28384         * cfgexpand.c (account_used_vars_for_block): Remove.
28385         (estimated_stack_frame_size): Use referenced vars.
28386         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28387         that were referenced in the original function.  Test src_fn
28388         rather than cfun.  Drop redundant get_var_ann.
28389         (setup_one_parameter): Drop redundant get_var_ann.
28390         (declare_return_variable): Likewise.
28391         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28392         (copy_arguments_for_versioning): Drop redundant get_var_ann.
28393         * ipa-inline.c (compute_inline_parameters): Do not compute
28394         disregard_inline_limits here.
28395         (compute_inlinable_for_current, pass_inlinable): New.
28396         (pass_inline_parameters): Require PROP_referenced_vars.
28397         * cgraphunit.c (cgraph_process_new_functions): Don't run
28398         compute_inline_parameters explicitly unless function is in SSA form.
28399         (cgraph_analyze_function): Set .disregard_inline_limits.
28400         * tree-sra.c (convert_callers): Compute inliner parameters
28401         only for functions already in SSA form.
28402
28403 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28404
28405         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28406         -mlittle-endian-data.
28407
28408 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28409
28410         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28411         -mno-fpu, not -fpu and -no-fpu.
28412         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28413         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28414
28415 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
28416
28417         PR target/43653
28418         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28419         input reload with PLUS RTX.
28420
28421 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28422
28423         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28424         of InverseVar(MDMX).
28425
28426 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28427
28428         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28429         --m4-340.
28430
28431 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28432
28433         * config/mn10300/mn10300.opt (mno-crt0): New.
28434
28435 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28436
28437         * config/m68k/uclinux.opt (static-libc): New Driver option.
28438
28439 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28440
28441         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28442
28443 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28444
28445         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28446         %{muser-extend-enabled}.
28447
28448 2011-02-16  Richard Guenther  <rguenther@suse.de>
28449
28450         PR tree-optimization/47738
28451         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28452         the TODO from tree_predictive_commoning.
28453
28454 2011-02-15  Jeff Law  <law@redhat.com>
28455
28456         Revert
28457         2011-01-25  Jeff Law  <law@redhat.com>
28458
28459         PR rtl-optimization/37273
28460         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28461         handle them like argument loads from stack slots.  Do not double
28462         count memory for memory constants and argument loads from stack slots.
28463
28464 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28465
28466         PR target/47755
28467         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28468         mode for vector constants.  Remove code that checks for TImode.
28469
28470 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28471
28472         PR debug/47106
28473         PR debug/47402
28474         * cgraph.h (compute_inline_parameters): Return void.
28475         * ipa-inline.c (compute_inline_parameters): Adjust.
28476
28477 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28478
28479         PR debug/47106
28480         PR debug/47402
28481         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28482         rather than decl.
28483         * cfgexpand.c (estimated_stack_frame_size): Likewise.
28484         * ipa-inline.c (compute_inline_parameters): Adjust.
28485
28486 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28487
28488         PR debug/47106
28489         PR debug/47402
28490         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28491         Adjust all users.  Pass FN to...
28492         * tree-flow-inline.h (first_referenced_var): ... this.  Add
28493         fn argument.
28494         * ipa-struct-reorg.c: Adjust.
28495         * tree-dfa.c: Adjust.
28496         * tree-into-ssa.c: Adjust.
28497         * tree-sra.c: Adjust.
28498         * tree-ssa-alias.c: Adjust.
28499         * tree-ssa-live.c: Adjust.
28500         * tree-ssa.c: Adjust.
28501         * tree-ssanames.c: Adjust.
28502         * tree-tailcall.c: Adjust.
28503
28504 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28505
28506         PR debug/47106
28507         PR debug/47402
28508         * tree-flow.h (referenced_var_lookup): Add fn parameter.
28509         Adjust all callers.
28510         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28511         * tree-flow-inline.h: Adjust.
28512         * gimple-pretty-print.c: Adjust.
28513         * tree-into-ssa.c: Adjust.
28514         * tree-ssa.c: Adjust.
28515         * cfgexpand.c: Adjust.
28516
28517 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28518
28519         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28520         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28521         (EXTRA_CONSTRAINT): Delete.
28522         * config/iq2000/constraints.md: New file.
28523         * config/iq2000/iq2000.md: Include it.
28524         (define_insn ""): Delete.
28525         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28526         unsupported constraint letters from patterns.
28527         (call_value, call_value_internal1): Likewise.
28528         (call_value_multiple_internal1): Likewise.
28529
28530 2011-02-15  Nick Clifton  <nickc@redhat.com>
28531
28532         * config/mn10300/mn10300.c: Include tm-constrs.h.
28533         (struct liw_data): New data structure describing an LIW candidate
28534         instruction.
28535         (extract_bundle): Use struct liw_data.  Allow small integer
28536         operands for some instructions.
28537         (check_liw_constraints): Use struct liw_data.  Remove swapped
28538         parameter.  Add comments describing the checks.  Fix bug when
28539         assigning the source of liw1 to the source of liw2.
28540         (liw_candidate): Delete.  Code moved into extract_bundle.
28541         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
28542         before swapping.
28543         * config/mn10300/predicates.md (liw_operand): New predicate.
28544         Allows registers and small integer constants.
28545         * config/mn10300/constraints.md (O): New constraint.  Accetps
28546         integers in the range -8 to +7 inclusive.
28547         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28548         for moving a small integer into a register.  Give this alternative
28549         LIW attributes.
28550         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28551         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28552         using the J,K,L and M constraints,
28553         (liw): Remove SI mode on second operands to allow for HI and QI
28554         mode values.
28555         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
28556         instruction.
28557
28558 2011-02-15  Richard Guenther  <rguenther@suse.de>
28559
28560         PR tree-optimization/47743
28561         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28562         for a non-type-compatible VN lookup bail out.
28563
28564 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28565
28566         * config/fr30/constraints.md: New file.
28567         * config/fr30/fr30.md: Include it.
28568         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28569         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28570         (EXTRA_CONSTRAINT): Delete.
28571
28572 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28573
28574         * config/frv/constraints.md: New file.
28575         * config/frv/predicates.md: Include it.
28576         * config/frv/frv.c (reg_class_from_letter): Delete.
28577         (frv_option_override): Don't initialize it.
28578         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28579         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28580         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28581         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28582         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28583         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28584         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28585         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28586         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28587         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28588         (REG_CLASS_FROM_CONSTRAINT): Delete.
28589
28590 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
28591
28592         PR middle-end/47581
28593         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28594         if frame size is 0 in a leaf function.
28595
28596 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28597
28598         PR pch/14940
28599         * config/alpha/host-osf.c: New file.
28600         * config/alpha/x-osf: New file.
28601         * config.host (alpha*-dec-osf*): Use it.
28602
28603 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28604
28605         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28606         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28607         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28608         (rx_mode_dependent_address_p): ...this. Make static. Change argument
28609         type to const_rtx.
28610         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28611
28612 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28613
28614         * config/stormy16/constraints.md: New file.
28615         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28616         Use satisfies_constraint_Q and satisfies_constraint_R.
28617         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28618         Delete.
28619         (xstormy16_legitiamte_address_p): Declare.
28620         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28621         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28622         (EXTRA_CONSTRAINT): Delete.
28623         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28624         Un-staticize.
28625         (xstormy16_extra_constraint_p): Delete.
28626
28627 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
28628
28629         PR tree-optimization/46494
28630         * loop-unroll.c (split_edge_and_insert): Adjust comment.
28631         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28632         (pass_rtl_loop_done): Add TODO_verify_flow.
28633         * fwprop.c (pass_rtl_fwprop): Likewise.
28634         * modulo-sched.c (pass_sms): Likewise.
28635         * tree-ssa-dom.c (pass_dominator): Likewise.
28636         * tree-ssa-loop-ch.c (pass_ch): Likewise.
28637         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28638         (pass_tree_loop_done): Likewise.
28639         * tree-ssa-pre.c (execute_pre): Likewise.
28640         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28641         * tree-ssa-sink.c (pass_sink_code): Likewise.
28642         * tree-vrp.c (pass_vrp): Likewise.
28643
28644 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28645
28646         * config/v850/constraints.md: New file.
28647         * config/v850/v850.md: Include it.
28648         * config/v850/predicates.md (reg_or_0_operand): Use
28649         satisfies_constraint_G.
28650         (special_symbolref_operand): Use satisfies_constraint_K.
28651         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28652         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28653         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28654         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28655         (EXTRA_CONSTRAINT): Delete.
28656         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28657         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28658         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28659
28660 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28661
28662         PR target/47696
28663         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28664         description.
28665
28666 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28667
28668         * config/mcore/constraints.md: New file.
28669         * config/mcore/mcore.md: Include it.
28670         * config/mcore/mcore.c (reg_class_from_letter): Delete.
28671         * config/mcore/mcore.h (reg_class_from_letter): Delete.
28672         (REG_CLASS_FROM_LETTER): Delete.
28673         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28674         insn_const_int_ok_for_constraint.
28675         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28676         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28677         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28678         (EXTRA_CONSTRAINT): Delete.
28679
28680 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28681
28682         PR ada/41929
28683         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28684         (IS_SIGHANDLER): Define.
28685         (sparc64_is_sighandler): New function, split off from
28686         sparc64_fallback_frame_state.
28687         (sparc_is_sighandler): New function, split off from
28688         sparc_fallback_frame_state.
28689         (sparc64_fallback_frame_state): Merge with ...
28690         (sparc_fallback_frame_state): ... this into ...
28691         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28692         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
28693         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
28694         stack instead of hardcoded offsets.
28695
28696 2011-02-14  Andriy Gapon  <avg@freebsd.org>
28697
28698         PR target/45808
28699         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28700
28701 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28702
28703         * configure: Regenerate.
28704
28705 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
28706
28707         PR driver/45731
28708         * gcc.c (asm_options): Correct spec matching --target-help.
28709
28710 2011-02-12  Martin Jambor  <mjambor@suse.cz>
28711
28712         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28713         to gimple call error.
28714
28715 2011-02-12  Mike Stump  <mikestump@comcast.net>
28716
28717         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28718         comments in backslash regions.
28719
28720 2011-02-12  Mike Stump  <mikestump@comcast.net>
28721             Jakub Jelinek  <jakub@redhat.com>
28722             Iain Sandoe  <iains@gcc.gnu.org>
28723
28724         PR target/47324
28725         * dwarf2out.c (output_cfa_loc): When required, apply the
28726         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28727         (output_loc_sequence): Likewise.
28728         (output_loc_operands_raw): Likewise.
28729         (output_loc_sequence_raw): Likewise.
28730         (output_cfa_loc): Likewise.
28731         (output_loc_list): Suppress register number adjustment when
28732         calling output_loc_sequence()
28733         (output_die): Likewise.
28734
28735 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
28736
28737         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28738         Remove macros.
28739         * config/xtensa/xtensa.c (xtensa_register_move_cost,
28740         xtensa_memory_move_cost): New functions.
28741         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28742
28743 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
28744
28745         PR lto/47225
28746         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28747         in the current directory.
28748         * configure: Rebuilt.
28749
28750 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28751
28752         * config/darwin.c (darwin_override_options): Add a hunk missed
28753         from the commit of r168571.  Trim comment line lengths and
28754         correct indents of the preceding block.
28755
28756 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28757
28758         * gcc.c (driver_handle_option): Concatenate the argument to -F with
28759         the switch.
28760
28761 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28762
28763         * common.opt (nostartfiles): New Driver option.
28764
28765 2011-02-11  Xinliang David Li  <davidxl@google.com>
28766
28767         PR tree-optimization/47707
28768         * tree-chrec.c (convert_affine_scev): Keep type precision.
28769
28770 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
28771
28772         PR tree-optimization/47420
28773         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28774
28775 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
28776
28777         PR rtl-optimization/47614
28778         * rtl.h (check_for_inc_dec): Declare.
28779         * dse.c (check_for_inc_dec): Externalize...
28780         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28781         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28782
28783 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28784
28785         PR driver/47678
28786         * gcc.c (main): Do not compile inputs if there were errors in
28787         option handling.
28788         * opts-common.c (read_cmdline_option): Check for wrong language
28789         after other error checks.
28790
28791 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
28792
28793         * cgraph.c: Fix comment typos.
28794         * cgraph.h: Likewise.
28795         * cgraphunit.c: Likewise.
28796         * ipa-cp.c: Likewise.
28797         * ipa-inline.c: Likewise.
28798         * ipa-prop.c: Likewise.
28799         * ipa-pure-const.c: Likewise.
28800         * ipa-ref.c: Likewise.
28801         * ipa-reference.c: Likewise.
28802
28803 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28804
28805         PR debug/47684
28806         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28807
28808 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28809
28810         PR testsuite/47400
28811         * doc/sourcebuild.texi (Require Support): Document
28812         dg-require-ascii-locale.
28813
28814 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
28815
28816         * doc/lto.texi (Write summary): Fix missing parentheses.
28817
28818 2011-02-10  DJ Delorie  <dj@redhat.com>
28819
28820         * config/m32c/m32c.c (m32c_option_override): Disable
28821         -fcombine-stack-adjustments until flag value tracking and compare
28822         optimization can be rewritten.
28823
28824 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
28825
28826         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28827         PROCESSOR_POWER7.
28828         (PROCESSOR_DEFAULT64): Likewise.
28829
28830 2011-02-10  Richard Henderson  <rth@redhat.com>
28831
28832         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28833         change from 2011-02-03.
28834         * config/rx/rx.c (flags_from_code): Likewise.
28835         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28836         is valid, n/pz otherwise.
28837         (rx_select_cc_mode): Return CCmode if Y is not zero.
28838
28839 2011-02-10  Richard Guenther  <rguenther@suse.de>
28840
28841         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28842
28843 2011-02-10  Richard Guenther  <rguenther@suse.de>
28844
28845         PR tree-optimization/47677
28846         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28847
28848 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
28849
28850         PR target/47665
28851         * combine.c (make_compound_operation): Only change shifts into
28852         multiplication for SCALAR_INT_MODE_P.
28853
28854 2011-02-10  Jie Zhang  <jie@codesourcery.com>
28855
28856         PR testsuite/47622
28857         Revert
28858         2011-02-05  Jie Zhang  <jie@codesourcery.com>
28859         PR debug/42631
28860         * web.c (entry_register): Don't clobber the number of the
28861         first uninitialized reference in used[].
28862
28863 2011-02-09  Richard Guenther  <rguenther@suse.de>
28864
28865         PR tree-optimization/47664
28866         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28867         all edges again.
28868
28869 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
28870
28871         PR target/46481
28872         PR target/47032
28873         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28874         PROCESSOR_POWER7.
28875         (PROCESSOR_DEFAULT64): Same.
28876         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28877
28878 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28879
28880         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28881
28882 2011-02-09  Martin Jambor  <mjambor@suse.cz>
28883
28884         PR middle-end/45505
28885         * tree-sra.c (struct access): New flags grp_scalar_read and
28886         grp_scalar_write.  Changed description of assignment read and write
28887         flags.
28888         (dump_access): Dump new flags, reorder all of them.
28889         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28890         to detect multiple scalar reads.
28891         (analyze_access_subtree): Use the new scalar read write flags instead
28892         of the old flags.  Adjusted comments.
28893
28894 2011-02-08  DJ Delorie  <dj@redhat.com>
28895
28896         PR target/47548
28897         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28898         patterns.
28899
28900 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28901
28902         * config/m68k/uclinux.opt: New.
28903         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28904
28905 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28906
28907         * config/cris/elf.opt (sim): New Driver option.
28908
28909 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28910
28911         * config/xtensa/elf.opt: New.
28912         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28913
28914 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28915
28916         * config/vax/elf.opt: New.
28917         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28918
28919 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28920
28921         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28922
28923 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28924
28925         * config/gnu-user.opt: New.
28926         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28927         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28928         *-*-uclinux*): Use gnu-user.opt.
28929
28930 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28931
28932         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28933         * config/i386/gnu.h (CPP_SPEC): Likewise.
28934
28935 2011-02-08  Ian Lance Taylor  <iant@google.com>
28936
28937         * common.opt (fcx-limited-range): Add SetByCombined flag.
28938         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28939         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28940         (fassociative-math, freciprocal-math): Likewise.
28941         (funsafe-math-optimizations): Likewise.
28942         * opth-gen.awk: Handle SetByCombined.
28943         * optc-gen.awk: Likewise.
28944         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28945         (set_unsafe_math_optimizations_flags): Likewise.
28946         * doc/options.texi (Option properties): Document SetByCombined.
28947
28948 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28949
28950         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28951         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28952         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28953         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28954         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28955
28956 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28957
28958         PR tree-optimization/46834
28959         PR tree-optimization/46994
28960         PR tree-optimization/46995
28961         * graphite-sese-to-poly.c (used_outside_reduction): New.
28962         (detect_commutative_reduction): Call used_outside_reduction.
28963         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28964         translate_scalar_reduction_to_array only when at least one
28965         loop-phi/close-phi tuple has been detected.
28966
28967 2011-02-08  Richard Guenther  <rguenther@suse.de>
28968
28969         PR middle-end/47639
28970         * tree-vect-generic.c (expand_vector_operations_1): Update
28971         stmts here ...
28972         (expand_vector_operations): ... not here.  Cleanup EH info
28973         and the CFG if required.
28974
28975 2011-02-08  Richard Guenther  <rguenther@suse.de>
28976
28977         PR tree-optimization/47641
28978         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28979         require type compatibility.
28980
28981 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28982
28983         * gimple-low.c (lower_function_body): Don't remove the location of
28984         the return statement here.
28985         (lower_gimple_return): Do it here instead but only if the return
28986         statement is actually used twice.
28987
28988 2011-02-08  Richard Guenther  <rguenther@suse.de>
28989
28990         PR tree-optimization/47632
28991         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28992         unused up_to_stmt parameter, return whether cfg-cleanup is
28993         necessary, remove EH info properly.
28994         (forward_propagate_into_gimple_cond): Adjust caller.
28995         (forward_propagate_into_cond): Likewise.
28996         (forward_propagate_comparison): Likewise.
28997         (tree_ssa_forward_propagate_single_use_vars): Make
28998         forward_propagate_comparison case similar to the two others.
28999
29000 2011-02-08  Nick Clifton  <nickc@redhat.com>
29001
29002         * config/mn10300/mn10300.opt (mliw): New command line option.
29003         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
29004         (liw_bundling): New automaton.
29005         (liw): New attribute.
29006         (liw_op): New attribute.
29007         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
29008         (movsi_internal): Add LIW attributes.
29009         (andsi3): Likewise.
29010         (iorsi3): Likewise.
29011         (xorsi3): Likewise.
29012         (addsi3): Separate register and immediate alternatives.
29013         Add LIW attributes.
29014         (subsi3): Likewise.
29015         (cmpsi): Likewise.
29016         (aslsi3): Likewise.
29017         (lshrsi3): Likewise.
29018         (ashrsi3): Likewise.
29019         (liw): New pattern.
29020         * config/mn10300/mn10300.c (liw_op_names): New
29021         (mn10300_print_operand): Handle 'W' operand descriptor.
29022         (extract_bundle): New function.
29023         (check_liw_constraints): New function.
29024         (liw_candidate): New function.
29025         (mn10300_bundle_liw): New function.
29026         (mn10300_reorg): New function.
29027         (TARGET_MACHINE_DEPENDENT_REORG): Define.
29028         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
29029         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
29030         __LIW__ or __NO_LIW__.
29031         * doc/invoke.texi: Describe the -mliw command line option.
29032
29033 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29034
29035         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
29036         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29037         pthread_mutex_unlock): Remove.
29038         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29039         * config/pa/t-pa64: Likewise.
29040         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29041         shared libc if not linking against libpthread.
29042         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29043
29044 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
29045
29046         PR target/47558
29047         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29048         on 10.6 and later to ensure that we always use the unwinder from
29049         the system.  Only add -no_compact_unwind when tarteting darwin
29050         10.6 or later.
29051
29052 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
29053
29054         PR target/46997
29055         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29056         (vec_interleave_lowv2sf): Ditto.
29057         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29058         (vec_extract_oddv2sf): Ditto.
29059
29060 2011-02-07  Mike Stump  <mikestump@comcast.net>
29061
29062         PR target/42333
29063         Add __ieee_divdc3 entry point.
29064         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29065         entry point.
29066         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29067         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29068         * config/darwin.c (darwin_rename_builtins): Add.
29069         * config/darwin-protos.h (darwin_rename_builtins): Add.
29070
29071 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
29072
29073         PR target/47636
29074         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29075         for the condition.
29076
29077 2011-02-07  Mike Stump  <mikestump@comcast.net>
29078
29079         * config/darwin.opt (mmacosx-version-min): Update default OS version.
29080
29081 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
29082
29083         PR target/47534
29084         * config/avr/libgcc.S (exit): Move .endfunc
29085
29086 2011-02-07  Richard Guenther  <rguenther@suse.de>
29087
29088         PR tree-optimization/47615
29089         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29090         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29091         (run_scc_vn): Initialize it.
29092         (visit_reference_op_load): Use it.
29093         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29094
29095 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29096
29097         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29098         DImode trapping arithmetic libfuncs.
29099
29100 2011-02-07  Richard Guenther  <rguenther@suse.de>
29101
29102         PR tree-optimization/47621
29103         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29104         two duplicates ...
29105         (execute_update_addresses_taken): ... here.  Make it more
29106         conservative in what we accept.
29107
29108 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29109
29110         * config/sparc/freebsd.h (ASM_SPEC): Define.
29111         * config/sparc/vxworks.h (ASM_SPEC): Define.
29112
29113 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29114
29115         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29116
29117 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
29118
29119         * doc/invoke.texi: Remove reference to compiler internals from
29120         user documentation.
29121
29122         * reg-notes.def: Remove REG_VALUE_PROFILE.
29123         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29124
29125 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
29126
29127         PR middle-end/47610
29128         * varasm.c (default_section_type_flags): If decl is NULL,
29129         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29130
29131 2011-02-05  Jie Zhang  <jie@codesourcery.com>
29132
29133         PR debug/42631
29134         * web.c (entry_register): Don't clobber the number of the
29135         first uninitialized reference in used[].
29136
29137 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
29138
29139         PR tree-optimization/46194
29140         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29141         (build_classic_dist_vector_1): Do not represent classic distance
29142         vectors when the access functions are variating in different loops.
29143
29144 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29145
29146         * config/mips/iris6.opt: New.
29147         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29148
29149 2011-02-04  Richard Henderson  <rth@redhat.com>
29150             Steve Ellcey  <sje@cup.hp.com>
29151
29152         PR target/46997
29153         * config/ia64/predicates.md (mux1_brcst_element): New.
29154         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29155         * config/ia64/ia64.c (ia64_unpack_assemble): New.
29156         (ia64_unpack_sign): New.
29157         (ia64_expand_unpack): Rewrite using new routines.
29158         (ia64_expand_widen_sum): Ditto.
29159         (ia64_expand_dot_prod_v8qi): Ditto.
29160         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29161         routines, add endian check.
29162         (pmpy2_even): Rename from pmpy2_r, add endian check.
29163         (pmpy2_odd): Rename from pmpy2_l, add endian check.
29164         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29165         (vec_widen_smult_hi_v4hi): Ditto.
29166         (vec_widen_umult_lo_v4hi): Ditto.
29167         (vec_widen_umult_hi_v4hi): Ditto.
29168         (mulv2si3): Change endian checks.
29169         (sdot_prodv4hi): Rewrite with new calls.
29170         (udot_prodv4hi): New.
29171         (vec_pack_ssat_v4hi): Add endian check.
29172         (vec_pack_usat_v4hi): Ditto.
29173         (vec_pack_ssat_v2si): Ditto.
29174         (max1_even): Rename from max1_r, add endian check.
29175         (max1_odd): Rename from max1_l, add endian check.
29176         (*mux1_rev): Format change.
29177         (*mux1_mix): Ditto.
29178         (*mux1_shuf): Ditto.
29179         (*mux1_alt): Ditto.
29180         (*mux1_brcst_v8qi): Use new predicate.
29181         (vec_extract_evenv8qi): Remove endian check.
29182         (vec_extract_oddv8qi): Ditto.
29183         (vec_interleave_lowv4hi): Format change.
29184         (vec_interleave_highv4hi): Ditto.
29185         (mix2_even): Rename from mix2_r, add endian check.
29186         (mix2_odd): Rename from mux2_l, add endian check.
29187         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29188         (vec_extract_evenodd_helper): Format change.
29189         (vec_extract_evenv4hi): Remove endian check.
29190         (vec_extract_oddv4hi): Remove endian check.
29191         (vec_interleave_lowv2si): Format change.
29192         (vec_interleave_highv2si): Format change.
29193         (vec_initv2si): Remove endian check.
29194         (vecinit_v2si): Add endian check.
29195         (reduc_splus_v2sf): Add endian check.
29196         (reduc_smax_v2sf): Ditto.
29197         (reduc_smin_v2sf): Ditto.
29198         (vec_initv2sf): Remove endian check.
29199         (fpack): Add endian check.
29200         (fswap): Add endian check.
29201         (vec_interleave_highv2sf): Add endian check.
29202         (vec_interleave_lowv2sf): Add endian check.
29203         (fmix_lr): Add endian check.
29204         (vec_setv2sf): Format change.
29205         (*vec_extractv2sf_0_be): Use shift to extract operand.
29206         (*vec_extractv2sf_1_be): New.
29207         (vec_pack_trunc_v4hi): Add endian check.
29208         (vec_pack_trunc_v2si): Format change.
29209
29210 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
29211
29212         PR inline-asm/23200
29213         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
29214         do bb, locus and block comparison and disallow loads if it is not set.
29215         (stmt_is_replaceable_p): New function.
29216         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29217         callers.
29218         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29219         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29220         SSA_NAME_DEF_STMT.
29221         * tree-flow.h (stmt_is_replaceable_p): New prototype.
29222
29223 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29224
29225         * config/rs6000/xilinx.opt: New.
29226         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29227
29228 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29229
29230         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29231
29232 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
29233
29234         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29235         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29236         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29237         secondary_reload_info, xtensa_secondary_reload): Remove.
29238         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29239         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29240         (xtensa_preferred_reload_class): Make static. Change return and
29241         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29242         Use CONST_DOUBLE_P predicate.
29243         (xtensa_preferred_output_reload_class): New function.
29244         (xtensa_secondary_reload): Make static.
29245
29246 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
29247
29248         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29249         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29250         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29251
29252 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29253
29254         PR middle-end/31490
29255         * output.h (SECTION_RELRO): Define.
29256         (SECTION_MACH_DEP): Adjust.
29257         (get_variable_section): New prototype.
29258         * varpool.c (varpool_finalize_named_section_flags): New function.
29259         (varpool_assemble_pending_decls): Call it.
29260         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29261         * cgraphunit.c (cgraph_output_in_order): Call
29262         varpool_finalize_named_section_flags.
29263         * varasm.c (get_section): Allow section flags conflicts between
29264         relro and read-only sections if the section hasn't been declared yet.
29265         Set SECTION_OVERRIDE after diagnosing section type conflict.
29266         (get_variable_section): No longer static.
29267         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29268         readonly sections that need relocations.
29269         (decl_readonly_section_1): New function.
29270         (decl_readonly_section): Use it.
29271
29272         Revert:
29273         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
29274                     Steve Ellcey  <sje@cup.hp.com>
29275
29276         PR middle-end/31490
29277         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29278         if section attribute used.
29279
29280 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29281
29282         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29283         * config/darwin.c (SECTION_NO_ANCHOR): Define.
29284         (darwin_init_sections): Remove assertion.
29285
29286 2011-02-03  Nick Clifton  <nickc@redhat.com>
29287
29288         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29289         lt and ge.
29290         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29291         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29292         instead of "n" and "pz".
29293         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29294         CC_FLAG_S.
29295
29296 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29297
29298         PR target/47312
29299         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29300         fma, expand FMA_EXPR as fma{,f,l} call.
29301
29302         PR lto/47274
29303         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29304         copy them into a unsigned char variable and pass address of it to
29305         lto_output_data_stream.
29306
29307         PR target/47564
29308         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29309         around backend_init_target and lang_dependent_init_target calls.
29310         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29311         (verify_cgraph_node): Don't call set_cfun here.  Use
29312         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29313         Set error_found for incorrectly represented calls to thunks.
29314
29315 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29316
29317         PR debug/43092
29318         PR rtl-optimization/43494
29319         * rtl.h (for_each_inc_dec_fn): New type.
29320         (for_each_inc_dec): Declare.
29321         * rtlanal.c (struct for_each_inc_dec_ops): New type.
29322         (for_each_inc_dec_find_inc_dec): New fn.
29323         (for_each_inc_dec_find_mem): New fn.
29324         (for_each_inc_dec): New fn.
29325         * dse.c (struct insn_size): Remove.
29326         (replace_inc_dec, replace_inc_dec_mem): Remove.
29327         (emit_inc_dec_insn_before): New fn.
29328         (check_for_inc_dec): Use it, along with for_each_inc_dec.
29329         (canon_address): Pass mem modes to cselib_lookup.
29330         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
29331         (cselib_lookup_from_insn): Likewise.
29332         (cselib_subst_to_values): Likewise.
29333         * cselib.c (find_slot_memmode): New var.
29334         (cselib_find_slot): New fn.  Use it instead of
29335         htab_find_slot_with_hash everywhere.
29336         (entry_and_rtx_equal_p): Use find_slot_memmode.
29337         (autoinc_split): New fn.
29338         (rtx_equal_for_cselib_p): Rename and implement in terms of...
29339         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
29340         Deal with autoinc.  Special-case recursion into MEMs.
29341         (cselib_hash_rtx): Likewise.
29342         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
29343         address and MEM modes.
29344         (cselib_subst_to_values): Add memmode, pass it on.
29345         Deal with autoinc.
29346         (cselib_lookup): Add memmode argument, pass it on.
29347         (cselib_lookup_from_insn): Add memmode.
29348         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29349         (struct cselib_record_autoinc_data): New.
29350         (cselib_record_autoinc_cb): New fn.
29351         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
29352         mode to cselib_lookup.  Reset autoinced REGs here instead of...
29353         (cselib_process_insn): ... here.
29354         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29355         to cselib_lookup.
29356         (add_uses): Likewise, also to cselib_subst_to_values.
29357         (add_stores): Likewise.
29358         * sched-deps.c (add_insn_mem_dependence): Pass mode to
29359         cselib_subst_to_values.
29360         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
29361         * gcse.c (do_local_cprop): Adjusted.
29362         * postreload.c (reload_cse_simplify_set): Adjusted.
29363         (reload_cse_simplify_operands): Adjusted.
29364         * sel-sched-dump (debug_mem_addr_value): Pass mode.
29365
29366 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29367
29368         PR tree-optimization/45122
29369         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29370         unsafe assumptions when there's more than one loop exit.
29371
29372 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29373
29374         PR target/47272
29375         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29376         Document using vector double with the load/store builtins, and
29377         that the load/store builtins always use Altivec instructions.
29378
29379         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29380         to use altivec memory instructions, even on VSX.
29381         (vector_altivec_store_<mode>): Ditto.
29382
29383         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29384         function.
29385
29386         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29387         V2DF, V2DI support to load/store overloaded builtins.
29388
29389         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29390         altivec load/store builtins for V2DF/V2DI types.
29391
29392         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29393         set avoid indexed addresses on power6 if -maltivec.
29394         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29395         vector_altivec_load/vector_altivec_store builtins.
29396         (altivec_expand_st_builtin): Ditto.
29397         (altivec_expand_builtin): Add VSX memory builtins.
29398         (rs6000_init_builtins): Add V2DI types to internal types.
29399         (altivec_init_builtins): Add support for V2DF/V2DI altivec
29400         load/store builtins.
29401         (rs6000_address_for_altivec): Insure memory address is appropriate
29402         for Altivec.
29403
29404         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29405         vec_vsx_ld and vec_vsx_st.
29406         (vsx_store_<mode>): Ditto.
29407
29408         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29409         variables to hold long long types for VSX vector memory builtins.
29410         (RS6000_BTI_unsigned_long_long): Ditto.
29411         (long_long_integer_type_internal_node): Ditti.
29412         (long_long_unsigned_type_internal_node): Ditti.
29413
29414         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29415         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29416         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29417
29418         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29419         short cuts.
29420         (vec_vsx_st): Ditto.
29421
29422 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29423
29424         * config/pa/pa-hpux10.opt: New.
29425         * config/hpux11.opt (pthread): New Driver option.
29426         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29427         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29428
29429 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29430
29431         * config/ia64/vms.opt: New.
29432         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29433
29434 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29435
29436         PR target/47580
29437         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29438         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29439         generator functions.
29440         (vsx_floatuns<VSi><mode>2): Ditto.
29441         (vsx_fix_trunc<mode><VSi>2): Ditto.
29442         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29443
29444 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29445
29446         * config/i386/djgpp.opt (posix): New Driver option.
29447
29448 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
29449
29450         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29451         Move to the unsupported targets list.
29452
29453 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
29454
29455         PR rtl-optimization/47525
29456         * df-scan.c: Update copyright years.
29457         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29458         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29459
29460 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29461
29462         * config/i386/sysv4.h (TARGET_VERSION): Remove.
29463         (SUBTARGET_RETURN_IN_MEMORY): Remove.
29464         (ASM_OUTPUT_ASCII): Remove.
29465         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29466
29467 2011-02-02  Jeff Law  <law@redhat.com>
29468
29469         PR middle-end/47543
29470         * reload.c (find_reloads_address): Handle reg+d address where both
29471         components are invalid by reloading the entire address.
29472
29473 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29474             Richard Guenther  <rguenther@suse.de>
29475
29476         PR tree-optimization/40979
29477         PR bootstrap/47044
29478         * passes.c (init_optimization_passes): After LIM call copy_prop
29479         and DCE to clean up.
29480         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29481
29482 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29483
29484         PR tree-optimization/47576
29485         PR tree-optimization/47555
29486         * doc/invoke.texi (scev-max-expr-complexity): Documented.
29487         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29488         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29489         * tree-scalar-evolution.c (follow_ssa_edge): Use
29490         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29491
29492 2011-02-02  Richard Guenther  <rguenther@suse.de>
29493
29494         PR tree-optimization/47566
29495         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29496
29497 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29498
29499         PR debug/47106
29500         PR debug/47402
29501         * tree-inline.c (declare_return_variable): Remove unused caller
29502         variable.
29503
29504         PR debug/47106
29505         PR debug/47402
29506         * tree-flow-inline.h (clear_is_used, is_used_p): New.
29507         * cfgexpand.c (account_used_vars_for_block): Use them.
29508         * tree-nrv.c (tree_nrv): Likewise.
29509         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29510         (dump_scope_block): Likewise.
29511         (remove_unused_locals): Likewise.
29512
29513         PR debug/47106
29514         PR debug/47402
29515         * tree-inline.c (declare_return_variable): Add result decl to
29516         local decls only once.
29517         * gimple-low.c (record_vars_into): Mark newly-created variables
29518         as referenced.
29519
29520 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29521
29522         PR debug/47498
29523         PR debug/47501
29524         PR debug/45136
29525         PR debug/45130
29526         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29527         debug insns.
29528         (no_real_insns_p, schedule_block, set_priorities): Drop special
29529         treatment of boundary debug insns.
29530         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29531         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29532         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29533         (BOUNDARY_DEBUG_INSN_P): Likewise.
29534         (SCHEDULE_DEBUG_INSN_P): Likewise.
29535         * sched-rgn.c (init_ready_list): Drop special treatment of
29536         boundary debug insns.
29537         * final.c (rest_of_clean_state): Clear notes' BB.
29538
29539 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29540
29541         * config/openbsd.opt (assert=): New Driver option.
29542
29543 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29544
29545         * config/i386/nto.opt: New.
29546         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29547
29548 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29549
29550         * config/i386/netware.opt: New.
29551         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29552
29553 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29554
29555         * config/interix.opt (posix): New Driver option.
29556
29557 2011-02-01  DJ Delorie  <dj@redhat.com>
29558
29559         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29560
29561         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29562         class for A0/A1.
29563
29564 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
29565
29566         PR tree-optimization/47561
29567         * toplev.c (process_options): Print the Graphite flags.  Add
29568         flag_loop_flatten to the list of options requiring Graphite.
29569
29570 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29571
29572         * config/i386/cygming.opt (posix): New Driver option.
29573
29574 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29575
29576         * config/arm/vxworks.opt: New.
29577         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29578
29579 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29580
29581         * config/alpha/elf.opt: New.
29582         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29583         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29584
29585 2011-02-01  Richard Guenther  <rguenther@suse.de>
29586
29587         PR tree-optimization/47559
29588         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29589         store-motion on references that can throw.
29590
29591 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
29592
29593         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29594         * tree-pass.h (TDF_CSELIB): New macro.
29595         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29596         cselib_lookup): Check for it rather than for TDF_DETAILS.
29597
29598 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
29599
29600         PR driver/47547
29601         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29602         is HOST_BIT_BUCKET.
29603
29604         * opts.c (finish_options): Don't add x_aux_base_name if it is
29605         HOST_BIT_BUCKET.
29606
29607 2011-02-01  Richard Guenther  <rguenther@suse.de>
29608
29609         PR tree-optimization/47555
29610         Revert
29611         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
29612
29613         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29614
29615 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
29616
29617         PR gcc/46692
29618         * config/lm32/t-lm32: Add multilib for all CPU options.
29619
29620 2011-02-01  Richard Guenther  <rguenther@suse.de>
29621
29622         PR tree-optimization/47541
29623         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29624         sure to have a field at offset zero.
29625
29626 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29627
29628         * config/arc/arc.opt (EB, EL): New Driver options.
29629
29630 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29631
29632         * config/alpha/osf5.opt: New.
29633         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29634
29635 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29636
29637         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29638
29639 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
29640
29641         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29642         -floop-interchange.
29643         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29644         is an alias of -floop-interchange and that it requires the
29645         Graphite infrastructure.
29646         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29647         flag_loop_interchange based on the value of flag_tree_loop_linear.
29648
29649 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
29650             Richard Guenther  <rguenther@suse.de>
29651
29652         PR tree-optimization/47538
29653         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29654         type instead of r1type, except for comparisons.  For right
29655         shifts and comparisons punt if there are mismatches in
29656         sizetype vs. non-sizetype types.
29657
29658 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29659
29660         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29661         avx_runtime.
29662
29663 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29664
29665         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29666         version number.
29667         * configure: Regenerate.
29668
29669 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29670
29671         * configure.ac (gcc_cv_ld_static_option): Define.
29672         (gcc_cv_ld_dynamic_option): Define.
29673         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29674         instead.
29675         (HAVE_LD_STATIC_DYNAMIC): Update message.
29676         (LD_STATIC_OPTION): Define.
29677         (LD_DYNAMIC_OPTION): Define.
29678         * configure: Regenerate.
29679         * config.in: Regenerate.
29680         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29681         HAVE_LD_STATIC_DYNAMIC]: Use them.
29682
29683 2011-01-31  Nick Clifton  <nickc@redhat.com>
29684
29685         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29686         registers inside interrupt handlers if the handler is not a leaf
29687         function.
29688
29689 2011-01-31  Nick Clifton  <nickc@redhat.com>
29690
29691         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29692         reg_renumber returning an INVALID_REGNUM.
29693
29694 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29695
29696         PR libgcj/44341
29697         * doc/install.texi: Document host options discarded when cross
29698         configuring target libraries.
29699
29700 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29701
29702         Reverted:
29703         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29704         PR debug/45136
29705         PR debug/45130
29706         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29707         debug insns.
29708         (no_real_insns_p, schedule_block, set_priorities): Drop special
29709         treatment of boundary debug insns.
29710         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29711         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29712         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29713         (BOUNDARY_DEBUG_INSN_P): Likewise.
29714         (SCHEDULE_DEBUG_INSN_P): Likewise.
29715         * sched-rgn.c (init_ready_list): Drop special treatment of
29716         boundary debug insns.
29717         * final.c (rest_of_clean-state): Clear notes' BB.
29718
29719 2011-01-31  Alan Modra  <amodra@gmail.com>
29720
29721         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29722         toc relative expressions as we do in print_operand_address.
29723
29724 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
29725
29726         * doc/extend.texi: Follow spelling conventions.
29727         * doc/invoke.texi: Fix a typo.
29728
29729 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
29730
29731         * config/hpux11.opt: New.
29732         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29733         ia64*-*-hpux*): Use hpux11.opt.
29734
29735 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
29736
29737         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29738         to tmake_file.
29739
29740 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29741
29742         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29743         support sites.
29744
29745 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29746
29747         * doc/install.texi (Binaries): Remove outdated reference for
29748         Motorola 68HC11/68HC12 downloads.
29749
29750 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29751
29752         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29753         Drepper's paper.
29754
29755 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
29756
29757         PR bootstrap/47147
29758         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29759         used by NetBSD.
29760
29761 2011-01-28  Ahmad Sharif  <asharif@google.com>
29762
29763         * value-prof.c (check_counter): Corrected error message.
29764
29765 2011-01-29  Jie Zhang  <jie@codesourcery.com>
29766
29767         * config/arm/arm.c (arm_legitimize_reload_address): New.
29768         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29769         arm_legitimize_reload_address.
29770         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29771
29772 2011-01-28  Ian Lance Taylor  <iant@google.com>
29773
29774         * godump.c (go_define): Ignore macros whose definitions include
29775         two adjacent operands.
29776
29777 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
29778
29779         PR target/42894
29780         * varasm.c (force_const_mem): Store copy of x in desc->constant
29781         instead of x itself.
29782         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29783         itself into REG_EQUAL note.
29784
29785 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
29786
29787         * config/freebsd.opt (posix, rdynamic): New Driver options.
29788
29789 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29790
29791         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29792         -Bstatic/-Bdynamic.
29793         * configure: Regenerate.
29794
29795 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
29796
29797         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29798         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29799
29800 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
29801
29802         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29803         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29804         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29805         (s390_preferred_reload_class): Make static. Change return and
29806         'rclass' argument type to reg_class_t.
29807
29808 2011-01-27  Jan Hubicka  <jh@suse.cz>
29809
29810         PR middle-end/46949
29811         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29812         (process_function_and_variable_attributes): Check defined weakrefs.
29813
29814 2011-01-27  Martin Jambor  <mjambor@suse.cz>
29815
29816         PR tree-optimization/47228
29817         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29818         build_ref_for_offset.
29819
29820 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29821
29822         * config/spu/spu-elf.h (ASM_SPEC): Remove.
29823
29824 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
29825
29826         PR rtl-optimization/46856
29827         * postreload.c (reload_combine_recognize_const_pattern): Do not
29828         separate cc0 setter and user on cc0 targets.
29829
29830 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
29831
29832         PR c/43082
29833         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29834         passed a VOID_TYPE expression, immediately emit an error and
29835         return error_mark_node.
29836
29837 2011-01-26  Jeff Law  <law@redhat.com>
29838
29839         PR rtl-optimization/47464
29840         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29841         rather than may_trap_p as needed.
29842
29843 2011-01-26  DJ Delorie  <dj@redhat.com>
29844
29845         PR rtl-optimization/46878
29846         * combine.c (insn_a_feeds_b): Check for the implicit cc0
29847         setter/user dependency as well.
29848
29849 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29850
29851         PR rtl-optimization/44469
29852         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29853         after removing trivially dead basic blocks.
29854
29855 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29856
29857         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29858         * config/frv/frv.h (LINK_SPEC): Likewise.
29859         * config/i386/netware.h (LINK_SPEC): Likewise.
29860         * config/m68k/linux.h (ASM_SPEC): Likewise.
29861         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29862         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29863         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29864         * config/sparc/linux.h (ASM_SPEC): Likewise.
29865         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29866         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29867
29868 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29869
29870         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29871         * config/frv/frv.h (ASM_SPEC): Likewise.
29872         * config/m68k/linux.h (ASM_SPEC): Likewise.
29873         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29874         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29875         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29876         * config/sparc/linux.h (ASM_SPEC): Likewise.
29877         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29878         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29879
29880 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29881
29882         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29883         * config/frv/frv.h (LINK_SPEC): Likewise.
29884         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29885
29886 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29887
29888         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29889         * config/frv/frv.h (ASM_SPEC): Likewise.
29890         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29891         * config/m68k/linux.h (ASM_SPEC): Likewise.
29892         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29893         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29894         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29895         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29896         * config/sparc/linux.h (ASM_SPEC): Likewise.
29897         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29898         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29899         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29900
29901 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29902
29903         PR target/46997
29904         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29905         (*mux2): Ditto.
29906         (vec_extract_evenodd_help): Ditto.
29907         (vec_extract_evenv4hi): Ditto.
29908         (vec_extract_oddv4hi): Ditto.
29909         (vec_interleave_lowv2si): Ditto.
29910         (vec_interleave_highv2si): Ditto.
29911         (vec_extract_evenv2si): Ditto.
29912         (vec_extract_oddv2si: Ditto.
29913         (vec_pack_trunc_v2si): Ditto.
29914
29915 2011-01-22  Jan Hubicka  <jh@suse.cz>
29916
29917         PR target/47237
29918         * cgraph.h (cgraph_local_info): New field can_change_signature.
29919         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29920         signature can change.
29921         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29922         can change.
29923         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29924         (cgraph_function_versioning): We can not change signature of functions
29925         that don't allow that.
29926         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29927         (lto_input_node): Likewise.
29928         * ipa-inline.c (compute_inline_parameters): Compute
29929         local.can_change_signature.
29930         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29931         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29932         functions that can not change signature.
29933         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29934         init_cumulative_args): Do not use local calling conventions
29935         for functions that can not change signature.
29936
29937 2011-01-22  Jan Hubicka  <jh@suse.cz>
29938
29939         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29940
29941 2011-01-26  Richard Guenther  <rguenther@suse.de>
29942
29943         PR tree-optimization/47190
29944         * cgraphunit.c (process_common_attributes): New function.
29945         (process_function_and_variable_attributes): Use it.
29946
29947 2011-01-26  Richard Guenther  <rguenther@suse.de>
29948
29949         PR lto/47423
29950         * cgraphbuild.c (record_eh_tables): Record reference to personality
29951         function.
29952
29953 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29954
29955         PR debug/45454
29956         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29957         non-debug insns from moving up.
29958
29959 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29960
29961         PR target/40125
29962         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29963         t-dlldir{,-x} fragment for build and add it to tmake_file.
29964         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29965         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29966         * config/i386/t-dlldir: New file.
29967         (SHLIB_DLLDIR): Define.
29968         * config/i386/t-dlldir-x: New file.
29969         (SHLIB_DLLDIR): Define.
29970         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29971         (SHLIB_INSTALL): Use it.
29972
29973 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29974
29975         PR target/47246
29976         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29977         lower bound of the allowed Thumb-2 coprocessor load/store
29978         index range to -256. Add explaining comment.
29979
29980 2011-01-25  Ian Lance Taylor  <iant@google.com>
29981
29982         * godump.c (go_define): Improve lexing of macro expansion to only
29983         accept expressions which match Go spec.
29984
29985 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29986
29987         PR c++/43601
29988         * tree.c (handle_dll_attribute): Handle it.
29989         * doc/extend.texi (@item dllexport): Mention it.
29990         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29991
29992 2011-01-25  Ian Lance Taylor  <iant@google.com>
29993
29994         PR tree-optimization/26854
29995         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29996         (decl_jump_unsafe): Move higher in file, with no other change.
29997         (bind): Set has_jump_unsafe_decl if appropriate.
29998         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29999         (check_earlier_gotos): Likewise.
30000         (c_check_switch_jump_warnings): Likewise.
30001
30002 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
30003
30004         * doc/invoke.texi (Warning Options): Add missing hyphen.
30005         (-fprofile-dir): Minor grammatical fixes.
30006         (-fbranch-probabilities): Likewise.
30007
30008 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
30009
30010         PR debug/45136
30011         PR debug/45130
30012         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30013         debug insns.
30014         (no_real_insns_p, schedule_block, set_priorities): Drop special
30015         treatment of boundary debug insns.
30016         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30017         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30018         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30019         (BOUNDARY_DEBUG_INSN_P): Likewise.
30020         (SCHEDULE_DEBUG_INSN_P): Likewise.
30021         * sched-rgn.c (init_ready_list): Drop special treatment of
30022         boundary debug insns.
30023         * final.c (rest_of_clean-state): Clear notes' BB.
30024
30025 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30026
30027         * Makefile.in (LAMBDA_H): Removed.
30028         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
30029         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
30030         lambda-trans.o, and tree-loop-linear.o.
30031         (lto-symtab.o): Remove dependence on LAMBDA_H.
30032         (tree-loop-linear.o): Remove rule.
30033         (lambda-mat.o): Same.
30034         (lambda-trans.o): Same.
30035         (lambda-code.o): Same.
30036         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
30037         (tree-vect-slp.o): Same.
30038         * hwint.h (gcd): Moved here.
30039         (least_common_multiple): Same.
30040         * lambda-code.c: Removed.
30041         * lambda-mat.c: Removed.
30042         * lambda-trans.c: Removed.
30043         * lambda.h: Removed.
30044         * tree-loop-linear.c: Removed.
30045         * lto-symtab.c: Do not include lambda.h.
30046         * omega.c (gcd): Removed.
30047         * passes.c (init_optimization_passes): Remove pass_linear_transform.
30048         * tree-data-ref.c (print_lambda_vector): Moved here.
30049         (lambda_vector_copy): Same.
30050         (lambda_matrix_copy): Same.
30051         (lambda_matrix_id): Same.
30052         (lambda_vector_first_nz): Same.
30053         (lambda_matrix_row_add): Same.
30054         (lambda_matrix_row_exchange): Same.
30055         (lambda_vector_mult_const): Same.
30056         (lambda_vector_negate): Same.
30057         (lambda_matrix_row_negate): Same.
30058         (lambda_vector_equal): Same.
30059         (lambda_matrix_right_hermite): Same.
30060         * tree-data-ref.h: Do not include lambda.h.
30061         (lambda_vector): Moved here.
30062         (lambda_matrix): Same.
30063         (dependence_level): Same.
30064         (lambda_transform_legal_p): Removed declaration.
30065         (lambda_collect_parameters): Same.
30066         (lambda_compute_access_matrices): Same.
30067         (lambda_vector_gcd): Same.
30068         (lambda_vector_new): Same.
30069         (lambda_vector_clear): Same.
30070         (lambda_vector_lexico_pos): Same.
30071         (lambda_vector_zerop): Same.
30072         (lambda_matrix_new): Same.
30073         * tree-flow.h (least_common_multiple): Removed declaration.
30074         * tree-parloops.c (lambda_trans_matrix): Moved here.
30075         (LTM_MATRIX): Same.
30076         (LTM_ROWSIZE): Same.
30077         (LTM_COLSIZE): Same.
30078         (LTM_DENOMINATOR): Same.
30079         (lambda_trans_matrix_new): Same.
30080         (lambda_matrix_vector_mult): Same.
30081         (lambda_transform_legal_p): Same.
30082         * tree-pass.h (pass_linear_transform): Removed declaration.
30083         * tree-ssa-loop.c (tree_linear_transform): Removed.
30084         (gate_tree_linear_transform): Removed.
30085         (pass_linear_transform): Removed.
30086         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30087         flag_loop_interchange.
30088
30089 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30090
30091         PR tree-optimization/47265
30092         PR tree-optimization/47443
30093         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30094         if name still has some uses.
30095
30096 2011-01-25  Martin Jambor  <mjambor@suse.cz>
30097
30098         PR tree-optimization/47382
30099         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30100         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30101
30102 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
30103
30104         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30105         sjlj_except_unwind_info.
30106
30107 2011-01-25  Richard Guenther  <rguenther@suse.de>
30108
30109         PR tree-optimization/47426
30110         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30111         visible functions results escape.
30112
30113 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30114
30115         PR target/45701
30116         * config/arm/arm.c (any_sibcall_uses_r3): New function.
30117         (arm_get_frame_offsets): Use it.
30118
30119 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30120             Jakub Jelinek  <jakub@redhat.com>
30121
30122         PR tree-optimization/47271
30123         * tree-if-conv.c (bb_postdominates_preds): New.
30124         (if_convertible_bb_p): Call bb_postdominates_preds.
30125         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30126         (predicate_scalar_phi): Call bb_postdominates_preds.
30127
30128 2011-01-25  Nick Clifton  <nickc@redhat.com>
30129
30130         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30131         * config/rx/rx.c (rx_function_value): Likewise.
30132         (rx_promote_function_mode): Likewise.
30133         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30134         in order to make it legitimate.
30135         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30136         make sure that the first operand is the same as the result register.
30137         (addsi3_unspec): Delete.
30138         (subdi3): Do not accept immediate operands.
30139         (subdi3_internal): Likewise.
30140
30141 2011-01-25  Jeff Law  <law@redhat.com>
30142
30143         PR rtl-optimization/37273
30144         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30145         handle them like argument loads from stack slots.  Do not double
30146         count memory for memory constants and argument loads from stack slots.
30147
30148 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30149
30150         PR tree-optimization/47427
30151         PR tree-optimization/47428
30152         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30153         coalesce if the new root var would be TREE_READONLY.
30154
30155 2011-01-25  Richard Guenther  <rguenther@suse.de>
30156
30157         PR middle-end/47414
30158         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30159         correct type for TBAA.
30160
30161 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30162
30163         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30164         (close_phi_written_to_memory): Call for_each_index with
30165         dr_indices_valid_in_loop.
30166
30167 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30168
30169         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30170         when it is initialized.
30171
30172 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30173
30174         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30175         call to graphite_find_data_references_in_stmt.
30176         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30177         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
30178         call to graphite_find_data_references_in_stmt.
30179         (analyze_drs_in_stmts): Same.
30180         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30181         in which the scalar analysis of indices is performed.
30182         (create_data_ref): Same.  Update call to dr_analyze_indices.
30183         (find_data_references_in_stmt): Update call to create_data_ref.
30184         (graphite_find_data_references_in_stmt): Same.
30185         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30186         declaration.
30187         (create_data_ref): Same.
30188         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30189         call to create_data_ref.
30190
30191 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30192
30193         * graphite-sese-to-poly.c (build_poly_scop): Move
30194         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30195
30196 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30197
30198         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30199         VAR_DECL, PARM_DECL, and RESULT_DECL.
30200
30201 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30202
30203         * graphite-dependences.c (reduction_dr_1): Allow several reductions
30204         in a reduction PBB.
30205         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30206         that have already been marked as PBB_IS_REDUCTION.
30207
30208 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30209
30210         * graphite-scop-detection.c (same_close_phi_node): New.
30211         (remove_duplicate_close_phi): New.
30212         (make_close_phi_nodes_unique): New.
30213         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30214
30215 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30216
30217         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30218         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30219         of both data references to be the same.
30220
30221 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30222
30223         * graphite-dependences.c (build_lexicographical_constraint): Remove
30224         the gdim parameter.
30225         (build_lexicographical_constraint): Adjust call to
30226         ppl_powerset_is_empty.
30227         (dependence_polyhedron): Same.
30228         (graphite_legal_transform_dr): Same.
30229         (graphite_carried_dependence_level_k): Same.
30230         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30231         parameter.
30232         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30233
30234 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30235
30236         * graphite-sese-to-poly.c
30237         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30238         (close_phi_written_to_memory): New.
30239         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30240         and unshare_expr.
30241
30242 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30243
30244         * doc/install.texi: Update the expected version number of PPL to 0.11.
30245         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30246         #if PPL_VERSION_MINOR < 11.
30247
30248 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30249
30250         * graphite-dependences.c: Include graphite-cloog-util.h.
30251         (new_poly_ddr): Inlined into dependence_polyhedron.
30252         (free_poly_ddr): Moved close by new_poly_ddr.
30253         (dependence_polyhedron_1): Renamed dependence_polyhedron.
30254         Early return NULL when ppl_powerset_is_empty returns true.
30255         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
30256         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
30257         (graphite_legal_transform_dr): Call new_poly_ddr.
30258         (graphite_carried_dependence_level_k): Same.
30259         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
30260         (dot_transformed_deps_stmt_1): Removed.
30261         (dot_deps_stmt_1): Call dot_deps_stmt_2.
30262         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
30263         (dot_deps_1): Call dot_deps_2.
30264         * Makefile.in (graphite-dependences.o): Add missing dependence on
30265         graphite-cloog-util.h.
30266
30267 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30268
30269         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30270         (build_lexicographical_constraint): Same.
30271         (dependence_polyhedron_1): Same.
30272         (graphite_legal_transform_dr): Same.
30273         (graphite_carried_dependence_level_k): Same.
30274         * graphite-ppl.c (ppl_powerset_is_empty): New.
30275         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30276         * tree-data-ref.c (dump_data_reference): Print the basic block index.
30277
30278 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30279
30280         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30281         the "a followed by b" relation and document it.
30282
30283 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30284
30285         * graphite-dependences.c (build_lexicographical_constraint): Stop the
30286         iteration when the bag of constraints is empty.
30287
30288 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30289
30290         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30291
30292 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30293
30294         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30295         nest and two loop depths as parameters.
30296         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30297         lst_perfect_nestify.
30298
30299 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30300
30301         * graphite-dependences.c (print_pddr): Call
30302         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30303
30304 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30305
30306         * graphite-ppl.c (debug_gmp_value): New.
30307         * graphite-ppl.h (debug_gmp_value): Declared.
30308
30309 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
30310
30311         * doc/install.texi: Document availability of cloog-0.16.
30312
30313 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
30314
30315         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30316         invalid postdominance info.
30317
30318 2011-01-24  Jan Hubicka  <jh@suse.cz>
30319
30320         PR c/21659
30321         * doc/extend.texi (weak pragma): Drop claim that it must
30322         appear before definition.
30323         * varasm.c (merge_weak, declare_weak): Only sanity check
30324         that DECL is not output at a time it is declared weak.
30325
30326 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
30327
30328         * machmode.def: Fixed comments.
30329
30330 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
30331
30332         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30333
30334 2011-01-24  Paul Koning  <ni1d@arrl.net>
30335
30336         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30337         WORDS_BIG_ENDIAN.
30338
30339 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30340
30341         PR target/46519
30342         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30343         (block_info): Add scanned and prev.
30344         (move_or_delete_vzeroupper_2): Return if the basic block
30345         has been scanned and the upper 128bit state is unchanged
30346         from the last scan.
30347         (move_or_delete_vzeroupper_1): Return true if the exit
30348         state is changed.
30349         (move_or_delete_vzeroupper): Visit basic blocks using the
30350         work-list based algorithm based on vt_find_locations in
30351         var-tracking.c.
30352
30353         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30354
30355 2011-01-24  Nick Clifton  <nickc@redhat.com>
30356
30357         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30358         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30359         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
30360         then define __v850e1__.
30361         * doc/invoke.texi: Document -mv850es.
30362
30363 2011-01-24  Richard Henderson  <rth@redhat.com>
30364
30365         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30366         compound unordered comparisons.
30367         * config/rx/rx.c (rx_split_fp_compare): Remove.
30368         * config/rx/rx-protos.h: Update.
30369         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30370         (cbranchsf4): Don't call rx_split_fp_compare.
30371         (*cbranchsf4): Use rx_split_cbranch.
30372         (*cmpsf): Don't accept "i" constraint.
30373         (*conditional_branch): Only valid after reload.
30374         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
30375
30376 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30377
30378         PR target/47385
30379         * config/rs6000/altivec.md (vector constant splitters): Add
30380         support for creating vector single precision constants if -mvsx is
30381         used and we would create the constant using Altivec primitives.
30382
30383 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
30384             Richard Sandiford  <rdsandiford@googlemail.com>
30385
30386         PR rtl-optimization/47166
30387         * reload1.c (emit_reload_insns): Disable the spill_reg_store
30388         mechanism for PRE_MODIFY and POST_MODIFY.
30389         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30390         reloadreg.
30391
30392 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
30393
30394         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30395
30396 2011-01-22  Jan Hubicka  <jh@suse.cz>
30397
30398         PR lto/47333
30399         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30400
30401 2011-01-22  Jan Hubicka  <jh@suse.cz>
30402
30403         PR tree-optimization/43884
30404         PR lto/44334
30405         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30406         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30407
30408 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
30409
30410         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30411         * config/s390/s390.c (s390_register_move_cost,
30412         s390_memory_move_cost): New.
30413         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30414
30415 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30416
30417         PR middle-end/47401
30418         * except.c (sjlj_assign_call_site_values): Move setting the
30419         crtl->uses_eh_lsda flag to ...
30420         (sjlj_mark_call_sites): ... here.
30421         (sjlj_emit_function_enter): Support NULL dispatch label.
30422         (sjlj_build_landing_pads): In a function with no landing pads
30423         that still has must-not-throw regions, generate code to register
30424         a personality function with empty LSDA.
30425
30426 2011-01-21  Richard Henderson  <rth@redhat.com>
30427
30428         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30429
30430         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30431
30432         * compare-elim.c: New file.
30433         * Makefile.in (OBJS-common): Add it.
30434         (compare-elim.o): New.
30435         * common.opt (fcompare-elim): New.
30436         * opts.c (default_options_table): Add OPT_fcompare_elim.
30437         * tree-pass.h (pass_compare_elim_after_reload): New.
30438         * passes.c (init_optimization_passes): Add it.
30439         * recog.h: Protect against re-inclusion.
30440         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30441         * doc/invoke.texi (-fcompare-elim): Document it.
30442         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30443         * doc/tm.texi: Rebuild.
30444
30445 2011-01-22  Nick Clifton  <nickc@redhat.com>
30446
30447         * config/rx/rx.md (cstoresf4): Pass comparison operator to
30448         rx_split_fp_compare.
30449
30450 2011-01-22  Nick Clifton  <nickc@redhat.com>
30451
30452         * config/rx/rx.md (UNSPEC_CONST): New.
30453         (deallocate_and_return): Wrap the amount popped off the stack in
30454         an UNSPEC_CONST in order to stop it being rejected by
30455         -mmax-constant-size.
30456         (pop_and_return): Add a "(return)" rtx.
30457         (call): Drop the immediate operand.
30458         (call_internal): Likewise.
30459         (call_value): Likewise.
30460         (call_value_internal): Likewise.
30461         (sibcall_internal): Likewise.
30462         (sibcall_value_internal): Likewise.
30463         (sibcall): Likewise.  Generate an explicit call using
30464         sibcall_internal.
30465         (sibcall_value): Likewise.
30466         (mov<>): FAIL if a constant operand is not legitimate.
30467         (addsi3_unpsec): New pattern.
30468
30469         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30470         (ok_for_max_constant): New function.
30471         (gen_safe_add): New function.
30472         (rx_expand_prologue): Use gen_safe_add.
30473         (rx_expand_epilogue): Likewise.
30474         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
30475         UNSPEC CONSTs.
30476
30477 2011-01-21  Jeff Law  <law@redhat.com>
30478
30479         PR tree-optimization/47053
30480         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30481         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30482         statements are deleted.
30483         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
30484         is nonempty, then purge dead edges and cleanup the CFG.
30485
30486 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30487
30488         PR debug/47402
30489         Temporarily revert:
30490         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30491         PR debug/47106
30492         * tree-dfa.c (create_var_ann): Mark variable as used.
30493
30494 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30495
30496         PR middle-end/45566
30497         * except.c (convert_to_eh_region_ranges): Emit queued no-region
30498         notes from other section in hot/cold partitioning even if
30499         last_action is -3.  Increment call_site_base.
30500
30501         PR rtl-optimization/47366
30502         * fwprop.c (forward_propagate_into): Return bool.  If
30503         any changes are made, -fnon-call-exceptions is used and
30504         REG_EH_REGION note is present, call purge_dead_edges
30505         and return true if it purged anything.
30506         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30507         any EH edges were purged.
30508
30509 2011-01-21  Jeff Law  <law@redhat.com>
30510
30511         PR rtl-optimization/41619
30512         * caller-save.c (setup_save_areas): Break out code to determine
30513         which hard regs are live across calls by examining the reload chains
30514         so that it is always used.
30515         Eliminate code which checked REG_N_CALLS_CROSSED.
30516
30517 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30518
30519         PR tree-optimization/47355
30520         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30521         NOP has non-debug uses beyond PHIs in new_bb.
30522
30523 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30524
30525         PR debug/47106
30526         * cfgexpand.c (account_used_vars_for_block): Only account vars
30527         that are annotated as used.
30528         (estimated_stack_frame_size): Don't set TREE_USED.
30529         * tree-dfa.c (create_var_ann): Mark variable as used.
30530
30531 2011-01-21  Richard Guenther  <rguenther@suse.de>
30532
30533         PR middle-end/47395
30534         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30535
30536 2011-01-21  Richard Guenther  <rguenther@suse.de>
30537
30538         PR tree-optimization/47365
30539         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30540         (vn_reference_lookup_pieces): Adjust.
30541         (vn_reference_lookup): Likewise.
30542         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30543         (vn_reference_lookup_3): Only look through kills if in
30544         VN_WALKREWRITE mode.
30545         (vn_reference_lookup_pieces): Adjust.
30546         (vn_reference_lookup): Likewise.
30547         (visit_reference_op_load): Likewise.
30548         (visit_reference_op_store): Likewise.
30549         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30550         (compute_avail): Likewise.
30551         (eliminate): Likewise.
30552
30553 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30554
30555         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30556         DECL_IGNORED_P non-reg vars if they are used.
30557
30558         PR tree-optimization/47391
30559         * varpool.c (const_value_known_p): Return false if
30560         decl is volatile.
30561
30562 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
30563
30564         PR bootstrap/47215
30565         * config/i386/i386.c (ix86_local_alignment): Handle
30566         case for va_list_type_node is nil.
30567         (ix86_canonical_va_list_type): Likewise.
30568
30569 2011-01-21  Alan Modra  <amodra@gmail.com>
30570
30571         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30572         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30573
30574 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30575
30576         * config/arm/arm.md (define_attr type): Rename f_load
30577         and f_store to f_fpa_load and f_fpa_store. Update.
30578         (write_conflict): Deal with rename fallout.
30579         (*push_fp_multi): Likewise.
30580         * config/arm/fpa.md (f_load): Use f_fpa_load.
30581         (f_store): Use f_fpa_store.
30582         (*movsf_fpa): Likewise.
30583         (*movdf_fpa): Likewise.
30584         (*movxf_fpa): Likewise.
30585         (*thumb2_movsf_fpa): Likewise.
30586         (*thumb2_movdf_fpa): Likewise.
30587         (*thumb2_movxf_fpa): Likewise.
30588         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30589         f_loadd and f_stored.
30590         (*thumb2_movdi_vfp): Likewise.
30591         (*thumb2_movsf_vfp): Fix attribute to f_loads.
30592         (*thumb2_movsi_vfp): Likewise.
30593         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30594         Use f_loads instead of f_load.
30595         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30596
30597 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
30598
30599         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30600         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30601         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30602         (xtensa_mode_dependent_address_p): New function.
30603         (constantpool_address_p): Make static. Change return type to bool.
30604         Change argument type to const_rtx. Use CONST_INT_P predicate.
30605
30606 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
30607
30608         PR debug/46583
30609         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30610
30611 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30612
30613         PR debug/47283
30614         * cfgexpand.c (expand_debug_expr): Instead of generating
30615         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30616         etc. handling.
30617
30618 2011-01-20  Richard Guenther  <rguenther@suse.de>
30619
30620         PR middle-end/47370
30621         * tree-inline.c (remap_gimple_op_r): Recurse manually for
30622         the pointer operand of MEM_REFs.
30623
30624 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30625
30626         PR tree-optimization/46130
30627         * ipa-split.c (consider_split): If return_bb contains non-virtual
30628         PHIs other than for retval or if split_function would not adjust it,
30629         refuse to split.
30630
30631 2011-01-20  Richard Guenther  <rguenther@suse.de>
30632
30633         PR tree-optimization/47167
30634         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30635         Revert previous change, only avoid enumeral type changes.
30636
30637 2011-01-19  Mike Stump  <mikestump@comcast.net>
30638
30639         * doc/tm.texi.in (BRANCH_COST): Englishify.
30640         * doc/tm.texi (BRANCH_COST): Likewise.
30641
30642 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
30643
30644         PR c++/47291
30645         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30646         (gen_scheduled_generic_parms_dies): New functions.
30647         (gen_struct_or_union_type_die): Schedule template parameters DIEs
30648         generation for the end of CU compilation.
30649         (dwarf2out_finish): Generate template parameters DIEs here.
30650
30651 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30652
30653         PR debug/46240
30654         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30655         debug bind stmt on merge edges.
30656
30657 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30658
30659         PR debug/47079
30660         PR debug/46724
30661         * function.c (instantiate_expr): Instantiate incoming rtl of
30662         implicit arguments, and recurse on VALUE_EXPRs.
30663         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30664         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30665
30666 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30667
30668         * c-parser.c (c_parser_for_statement): Initialize
30669         collection_expression.
30670
30671 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30672
30673         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30674
30675 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30676
30677         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30678         (LINK_SHLIB_SPEC): Don't use %(link_path).
30679         (SUBTARGET_EXTRA_SPECS): Remove link_path.
30680
30681 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30682
30683         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30684         (NO_SHARED_LIB_SUPPORT): Remove.
30685         (LINK_SHLIB_SPEC): Remove one conditional definition.
30686
30687 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30688
30689         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30690         %{call_shared}.
30691         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30692         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30693         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30694         %{call_shared} and conditionals on these options not being passed.
30695         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30696         %{call_shared}.
30697
30698 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30699
30700         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30701         simplify.
30702
30703         * ipa-split.c: Spelling fixes.
30704
30705 2011-01-19  Richard Henderson  <rth@redhat.com>
30706
30707         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30708         (*mulsi3): Likewise.
30709
30710         * longlong.h [__mn10300__] (count_leading_zeros): New.
30711         [__mn10300__] (umul_ppmm, smul_ppmm): New.
30712         [__mn10300__] (add_ssaaaa, subddmmss): New.
30713         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30714         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30715
30716 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30717
30718         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30719
30720 2011-01-19  Richard Henderson  <rth@redhat.com>
30721
30722         * config/mn10300/mn10300.md (addsi3_flags): New.
30723         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30724         (subsi3_flags, subc_internal, subdi3): New.
30725         (subdi3_internal, *subdi3_degenerate): New.
30726         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30727
30728         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30729         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30730         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
30731         * config/mn10300/mn10300-protos.h: Update.
30732         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30733         (return_ret): Likewise.  Rename from return_internal_regs.
30734         (return_internal): Remove.
30735
30736         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30737         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30738         (mn10300_legitimate_constant_p): Likewise.
30739         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30740         (mn10300_frame_size): New.
30741         (mn10300_expand_prologue): Use it.
30742         (mn10300_expand_epilogue): Likewise.
30743         (mn10300_initial_offset): Likewise.
30744         * config/mn10300/mn10300-protos.h: Update.
30745         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30746         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30747         (prologue, epilogue, return_internal): Tidy output code.
30748         (mn10300_store_multiple_operation, return): Likewise.
30749         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30750         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30751         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30752         (load_pic, am33_load_pic): New.
30753         (mn10300_load_pic0, mn10300_load_pic1): New.
30754
30755         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30756         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30757         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30758         (cc_flags_for_mode, cc_flags_for_code): New.
30759         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30760         overflow flag is not valid.  Validate that the flags we need
30761         for the comparison are valid.
30762         (mn10300_output_cmp): Remove.
30763         (mn10300_output_add): New.
30764         (mn10300_select_cc_mode): Use cc_flags_for_code.
30765         (mn10300_split_cbranch): New.
30766         (mn10300_match_ccmode): New.
30767         (mn10300_split_and_operand_count): New.
30768         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30769         to the function.
30770         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30771         (addsi3): ... here.  Use mn10300_output_add.
30772         (*addsi3_flags): New.
30773         (*am33_subsi3, *mn10300_subsi3): Merge...
30774         (subsi3): ... here.  Use attribute isa.
30775         (*subsi3_flags): New.
30776         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
30777         when possible.
30778         (*am33_andsi3, *mn10300_andsi3): Merge...
30779         (andsi3): ... here.
30780         (*andsi3_flags): New.
30781         (andsi3 splitters): New.
30782         (*am33_iorsi3, *mn10300_iorsi3): Merge...
30783         (iorsi3): ... here.
30784         (*iorsi3_flags): New.
30785         (*am33_xorsi3, *mn10300_xorsi3): Merge...
30786         (xorsi3): ... here.
30787         (*xorsi3_flags): New.
30788         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30789         (one_cmplsi2): ... here.
30790         (*one_cmplsi2_flags): New.
30791         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
30792         instead of "dax" in constraints.  Use mn10300_split_cbranch.
30793         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
30794         use matching constraints to eliminate a self-comparison.
30795         (*integer_conditional_branch): Rename from integer_conditional_branch.
30796         Use int_mode_flags to match CC_REG.
30797         (*cbranchsi4_btst, *btstsi): New.
30798         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
30799         mn10300_split_cbranch.
30800         (*am33_cmpsf): Rename from am33_cmpsf.
30801         (*float_conditional_branch): Rename from float_conditional_branch.
30802         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30803         (zero_extendqisi2): ... here.
30804         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30805         (zero_extendhisi2): ... here.
30806         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30807         (extendqisi2): ... here.
30808         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30809         (extendhisi2): ... here.
30810         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30811         (ashlsi3): ... here.
30812         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30813         (lshrsi3): ... here.
30814         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30815         (ashrsi3): ... here.
30816         (consecutive add peephole): Remove.
30817         * config/mn10300/predicates.md (label_ref_operand): New.
30818         (int_mode_flags): New.
30819         (CCZN_comparison_operator): New.
30820
30821         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30822         (throughput_42_latency_43): New reservation.
30823         (mulsidi3, umulsidi3): New expanders.
30824         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
30825         the MDR register to allocation; separately allocate the low and
30826         high parts of the DImode result.
30827         (umulsidi3_internal): Similarly.
30828         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30829         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
30830         (udivsi3, umodsi3): Remove.
30831         (udivmodsi4, divmodsi4): New expanders.
30832         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
30833         (*divmodsi4): Simiarly.
30834         (ext_internal): New.
30835
30836         * config/mn10300/constraints.md ("z"): New constraint.
30837         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30838         (FIXED_REGISTERS): Don't fix MDR.
30839         (CALL_USED_REGSITERS): Reformat nicely.
30840         (REG_ALLOC_ORDER): Add MDR.
30841         (enum regclass): Add MDR_REGS.
30842         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30843         (IRA_COVER_CLASSES): Add MDR_REGS.
30844         (REGNO_REG_CLASS): Handle MDR_REG.
30845         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30846         (mn10300_register_move_cost): Likewise.
30847         * config/mn10300/mn10300.md (MDR_REG): New.
30848         (*movsi_internal): Handle moves to/from MDR_REGS.
30849
30850         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30851         POST_MODIFY.
30852         (mn10300_secondary_reload): Tidy combination reload classes.
30853         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30854         addresses for AM33.  Allow symbolic offsets for reg+imm.
30855         (mn10300_regno_in_class_p): New.
30856         (mn10300_legitimize_reload_address): New.
30857         * config/mn10300/mn10300.h (enum reg_class): Remove
30858         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30859         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
30860         SP_OR_GENERAL_REGS.
30861         (REG_CLASS_NAMES): Update to match.
30862         (REG_CLASS_CONTENTS): Likewise.
30863         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30864         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30865         (REGNO_IN_RANGE_P): Remove.
30866         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30867         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30868         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30869         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30870         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30871         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30872         (REGNO_GENERAL_P): New.
30873         (HAVE_POST_MODIFY_DISP): New.
30874         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30875         (LEGITIMIZE_RELOAD_ADDRESS): New.
30876         * config/mn10300/mn10300-protos.h: Update.
30877
30878         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30879         DATA_REGS for AM33 stack-pointer destination.
30880         (mn10300_preferred_output_reload_class): Likewise.
30881         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30882         into a form appropriate for ...
30883         (TARGET_SECONDARY_RELOAD): New.
30884         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30885         * config/mn10300/mn10300-protos.h: Update.
30886         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30887         reload_insi; use the "A" constraint for the scratch; handle AM33
30888         moves of sp to non-address registers.
30889
30890         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30891         (*movqi_internal): ... here.
30892         (*am33_movhi, *mn10300_movhi): Merge into...
30893         (*movhi_internal): ... here.
30894         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
30895         as the source/destination of moves from/to SP.
30896         (movsf): Only allow for AM33-2.
30897         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30898         any integer constant constraint.  Only allow for AM33-2.  Tidy
30899         all of the alternative outputs.
30900         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30901         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30902         for MN103.
30903         (udivsi3, umodsi3): New patterns for MN103 only.
30904
30905 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30906
30907         * doc/tm.texi.in: Spell out that a lack of register class unions
30908         can lead to ICEs.
30909         * doc/tm.texi: Regenerate.
30910
30911 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30912
30913         PR rtl-optimization/47337
30914         * dce.c (check_argument_store): New function.
30915         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30916
30917         PR tree-optimization/47290
30918         * tree-eh.c (infinite_empty_loop_p): New function.
30919         (cleanup_empty_eh): Use it.
30920
30921 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30922
30923         PR target/46997
30924         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30925         (a64_expand_widen_sum): Ditto.
30926         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30927         (vec_extract_evenodd_help): Ditto.
30928         (vec_extract_evenv4hi): Ditto.
30929         (vec_extract_oddv4hi): Ditto.
30930         (vec_extract_evenv2si): Ditto.
30931         (vec_extract_oddv2si): Ditto.
30932         (vec_extract_evenv2sf): Ditto.
30933         (vec_extract_oddv2sf): Ditto.
30934         (vec_pack_trunc_v4hi: Ditto.
30935         (vec_pack_trunc_v2si): Ditto.
30936         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30937         (vec_interleave_highv8qi): Ditto.
30938         (mix1_r): Ditto.
30939         (vec_extract_oddv8qi): Ditto.
30940         (vec_interleave_lowv4hi): Ditto.
30941         (vec_interleave_highv4hi): Ditto.
30942         (vec_interleave_lowv2si): Ditto.
30943         (vec_interleave_highv2si): Ditto.
30944
30945 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30946
30947         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30948         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30949         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30950         (pa_c_mode_for_suffix): New.
30951         (TARGET_EXPAND_BUILTIN): Define.
30952         (TARGET_C_MODE_FOR_SUFFIX): Define.
30953         (pa_builtins): Define.
30954         (pa_init_builtins): Register __float128 type and init new support
30955         builtins.
30956         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30957         * config/pa/quadlib.c (_U_Qfcopysign): New.
30958
30959 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30960
30961         PR middle-end/46894
30962         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30963         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30964         are defined.
30965
30966 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30967
30968         PR tree-optimization/47179
30969         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30970         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30971
30972 2011-01-18  Richard Guenther  <rguenther@suse.de>
30973
30974         PR rtl-optimization/47216
30975         * emit-rtl.c: Include tree-flow.h.
30976         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30977         of replicating it with different semantics.
30978         * Makefile.in (emit-rtl.o): Adjust.
30979
30980 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30981
30982         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30983         (cortex_a9_dp): Handle neon types correctly.
30984
30985 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30986
30987         PR rtl-optimization/47299
30988         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30989         subtarget.  Use normal multiplication if both operands are constants.
30990         * expmed.c (expand_widening_mult): Don't try to optimize constant
30991         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30992         before using it.
30993
30994 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30995
30996         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
30997         spacing after 'e.g.', typos, comma, hyphenation.
30998
30999 2011-01-17  Richard Henderson  <rth@redhat.com>
31000
31001         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
31002         (rx_restricted_mem_operand): New.
31003         (rx_shift_operand): Use register_operand.
31004         (rx_source_operand, rx_compare_operand): Likewise.
31005         * config/rx/rx.md (addsi3_flags): New expander.
31006         (adddi3): Rewrite as expander.
31007         (adc_internal, *adc_flags, adddi3_internal): New patterns.
31008         (subsi3_flags): New expander.
31009         (subdi3): Rewrite as expander.
31010         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
31011
31012         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
31013         (rx_init_builtins): Remove sat builtin.
31014         (rx_expand_builtin): Likewise.
31015         * config/rx/rx.md (ssaddsi3): New.
31016         (*sat): Rename from sat.  Represent the CC_REG input.
31017
31018         * config/rx/predicates.md (rshift_operator): New.
31019         * config/rx/rx.c (rx_expand_insv): Remove.
31020         * config/rx/rx-protos.h: Update.
31021         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
31022         operand to the canonical position.
31023         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
31024         (*bitclr, *bitclr_in_memory): Similarly.
31025         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
31026         (insv): Retain the zero_extract in the expansion.
31027
31028         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
31029         (bswaphi2, bitinvert, revw): Likewise.
31030
31031         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
31032         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
31033         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
31034         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
31035         (bitset, bitset_in_memory): Likewise.
31036         (bitinvert, bitinvert_in_memory): Likewise.
31037         (bitclr, bitclr_in_memory): Likewise.
31038         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31039         (rx_strend, rx_cmpstrn): Likewise.
31040         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
31041         (bitop peep2 patterns): Remove.
31042
31043         * config/rx/rx.c (rx_match_ccmode): New.
31044         * config/rx/rx-protos.h: Update.
31045         * config/rx/rx.md (abssi2): Clobber, don't set flags.
31046         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31047         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31048         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31049         (fix_truncsfsi2, floatsisf2): Likewise.
31050         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31051         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31052         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31053         (*subsi3_flags, *xorsi3_flags): New.
31054
31055         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31056
31057         * config/rx/rx.c (rx_print_operand): Remove workaround for
31058         unsplit comparison operations.
31059
31060         * config/rx/rx.md (movsicc): Split after reload.
31061         (*movsicc): Merge *movsieq and *movsine via match_operator.
31062         (*stcc): New pattern.
31063
31064         * config/rx/rx.c (rx_float_compare_mode): Remove.
31065         * config/rx/rx.h (rx_float_compare_mode): Remove.
31066         * config/rx/rx.md (cstoresi4): Split after reload.
31067         (*sccc): New pattern.
31068
31069         * config/rx/predicates.md (label_ref_operand): New.
31070         (rx_z_comparison_operator): New.
31071         (rx_zs_comparison_operator): New.
31072         (rx_fp_comparison_operator): New.
31073         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31074         Validate that the flags are set properly for the comparison.
31075         (rx_gen_cond_branch_template): Remove.
31076         (rx_cc_modes_compatible): Remove.
31077         (mode_from_flags): New.
31078         (flags_from_code): Rename from flags_needed_for_conditional.
31079         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31080         (rx_select_cc_mode): Likewise.
31081         (rx_split_fp_compare): New.
31082         (rx_split_cbranch): New.
31083         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31084         (*cbranchsi4): Use match_operator and rx_split_cbranch.
31085         (*cbranchsf4): Similarly.
31086         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
31087         match_operator and rx_split_cbranch.
31088         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31089         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
31090         (*cmpsi): Rename from cmpsi.
31091         (*tstsi): Rename from tstsi.
31092         (*cmpsf): Rename from cmpsf; use CC_Fmode.
31093         (*conditional_branch): Rename from conditional_branch.
31094         (*reveresed_conditional_branch): Remove.
31095         (b<code>): Remove expander.
31096         * config/rx/rx-protos.h: Update.
31097
31098         * config/rx/rx.c (rx_compare_redundant): Remove.
31099         * config/rx/rx.md (cmpsi): Don't use it.
31100         * config/rx/rx-protos.h: Update.
31101
31102         * config/rx/rx-modes.def (CC_F): New mode.
31103         * config/rx/rx.c (rx_select_cc_mode): New.
31104         * config/rx/rx.h (SELECT_CC_MODE): Use it.
31105         * config/rx/rx-protos.h: Update.
31106
31107 2011-01-17  Richard Henderson  <rth@redhat.com>
31108
31109         * except.c (dump_eh_tree): Fix stray ; after for statement.
31110
31111 2011-01-17  Richard Guenther  <rguenther@suse.de>
31112
31113         PR tree-optimization/47313
31114         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31115         handling before copying the body.  Properly deal with
31116         by-reference result in SSA form.
31117
31118 2011-01-17  Ian Lance Taylor  <iant@google.com>
31119
31120         PR target/47219
31121         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31122         (struct_value_alias_set): Don't define.
31123         (sparc_option_override): Don't set sparc_sr_alias_set and
31124         struct_value_alias_set.
31125         (save_or_restore_regs): Use gen_frame_mem rather than calling
31126         set_mem_alias_set.
31127         (sparc_struct_value_rtx): Likewise.
31128
31129 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31130
31131         PR target/47318
31132         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31133         (_mm_maskstore_pd): Likewise.
31134         (_mm_maskload_ps): Likewise.
31135         (_mm_maskstore_ps): Likewise.
31136         (_mm256_maskload_pd): Change mask to __m256i.
31137         (_mm256_maskstore_pd): Likewise.
31138         (_mm256_maskload_ps): Likewise.
31139         (_mm256_maskstore_ps): Likewise.
31140
31141         * config/i386/i386-builtin-types.def: Updated.
31142         (ix86_expand_special_args_builtin): Likewise.
31143
31144         * config/i386/i386.c (bdesc_special_args): Update
31145         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31146         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31147         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31148         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31149
31150         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31151         Use <avxpermvecmode> on mask register.
31152         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31153
31154 2011-01-17  Olivier Hainque  <hainque@adacore.com>
31155             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31156             Eric Botcazou  <ebotcazou@adacore.com>
31157
31158         PR target/46655
31159         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31160         if <= USHRT_MAX in 32-bit mode.
31161
31162 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31163
31164         * doc/install.texi (Configuration, Specific): Wrap long
31165         lines in examples.  Allow line wrapping in long options
31166         and URLs where beneficial for PDF output.
31167
31168 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
31169
31170         * config/mips/mips.c (mips_classify_symbol): Don't return
31171         SYMBOL_PC_RELATIVE for nonlocal labels.
31172
31173 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31174
31175         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31176
31177 2011-01-15  Jan Hubicka  <jh@suse.cz>
31178
31179         PR tree-optimization/47276
31180         * ipa.c (function_and_variable_visibility): Do not try to mark alias
31181         declarations as needed.
31182
31183 2011-01-15  Martin Jambor  <mjambor@suse.cz>
31184
31185         * common.opt (fdevirtualize): New flag.
31186         * doc/invoke.texi (Option Summary): Document it.
31187         * opts.c (default_options_table): Add devirtualize flag.
31188         * ipa-prop.c (detect_type_change): Return immediately if
31189         devirtualize flag is not set.
31190         (detect_type_change_ssa): Likewise.
31191         (compute_known_type_jump_func): Likewise.
31192         (ipa_analyze_virtual_call_uses): Likewise.
31193
31194 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31195
31196         PR tree-optimization/45934
31197         PR tree-optimization/46302
31198         * ipa-prop.c (type_change_info): New type.
31199         (stmt_may_be_vtbl_ptr_store): New function.
31200         (check_stmt_for_type_change): Likewise.
31201         (detect_type_change): Likewise.
31202         (detect_type_change_ssa): Likewise.
31203         (compute_complex_assign_jump_func): Check for dynamic type change.
31204         (compute_complex_ancestor_jump_func): Likewise.
31205         (compute_known_type_jump_func): Likewise.
31206         (compute_scalar_jump_functions): Likewise.
31207         (ipa_analyze_virtual_call_uses): Likewise.
31208         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31209
31210 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31211
31212         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31213         * config/i386/i386.opt (msse5): New Alias.
31214
31215 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31216
31217         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31218         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31219         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31220         * config/sparc/sparc.h (CC1_SPEC): Likewise.
31221
31222 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31223
31224         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31225         -mcpu options.
31226         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31227         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31228         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31229         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31230         Likewise.
31231         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31232
31233 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31234
31235         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31236
31237 2011-01-14  Mike Stump  <mikestump@comcast.net>
31238
31239         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31240         * config/fr30/fr30.md: Likweise
31241         (movsi_push): Likewise.
31242         (movsi_pop): Likewise.
31243         (enter_func): Likewise.
31244         * config/moxie/moxie.md (movsi_push): Likewise.
31245         (movsi_pop): Likewise.
31246
31247 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31248
31249         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31250         %{no_archive} %{exact_version}.
31251         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31252         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31253         %{no_archive} %{exact_version}.
31254         * config/mips/openbsd.h (LINK_SPEC): Likewise.
31255         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31256         * config/mips/vxworks.h: Likewise.
31257
31258 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31259
31260         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31261
31262 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31263
31264         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31265         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31266
31267 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31268
31269         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31270         -nodefaultlib.
31271
31272 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31273
31274         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31275         for mcpu not cpu.
31276         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31277         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31278         not cpu.
31279         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31280         Don't handle -shlib.
31281
31282 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31283
31284         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31285         (CC1_SPEC): Don't handle -profile.
31286
31287 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31288
31289         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31290         * config/mips/mips.h (CC1_SPEC): Likewise.
31291
31292 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31293
31294         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31295         * config/mips/mips.h (CC1_SPEC): Likewise.
31296
31297 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31298
31299         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31300         * config/m32r/linux.h (LINK_SPEC): Likewise.
31301         * config/mips/linux.h (LINK_SPEC): Likewise.
31302         * config/mips/linux64.h (LINK_SPEC): Likewise.
31303         * config/sparc/linux.h (LINK_SPEC): Likewise.
31304         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31305         LINK_SPEC): Likewise.
31306         * config/xtensa/linux.h (LINK_SPEC): Likewise.
31307
31308 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31309
31310         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31311         %{version:-v}.
31312         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31313
31314 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31315
31316         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31317         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31318
31319 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31320
31321         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31322
31323 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31324
31325         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31326         supports -Bstatic/-Bdynamic.
31327         * configure: Regenerate.
31328
31329 2011-01-14  Jan Hubicka  <jh@suse.cz>
31330             Jack Howarth  <howarth@bromo.med.uc.edu>
31331
31332         PR target/46037
31333         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31334         when checking debug_info_level. Test write_symbols instead of
31335         debug_hooks->var_location when setting flag_var_tracking_uninit.
31336
31337 2011-01-14  Richard Guenther  <rguenther@suse.de>
31338
31339         PR tree-optimization/47179
31340         * target.def (ref_may_alias_errno): New target hook.
31341         * targhooks.h (default_ref_may_alias_errno): Declare.
31342         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31343         (default_ref_may_alias_errno): New function.
31344         * target.h (struct ao_ref_s): Declare.
31345         * tree-ssa-alias.c: Include target.h.
31346         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31347         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31348         (targhooks.o): Likewise.
31349         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31350         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31351
31352 2011-01-14  Richard Guenther  <rguenther@suse.de>
31353
31354         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
31355
31356 2011-01-14  Richard Guenther  <rguenther@suse.de>
31357
31358         PR tree-optimization/47280
31359         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31360         return CFG changes.
31361         (tree_ssa_forward_propagate_single_use_vars): Deal with
31362         CFG changes from associate_plusminus.
31363
31364 2011-01-14  Richard Guenther  <rguenther@suse.de>
31365
31366         PR middle-end/47281
31367         Revert
31368         2011-01-11  Richard Guenther  <rguenther@suse.de>
31369
31370         PR tree-optimization/46076
31371         * tree-ssa.c (useless_type_conversion_p): Conversions from
31372         unprototyped to empty argument list function types are useless.
31373
31374 2011-01-14  Richard Guenther  <rguenther@suse.de>
31375
31376         PR tree-optimization/47286
31377         * tree-ssa-structalias.c (new_var_info): Register variables are global.
31378
31379 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31380
31381         PR middle-end/46823
31382         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31383
31384 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
31385
31386         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31387         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31388         * config/xtensa/xtensa.c (xtensa_libcall_value,
31389         xtensa_function_value_regno_p): New functions.
31390         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31391
31392 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
31393
31394         PR c++/47213
31395         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31396         PE specific hook.
31397         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31398         New function prototype.
31399         * config/i386/winnt.c (i386_pe_assemble_visibility):
31400         Warn only if attribute was specified by user.
31401
31402 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
31403
31404         PR target/47251
31405         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31406         floating point.
31407         (floatunsdidf2_fcfidu): Ditto.
31408
31409 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31410
31411         * config/s390/s390.c (print_operand_address): Replace 'error' with
31412         'output_operand_lossage'.
31413         (print_operand): Likewise.
31414
31415 2011-01-13  Jeff Law  <law@redhat.com>
31416
31417         PR rtl-optimization/39077
31418         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31419         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31420         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31421         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31422         * gcse.c (prune_insertions_deletions): New function.
31423         (compute_pre_data): Use it.
31424
31425 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
31426
31427         PR debug/PR46973
31428         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31429         static function.
31430         (prune_unused_types_mark): Use it.
31431
31432 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
31433
31434         PR rtl-optimization/45352
31435         * sel-sched.c: Update copyright years.
31436         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31437         in the advancing loop when we have issued issue_rate insns.
31438
31439 2011-01-12  Richard Henderson  <rth@redhat.com>
31440
31441         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31442         (TARGET_MD_ASM_CLOBBERS): New.
31443
31444         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31445         (TARGET_DELEGITIMIZE_ADDRESS): New.
31446
31447         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31448         (clzsi2, *bsch): New patterns.
31449
31450         * config/mn10300/mn10300.md (INT): New mode iterator.
31451         (*mov<INT>_clr): New pattern, and peep2 to generate it.
31452
31453         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31454         flag_split_wide_types.
31455
31456         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31457         (mn10300_trampoline_init): Rewrite without a template, an immediate
31458         load and a direct branch.
31459         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31460
31461 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
31462
31463         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31464         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31465         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31466         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31467
31468 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
31469
31470         PR debug/47209
31471         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31472         of type.
31473
31474 2011-01-12  Jan Hubicka  <jh@suse.cz>
31475
31476         PR driver/47244
31477         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31478         (PLUGIN_COND_CLOSE): New macro.
31479         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31480
31481 2011-01-12  Richard Guenther  <rguenther@suse.de>
31482
31483         PR lto/47259
31484         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31485         register variables in a MEM_REF.
31486
31487 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
31488
31489         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31490         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31491         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31492         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31493         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31494         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31495         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31496         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31497         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31498         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31499         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31500         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31501         * config/gnu-user.h: New.  Copied from linux.h.
31502         (LINUX_TARGET_STARTFILE_SPEC): Rename to
31503         GNU_USER_TARGET_STARTFILE_SPEC.
31504         (LINUX_TARGET_ENDFILE_SPEC): Rename to
31505         GNU_USER_TARGET_ENDFILE_SPEC.
31506         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31507         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31508         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31509         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31510         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31511         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31512         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31513         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31514         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31515         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31516         * config/arm/linux-eabi.h (CC1_SPEC): Use
31517         GNU_USER_TARGET_CC1_SPEC.
31518         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31519         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31520         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31521         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31522         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31523         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31524         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31525         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31526
31527 2011-01-12  Richard Guenther  <rguenther@suse.de>
31528
31529         PR other/46946
31530         * doc/invoke.texi (ffast-math): Document it is turned on
31531         with -Ofast.
31532
31533 2011-01-12  Jan Hubicka  <jh@suse.cz>
31534
31535         PR tree-optimization/47233
31536         * opts.c (common_handle_option): Disable ipa-reference with profile
31537         feedback.
31538
31539 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31540
31541         * c-parser.c (c_parser_objc_at_property_declaration): Improved
31542         error message.
31543
31544 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31545
31546         * c-parser.c (c_lex_one_token): Updated and reindented some
31547         comments.  No changes in code.
31548
31549 2011-01-11  Ian Lance Taylor  <iant@google.com>
31550
31551         * godump.c (go_output_var): Don't output the variable if there is
31552         already a type with the same name.
31553
31554 2011-01-11  Ian Lance Taylor  <iant@google.com>
31555
31556         * godump.c (go_format_type): Don't generate float80.
31557
31558 2011-01-11  Richard Henderson  <rth@redhat.com>
31559
31560         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31561         declaration.  Rewrite for both speed and size.
31562         (mn10300_address_cost_1): Remove.
31563         (mn10300_register_move_cost): New.
31564         (mn10300_memory_move_cost): New.
31565         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
31566         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
31567         extensions, shifts, BSWAP, CLZ.
31568         (mn10300_wide_const_load_uses_clr): Remove.
31569         (TARGET_REGISTER_MOVE_COST): New.
31570         (TARGET_MEMORY_MOVE_COST): New.
31571         * config/mn10300/mn10300-protos.h: Update.
31572         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31573
31574         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31575         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31576         * config/mn10300/mn10300-protos.h: Update.
31577         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31578         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31579         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31580         (*test_int_bitfield, *test_byte_bitfield): Remove.
31581         (*bit_test, *subreg_bit_test): Remove.
31582         * config/mn10300/predicates.md (const_8bit_operand): Remove.
31583
31584         * config/mn10300/constraints.md ("c"): Rename from "A".
31585         ("A", "D"): New constraint letters.
31586         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31587         (fmssf4, fnmasf4, fnmssf4): Likewise.
31588
31589         * config/mn10300/mn10300.md (isa): New attribute.
31590         (enabled): New attribute.
31591
31592         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31593         (abssf2, negsf2): Define only for hardware fp.
31594         (sqrtsf2): Reformat.
31595         (addsf3, subsf3, mulsf3): Merge expander and insn.
31596
31597         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31598         (DEBUGGER_AUTO_OFFSET): Remove.
31599         (DEBUGGER_ARG_OFFSET): Remove.
31600
31601         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31602         Emit register stores with the same offsets as the hardware.
31603         (mn10300_store_multiple_operation): Don't check that the register
31604         save offsets are monotonic.
31605         * config/mn10300/mn10300-protos.h: Update.
31606
31607         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31608
31609         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31610         in terms of the value on the stack, not the MDR register.
31611
31612 2011-01-11  Jan Hubicka  <jh@suse.cz>
31613
31614         PR lto/45721
31615         PR lto/45375
31616         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31617         (symbol_alias_set_destroy, symbol_alias_set_contains,
31618         propagate_aliases_backward): Declare.
31619         * lto-streamer-out.c (struct sets): New sturcture.
31620         (trivally_defined_alias): New function.
31621         (output_alias_pair_p): Rewrite.
31622         (output_unreferenced_globals): Fix output of alias pairs.
31623         (produce_symtab): Likewise.
31624         * ipa.c (function_and_variable_visibility): Set weak alias destination
31625         as needed in lto.
31626         * varasm.c (symbol_alias_set_t): Remove.
31627         (symbol_alias_set_destroy): Export.
31628         (propagate_aliases_forward, propagate_aliases_backward): New functions
31629         based on ...
31630         (compute_visible_aliases): ... this one; remove.
31631         (trivially_visible_alias): New
31632         (trivially_defined_alias): New.
31633         (remove_unreachable_alias_pairs): Rewrite.
31634         (finish_aliases_1): Reorganize code checking if alias is defined.
31635         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31636         in LTO mode.
31637
31638 2011-01-11  Richard Guenther  <rguenther@suse.de>
31639
31640         PR tree-optimization/46076
31641         * tree-ssa.c (useless_type_conversion_p): Conversions from
31642         unprototyped to empty argument list function types are useless.
31643
31644 2011-01-11  Richard Guenther  <rguenther@suse.de>
31645
31646         PR middle-end/45235
31647         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31648         volatile MEMs as MEM_READONLY_P.
31649
31650 2011-01-11  Richard Guenther  <rguenther@suse.de>
31651
31652         PR tree-optimization/47239
31653         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31654
31655 2011-01-11  Jeff Law  <law@redhat.com>
31656
31657         PR tree-optimization/47086
31658         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31659         IVs from statements that might throw.
31660
31661 2011-01-10  Jan Hubicka  <jh@suse.cz>
31662
31663         PR lto/45375
31664         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31665
31666 2011-01-10  Jan Hubicka  <jh@suse.cz>
31667
31668         PR lto/45375
31669         * profile.c (read_profile_edge_counts): Ignore profile inconistency
31670         when correcting profile.
31671
31672 2011-01-10  Jan Hubicka  <jh@suse.cz>
31673
31674         PR lto/46083
31675         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31676         DECL_FINI_PRIORITY.
31677         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31678         Restore DECL_FINI_PRIORITY.
31679
31680 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31681
31682         * doc/gimple.texi: Fix quoting of multi-word return values in
31683         @deftypefn statements.  Ensure presence of return value.  Wrap
31684         overlong @deftypefn lines.
31685         (is_gimple_operand, is_gimple_min_invariant_address): Remove
31686         descriptions of removed functions.
31687         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31688         of multi-word return value in @deftypefn statement.
31689
31690 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31691
31692         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31693         (Conditional Expressions, Logical Operators)
31694         (Statement and operand traversals): Do not indent smallexample
31695         code.  Fix duplicate function argument in example.
31696
31697 2011-01-10  Jeff Law  <law@redhat.com>
31698
31699         PR tree-optimization/47141
31700         * ipa-split.c (split_function): Handle case where we are
31701         returning a value and the return block has a virtual operand phi.
31702
31703 2011-01-10  Jan Hubicka  <jh@suse.cz>
31704
31705         PR tree-optimization/47234
31706         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31707         (pass_feedback_split_functions): Declare.
31708         * passes.c (init_optimization_passes): Add ipa-split as subpass of
31709         tree-profile.
31710         * ipa-split.c (gate_split_functions): Update comments; disable
31711         split-functions for profile_arc_flag and branch_probabilities.
31712         (gate_feedback_split_functions): New function.
31713         (execute_feedback_split_functions): New function.
31714         (pass_feedback_split_functions): New global var.
31715
31716 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
31717
31718         PR lto/46760
31719         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31720         calling gimple_call_set_cannot_inline.
31721
31722 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
31723
31724         * config/darwin-sections.def: Remove unused section.
31725
31726 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
31727
31728         PR c++/47218
31729         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31730
31731 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
31732
31733         PR objc/47232
31734         * c-parser.c (c_parser_declaration_or_fndef): Improved
31735         error message.
31736
31737 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
31738
31739         * config/i386/winnt.c (i386_pe_start_function): Make sure
31740         to switch back to function's section.
31741
31742 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
31743
31744         PR gcc/46902
31745         PR testsuite/46912
31746         * plugin.c: Move include of dlfcn.h from here...
31747         * system.h: ... to here.
31748
31749 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31750
31751         * doc/cpp.texi (C++ Named Operators): Fix markup for header
31752         file name.
31753         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31754         two extra empty pages in PDF output.
31755
31756 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
31757
31758         PR objc/47078
31759         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31760         for error recovery purposes behave as if it was not specified so
31761         that the default type is usd.
31762
31763 2011-01-07  Jan Hubicka  <jh@suse.cz>
31764
31765         PR tree-optmization/46469
31766         * ipa.c (function_and_variable_visibility): Clear needed flags on
31767         nodes with external decls; handle weakrefs merging correctly.
31768
31769 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
31770
31771         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31772         not false.
31773
31774 2011-01-07  Jan Hubicka  <jh@suse.cz>
31775
31776         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31777         and no longer claim that gold is required for linker plugin.
31778         * configure: Regenerate.
31779         * gcc.c (PLUGIN_COND): New macro.
31780         (LINK_COMMAND_SPEC): Use it.
31781         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31782         * config.in (HAVE_LTO_PLUGIN): New.
31783         * configure.ac (--with-lto-plugin): New parameter; autodetect
31784         HAVE_LTO_PLUGIN.
31785
31786 2011-01-07  Jan Hubicka  <jh@suse.cz>
31787
31788         PR tree-optimization/46367
31789         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31790         when we can update original.
31791         (cgraph_mark_inline_edge): Sanity check.
31792         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31793
31794 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31795
31796         * config/spu/spu.h (ASM_COMMENT_START): Define.
31797
31798 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31799
31800         PR driver/42445
31801         * gcc.c (%>S): New.
31802         (SWITCH_KEEP_FOR_GCC): Likewise.
31803         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31804         (do_spec_1): Handle "%>".
31805
31806         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31807
31808 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
31809
31810         PR target/47201
31811         * config/i386/i386.c (ix86_delegitimize_address): If
31812         simplify_gen_subreg fails, return orig_x.
31813
31814         PR bootstrap/47187
31815         * value-prof.c (gimple_stringop_fixed_value): Handle
31816         lhs of the call properly.
31817
31818 2011-01-07  Jan Hubicka  <jh@suse.cz>
31819
31820         PR lto/45375
31821         * lto-opt.c (lto_reissue_options): Set flag_shlib.
31822
31823 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31824
31825         * target.def (function_switched_text_sections): New hook.
31826         * doc/tm.texi: Regenerated.
31827         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31828         * final.c (default_function_switched_text_sections): New.
31829         (final_scan_insn): Call function_switched_text_sections when a
31830         mid-function section change occurs.
31831         * output.h (default_function_switched_text_sections): Declare.
31832         * config/darwin-protos.h (darwin_function_switched_text_sections):
31833         Likewise.
31834         * config/darwin.c (darwin_function_switched_text_sections): New.
31835         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31836
31837 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31838
31839         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
31840         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
31841         the secondary code fragment when outputting for DWARF == 2.
31842
31843 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
31844
31845         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31846         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31847         Remove.
31848         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31849         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31850
31851 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31852
31853         PR debug/46704
31854         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31855         when it is not empty.
31856
31857 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
31858
31859         Bobcat Enablement
31860         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31861         (case ${target}): Add btver1.
31862         * config/i386/driver-i386.c (host_detect_local_cpu): Let
31863         -march=native recognize btver1 processors.
31864         * config/i386/i386-c.c (ix86_target_macros_internal): Add
31865         btver1 def_and_undef
31866         * config/i386/i386.c (struct processor_costs btver1_cost): New
31867         btver1 cost table.
31868         (m_BTVER1): New definition.
31869         (m_AMD_MULTIPLE): Includes m_BTVER1.
31870         (initial_ix86_tune_features): Add btver1 tune.
31871         (processor_target_table): Add btver1 entry.
31872         (static const char *const cpu_names): Add btver1 entry.
31873         (software_prefetching_beneficial_p): Add btver1.
31874         (ix86_option_override_internal): Add btver1 instruction sets.
31875         (ix86_issue_rate): Add btver1.
31876         (ix86_adjust_cost): Add btver1.
31877         * config/i386/i386.h (TARGET_BTVER1): New definition.
31878         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31879         (enum processor_type): Add PROCESSOR_BTVER1.
31880         * config/i386/i386.md (define_attr "cpu"): Add btver1.
31881
31882 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31883
31884         PR target/43309
31885         * config/i386/i386.c (legitimize_tls_address)
31886         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31887         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31888         (tls_initial_exec_64_sun): New pattern.
31889
31890 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31891
31892         * doc/invoke.texi (Overall Options): Improve wording and markup
31893         of the description of -wrapper.
31894
31895 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31896
31897         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31898         rdynamic, threads): New Driver options.
31899
31900 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31901
31902         PR target/38118
31903         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31904         if coming from .tdata.
31905         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31906
31907 2011-01-06  Jan Hubicka  <jh@suse.cz>
31908
31909         PR lto/47188
31910         * collect2.c (main): Do not enable LTOmode when plugin is active.
31911
31912 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31913
31914         PR other/45915
31915         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31916         --version output if supported.
31917         * configure: Regenerate.
31918
31919 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31920
31921         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31922         Driver options.
31923
31924 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31925
31926         PR c/47150
31927         * c-convert.c (convert): When converting a complex expression
31928         other than COMPLEX_EXPR to a different complex type, ensure
31929         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31930         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31931         when converting COMPLEX_TYPE.
31932
31933 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31934
31935         PR tree-optimization/47139
31936         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31937         only the last reduction value is used outside the loop.  Update
31938         documentation.
31939
31940 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31941
31942         * config/rtems.opt: New.
31943         * config.gcc (*-*-rtems*): Use rtems.opt.
31944
31945 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31946
31947         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31948         processors do not support 3DNow instructions.
31949
31950 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31951
31952         * config/spu/spu.c (spu_option_override): Set parameter
31953         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31954
31955 2011-01-05  Jan Hubicka  <jh@suse.cz>
31956
31957         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31958         at the command line.
31959
31960 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31961
31962         PR lto/47162
31963         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31964         deltas on streamed outgoing edges.
31965         (output_node_opt_summary): Output info for outgoing edges only when
31966         the node is in new parameter set.
31967         (output_cgraph_opt_summary): New parameter set, passed to the two
31968         aforementioned functions.  Update its forward declaration and its
31969         callee too.
31970
31971 2011-01-05  Tom Tromey  <tromey@redhat.com>
31972
31973         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31974         operator to c_finish_omp_atomic.
31975         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31976         (build_unary_op): Update.
31977         (build_modify_expr): Update.
31978         (build_asm_expr): Update.
31979
31980 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31981
31982         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31983         newly inserted insns.
31984         (pad_bb): Likewise.
31985         (spu_emit_branch_hint): Likewise.
31986         (insert_hbrp_for_ilb_runout): Likewise.
31987         (spu_machine_dependent_reorg): Call df_finish_pass after
31988         schedule_insns returns.
31989
31990 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31991
31992         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31993
31994 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31995
31996         PR tree-optimization/47005
31997         * tree-sra.c (struct access): Add 'non_addressable' bit.
31998         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31999         (decide_one_param_reduction): Return 0 if the parameter is passed by
32000         reference and one of the accesses in the group is non_addressable.
32001
32002 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32003
32004         PR tree-optimization/47056
32005         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
32006         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
32007         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
32008
32009 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32010
32011         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
32012         initializer.  Skip view conversions from aggregate types.
32013
32014 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
32015
32016         PR bootstrap/47055
32017         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
32018
32019 2011-01-04  Philipp Thomas  <pth@suse.de>
32020
32021         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
32022         obvious typo.
32023
32024 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32025
32026         * function.c (thread_prologue_and_epilogue_insns): Do not crash
32027         on empty epilogue sequences.
32028
32029 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
32030
32031         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
32032         non-static): New Driver options.
32033
32034 2011-01-04  Jie Zhang  <jie@codesourcery.com>
32035
32036         PR driver/47137
32037         * gcc.c (default_compilers[]): Set combinable field to 0
32038         for all assembly languages.
32039
32040 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
32041
32042         * config/mips/loongson3a.md: New file.
32043         * config/mips/mips.md: Include loongson3a.md.
32044         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32045         TUNE_LOONGSON_3A.
32046
32047 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
32048
32049         PR middle-end/47017
32050         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32051         instead of convert_memory_address_addr_space on the base expression.
32052
32053 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32054
32055         * config/spu/spu.c (spu_option_override): Update error text
32056         for bad -march= / -mtune= values.
32057
32058 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32059
32060         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32061         if branch-hint optimization will be performed.
32062
32063 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32064
32065         PR tree-optimization/47148
32066         * ipa-split.c (split_function): Convert arguments to
32067         DECL_ARG_TYPE if possible.
32068
32069         PR tree-optimization/47155
32070         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32071         when computing uns.
32072
32073         PR rtl-optimization/47157
32074         * combine.c (try_combine): If undobuf.other_insn becomes
32075         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32076         and set *new_direct_jump_p too.
32077
32078 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
32079
32080         PR tree-optimization/47021
32081         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32082
32083 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32084
32085         * gcc.c (process_command): Update copyright notice dates.
32086         * gcov.c (print_version): Likewise.
32087         * gcov-dump.c (print_version): Likewise.
32088         * mips-tfile.c (main): Likewise.
32089         * mips-tdump.c (main): Likewise.
32090
32091 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32092
32093         PR tree-optimization/46801
32094         * tree-sra.c (type_internals_preclude_sra_p): Check whether
32095         aggregate fields start at byte boundary instead of the bit-field flag.
32096
32097 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
32098
32099         PR driver/47137
32100         * gcc.c (main): Revert revision 168407.
32101
32102 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32103
32104         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32105
32106 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32107
32108         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32109         vector optab to expand vector/scalar shift, update gimple to vector.
32110
32111 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32112
32113         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32114         a thunk.
32115
32116 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32117
32118         PR tree-optimization/46984
32119         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32120         HOST_WIDE_INT.
32121         (cgraph_create_indirect_edge): Fixed line length.
32122         (cgraph_indirect_call_info): Declare.
32123         (cgraph_make_edge_direct) Update declaration.
32124         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32125         (cgraph_create_indirect_edge): Use it.
32126         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
32127         callees.
32128         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32129         the new thunk_delta representation.
32130         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32131         HOST_WIDE_INT.
32132         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32133         (ipa_read_indirect_edge_info): Likewise.
32134         * lto-cgraph.c (output_edge_opt_summary): New function.
32135         (output_node_opt_summary): Call it on all outgoing edges.
32136         (input_edge_opt_summary): New function.
32137         (input_node_opt_summary): Call it on all outgoing edges.
32138
32139 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
32140
32141         PR driver/47137
32142         * gcc.c (main): Don't check have_o when settting combine_inputs.
32143
32144 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
32145
32146         * regrename.c: Add general comment describing the pass.
32147         (struct du_head): Remove 'length' field.
32148         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32149         (regrename_optimize): Do not sort chains.  Rework comments, add others.
32150         Force renaming to the preferred class (if any) in the first pass and do
32151         not consider registers that belong to it in the second pass.
32152         (create_new_chain): Do not set 'length' field.
32153         (scan_rtx_reg): Likewise.
32154
32155 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
32156
32157         PR tree-optimization/47140
32158         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32159         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32160         to bit_value_binop.
32161
32162         PR rtl-optimization/47028
32163         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32164         parm_birth_insn instead of at the beginning of first bb.
32165
32166 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
32167
32168         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32169         Remove the word "see" before "@pxref".
32170         * doc/rtl.texi: Remove the word "see" before "@pxref".
32171
32172 2011-01-01  Jan Hubicka  <jh@suse.cz>
32173
32174         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32175         memory.
32176
32177 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
32178
32179         PR target/38662
32180         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32181
32182 \f
32183 Copyright (C) 2011 Free Software Foundation, Inc.
32184
32185 Copying and distribution of this file, with or without modification,
32186 are permitted in any medium without royalty provided the copyright
32187 notice and this notice are preserved.