OSDN Git Service

* config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
2         
3         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
4
5 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
6             Uros Bizjak  <ubizjak@gmail.com>
7             Richard Henderson  <rth@redhat.com>
8
9         * config/i386/constraints.md (w): New.
10
11         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
12         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
13
14         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
15         instead of TARGET_64BIT.
16
17         * config/i386/i386.md (indirect_jump): Replace
18         nonimmediate_operand with indirect_branch_operand.
19         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
20         (tablejump): Replace nonimmediate_operand with
21         indirect_branch_operand.  Convert operand 0 to Pmode for x32 if
22         not PIC.
23         (*tablejump_1): Replace nonimmediate_operand with
24         indirect_branch_operand.  Replace constraint "m" with "w".
25         (*call_vzeroupper): Replace constraint "m" with "w".
26         (*call): Likewise.
27         (*call_rex64_ms_sysv_vzeroupper): Likewise.
28         (*call_rex64_ms_sysv): Likewise.
29         (*call_value_vzeroupper): Likewise.
30         (*call_value): Likewise.
31         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
32         (*call_value_rex64_ms_sysv): Likewise.
33         (set_got_offset_rex64): Check TARGET_LP64 instead of
34         TARGET_64BIT.
35
36         * config/i386/predicates.md (indirect_branch_operand): New.
37         (call_insn_operand): Support x32.
38
39 2011-07-20  Michael Eager  <eager@eagercon.com>
40
41         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
42
43 2011-07-20  Richard Henderson  <rth@redhat.com>
44
45         * cfg.c (dump_bb_info): Dump basic_block->flags.
46         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
47
48 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
49
50         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
51         of DImode hard registers in index.
52         (ix86_legitimate_address_p): Allow subregs of base and index to span
53         more than a word.  Assert that subregs of base and index satisfy
54         register_no_elim_operand predicates.  Reject addresses where
55         base and index have different modes.
56
57 2011-07-20  Robert Millan  <rmh@gnu.org>
58
59         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
60
61 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
62
63         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
64         removing now-unnecessary assignment.
65
66 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
67
68         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
69         memory address space to the type's address space.
70
71 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
72
73         PR target/36467
74         PR target/49687
75         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
76         and expand appropriately if there is a CONST_INT in operand2.
77         (usmulqihi3): New insn.
78         (*sumulqihi3): New insn.
79         (*osmulqihi3): New insn.
80         (*oumulqihi3): New insn.
81         (*muluqihi3.uconst): New insn_and_split.
82         (*muluqihi3.sconst): New insn_and_split.
83         (*mulsqihi3.sconst): New insn_and_split.
84         (*mulsqihi3.uconst): New insn_and_split.
85         (*mulsqihi3.oconst): New insn_and_split.
86         (*ashifthi3.signx.const): New insn_and_split.
87         (*ashifthi3.signx.const7): New insn_and_split.
88         (*ashifthi3.zerox.const): New insn_and_split.
89         (mulsqihi3): New insn.
90         (muluqihi3): New insn.
91         (muloqihi3): New insn.
92         * config/avr/predicates.md (const_2_to_7_operand): New.
93         (const_2_to_6_operand): New.
94         (u8_operand): New.
95         (s8_operand): New.
96         (o8_operand): New.
97         (s9_operand): New.
98         (register_or_s9_operand): New.
99
100 2011-07-20  Kai Tietz  <ktietz@redhat.com>
101
102         * builtins.c (fold_builtin_expect): See through the cast
103         from truthvalue_type_node to long.
104
105 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
106
107         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
108         where we can use them from the standard and altivec instruction
109         sets, instead of always using the 3 operand VSX forms that require
110         the destination to overlap one of the inputs.
111         (vsx_fms*): Ditto.
112         (vsx_fnma*): Ditto.
113         (vsx_fnms*): Ditto.
114
115         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
116         for DF types.
117         (fmsdf4_fpr): Ditto.
118         (nfmadf4_fpr): Ditto.
119         (nfmsdf4_fpr): Ditto.
120
121 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
122
123         * genrecog.c (make_insn_sequence): Correct position numbering
124         when filtering out match_scratch and match_dup.
125
126 2011-07-20  Richard Guenther  <rguenther@suse.de>
127
128         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
129         against already removed statements.
130         (forward_propagate_into_comparison): Remove dead defining stmts.
131         (forward_propagate_into_gimple_cond): Likewise.
132         (forward_propagate_into_cond): Simplify.
133         (ssa_forward_propagate_and_combine): Handle changed cfg from
134         forward_propagate_into_comparison.
135         * tree-ssa-phiopt.c (conditional_replacement): Use proper
136         locations for newly built statements.
137
138 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
139
140         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
141
142 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
143
144         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
145         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
146
147 2011-07-20  Richard Guenther  <rguenther@suse.de>
148
149         PR middle-end/18908
150         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
151         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
152         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
153
154 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
155
156         * config/frv/frv.c (frv_register_move_cost): Define explicitly
157         costs for subclasses of GR_REGS.
158
159 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
160
161         PR target/49780
162         * config/i386/predicates.md (no_seg_addres_operand): No more special.
163         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
164         of DImode hard registers in base.
165         (ix86_legitimate_address_p): Allow SImode and DImode base and index
166         registers.
167
168 2011-07-20  Richard Guenther  <rguenther@suse.de>
169
170         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
171         (unify_nodes): Deal with that.
172         (solve_graph): Likewise.
173
174 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
175
176         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
177         canonicalize left operand from ZERO_EXTEND to AND.
178
179 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
180
181         * target.def (class_max_nregs): New hook.
182         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
183         * doc/tm.texi: Regenerate.
184         * targhooks.c (default_class_max_nregs): New function.
185         * targhooks.h (default_class_max_nregs): Declare.
186         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
187         x_ira_reg_class_min_nregs arrays to unsigned char.
188         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
189         hook instead of CLASS_MAX_NREGS macro.
190         * reginfo.c (restore_register_info): Ditto.
191         * ira-conflicts.c (process_regs_for_copy): Use
192         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
193         Change type rclass and aclass vars to reg_class_t.
194         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
195         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
196         reg_class_t.
197         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
198         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
199
200         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
201         * config/i386/i386.c (ix86_class_max_nregs): New function.
202         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
203         instead of CLASS_MAX_NREGS macro.
204         (TARGET_CLASS_MAX_NREGS): Define.
205         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
206         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
207         * config/avr/avr.c (class_max_nregs): Remove function.
208         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
209         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
210         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
211         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
212         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
213         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
214         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
215         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
216         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
217         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
218         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
219         * config/score/score.h (CLASS_MAX_NREGS): Remove.
220         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
221         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
222         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
223
224 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
225
226         * cif-code.def (OVERWRITABLE): Fix typo and move around.
227         (TARGET_OPTIMIZATION_MISMATCH): Delete.
228         (EH_PERSONALITY): Fix typo.
229         (NON_CALL_EXCEPTIONS): Fix message.
230         (OPTIMIZATION_MISMATCH): Adjust message.
231         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
232
233 2011-07-19  Ian Lance Taylor  <iant@google.com>
234
235         * doc/install.texi (Configuration): Document
236         --enable-build-poststage1-with-cxx.
237
238 2011-07-19  Robert Millan  <rmh@gnu.org>
239
240         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
241         (GLIBC_DYNAMIC_LINKER): Remove.
242
243         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
244         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
245         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
246         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
247         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
248         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
249
250         * config/mips/linux.h: Remove everything except for ...
251         (GLIBC_DYNAMIC_LINKER): ... this macro.
252
253         * config/mips/linux64.h: Remove everything except for ...
254         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
255         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
256         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
257         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
258         (GNU_USER_LINK_EMULATIONN32): New macros.
259
260         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
261         Use the new headers.
262
263 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
264
265         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
266         Add offset_known_p and size_known_p fields.
267         (MEM_OFFSET_KNOWN_P): Update accordingly.
268         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
269         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
270         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
271         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
272         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
273         (init_emit_regs): Likewise.
274
275 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
276
277         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
278         (MEM_OFFSET): Change from returning an rtx to returning a
279         HOST_WIDE_INT.
280         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
281         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
282         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
283         (clear_mem_offset): Declare.
284         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
285         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
286         MEM_OFFSET to get a HOST_WIDE_INT offset.
287         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
288         (adjust_offset_for_component_ref): Take a bool "known_p"
289         parameter and a HOST_WIDE_INT "offset" parameter.
290         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
291         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
292         than an rtx.  Use clear_mem_offset to clear the offset.
293         * cfgcleanup.c (merge_memattrs): Likewise.
294         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
295         * function.c (assign_parm_find_stack_rtl): Likewise.
296         (assign_parm_setup_stack): Likewise.
297         * print-rtl.c (print_rtx): Likewise.
298         * reload.c (find_reloads_subreg_address): Likewise.
299         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
300         * var-tracking.c (INT_MEM_OFFSET): Likewise.
301         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
302         (get_mem_align_offset): Likewise.
303         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
304         (clear_mem_offset): New function.
305         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
306         offset rather than an rtx.  Assume both the expressio and offset
307         are available.
308         (r10k_needs_protection_p_1): Update accordingly, checking the
309         expression and offset availability here instead.
310
311 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
312
313         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
314         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
315         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
316         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
317         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
318         (clear_mem_size): Declare.
319         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
320         (clear_mem_size): New function.
321         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
322         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
323         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
324         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
325         to clear the size.
326         (nonoverlapping_memrefs_p): Likewise.
327         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
328         (expand_builtin_init_trampoline): Likewise.
329         * calls.c (compute_argument_addresses): Likewise.
330         * cfgcleanup.c (merge_memattrs): Likewise.
331         * dce.c (find_call_stack_args): Likewise.
332         * dse.c (record_store, scan_insn): Likewise.
333         * dwarf2out.c (dw_sra_loc_expr): Likewise.
334         * expr.c (emit_block_move_hints): Likewise.
335         * function.c (assign_parm_find_stack_rtl): Likewise.
336         * print-rtl.c (print_rtx): Likewise.
337         * reload.c (find_reloads_subreg_address): Likewise.
338         * rtlanal.c (may_trap_p_1): Likewise.
339         * var-tracking.c (track_expr_p): Likewise.
340         * varasm.c (assemble_trampoline_template): Likewise.
341         * config/arm/arm.c (arm_print_operand): Likewise.
342         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
343         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
344         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
345         (expand_constant_setmem_prologue): Likewise.
346         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
347         * config/rs6000/rs6000.c (expand_block_move): Likewise.
348         (adjacent_mem_locations): Likewise.
349         * config/s390/s390.c (s390_expand_setmem): Likewise.
350         (s390_expand_insv): Likewise.
351         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
352         (*extendqi<mode>2_short_displ): Likewise.
353         * config/sh/sh.c (expand_block_move): Likewise.
354         * config/sh/sh.md (extv, extzv): Likewise.
355
356 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
357
358         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
359         (mem_attrs_htab_eq): ...here.
360         (find_mem_attrs): Replace with...
361         (set_mem_attrs): ...this function.  Take a mem_attrs structure
362         rather than individual fields.
363         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
364         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
365         (set_mem_size, change_address, adjust_address_1, offset_address)
366         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
367         Update accordingly.
368
369 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
370
371         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
372         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
373         Provide a dummy definition of MEM_ADDR_SPACE for generators.
374         (target_rtl): Add x_mode_mem_attrs.
375         (mode_mem_attrs): New macro.
376         (get_mem_attrs): New function.
377         * emit-rtl.c (get_mem_attrs): Rename to...
378         (find_mem_attrs): ...this.
379         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
380         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
381         (set_mem_size, change_address, adjust_address_1, offset_address)
382         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
383         Update accordingly.
384         (init_emit_regs): Initialize mode_mem_attrs.
385
386 2011-07-19  Richard Guenther  <rguenther@suse.de>
387
388         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
389         TRUTH_*_EXPR handling.
390         * tree-ssa-operands.c (get_expr_operands): Likewise.
391         * tree-ssa-pre.c (fully_constant_expression): Likewise.
392         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
393         Likewise.
394         (is_and_or_or): Likewise.
395         (is_norm_cond_subset_of): Likewise.
396
397 2011-07-19  Richard Guenther  <rguenther@suse.de>
398
399         * tree.h (fold_build_pointer_plus_loc): New helper function.
400         (fold_build_pointer_plus_hwi_loc): Likewise.
401         (fold_build_pointer_plus): Define.
402         (fold_build_pointer_plus_hwi): Likewise.
403         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
404         (fold_builtin_memory_op): Likewise.
405         (fold_builtin_stpcpy): Likewise.
406         (fold_builtin_memchr): Likewise.
407         (fold_builtin_strstr): Likewise.
408         (fold_builtin_strchr): Likewise.
409         (fold_builtin_strrchr): Likewise.
410         (fold_builtin_strpbrk): Likewise.
411         (fold_builtin_strcat): Likewise.
412         (expand_builtin_memory_chk): Likewise.
413         (fold_builtin_memory_chk): Likewise.
414         * c-typeck.c (build_unary_op): Likewise.
415         * cgraphunit.c (thunk_adjust): Likewise.
416         * fold-const.c (build_range_check): Likewise.
417         (fold_binary_loc): Likewise.
418         * omp-low.c (extract_omp_for_data): Likewise.
419         (expand_omp_for_generic): Likewise.
420         (expand_omp_for_static_nochunk): Likewise.
421         (expand_omp_for_static_chunk): Likewise.
422         * tree-affine.c (add_elt_to_tree): Likewise.
423         * tree-data-ref.c (split_constant_offset_1): Likewise.
424         * tree-loop-distribution.c (generate_memset_zero): Likewise.
425         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
426         * tree-predcom.c (ref_at_iteration): Likewise.
427         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
428         (add_to_parts): Likewise.
429         (create_mem_ref): Likewise.
430         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
431         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
432         (number_of_iterations_le): Likewise.
433         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
434         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
435         (vect_create_addr_base_for_vector_ref): Likewise.
436         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
437         (vect_create_cond_for_alias_checks): Likewise.
438         * tree-vrp.c (extract_range_from_assert): Likewise.
439         * config/alpha/alpha.c (alpha_va_start): Likewise.
440         (alpha_gimplify_va_arg_1): Likewise.
441         * config/i386/i386.c (ix86_va_start): Likewise.
442         (ix86_gimplify_va_arg): Likewise.
443         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
444         * config/mep/mep.c (mep_expand_va_start): Likewise.
445         (mep_gimplify_va_arg_expr): Likewise.
446         * config/mips/mips.c (mips_va_start): Likewise.
447         (mips_gimplify_va_arg_expr): Likewise.
448         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
449         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
450         (rs6000_gimplify_va_arg): Likewise.
451         * config/s390/s390.c (s390_va_start): Likewise.
452         (s390_gimplify_va_arg): Likewise.
453         * config/sh/sh.c (sh_va_start): Likewise.
454         (sh_gimplify_va_arg_expr): Likewise.
455         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
456         * config/spu/spu.c (spu_va_start): Likewise.
457         (spu_gimplify_va_arg_expr): Likewise.
458         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
459         Likewise.
460         (xstormy16_gimplify_va_arg_expr): Likewise.
461         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
462         (xtensa_gimplify_va_arg_expr): Likewise.
463
464 2011-07-19  Richard Guenther  <rguenther@suse.de>
465
466         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
467         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
468         handling.
469
470         PR middle-end/18908
471         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
472         result of BIT_*_EXPR to bitfield precision.
473
474 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
475
476         PR tree-optimization/49742
477         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
478         as a potential write.
479
480 2011-07-19  Richard Guenther  <rguenther@suse.de>
481
482         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
483         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
484         (forward_propagate_comparison): Simplify, remove obsolete code.
485
486 2011-07-19  Richard Guenther  <rguenther@suse.de>
487
488         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
489         BIT_XOR_EXPR, same as the RTL expander does.
490         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
491         (verify_gimple_assign_unary): Likewise.
492         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
493         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
494         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
495
496 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
497
498         PR tree-optimization/49768
499         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
500         if offset is smaller than bitoffset, but offset+size is bigger
501         than bitoffset.
502
503 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
504
505         PR tree-optimization/49771
506         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
507         zero step, set segment length to the size of the data-ref's type.
508
509 2011-07-18  Martin Jambor  <mjambor@suse.cz>
510
511         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
512         comments.
513         (ipcp_values_pool): Declare.
514         (ipcp_sources_pool): Likewise.
515         (ipcp_lattice): Changed to forward declaration.
516         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
517         cannot_devirtualize.
518         (ipa_node_params): New fields descriptors, lattices, known_vals,
519         clone_for_all_contexts and node dead, removed fields params and
520         count_scale.
521         (ipa_set_param_count): Removed.
522         (ipa_get_param_count): Made to work with descriptors vector.
523         (ipa_get_param): Updated.
524         (ipa_param_cannot_devirtualize_p): Removed.
525         (ipa_param_types_vec_empty): Likewise.
526         (ipa_set_param_used): New function.
527         (ipa_get_param_used): Updated to use descriptors vector.
528         (ipa_func_list): Removed.
529         (ipa_init_func_list): Removed declaration.
530         (ipa_push_func_to_list_1): Likewise.
531         (ipa_pop_func_from_list): Likewise.
532         (ipa_push_func_to_list): Removed.
533         (ipa_lattice_from_jfunc): Remove declaration.
534         (ipa_get_jf_pass_through_result): Declare.
535         (ipa_get_jf_ancestor_result): Likewise.
536         (ipa_value_from_jfunc): Likewise.
537         (ipa_get_lattice): Update.
538         (ipa_lat_is_single_const): New function.
539         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
540         (ipa_init_func_list): Likewise.
541         (ipa_pop_func_from_list): Likewise.
542         (ipa_get_param_decl_index): Fix coding style.
543         (count_formal_params): Removed.
544         (count_formal_params_1): Renamed to count_formal_params.
545         (ipa_populate_param_decls): Update to use descriptors vector.
546         (ipa_initialize_node_params): Likewise.
547         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
548         (ipa_analyze_params_uses): Likewise.
549         (ipa_free_node_params_substructures): Likewise and free also lattices
550         and known values.
551         (duplicate_array): Removed.
552         (ipa_edge_duplication_hook): Add the new edge to the list of edge
553         clones.
554         (ipa_node_duplication_hook): Update to use new lattices.
555         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
556         (ipa_free_all_structures_after_iinln): Likewise.
557         (ipa_write_node_info): Update to use new lattices.
558         (ipa_read_node_info): Likewise.
559         (ipa_get_jf_pass_through_result): New function.
560         (ipa_get_jf_ancestor_result): Likewise.
561         (ipa_value_from_jfunc): Likewise.
562         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
563         * ipa-cp.c: Reimplemented.
564         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
565         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
566         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
567         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
568         * doc/invoke.texi (devirt-type-list-size): Removed description.
569         (ipa-cp-value-list-size): Added description.
570
571 2011-07-18  Richard Henderson  <rth@redhat.com>
572
573         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
574         before calling create_basic_block.
575
576 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
577
578         PR middle-end/49675
579         * tree.c (build_common_builtin_nodes): Register
580         __builtin_return_address, __cyg_profile_func_enter
581         and __cyg_profile_func_exit.
582
583 2011-07-18  Richard Henderson  <rth@redhat.com>
584
585         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
586         (add_labels_and_missing_jumps): ... here.
587         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
588
589 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
590
591         PR target/47744
592         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
593         of DImode hard registers in PLUS address chains.
594
595 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
596
597         PR bootstrap/49769
598         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
599         (alpha*-*-freebsd*): Likewise.
600         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
601         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
602         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
603         crtprec80.o, crtfastmath.o to extra_parts for all targets.
604         (ia64*-*-elf*): Remove extra_parts.
605         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
606         (sparc64-*-linux*): Likewise.
607         (sparc64-*-freebsd*): Likewise.
608
609         Revert:
610         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
611         (ia64*-*-linux*): Likewise.
612         (mips64*-*-linux*): Likewise.
613         (mips*-*-linux*): Likewise.
614
615 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
616
617         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
618
619 2011-07-18  Richard Guenther  <rguenther@suse.de>
620
621         * gimplify.c (gimplify_expr): Use input_location, not saved_location
622         when building new trees.
623
624 2011-07-18  Richard Guenther  <rguenther@suse.de>
625
626         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
627         expansion result to bitfield precision if required.
628
629 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
630
631         * config.gcc (i[3456x]86-*-netware*): Remove.
632
633         * gthr-nks.h: Remove.
634         * configure.ac (enable_threads): Remove nks.
635         * configure: Regenerate.
636
637         * config/i386/i386.c (ix86_encode_section_info): Remove netware
638         reference.
639         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
640         <netware.h> reference.
641
642         * config/i386/netware-libgcc.c,
643         gcc/config/i386/netware-libgcc.def,
644         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
645         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
646         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
647         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
648
649         * doc/extend.texi (Function Attributes,
650         callee_pop_aggregate_return): Remove i?86-netware reference.
651         * doc/install.texi (Configuration, --enable-threads): Remove nks.
652
653 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
654
655         PR target/49746
656         Revert:
657         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
658
659         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
660         patterns.
661
662 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
663
664         PR middle-end/49732
665         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
666
667 2011-07-16  Matthias Klose  <doko@ubuntu.com>
668
669         * doc/install.texi: Document --enable-static-libjava.
670
671 2011-07-15  Richard Henderson  <rth@redhat.com>
672
673         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
674         Replace all three arguments by returning a VEC of edges.
675         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
676         pointers and counts.
677         (fix_edges_for_rarely_executed_code): Merge ...
678         (rest_of_handle_partition_blocks): ... into...
679         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
680         any work was performed.
681         (pass_partition_blocks): Clear todo_flags_finish.
682
683 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
684             Jakub Jelinek  <jakub@redhat.com>
685             Jonathan Wakely  <jwakely.gcc@gmail.com>
686
687         PR libstdc++/49745
688         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
689         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
690
691 2011-07-15  Jason Merrill  <jason@redhat.com>
692
693         PR testsuite/49741
694         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
695         rather than --tool_opts.
696
697 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
698
699         * doc/plugins.texi (Building GCC plugins): gengtype needs its
700         corresponding gtype.state.
701
702 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
703
704         PR target/49723
705         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
706
707 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
708
709         PR target/48220
710         * doc/md.texi (Standard Names): Document window_save.
711         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
712         expand_debug_expr and expand_debug_source_expr.  If the target has
713         a window_save instruction, adjust the ENTRY_VALUE_EXP.
714         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
715         SSA_NAME_VAR is a parameter.
716         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
717         * var-tracking.c (parm_reg_t): New type and associated vector type.
718         (windowed_parm_regs): New variable.
719         (adjust_insn): If the target has a window_save instruction and this
720         is the instruction, make its effect on parameter registers explicit.
721         (next_non_note_insn_var_location): New function.
722         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
723         (vt_add_function_parameter): If the target has a window_save insn,
724         adjust the incoming RTL and record that in windowed_parm_regs.
725         (vt_finalize): Free windowed_parm_regs.
726
727 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
728
729         * doc/invoke.texi (C6X Options): New section.
730         * doc/md.texi (TI C6X family): New section.
731         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
732         tic6x-*-uclinux.
733         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
734         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
735         Provide C6X definitions.
736         * config/c6x/c6x.md: New file.
737         * config/c6x/constraints.md: New file.
738         * config/c6x/predicates.md: New file.
739         * config/c6x/c6x-sched.md.in: New file.
740         * config/c6x/c6x-sched.md: New file.
741         * config/c6x/gensched.sh: New file.
742         * config/c6x/c6x-mult.md.in: New file.
743         * config/c6x/genmult.sh: New file.
744         * config/c6x/c6x-mult.md: New file.
745         * config/c6x/sync.md: New file.
746         * config/c6x/c6x-protos.h: New file.
747         * config/c6x/sfp-machine.h: New file.
748         * config/c6x/c6x.c: New file.
749         * config/c6x/c6x.h: New file.
750         * config/c6x/crti.s: New file.
751         * config/c6x/crtn.s: New file.
752         * config/c6x/lib1funcs.asm: New file.
753         * config/c6x/c6x-modes.def: New file.
754         * config/c6x/genopt.sh: New file.
755         * config/c6x/c6x.opt: New file.
756         * config/c6x/c6x-tables.opt: New file.
757         * config/c6x/c6x-opts.h: New file.
758         * config/c6x/c6x-isas.def: New file.
759         * config/c6x/elf.h: New file.
760         * config/c6x/elf-common.h: New file.
761         * config/c6x/uclinux-elf.h: New file.
762         * config/c6x/t-c6x: New file.
763         * config/c6x/t-c6x-elf: New file.
764         * config/c6x/t-c6x-uclinux: New file.
765         * config/c6x/t-c6x-softfp: New file.
766         * config/c6x/gtd.c: New file.
767         * config/c6x/gtf.c: New file.
768         * config/c6x/ltd.c: New file.
769         * config/c6x/ltf.c: New file.
770         * config/c6x/ged.c: New file.
771         * config/c6x/gef.c: New file.
772         * config/c6x/led.c: New file.
773         * config/c6x/lef.c: New file.
774         * config/c6x/eqd.c: New file.
775         * config/c6x/eqf.c: New file.
776         * config/c6x/libgcc-c6xeabi.ver: New file.
777
778         Revert
779         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
780         PR rtl-optimization/11320
781         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
782         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
783         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
784         current_sched_info->compute_jump_reg_dependencies. Record which
785         registers are used and which registers are set by the jump.
786         Clear deps->reg_conditional_sets after a barrier.
787         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
788         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
789         (init_deps): Initialize reg_conditional_sets.
790         (free_deps): Clear reg_conditional_sets.
791         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
792         Mark registers live on entry of the fallthrough block and conditionally
793         set as set by the jump. Mark registers live on entry of non-fallthrough
794         blocks as used by the jump.
795         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
796         Mark new parameters as unused.
797
798 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
799
800         PR tree-opt/49309
801         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
802         Use fold_build2_loc instead of build2.
803         Use the correct type for the new tree.
804
805 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
806
807         PR rtl-optimization/11320
808         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
809         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
810
811 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
812
813         PR target/49487
814         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
815         of REG.
816         (*rotw<mode>): Use const_int_operand for operand2.
817         Use match_scatch for operand3.
818         (*rotb<mode>): Ditto
819         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
820
821 2011-07-14  Richard Guenther  <rguenther@suse.de>
822
823         PR tree-optimization/49651
824         * tree-ssa-structalias.c (get_constraint_for_1): Properly
825         handle dereferences with subvariables.
826
827 2011-07-14  Richard Guenther  <rguenther@suse.de>
828
829         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
830         (fold_stmt_1): Do it here directly on gimple and as a first thing.
831
832 2011-07-14  Richard Guenther  <rguenther@suse.de>
833
834         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
835         not bool_var when folding bool_var != 1 or bool_var == 0.
836
837 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
838
839         * haifa-sched.c (schedule_insns): Remove outdated comment.
840         (schedule_block): When computing a known value for TODO_SPEC,
841         just set it rather than using logical operations.
842         (try_ready): Likewise.  Use a local variable rather than a
843         pointer to TODO_SPEC.  Reorder an if statement to move the
844         easy case to the then block.
845         * sched-deps.c (dep_spec_p): New static function.
846         (update_dep): Use it to decide whether to call
847         change_spec_dep_to_hard.
848         (get_back_and_forw_lists): Use it.
849         (sd_resolve_dep): Likewise.
850         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
851         (haifa_note_mem_dep): Likewise.
852         (check_dep): Likewise.
853         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
854         (sched_free_deps): Free in two passes.
855
856 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
857
858         PR middle-end/49736
859         * expr.c (all_zeros_p): Undo bogus part of last change.
860
861 2011-07-14  Matthias Klose <doko@ubuntu.com>
862
863         * doc/extend.texi (optimize attribute): Fix typo.
864
865 2011-07-14  Richard Guenther  <rguenther@suse.de>
866
867         * gimplify.c (gimplify_expr): Only do required conversions.
868
869 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
870
871         PR target/43746
872         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
873         i.e. use default_elf_select_section.
874         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
875         (READONLY_DATA_SECTION_ASM_OP): Remove.
876         (TARGET_ASM_NAMED_SECTION): Move from here...
877         * config/avr/avr.c: ...to here.
878         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
879         (avr_asm_named_section): Make static.
880
881 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
882
883         PR bootstrap/49739
884         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
885         and crtfastmath.o for Linux/x86.
886
887 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
888
889         * haifa-sched.c: Include "hashtab.h"
890         (sched_no_dce): New global variable.
891         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
892         SHADOW_P): New macros.
893         (last_clock_var, cycle_issued_insns): Move declarations.
894         (must_backtrack): New static variable.
895         (struct delay_pair): New structure.
896         (delay_htab, delay_htab_i2): New static variables.
897         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
898         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
899         functions.
900         (dep_cost_1): If delay pairs exist, try to look up the insns and
901         use the correct pair delay if we find them.
902         (rank-for_schedule): Tweak priority for insns that must be scheduled
903         soon to avoid backtracking.
904         (queue_insn): Detect conditions which force backtracking.
905         (ready_add): Likewise.
906         (struct sched_block_state): Add member shadows_only_p.
907         (struct haifa_save_data): New structure.
908         (backtrack_queue): New static variable.
909         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
910         unschedule_insns_until, restore_last_backtrack_point,
911         free_topmost_backtrack_point, free_backtrack_queue,
912         estimate_insn_tick, estimate_shadow_tick): New functions.
913         (prune_ready_list): New arg shadows_only_p.  All callers changed.
914         If true, remove everything that isn't SHADOW_P.  Look up delay
915         pairs and estimate ticks to avoid scheduling the first insn too early.
916         (verify_shadows): New function.
917         (schedule_block): Add machinery to enable backtracking.
918         (sched_init): Take sched_no_dce into account when setting
919         DF_LR_RUN_DCE.
920         (free_delay_pairs): New function.
921         (init_h_i_d): Initialize INSN_EXACT_TICK.
922         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
923         * sched-deps.c (sd_unresolve_dep): New function.
924         * sched-int. (struct haifa_sched_info): New fields save_state
925         and restore_state.
926         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
927         feeds_backtrack_insn and shadow_p.
928         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
929         (sched_no_dce): Declare variable.
930         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
931         sd_unresolve_dep): Declare functions.
932         * modulo-sched.c (sms_sched_info): Clear the two new fields.
933         * sched-rgn.c (rgn_const_sched_info): Likewise.
934         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
935         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
936         (ebb_sched_info): Add them for the two new fields.
937         (add_deps_for_risky_insns): Call add_delay_dependencies.
938
939 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
940
941         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
942         Rename -mr11.
943         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
944         (rs6000_call_indirect_aix): Ditto.
945         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
946         (call_indirect_aix<ptrsize>_internal): Ditto.
947         (call_indirect_aix<ptrsize>_nor11): Ditto.
948         (call_indirect_aix<ptrsize>_internal2): Ditto.
949         (call_value_indirect_aix<ptrsize>): Ditto.
950         (call_value_indirect_aix<ptrsize>_internal): Ditto.
951         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
952         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
953         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
954
955 2011-07-13  Jason Merrill  <jason@redhat.com>
956
957         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
958
959 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
960
961         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
962         * config/spu/spu.md ("clrsb<mode>2"): New expander.
963
964 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
965
966         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
967         * configure: Regenerate.
968
969 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
970
971         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
972         (asm_file_start): Remove.
973         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
974         free_bb_for_insn around code that modifies insns before
975         restarting df analysis.
976
977 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
978
979         PR target/49541
980         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
981         (LINK_SPEC): ... here.
982
983 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
984
985         * haifa-sched.c (struct sched_block_state): New.
986         (schedule_block): Move some local variables into such a structure.
987
988 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
989
990         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
991         * config/i386/t-crtpc: Remove.
992         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
993         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
994         tmake_file.
995         (x86_64-*-darwin*): Likewise.
996         (i[34567]86-*-linux*): Likewise.
997         (x86_64-*-linux*): Likewise.
998
999         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1000         Handle -mpc32, -mpc64, -mpc80.
1001
1002 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1003
1004         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1005         * config/alpha/t-crtfm: Remove.
1006         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1007         * config/i386/t-crtfm: Remove.
1008         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1009         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1010         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1011         * config/sparc/t-crtfm: Remove.
1012
1013         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1014         (alpha*-*-freebsd*): Likewise.
1015         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1016         (x86_64-*-darwin*): Likewise.
1017         (i[34567]86-*-linux*): Likewise.
1018         (x86_64-*-linux*): Likewise.
1019         (x86_64-*-mingw*): Likewise.
1020         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1021         (ia64*-*-freebsd*): Likewise.
1022         (ia64*-*-linux*): Likewise.
1023         (mips64*-*-linux*): Likewise.
1024         (mips*-*-linux*): Likewise.
1025         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1026         (sparc64-*-linux*): Likewise.
1027         (sparc64-*-freebsd*): Likewise.
1028
1029 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1030
1031         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1032         * config/darwin-crt3.c: Move to ../libgcc/config.
1033         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1034         ($(T)crt3$(objext)): Remove.
1035         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1036         ($(T)crt2$(objext)): Remove.
1037         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1038         (powerpc64-*-darwin*): Likewise.
1039
1040 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1043
1044         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1045         (addsi_1_zext): This.
1046
1047 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1048
1049         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1050         * doc/tm.texi: Regenerate.
1051         * target.def (mergeable_rodata_prefix): New defhookpod.
1052         * varasm.c (mergeable_string_section, mergeable_constant_section):
1053         Use it. Allocate name with alloca.
1054
1055 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1056
1057         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1058
1059 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1060
1061         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1062         overlap check.
1063
1064 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1065
1066         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
1067         (count_type_elements): Delete.
1068         (complete_ctor_at_level_p): Declare.
1069         * expr.c (flexible_array_member_p): New function, split out from...
1070         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
1071         parameter with for_ctor_p.  When for_ctor_p is true, return the
1072         number of elements that should appear in the top-level constructor,
1073         otherwise return an estimate of the number of scalars.
1074         (categorize_ctor_elements): Replace p_must_clear with p_complete.
1075         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
1076         (complete_ctor_at_level_p): New function, borrowing union logic
1077         from old categorize_ctor_elements_1.
1078         (mostly_zeros_p): Return true if the constructor is not complete.
1079         (all_zeros_p): Update call to categorize_ctor_elements.
1080         * gimplify.c (gimplify_init_constructor): Update call to
1081         categorize_ctor_elements.  Don't call count_type_elements.
1082         Unconditionally prevent clearing for variable-sized types,
1083         otherwise rely on categorize_ctor_elements to detect
1084         incomplete initializers.
1085
1086 2011-07-13  Richard Guenther  <rguenther@suse.de>
1087
1088         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1089         the final type is integral.
1090
1091 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1092
1093         * sched-int.h (struct _dep): Add member cost.
1094         (DEP_COST, UNKNOWN_DEP_COST): New macros.
1095         * sched-deps.c (init_dep_1): Initialize DEP_COST.
1096         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1097         (sched_change_pattern): Reset it for dependent insns.
1098
1099 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1100
1101         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1102         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1103         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1104         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1105         (CRT0_S, MCRT0_S): Remove.
1106         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1107         Remove.
1108         (s-crt0): Remove.
1109         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1110
1111 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1112
1113         * cse.c (insert_with_costs): Put semi-colon after empty loop body
1114         on the next line.
1115         * emit-rtl.c (push_to_sequence): Likewise.
1116         * haifa-sched.c (max_issue): Likewise.
1117         * matrix-reorg.c (add_allocation_site): Likewise.
1118         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1119         * reload.c (alternative_allows_const_pool_ref): Likewise.
1120         * sched-rgn.c (rgn_add_block): Likewise.
1121         (rgn_fix_recovery_cfg): Likewise.
1122         * tree.c (attribute_list_contained): Likewise.
1123
1124 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
1125
1126         * config/i386/i386.c: Tidy processor feature bitmasks.
1127         (m_P4_NOCONA): New.
1128
1129 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
1130
1131         PR rtl-opt/49474
1132         * cprop.c (find_implicit_sets): Correct the condition.
1133
1134 2011-07-12  Richard Henderson  <rth@redhat.com>
1135
1136         PR target/49713
1137         * dwarf2out.h (dwarf_frame_regnum): Remove.
1138         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
1139         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
1140         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1141         (execute_dwarf2_frame): Initialize them.
1142         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1143         users of the macros with the variables.
1144         (expand_builtin_dwarf_sp_column): Revert last change.
1145         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
1146         result of DWARF_FRAME_REGNUM into a local variable.
1147
1148 2011-07-12  Richard Henderson  <rth@redhat.com>
1149
1150         PR target/49714
1151         * config/i386/i386.c (x86_output_mi_thunk): Use
1152         machopic_indirect_call_target instead of machopic_indirection_name
1153         directly.
1154
1155 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
1156             Eric Botcazou  <ebotcazou@adacore.com>
1157
1158         * prefix.h: Wrap up in extern "C" block.
1159
1160 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
1161
1162         AMD bdver2 Enablement
1163         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1164         (case ${target}): Add bdver2.
1165         * config/i386/driver-i386.c (host_detect_local_cpu): Let
1166         -march=native recognize bdver2 processors.
1167         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1168         bdver2 def_and_undef
1169         * config/i386/i386.c (struct processor_costs bdver2_cost): New
1170         bdver2 cost table.
1171         (m_BDVER2): New definition.
1172         (m_AMD_MULTIPLE): Includes m_BDVER2.
1173         (initial_ix86_tune_features): Add bdver2 tuning.
1174         (processor_target_table): Add bdver2 entry.
1175         (static const char *const cpu_names): Add bdver2 entry.
1176         (ix86_option_override_internal): Add bdver2 instruction sets.
1177         (ix86_issue_rate): Add bdver2.
1178         (ix86_adjust_cost): Add bdver2.
1179         (has_dispatch): Add bdver2.
1180         * config/i386/i386.h (TARGET_BDVER2): New definition.
1181         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1182         (enum processor_type): Add PROCESSOR_BDVER2.
1183         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1184         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1185         description.
1186
1187 2011-07-12  Richard Henderson  <rth@redhat.com>
1188
1189         PR target/49714
1190         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1191         destination address in memory on some paths.
1192
1193 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
1194
1195         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1196         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1197         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1198         * function.c (locate_and_pad_parm): Take it into account.
1199         * target.def (function_arg_round_boundary): New hook.
1200         * targhooks.c (default_function_arg_round_boundary): New function.
1201         * targhooks.h (default_function_arg_round_boundary): Declare.
1202         * doc/tm.texi: Regenerate.
1203
1204 2011-07-12  Richard Guenther  <rguenther@suse.de>
1205
1206         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1207         Do not perform no-op changes.
1208
1209 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
1210
1211         * config/arm/predicates.md (neon_struct_operand): Make a normal
1212         predicate.
1213         (neon_struct_or_register_operand): New predicate.
1214         * config/arm/neon.md (movmisalign<mode>): Replace predicates
1215         with neon_struct_or_register_operand.
1216         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1217         neon_struct_operand instead of memory_operand.
1218
1219 2011-07-12  Martin Jambor  <mjambor@suse.cz>
1220
1221         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1222         * cgraph.c (cgraph_get_node_or_alias): Removed.
1223         (change_decl_assembler_name): Changed all calls to
1224         cgraph_get_node_or_alias to a call to cgraph_get_node.
1225         (cgraph_make_decl_local): Likewise.
1226         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1227         * varasm.c (default_binds_local_p_1): Likewise.
1228         (decl_binds_to_current_def_p): Likewise.
1229
1230 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
1231
1232         PR tree-optimization/49712
1233         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1234
1235 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
1236
1237         * genautomata.c (add_arc): Return void.  All callers changed.
1238         (make_automaton): Remove dead code.
1239
1240 2011-07-11  Richard Henderson  <rth@redhat.com>
1241
1242         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1243         (DW_FRAME_POINTER_REGNUM): New.
1244         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1245         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1246         (dwf_regno): New.
1247         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1248         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1249         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1250         Use it.
1251         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1252         * dwarf2out.h (dwarf_frame_regnum): New.
1253         (struct cfa_loc): Document the domain of the reg member.
1254
1255 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
1256
1257         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1258         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
1259
1260 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
1261
1262         PR debug/49676
1263         * dwarf2out.c (int_shift_loc_descriptor): New function.
1264         (int_loc_descriptor): If shorter, emit i as
1265         (i >> shift), shift, DW_OP_shl for suitable shift value.
1266         Similarly, try to optimize large negative values using
1267         DW_OP_neg of a positive value if shorter.
1268         (size_of_int_shift_loc_descriptor): New function.
1269         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1270         changes.
1271         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1272         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1273         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1274         is shorter.
1275         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1276         addend as added DW_OP_plus if it is shorter.
1277
1278 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1279
1280         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1281         (DTORS_SECTION_ASM_OP): Define.
1282
1283 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1284
1285         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1286         * config/t-dfprules: Move to ../libgcc/config.
1287         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1288         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1289         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1290         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1291         Likewise.
1292         (i[34567]86-*-cygwin*): Likewise.
1293         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
1294         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1295         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1296         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1297         D64PBIT_FUNCS, D128PBIT_FUNCS.
1298
1299 2011-07-11  Richard Guenther  <rguenther@suse.de>
1300
1301         * tree-vrp.c (simplify_conversion_using_ranges): Manually
1302         translate the source value-range through the conversion chain.
1303
1304 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
1305
1306         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1307
1308 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1309
1310         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1311         a bi-arch compiler defaulting to 31-bit. In this case:
1312         (tmake_file): Add s390/t-linux64.
1313         * doc/install.texi: Add s390-linux to the list of targets supporting
1314         --enable-targets=all.
1315
1316 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1317             Matthias Klose <doko@debian.org>
1318
1319         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1320         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1321         (tm_file): Add mips/linux64.h.
1322         (tmake_file): Add mips/t-linux64.
1323         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1324         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1325         instead of hardcoded mabi=n32.
1326         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1327         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1328         convention.
1329
1330 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1331
1332         * passes.c (init_optimization_passes): Add invariant motion pass
1333         after induction variable optimization.
1334
1335 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
1336
1337         PR target/39633
1338         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1339         offsets 1..5 set cc0 in a usable way.
1340
1341 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
1342
1343         * tree.h (call_expr_arg): Remove.
1344         (call_expr_argp): Likewise.
1345
1346 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
1347
1348         * config/sparc/sparc.md (save_register_window_1): Rename to...
1349         (window_save): ...this.
1350         * config/sparc/sparc.c (emit_save_register_window): Rename to...
1351         (emit_window_save): ...this.
1352         (sparc_expand_prologue): Adjust to above renaming.
1353
1354 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1355
1356         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1357         of movabs for x32.
1358
1359 2011-07-10  Richard Henderson  <rth@redhat.com>
1360
1361         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1362         run final, instead of emitting text directly.
1363
1364 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1365
1366         * config/i386/i386.c (ix86_option_override_internal): Turn on
1367         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
1368         small PIC models for TARGET_X32.
1369
1370 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
1371
1372         PR target/49684
1373         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1374         $(LIBGCC2_CFLAGS).
1375
1376         PR bootstrap/49680
1377         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1378         stray notes and debug insns by using prev_nonnote_nondebug_insn
1379         instead of PREV_INSN.
1380
1381 2011-07-09  Richard Henderson  <rth@redhat.com>
1382
1383         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1384         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1385         * dwarf2out.c: ... here.
1386         (output_all_cfis): Remove.
1387         (dwarf2out_switch_text_section): Use output_cfis directly.
1388         (size_of_locs): Export.
1389         (output_loc_sequence, output_loc_sequence_raw): Export.
1390         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1391         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1392         output_cfa_loc_raw): Move to ...
1393         * dwarfcfi.c: ... here.
1394         * dwarf2out.h: Update decls.
1395
1396 2011-07-09  Richard Henderson  <rth@redhat.com>
1397
1398         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1399         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1400         * dwarf2cfi.c: ... here.
1401         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1402         (DWARF_ROUND, DWARF_CIE_ID): Remove.
1403         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1404         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1405         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1406
1407 2011-07-09  Richard Henderson  <rth@redhat.com>
1408
1409         * dwarf2cfi.c (cie_return_save): New.
1410         (queue_reg_save): Use compare_reg_or_pc.
1411         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1412         (dwarf2out_frame_debug_expr): Likewise.
1413         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1414         (initial_return_save): Likewise.
1415         (execute_dwarf2_frame): Save and restore initial return save from
1416         the cie to the fde.
1417         * config/mips/mips.c (mips_frame_set): Remove special case for
1418         DWARF_FRAME_RETURN_COLUMN.
1419
1420 2011-07-09  Richard Henderson  <rth@redhat.com>
1421
1422         * dwarf2cfi.c (lookup_cfa): Remove.
1423         (execute_dwarf2_frame): Assert queues are empty on entry.
1424         Setup initial cfa directly, not via lookup_cfa.
1425         Don't clear args_size state here.
1426
1427 2011-07-09  Richard Henderson  <rth@redhat.com>
1428
1429         * dwarf2cfi.c (add_cfi_vec): New.
1430         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
1431         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
1432         (execute_dwarf2_frame): Set add_cfi_vec.
1433
1434 2011-07-09  Richard Henderson  <rth@redhat.com>
1435
1436         * defaults.h (ASM_COMMENT_START): Move here...
1437         * dwarf2asm.c: ... from here.
1438         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1439         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1440         * varasm.c: Likewise.
1441
1442 2011-07-09  Richard Henderson  <rth@redhat.com>
1443
1444         PR debug/49686
1445         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1446         (create_cfi_notes): ... do it here instead.
1447
1448 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
1449
1450         PR debug/49676
1451         * dwarf2out.c (size_of_int_loc_descriptor): New function.
1452         (address_of_int_loc_descriptor): Use it.
1453         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1454
1455 2011-07-09  Richard Henderson  <rth@redhat.com>
1456
1457         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1458         (prologue, epilogue): New.
1459         (return, *rts): New.
1460         (blockage, setd, seti): New.
1461         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1462         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1463         (pdp11_saved_regno): New.
1464         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1465         generate rtl instead of text.
1466         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1467         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
1468         * config/pdp11/pdp11-protos.h: Update.
1469
1470 2011-07-09  Richard Henderson  <rth@redhat.com>
1471
1472         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1473         try to insert an rtl prologue here.
1474         (rs6000_output_function_epilogue): Similarly.
1475         * config/rs6000/rs6000.md (prologue): Emit a barrier to
1476         satisfy !TARGET_SCHED_PROLOG.
1477         (epilogue, sibcall_epilogue): Likewise.
1478
1479 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
1480
1481         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1482         (FP_REG_P): Delete.
1483         (IN_OR_GLOBAL_P): Likewise.
1484
1485 2011-07-08  Jason Merrill  <jason@redhat.com>
1486
1487         PR c++/45437
1488         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1489         compound assignment.
1490
1491         * cgraph.c (cgraph_add_to_same_comdat_group): New.
1492         * cgraph.h: Declare it.
1493         * ipa.c (function_and_variable_visibility): Make sure thunks
1494         have the right visibility.
1495
1496 2011-07-08  Richard Henderson  <rth@redhat.com>
1497
1498         PR bootstrap/49680
1499         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1500         any tablejump vector.
1501
1502         PR bootstrap/49680
1503         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1504         end of the prologue.
1505
1506 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
1507
1508         PR target/49621
1509         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1510         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1511         * config/rs6000/vector.md (vector_select_<mode>,
1512         vector_select_<mode>_uns): Change second operand of NE to
1513         CONST0_RTX (<MODE>mode) instead of const0_rtx.
1514         * config/rs6000/altivec.md (*altivec_vsel<mode>,
1515         *altivec_vsel<mode>_uns): Expect second operand of NE to be
1516         zero_constant of the corresponding vector mode.
1517         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1518         Likewise.
1519
1520 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1521
1522         * graphite-dependences.c (build_alias_set_powerset): Remove
1523         continue from loop, add one more assert.
1524
1525 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1526
1527         PR target/46779
1528         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1529         In particular, allow 8-bit values in r28 and r29.
1530         (avr_hard_regno_scratch_ok): Disallow any register that might be
1531         part of the frame pointer.
1532         (avr_hard_regno_rename_ok): Same.
1533         (avr_legitimate_address_p): Don't allow SUBREGs.
1534
1535 2011-07-08  Julian Brown  <julian@codesourcery.com>
1536
1537         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1538         big-endian mode.
1539         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1540         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1541         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1542         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1543         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1544         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1545         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1546         registers in big-endian mode.
1547
1548 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
1549
1550         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1551         in terms of another.
1552         (write_attr_value): Write a cast if necessary.
1553
1554         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1555         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1556         (REG_WORDS_BIG_ENDIAN): Document.
1557         * doc/tm.texi: Regenerate.
1558         * reload.c (operands_match_p): Take it into account.
1559         (reload_adjust_reg_for_mode): Likewise.
1560         * rtlanal.c (subreg_get_info): Likewise.
1561
1562 2011-07-08  Richard Guenther  <rguenther@suse.de>
1563
1564         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1565         folding.
1566
1567 2011-07-08  Kai Tietz  <ktietz@redhat.com>
1568
1569         * fold-const.c (fold_truth_andor): Factored out truth_andor
1570         label from fold_binary as function.
1571         (fold_binary_loc): Replace truth_andor lable
1572         by function fold_truth_andor.
1573
1574 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
1575
1576         PR middle-end/49519
1577         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1578         check if address is stored in register. If so - give up.
1579         (check_sibcall_argument_overlap_1): Do not perform check of
1580         overlapping when it is call to address.
1581
1582 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1583
1584         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1585         of magic '31'.
1586
1587 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
1588
1589         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1590         GET_MODE_BITSIZE where appropriate.
1591         (widen_leading, expand_parity, expand_ctz, expand_ffs,
1592         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1593         expand_float, expand_fix): Likewise.
1594         * expr.c (convert_move, convert_modes, expand_expr_real_2,
1595         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1596         * stor-layout.c (get_mode_bounds): Likewise.
1597         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1598         Likewise.
1599         * convert.c (convert_to_integer): Likewise.
1600         * expmed.c (expand_shift_1): Likewise.
1601
1602         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1603         a bitsize.
1604
1605         * optabs.c (expand_binop): Tighten conditions for doubleword
1606         expansions.
1607         (widen_bswap): Assert that mode bitsize and precision are the same.
1608         * stor-layout.c (get_best_mode): Skip modes that have lower
1609         precision than bitsize.
1610         * recog.c (simplify_while_replacing): Assert that bitsize and
1611         precision are the same.
1612
1613 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1614
1615         * Makefile.in (LIBGCOV): Remove.
1616         (libgcc.mvars): Remove LIBGCOV.
1617         * libgov.c: Move to ../libgcc.
1618
1619 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1620
1621         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1622
1623 2011-07-08  Martin Jambor  <mjambor@suse.cz>
1624
1625         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1626         is too big for total scalarization.
1627
1628 2011-07-07  Richard Henderson  <rth@redhat.com>
1629
1630         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1631         (DBX_DEBUGGING_INFO): Undef.
1632
1633 2011-07-07  Richard Henderson  <rth@redhat.com>
1634
1635         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
1636         Handle some opcodes specially for debugging.
1637         * print-rtl.c: Include dwarf2out.h
1638         (print_rtx): Handle NOTE_INSN_CFI.
1639         * Makefile.in (print-rtl.o): Update.
1640
1641 2011-07-07  Richard Henderson  <rth@redhat.com>
1642
1643         * tree-pass.h (pass_dwarf2_frame): Declare.
1644         * passes.c (init_optimization_passes): Add it.
1645         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1646         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1647         make static, do not call add_cfis_to_fde.
1648         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1649         dwarf2out_frame_init): Merge into...
1650         (execute_dwarf2_frame): ... here.  New function.
1651         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
1652         saved_do_cfi_asm to a tri-state variable.
1653         (gate_dwarf2_frame, pass_dwarf2_frame): New.
1654         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1655         if it has yet to be done.  Don't call dwarf2cfi_function_init.
1656         * dwarf2out.h, debug.h: Update decls.
1657         * final.c (final_start_function): Don't call
1658         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1659         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1660         * toplev.c (lang_dependent_init): Likewise.
1661
1662 2011-07-07  Richard Henderson  <rth@redhat.com>
1663
1664         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1665         FDE_TABLE_INCREMENT): Replace with...
1666         (fde_vec): ... this, a new vector.
1667         (current_fde): Remove.  Replace all users with cfun->fde.
1668         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1669         (size_of_aranges, dwarf2out_finish): Likewise.
1670         (dwarf2out_alloc_current_fde): Break out from ...
1671         (dwarf2out_begin_prologue): ... here.
1672         (dwarf2out_frame_init): Remove.
1673         * dwarf2cfi.c: Update all users of current_fde.
1674         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1675         * dwarf2out.h: Update decls.
1676         (dw_fde_node): Add fde_index member.
1677         * function.h (struct function): Add fde member.
1678
1679 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1680             Richard Henderson  <rth@redhat.com>
1681
1682         * dwarf2cfi.c (add_cfi): Remove.
1683         (dwarf2out_cfi_label): Remove force argument.  Only generate the
1684         label name.
1685         (add_fde_cfi): Simplify the different code paths.
1686         (add_cie_cfi): New.
1687         (old_cfa, old_cfa_remember): New.
1688         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1689         (last_reg_save_label): Remove.
1690         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1691         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1692         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1693         dwarf2out_frame_debug_cfa_expression,
1694         dwarf2out_frame_debug_cfa_restore,
1695         dwarf2out_frame_debug_cfa_window_save,
1696         dwarf2out_frame_debug_expr): Remove label parameter.
1697         (cfi_label_required_p, add_cfis_to_fde): New.
1698         (dwarf2out_frame_debug_after_prologue): New.
1699         (dwarf2cfi_frame_init): Initialize old_cfa.
1700         (dwarf2out_frame_debug_restore_state): Likewise.
1701         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1702         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1703         * final.c (final_start_function): Call
1704         dwarf2out_frame_debug_after_prologue.
1705
1706 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1707             Richard Henderson  <rth@redhat.com>
1708
1709         * dwarf2cfi.c (cfi_insn): New.
1710         (dwarf2out_cfi_label): Don't emit cfi label here.
1711         (add_fde_cfi): Create a NOTE_INSN_CFI.
1712         (dwarf2out_frame_debug): Setup cfi_insn.
1713         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1714         (dwarf2out_cfi_begin_epilogue): Make static.
1715         (dwarf2out_frame_debug_restore_state): Make static.
1716         * dwarf2out.c (output_cfi_directive): Make static.
1717         (dwarf2out_emit_cfi): New.
1718         * dwarf2out.h: Update.
1719         * final.c (final): Remove CFI notes.
1720         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1721         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1722         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1723         * insn-notes.def (NOTE_INSN_CFI): New.
1724         (NOTE_INSN_CFI_LABEL): New.
1725         * rtl.h (union rtunion_def): Add rt_cfi member.
1726         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1727
1728 2011-07-07  Richard Henderson  <rth@redhat.com>
1729
1730         * dwarf2cfi.c: New file.
1731         * Makefile.in (OBJS): Add it.
1732         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1733         * gengtype.c (open_base_files): Include dwarf2out.h.
1734         * coretypes.h (enum var_init_status): Move from ...
1735         * rtl.h: ... here.
1736         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1737         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1738         expand_builtin_dwarf_sp_column, init_return_column_size,
1739         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1740         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1741         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1742         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1743         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1744         compute_barrier_args_size, dwarf2out_args_size,
1745         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1746         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1747         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1748         queue_reg_save, dwarf2out_flush_queued_reg_saves,
1749         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1750         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1751         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1752         dwarf2out_frame_debug_cfa_expression,
1753         dwarf2out_frame_debug_cfa_restore,
1754         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1755         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1756         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1757         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1758         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1759         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1760         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1761         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1762         dw_loc_descr_node): Move to dwarf2out.h.
1763         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1764         mem_loc_descriptor): Export.
1765         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
1766         (dwarf2out_frame_init): Extract CIE generation code to
1767         dwarf2cfi_frame_init.
1768
1769 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
1770
1771         PR target/49660
1772         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1773         MASK_V8PLUS, remove commented out flag and reorder.
1774
1775 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1776
1777         PR c/49644
1778         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1779         one non-complex and one complex argument, call c_save_expr on both
1780         operands.
1781
1782 2011-07-07  Martin Jambor  <mjambor@suse.cz>
1783
1784         PR middle-end/49495
1785         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1786         (verify_cgraph_node): Some functinality moved to
1787         verify_edge_corresponds_to_fndecl, call it.
1788
1789 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1790
1791         * config.gcc (*local*): Remove.
1792         * doc/install-old.texi: Don't mention local configurations.
1793
1794 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1795
1796         PR debug/49522
1797         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1798         referencing debug insns that have been reset.
1799         (dead_debug_insert_before): Don't assert reg is non-NULL,
1800         instead return immediately if it is NULL.
1801
1802 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1803
1804         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
1805
1806 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1807
1808         * hw-doloop.c: New file.
1809         * hw-doloop.h: New file.
1810         * Makefile.in (OBJS): Add hw-doloop.o.
1811         (hw-doloop.o): New rule.
1812         ($(obj_out_file)): Add hw-doloop.h dependency.
1813         * config/bfin/bfin.c: Include "hw-doloop.h".
1814         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1815         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1816         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
1817         type changed to hwloop_info.  Return bool, true if the loop was
1818         successfully optimized.  Remove code that was moved to
1819         hw-doloop.c, and adjust other parts.
1820         (hwloop_fail): New static function, containing parts that used
1821         to be in bfin_optimize_loop.
1822         (bfin_discover_loop, bfin_discover_loops, free_loops,
1823         bfin_reorder_loops): Remove.
1824         (hwloop_pattern_reg): New static function.
1825         (bfin_doloop_hooks): New variable.
1826         (bfin_reorg_loops): Remove most code, call reorg_loops.
1827         * config/bfin/bfin.md (doloop_end splitter): Also enable if
1828         loop counter is a memory_operand.
1829
1830 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1831
1832         * config.gcc: Support --with-multilib-list for x86 Linux targets.
1833
1834         * configure.ac: Mention x86-64 for --with-multilib-list.
1835         * configure: Regenerated.
1836
1837         * config/i386/gnu-user64.h (SPEC_64): Support x32.
1838         (SPEC_32): Likewise.
1839         (ASM_SPEC): Likewise.
1840         (LINK_SPEC): Likewise.
1841         (TARGET_THREAD_SSP_OFFSET): Likewise.
1842         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
1843         (SPEC_X32): New.
1844
1845         * config/i386/i386.h (TARGET_X32): New.
1846         (TARGET_LP64): New.
1847         (LONG_TYPE_SIZE): Likewise.
1848         (POINTER_SIZE): Likewise.
1849         (POINTERS_EXTEND_UNSIGNED): Likewise.
1850         (OPT_ARCH64): Support x32.
1851         (OPT_ARCH32): Likewise.
1852
1853         * config/i386/i386.opt (mx32): New.
1854
1855         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
1856         (GLIBC_DYNAMIC_LINKERX32): Likewise.
1857         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
1858         (GLIBC_DYNAMIC_LINKERX32): Likewise.
1859
1860         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
1861         (BIONIC_DYNAMIC_LINKERX32): Likewise.
1862         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
1863
1864         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
1865
1866         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
1867
1868         * doc/invoke.texi: Document -mx32.
1869
1870 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
1871
1872         * doc/invoke.texi (mwords-little-endian): Deprecate.
1873         * config/arm/arm.opt (mwords-little-endian): Likewise.
1874         * config/arm/arm.c (arm_option_override): Warn about the deprecation
1875         of -mwords-little-endian.
1876
1877 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
1878
1879         * reload1.c (choose_reload_regs): Use mode sizes to check whether
1880         an old reload register completely defines the required value.
1881
1882 2011-07-07  Richard Guenther  <rguenther@suse.de>
1883
1884         * fold-const.c (fold_unary_loc): Do not strip sign-changes
1885         for NEGATE_EXPR.
1886
1887 2011-07-07  Richard Guenther  <rguenther@suse.de>
1888
1889         * tree-vrp.c (simplify_conversion_using_ranges): New function.
1890         (simplify_stmt_using_ranges): Call it.
1891
1892 2011-07-07  Kai Tietz  <ktietz@redhat.com>
1893
1894         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
1895         (lookup_logical_inverted_value): Likewise.
1896         (simplify_bitwise_binary_1): Likewise.
1897         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
1898
1899 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1900
1901         * gcc.c (%[Spec]): Don't document.
1902         (struct spec_list): Update comment.
1903         (do_spec_1): Don't handle %[Spec].
1904         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
1905
1906 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1907
1908         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
1909         default based on TARGET_ASM_NAMED_SECTION.
1910         * common/common-target.def (have_named_sections): Default to true.
1911         * common/config/default-common.c: Don't include tm.h.
1912         * common/config/picochip/picochip-common.c
1913         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
1914         * common/config/m32c/m32c-common.c: Remove.
1915         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
1916         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1917         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1918         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1919         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1920         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1921         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1922
1923 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1924
1925         PR middle-end/49640
1926         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
1927         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
1928
1929 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1930
1931         PR libmudflap/49550
1932         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
1933
1934 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1935
1936         PR target/39150
1937         * configure.ac (gcc_cv_as_hidden): Also accept
1938         x86_64-*-solaris2.1[0-9]*.
1939         (gcc_cv_as_cfi_directive): Likewise.
1940         (gcc_cv_as_comdat_group_group): Likewise.
1941         (set_have_as_tls): Likewise.
1942         * configure: Regenerate.
1943         * config.gcc (i[34567]86-*-solaris2*): Also handle
1944         x86_64-*-solaris2.1[0-9]*.
1945         * config.host (i[34567]86-*-solaris2*): Likewise.
1946         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
1947         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
1948         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
1949         (TARGET_LD_EMULATION): Use it.
1950         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
1951         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
1952         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
1953         (ASM_CPU64_DEFAULT_SPEC): Define.
1954         (ASM_CPU_SPEC): Use %(asm_cpu_default).
1955         (ASM_SPEC): Redefine.
1956         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
1957         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
1958         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
1959         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
1960         configuration.
1961         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
1962
1963 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1964
1965         * config/sol2.h (ASM_SPEC): Split into ...
1966         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
1967         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
1968         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
1969         (ASM_SPEC): Use ASM_SPEC_BASE.
1970         * config/sparc/sol2.h (ASM_SPEC): Redefine.
1971
1972 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
1973
1974         * config/avr/avr.md (*reload_insi): Change predicate #1 to
1975         const_int_operand.  Ditto for peep2 producing this insn.
1976         Add argument to output_reload_insisf call.
1977         (*movsi,*movsf): Add argument to output_movsisf call.
1978         (*reload_insf): New insn and new peep2 to produce it.
1979         * config/avr/avr-protos.h (output_movsisf): Change prototype.
1980         (output_reload_insisf): Change prototype.
1981         * config/avr/avr.c (avr_asm_len): New function.
1982         (output_reload_insisf): Rewrite.
1983         (output_movsisf): Change prototype.  output_reload_insisf for
1984         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
1985         (adjust_insn_length): Add argument to output_movsisf and
1986         output_reload_insisf call.
1987
1988 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1989
1990         * emit-rtl.c (paradoxical_subreg_p): New function.
1991         * rtl.h (paradoxical_subreg_p): Declare.
1992         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
1993         apply_distributive_law, simplify_comparison, simplify_set): Use it.
1994         * cse.c (record_jump_cond, cse_insn): Likewise.
1995         * expr.c (force_operand): Likewise.
1996         * rtlanal.c (num_sign_bit_copies1): Likewise.
1997         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
1998         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
1999         (push_reload): Use precision to check for paradoxical subregs.
2000         * expmed.c (extract_bit_field_1): Likewise.
2001
2002         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2003         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2004         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2005         simplify_set, simplify_logical, expand_compound_operation,
2006         make_extraction, force_to_mode, if_then_else_cond, extended_count,
2007         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2008         record_value_for_reg): Likewise.
2009         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2010         * simplify-rtx. c (simplify_unary_operation_1,
2011         simplify_binary_operation_1, simplify_const_relational_operation):
2012         Likewise.
2013
2014         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2015         instead of GET_MODE_BITSIZE where appropriate.
2016         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2017         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2018         init_num_sign_bit_copies_in_rep): Likewise.
2019         * cse.c (fold_rtx, cse_insn): Likewise.
2020         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2021         * simplify-rtx.c (simplify_unary_operation_1,
2022         simplify_const_unary_operation, simplify_binary_operation_1,
2023         simplify_const_binary_operation, simplify_ternary_operation,
2024         simplify_const_relational_operation, simplify_subreg): Likewise.
2025         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2026         simplify_if_then_else, simplify_set, expand_compound_operation,
2027         expand_field_assignment, make_extraction, if_then_else_cond,
2028         make_compound_operation, force_to_mode, make_field_assignment,
2029         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2030         extended_count, try_widen_shift_mode, simplify_shift_const_1,
2031         simplify_comparison, record_promoted_value, simplify_compare_const,
2032         record_dead_and_set_regs_1): Likewise.
2033
2034         Revert:
2035         * simplify-rtx.c (simplify_const_binary_operation): Use the
2036         shift_truncation_mask hook instead of performing modulo by width.
2037         Compare against mode precision, not bitsize.
2038         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2039         Use shift_truncation_mask instead of constructing the value manually.
2040
2041 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2042
2043         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2044         declaration.
2045         (rs6000_save_toc_in_prologue_p): Ditto.
2046
2047         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2048         up the static chain (r11) during indirect function calls.
2049         (-msave-toc-indirect): New undocumented debug switch.
2050
2051         * config/rs6000/rs6000.c (struct machine_function): Add
2052         save_toc_in_prologue field to note whether the prologue needs to
2053         save the TOC value in the reserved stack location.
2054         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
2055         to save the TOC in the prologue, do so.
2056         (rs6000_trampoline_init): Don't allow creating AIX style
2057         trampolines if -mno-r11 is in effect.
2058         (rs6000_call_indirect_aix): New function to create AIX style
2059         indirect calls, adding support for -mno-r11 to suppress loading
2060         the static chain, and saving the TOC in the prologue instead of
2061         the call body.
2062         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2063         TOC in the prologue.
2064
2065         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2066         register numbers.
2067         (TOC_REGNUM): Ditto.
2068         (STATIC_CHAIN_REGNUM): Ditto.
2069         (ARG_POINTER_REGNUM): Ditto.
2070         (SFP_REGNO): Delete, unused.
2071         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2072         function descriptor offsets.
2073         (TOC_SAVE_OFFSET_64BIT): Ditto.
2074         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2075         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2076         (AIX_FUNC_DESC_SC_32BIT): Ditto.
2077         (AIX_FUNC_DESC_SC_64BIT): Ditto.
2078         (ptrload): New mode attribute for the appropriate load of a pointer.
2079         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2080         (call_indirect_aix64): Ditto.
2081         (call_value_indirect_aix32): Ditto.
2082         (call_value_indirect_aix64): Ditto.
2083         (call_indirect_nonlocal_aix32_internal): Ditto.
2084         (call_indirect_nonlocal_aix32): Ditto.
2085         (call_indirect_nonlocal_aix64_internal): Ditto.
2086         (call_indirect_nonlocal_aix64): Ditto.
2087         (call): Rewrite AIX indirect function calls.  Add support for
2088         eliminating the static chain, and for moving the save of the TOC
2089         to the function prologue.
2090         (call_value): Ditto.
2091         (call_indirect_aix<ptrsize>): Ditto.
2092         (call_indirect_aix<ptrsize>_internal): Ditto.
2093         (call_indirect_aix<ptrsize>_internal2): Ditto.
2094         (call_indirect_aix<ptrsize>_nor11): Ditto.
2095         (call_value_indirect_aix<ptrsize>): Ditto.
2096         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2097         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2098         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2099         (call_nonlocal_aix32): Relocate in the rs6000.md file.
2100         (call_nonlocal_aix64): Ditto.
2101
2102         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2103         -mno-r11 documentation.
2104
2105 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2106
2107         PR other/49658
2108         * doc/extend.texi (Compound Literals): Fix typo.
2109
2110 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
2111
2112         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2113
2114 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
2115
2116         * configure.ac (plugin-version.h): Generate
2117         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2118         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2119         macros.
2120
2121         * configure: Regenerate.
2122
2123         * doc/plugins.texi (Building GCC plugins): Mention
2124         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2125
2126 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2127
2128         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2129         * combine.c (make_extraction, gen_lowpart_or_truncate,
2130         apply_distributive_law, simplify_comparison,
2131         reg_truncated_to_mode, record_truncated_value): Use it.
2132         * cse.c (notreg_cost): Likewise.
2133         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2134         * expr.c (convert_move, convert_modes): Likewise.
2135         * optabs.c (expand_binop, expand_unop): Likewise.
2136         * postreload.c (move2add_last_label): Likewise.
2137         * regmove.c (optimize_reg_copy_3): Likewise.
2138         * rtlhooks.c (gen_lowpart_general): Likewise.
2139         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2140
2141 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
2142
2143         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2144
2145 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2146
2147         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2148         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2149         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2150         (simplify_const_unary_operation, simplify_binary_operation_1,
2151         simplify_const_binary_operation, simplify_const_relational_operation):
2152         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
2153         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2154         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2155         simplify_shift_const_1, simplify_comparison): Likewise.
2156         * expr.c (convert_modes): Likewise.
2157         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2158         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2159         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2160
2161         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2162
2163 2011-07-06  Richard Guenther  <rguenther@suse.de>
2164
2165         PR tree-optimization/49645
2166         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2167         register variables.
2168         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2169         in type qualification here ...
2170         (copy_reference_ops_from_ref): ... not here.
2171         (vn_reference_lookup_3): ... or here.
2172         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2173         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2174
2175 2011-07-06  Ian Lance Taylor  <iant@google.com>
2176
2177         * doc/install.texi (Configuration): It's
2178         --enable-gnu-indirect-function, not --enable-indirect-function.
2179
2180 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2181
2182         * simplify-rtx.c (simplify_const_binary_operation): Use the
2183         shift_truncation_mask hook instead of performing modulo by width.
2184         Compare against mode precision, not bitsize.
2185         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2186         Use shift_truncation_mask instead of constructing the value manually.
2187
2188 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2189
2190         PR middle-end/47383
2191         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2192         address computation and convert to address_mode if needed.
2193
2194 2011-07-06  Richard Guenther  <rguenther@suse.de>
2195
2196         * tree.c (build_common_tree_nodes_2): Merge with
2197         build_common_tree_nodes.
2198         * tree.h (build_common_tree_nodes): Adjust prototype.
2199         (build_common_tree_nodes_2): Remove.
2200         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2201         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2202
2203 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
2204
2205         PR tree-optimization/49618
2206         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2207         t recurse on the decl.
2208         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2209         return true if expr isn't known to be defined in current
2210         TU or some other LTO partition.
2211
2212 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2213
2214         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2215         override CASE_VALUES_THRESHOLD.
2216
2217         * stmt.c (toplevel): Include params.h.
2218         (case_values_threshold): Use the --param case-values-threshold
2219         value if non-zero, otherwise use machine dependent value.
2220         (expand_case): Use case_values_threshold.
2221
2222         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2223
2224         * doc/invoke.texi (--param case-values-threshold): Document.
2225
2226 2011-07-05  Richard Henderson  <rth@redhat.com>
2227
2228         * dwarf2out.c (dwarf2out_cfi_label): Make static.
2229         (dwarf2out_flush_queued_reg_saves): Make static.
2230         (dwarf2out_reg_save): Remove.
2231         (dwarf2out_return_save): Remove.
2232         (dwarf2out_return_reg): Remove.
2233         (dwarf2out_reg_save_reg): Remove.
2234         (dwarf2out_def_cfa): Merge into ...
2235         (dwarf2out_frame_init): ... here.
2236         * dwarf2out.h, tree.h: Remove declarations as necessary.
2237
2238 2011-07-05  Richard Henderson  <rth@redhat.com>
2239
2240         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2241         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2242         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2243         the alloc insn.
2244
2245         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2246         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2247         (process_epilogue): Don't call dwarf2out_def_cfa.
2248
2249         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2250         indicate the return address save.
2251         (process_cfa_register): Likewise.
2252
2253         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2254         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2255
2256         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2257         for ar.pfs save at alloc insn.
2258
2259 2011-07-05  Richard Henderson  <rth@redhat.com>
2260
2261         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2262         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2263         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2264         stack pointer save.
2265         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2266         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
2267         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2268         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2269
2270 2011-07-05  Richard Henderson  <rth@redhat.com>
2271
2272         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
2273         VUNSPEC_* constants here instead of via define_constants.
2274         (VUNSPEC_PEM): New constant.
2275         (procedure_entry_mask): New insn.
2276         (prologue): New expander.
2277         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2278         (vax_expand_prologue): Rename from vax_output_function_prologue;
2279         emit rtl instead of text.
2280         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2281         (print_operand): Add 'x' prefix.
2282
2283 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2284
2285         PR middle-end/47715
2286         * calls.c (precompute_register_parameters): Promote the function
2287         argument before checking non-legitimate constant.
2288
2289 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2290
2291         PR tree-optimization/47654
2292         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2293         (lst_do_strip_mine_loop): Return an int.
2294         (lst_do_strip_mine): Same.
2295         (scop_do_strip_mine): Same.
2296         (scop_do_block): Loop blocking should strip-mine at least two loops.
2297         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2298         (scop_do_interchange): Same.
2299         * graphite-poly.h (scop_do_interchange): Update declaration.
2300         (scop_do_strip_mine): Same.
2301
2302 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2303
2304         * graphite-clast-to-gimple.c (precision_for_value): Removed.
2305         (precision_for_interval): Removed.
2306         (gcc_type_for_interval): Use mpz_sizeinbase.
2307
2308 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2309
2310         * graphite-ppl.h (value_max): Correct computation of max.
2311
2312 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2313
2314         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2315
2316 2011-07-05  Richard Guenther  <rguenther@suse.de>
2317
2318         * c-decl.c (c_init_decl_processing): Defer building common
2319         tree nodes to c_common_nodes_and_builtins.
2320
2321 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
2322
2323         PR tree-optimization/49580
2324         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2325         the loop's number of iterations.
2326         * tree-parloops.c (transform_to_exit_first_loop): Add the
2327         handling of the loop's number of iterations before the call
2328         to gimple_duplicate_sese_tail.
2329         Insert the stmt caclculating the new rhs of the loop's
2330         condition stmt to the preheader instead of iters_bb.
2331
2332 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2333
2334         PR rtl-optimization/47449
2335         * fwprop.c (forward_propagate_subreg): Don't propagate hard
2336         register nor zero/sign extended hard register.
2337
2338 2011-07-05  Richard Guenther  <rguenther@suse.de>
2339
2340         PR tree-optimization/49518
2341         PR tree-optimization/49628
2342         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2343         irrelevant and invariant data-references.
2344         (vect_analyze_data_ref_access): For invariant loads clear the
2345         group association.
2346
2347 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
2348
2349         PR rtl-optimization/49619
2350         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2351         pass VOIDmode as op0_mode to recursive call, and return temp even
2352         when different from tor, just if it is not IOR of the original
2353         PLUS arguments.
2354
2355         PR rtl-optimization/49472
2356         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2357         negating MULT, negate the second operand instead of first.
2358         (simplify_binary_operation_1) <case MULT>: If one operand is
2359         a NEG and the other is MULT, don't attempt to optimize by negation
2360         of the MULT operand if it only moves the NEG operation around.
2361
2362         PR debug/49602
2363         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2364         get_current_def return value if it can't be trusted to be
2365         the current value of the variable in the current bb.
2366
2367 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
2368
2369         PR target/49600
2370         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2371         general register to memory for !TARGET_INTER_UNIT_MOVES.
2372
2373 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2374
2375         PR target/44643
2376         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2377         instead of TREE_READONLY.
2378
2379 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2380
2381         * doc/extend.texi (AVR Built-in Functions): Update documentation
2382         of __builtin_avr_fmul*.
2383         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2384         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2385         * config/avr/avr.md (fmul): Rename to fmul_insn.
2386         (fmuls): Rename to fmuls_insn.
2387         (fmulsu): Rename to fmulsu_insn.
2388         (fmul,fmuls,fmulsu): New expander.
2389         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2390         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2391         * config/avr/libgcc.S (__fmul): New function.
2392         (__fmuls): New function.
2393         (__fmulsu,__fmulsu_exit): New function.
2394
2395 2011-07-04  Richard Guenther  <rguenther@suse.de>
2396
2397         PR tree-optimization/49615
2398         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2399         basic-block index check.
2400
2401 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2402
2403         * longlong.h (count_leading_zeros, count_trailing_zeros,
2404         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2405         resp. 64.
2406
2407 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
2408
2409         PR tree-optimization/49610
2410         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2411         a basic block.
2412
2413 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2414             Olivier Hainque  <hainque@adacore.com>
2415             Nicolas Setton  <setton@adacore.com>
2416
2417         * tree.h (TYPE_ARTIFICIAL): New flag.
2418         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2419         the DIE of the type if it is artificial.
2420         (gen_array_type_die): Likewise.
2421         (gen_enumeration_type_die): Likewise.
2422         (gen_struct_or_union_type_die): Likewise.
2423         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2424         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2425
2426 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
2427
2428         * tree-object-size.c (pass_through_call): Handle
2429         BUILT_IN_ASSUME_ALIGNED.
2430
2431 2011-07-01  Martin Jambor  <mjambor@suse.cz>
2432
2433         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2434
2435 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2436
2437         PR middle-end/48016
2438         * explow.c (update_nonlocal_goto_save_area): Use proper mode
2439         for stack save area.
2440         * function.c (expand_function_start): Likewise.
2441
2442 2011-07-01  Richard Guenther  <rguenther@suse.de>
2443
2444         PR middle-end/49596
2445         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2446         may have unknown refs.
2447
2448 2011-07-01  Kai Tietz  <ktietz@redhat.com>
2449
2450         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2451
2452 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2453
2454         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2455         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2456         (Specific, mips-sgi-irix6): Likewise.
2457
2458 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2459
2460         PR libmudflap/49549
2461         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2462
2463 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
2464
2465         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2466         [idx]= and [idx1 ... idx2]= before initializers if needed for
2467         array initializers.
2468
2469 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
2470
2471         * config.gcc (score-*-elf): Remove score7.o.
2472         * config/score/t-score-elf: Likewise.
2473         * config/score/score.c: Merge score7 to score.c and
2474         remove forwarding functions.
2475         * config/score/score7.c: Deleted.
2476         * config/score/score7.h: Deleted.
2477
2478 2011-07-01  Richard Guenther  <rguenther@suse.de>
2479
2480         PR tree-optimization/49603
2481         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2482
2483 2011-06-30  Martin Jambor  <mjambor@suse.cz>
2484
2485         * tree-sra.c (struct access): Rename total_scalarization to
2486         grp_total_scalarization
2487         (completely_scalarize_var): New function.
2488         (sort_and_splice_var_accesses): Set total_scalarization in the
2489         representative access.
2490         (analyze_access_subtree): Propagate total scalarization accross the
2491         tree, no holes in totally scalarized trees, simplify coverage
2492         computation.
2493         (analyze_all_variable_accesses): Call completely_scalarize_var instead
2494         of completely_scalarize_record.
2495
2496 2011-06-30  Richard Henderson  <rth@redhat.com>
2497
2498         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2499         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2500         * config/i386/i386.c: Don't include dwarf2out.h.
2501         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2502         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2503         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
2504         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2505         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2506
2507 2011-06-30  Richard Henderson  <rth@redhat.com>
2508
2509         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2510         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2511         * final.c (final_scan_insn): Look for it, and invoke
2512         dwarf2out_frame_debug before the insn if found.
2513
2514 2011-06-30  Richard Henderson  <rth@redhat.com>
2515
2516         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2517         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2518
2519 2011-06-30  Richard Henderson  <rth@redhat.com>
2520
2521         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2522         Define a vector of this type.
2523         (regs_saved_in_regs): Use a VEC.
2524         (num_regs_saved_in_regs): Remove.
2525         (compare_reg_or_pc): New.
2526         (record_reg_saved_in_reg): Split out from...
2527         (dwarf2out_flush_queued_reg_saves): ... here.
2528         (clobbers_queued_reg_save): Update for VEC.
2529         (reg_saved_in): Likewise.
2530         (dwarf2out_frame_debug_init): Likewise.
2531         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2532         (dwarf2out_frame_debug_cfa_register): Likewise.
2533
2534 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2535
2536         PR tree-optimization/49572
2537         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2538         type of the RHS instead of that of the LHS for the expression type.
2539
2540 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2541
2542         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2543         unconditionally.
2544
2545 2011-06-30  Richard Guenther  <rguenther@suse.de>
2546
2547         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2548         * tree-ssa-structalias.c (create_variable_info_for): Do not
2549         add initial constraints for non-var-decls.  Properly handle
2550         globals in other ltrans partitions.
2551         (intra_create_variable_infos): Manually create constraints for
2552         the fake no-alias parameter.
2553         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2554         and assert there are no clones.
2555
2556 2011-06-30  Richard Guenther  <rguenther@suse.de>
2557
2558         PR tree-optimization/46787
2559         * tree-data-ref.c (dr_address_invariant_p): Remove.
2560         (find_data_references_in_stmt): Invariant accesses are ok now.
2561         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2562         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2563         invariant loads.
2564
2565 2011-06-30  Martin Jambor  <mjambor@suse.cz>
2566
2567         PR tree-optimization/49094
2568         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2569         (build_accesses_from_assign): Use it.
2570
2571 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
2572
2573         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2574         handling of BUILT_IN_ASSUME_ALIGNED.
2575
2576         PR debug/49364
2577         * dwarf2out.c (output_abbrev_section): Don't return early
2578         if abbrev_die_table_in_use is 1.
2579         (dwarf2out_finish): Instead don't call output_abbrev_section
2580         nor emit abbrev_section_label in that case.
2581
2582 2011-06-30  Nick Clifton  <nickc@redhat.com>
2583
2584         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2585         for the V850E.
2586
2587 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
2588
2589         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2590         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2591
2592 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
2593
2594         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2595         both pattern and original statements if necessary.
2596         (vect_transform_loop): Likewise.
2597         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2598         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2599         Mark the pattern statement only if the original statement doesn't
2600         have its own uses.
2601         (process_use): Call vect_mark_relevant with additional parameter.
2602         (vect_mark_stmts_to_be_vectorized): Likewise.
2603         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2604         (vect_analyze_stmt): Handle both pattern and original statements
2605         if necessary.
2606         (vect_transform_stmt): Don't store vectorized pattern statement
2607         in the original statement.
2608         (vect_is_simple_use_1): Use related pattern statement only if the
2609         original statement is irrelevant.
2610         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2611
2612 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
2613
2614         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2615         option.
2616         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2617         entry.
2618         (TARGET_AVX128_OPTIMAL): New definition.
2619         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2620         X86_TUNE_AVX128_OPTIMAL entry.
2621         (ix86_option_override_internal): Enable the generation
2622         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2623         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2624         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2625
2626 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2627
2628         PR tree-optimization/49539
2629         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2630         names by means of stmt_references_abnormal_ssa_name.
2631         (associate_plusminus): Call can_propagate_from before propagating
2632         from definition statements.
2633         (ssa_forward_propagate_and_combine): Remove superfluous newline.
2634
2635 2011-06-29  Richard Guenther  <rguenther@suse.de>
2636
2637         * doc/invoke.texi: Document -scev dump modifier.
2638         * tree-pass.h (TDF_SCEV): New dump flag.
2639         * tree-dump.c (dump_option_value_in): Add scev.
2640         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2641         * tree-scalar-evolution.c: Likewise.
2642
2643 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
2644
2645         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2646         (cxa_type_match): Correct declaration.
2647         (__gnu_unwind_pr_common): Reconstruct additional indirection
2648         when __cxa_type_match returns succeeded_with_ptr_to_base.
2649
2650 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2651
2652         PR rtl-optimization/49114
2653         * reload.c (struct replacement): Remove SUBREG_LOC member.
2654         (push_reload): Do not set it.
2655         (push_replacement): Likewise.
2656         (subst_reload): Remove dead code.
2657         (copy_replacements): Remove assertion.
2658         (copy_replacements_1): Do not handle SUBREG_LOC.
2659         (move_replacements): Likewise.
2660         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
2661         Detect subregs via recursive descent instead of via SUBREG_LOC.
2662
2663 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
2664
2665         * config/avr/avr.c (avr_encode_section_info): Dispatch to
2666         default_encode_section_info.
2667
2668 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
2669
2670         PR tree-optimization/49545
2671         * builtins.c (get_object_alignment_1): Update function comment.
2672         Do not use DECL_ALIGN for functions, but test
2673         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2674         * fold-const.c (get_pointer_modulus_and_residue): Don't check
2675         for functions here.
2676         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2677
2678 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
2679
2680         PR debug/49567
2681         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2682         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
2683
2684 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
2685
2686         PR target/34734
2687         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
2688         about uninitialized data attributed 'progmem' from here...
2689         (avr_encode_section_info): ...to this new function.
2690         (TARGET_ENCODE_SECTION_INFO): New define.
2691         (avr_section_type_flags): For data in ".progmem.data", remove
2692         section flag SECTION_WRITE.
2693
2694 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
2695
2696         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2697         _xmulhisi3_exit.
2698         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2699         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
2700         (__umulhisi3): Ditto.
2701         * config/avr/avr.md (mulhisi3): New insn expender.
2702         (umulhisi3): New insn expender.
2703         (*mulhisi3_call): New insn.
2704         (*umulhisi3_call): New insn.
2705
2706 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2707
2708         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2709
2710 2011-06-28  Richard Henderson  <rth@redhat.com>
2711
2712         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
2713         all code and arguments that handled pushes.  Update all callers.
2714
2715 2011-06-28  Richard Henderson  <rth@redhat.com>
2716
2717         * config/arm/arm.c (arm_output_function_prologue): Don't call
2718         thumb1_output_function_prologue.
2719         (arm_expand_prologue): Avoid dead store.
2720         (number_of_first_bit_set): Use ctz_hwi.
2721         (thumb1_emit_multi_reg_push): New.
2722         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2723         to emit the entire prologue as rtl.
2724         (thumb1_output_interwork): Split out from
2725         thumb1_output_function_prologue.
2726         (thumb1_output_function_prologue): Remove.
2727         (arm_attr_length_push_multi): Handle thumb1.
2728         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2729         (prologue_thumb1_interwork): New.
2730         (*push_multi): Allow thumb1; use push_mult_memory_operand.
2731         * config/arm/predicates.md (push_mult_memory_operand): New.
2732
2733 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2734
2735         * config/sparc/sync.md (*stbar): Delete.
2736         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2737
2738 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2739
2740         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2741
2742 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2743
2744         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2745         (TARGET_64BIT_DEFAULT): Define.
2746         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2747         of tm_file.
2748         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2749
2750 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2751
2752         * common.opt (in_lto_p): New Variable entry.
2753         * flags.h (in_lto_p): Move to common.opt.
2754         * gcc.c: Include params.h.
2755         (set_option_handlers): Also use common_handle_option and
2756         target_handle_option.
2757         (main): Call global_init_params, finish_params and init_options_struct.
2758         * opts.c (debug_type_names): Move from toplev.c.
2759         (print_filtered_help): Access quiet_flag through opts pointer.
2760         (common_handle_option): Return early in the driver for some options.
2761         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2762         opts pointer.
2763         * toplev.c (in_lto_p): Move to common.opt.
2764         (debug_type_names): Move to opts.c.
2765         * Makefile.in (OBJS): Remove opts.o.
2766         (OBJS-libcommon-target): Add opts.o.
2767         (gcc.o): Update dependencies.
2768
2769 2011-06-28  Kai Tietz  <ktietz@redhat.com>
2770
2771         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
2772
2773 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2774
2775         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2776         with '=' constraint modifier.
2777         (*divdf3_vfp): Likewise.
2778         ("*mulsf3_vfp"): Likewise.
2779         ("*muldf3_vfp"): Likewise.
2780         ("*mulsf3negsf_vfp"): Likewise.
2781         ("*muldf3negdf_vfp"): Likewise.
2782
2783 2011-06-28  Nick Clifton  <nickc@redhat.com>
2784
2785         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2786         relaxation when performing an incremental link.
2787
2788 2011-06-28  Kai Tietz  <ktietz@redhat.com>
2789
2790         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2791         within BB from last to first.
2792
2793 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2794
2795         * genattr-common.c: New.  Based on genattr.c.
2796         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2797         (MOSTLYCLEANFILES): Add insn-attr-common.h.
2798         (opts.o): Update dependencies.
2799         (.PRECIOUS): Add insn-attr-common.h.
2800         (simple_rtl_generated_h): Add insn-attr-common.h.
2801         (build/genattr-common.o): New.
2802         (genprogrtl): Add attr-common.
2803         * genattr.c (main): Include insn-attr-common.h.  Don't generate
2804         definitions of DELAY_SLOTS or INSN_SCHEDULING.
2805         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
2806
2807 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
2808
2809         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
2810         avr-*-* and avr-*-rtems* targets.
2811
2812         * config/avr/elf.h: New file.
2813         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2814         (TARGET_ASM_SELECT_SECTION): Define.
2815         (INIT_SECTION_ASM_OP): Undefine.
2816         (FINI_SECTION_ASM_OP): Undefine.
2817         (READONLY_DATA_SECTION_ASM_OP): Undefine.
2818         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2819         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2820         * config/avr/avr.h:
2821         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2822         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2823         (MAX_OFILE_ALIGNMENT): Move to elf.h.
2824         (STRING_LIMIT): Move to elf.h.
2825         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2826         (ASM_DECLARE_OBJECT_NAME): Remove.
2827         (ESCAPES): Remove.
2828         (ASM_OUTPUT_SKIP): Remove.
2829         (DWARF2_DEBUGGING_INFO): Remove.
2830         (OBJECT_FORMAT_ELF): Remove.
2831         (USER_LABEL_PREFIX): Remove.
2832         (ASM_OUTPUT_EXTERNAL): Remove.
2833         (ASM_OUTPUT_ASCII): Remove.
2834         (TYPE_ASM_OP): Remove.
2835         (SIZE_ASM_OP): Remove.
2836         (WEAK_ASM_OP): Remove.
2837         (STRING_ASM_OP): Remove.
2838         (SET_ASM_OP): Remove.
2839         (ASM_WEAKEN_LABEL): Remove.
2840         (TYPE_OPERAND_FMT): Remove.
2841         (ASM_DECLARE_FUNCTION_SIZE): Remove.
2842         (ASM_FINISH_DECLARE_OBJECT): Remove.
2843         (NO_DOLLAR_IN_LABEL): Remove.
2844         (ASM_GENERATE_INTERNAL_LABEL): Remove.
2845         (ASM_OUTPUT_CASE_LABEL): Remove.
2846         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
2847         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
2848         (gas_output_ascii): Remove.
2849         (gas_output_limited_string): Remove.
2850         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
2851         * config/avr/avr-protos.h
2852         (gas_output_ascii): Remove prototye.
2853         (gas_output_limited_string): Remove prototype.
2854
2855 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
2856
2857         PR target/48637
2858         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
2859         asm operands.
2860
2861 2011-06-27  Jan Hubicka  <jh@suse.cz>
2862
2863         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
2864         node instead of references in node.
2865
2866 2011-06-27  Richard Henderson  <rth@redhat.com>
2867
2868         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
2869         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
2870         inside ifdef.
2871
2872 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
2873
2874         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
2875
2876         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
2877         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
2878         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
2879         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
2880         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
2881         (evaluate_stmt, execute_fold_all_builtins): Handle
2882         BUILT_IN_ASSUME_ALIGNED.
2883         * tree-ssa-dce.c (propagate_necessity): Likewise.
2884         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2885         call_may_clobber_ref_p_1): Likewise.
2886         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
2887         (expand_builtin_assume_aligned): New function.
2888         * doc/extend.texi (__builtin_assume_aligned): Document.
2889
2890         PR debug/49544
2891         * cselib.c (promote_debug_loc): If cselib_preserve_constants
2892         and l has two DEBUG_INSN owned locs instead of just one, adjust
2893         the second location's setting_insn too.
2894
2895 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2896
2897         PR libmudflap/38738
2898         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
2899
2900 2011-06-27  Nick Clifton  <nickc@redhat.com>
2901
2902         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
2903         bit position of highest bit set into a count of the high zero bits.
2904
2905 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2906
2907         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
2908
2909 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2910
2911         PR lto/48492
2912         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
2913         to a NULL parent.
2914
2915 2011-06-27  Richard Guenther  <rguenther@suse.de>
2916
2917         PR tree-optimization/49394
2918         * passes.c (execute_one_pass): Restore current_pass after
2919         applying IPA transforms.
2920
2921 2011-06-27  Kai Tietz  <ktietz@redhat.com>
2922
2923         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
2924         out of type precision after operation.
2925         (find_bswap): Take for limit value the integer auto-promotion
2926         into account.
2927
2928 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2929
2930         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
2931         forward scan as well.
2932
2933 2011-06-27  Tristan Gingold  <gingold@adacore.com>
2934
2935         PR target/44241
2936         * config/vms/vms-protos.h: New file.
2937         * config/vms/vms-crtlmap.map: New file.
2938         * config/vms/vms.c: New file.
2939         * config/vms/make-crtlmap.awk: New file.
2940         * config/vms/vms-crtl.h: File removed.
2941         * config/vms/vms-crtl-64.h: File removed.
2942         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
2943         * config/alpha/vms64.h: Do not include vms-crtl-64.h
2944         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
2945         clear some builtins on VMS.  Calls vms_patch_builtins.
2946         (avms_asm_output_external): Remove.
2947         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
2948         (struct crtl_name_spec): Remove
2949         (DO_CTRL_NAMES): Remove.
2950         * config/ia64/vms.h (struct crtl_name_spec): Remove
2951         (DO_CTRL_NAMES): Remove.
2952         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
2953         clear some builtins on VMS.  Calls vms_patch_builtins.
2954         (ia64_asm_output_external): Remove DO_CRTL_NAME.
2955         * config/ia64/vms64.h: Do not include vms-crtl-64.h
2956         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
2957
2958 2011-06-27  Tristan Gingold  <gingold@adacore.com>
2959
2960         * config/alpha/alpha.c (alpha_end_function): Always generate .end
2961         directive on VMS.
2962
2963 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2964
2965         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
2966         the function receives nonlocal gotos.
2967
2968 2011-06-27  Richard Guenther  <rguenther@suse.de>
2969
2970         PR tree-optimization/49536
2971         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
2972         For non-scalar inner types use a scalar type according to
2973         the scalar inner mode.
2974
2975 2011-06-27  Richard Guenther  <rguenther@suse.de>
2976
2977         PR tree-optimization/49365
2978         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
2979
2980 2011-06-27  Richard Guenther  <rguenther@suse.de>
2981
2982         PR tree-optimization/49169
2983         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
2984         the alignment of function decls.
2985
2986 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
2987
2988         PR target/47997
2989         * config/darwin.c (darwin_mergeable_string_section): Place string
2990         constants in '.cstring' rather than '.const' when CF/NSStrings are
2991         active.
2992
2993 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2994
2995         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
2996         (emit_save_register_window): Likewise.
2997         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
2998         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
2999         Swap back %o7/%i7 in register naming.
3000
3001 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
3002
3003         PR driver/49371
3004         * config/darwin.c (darwin_override_options): Improve warning when
3005         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3006         is given with fpie/fPIE.
3007         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3008         * config/darwin9.h (PIE_SPEC): New.
3009
3010 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3011
3012         * timevar.c (timevar_print): Increase width for display of timevar
3013         name.
3014
3015 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
3016
3017         PR c++/46400
3018         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3019         instead of TYPE_CHAIN for chain_next for types.
3020
3021 2011-06-24  Richard Henderson  <rth@redhat.com>
3022
3023         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3024         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3025         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3026         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3027         (sparc_flat_expand_prologue): Emit individual instructions
3028         instead of one of the above.
3029
3030 2011-06-24  Easwaran Raman  <eraman@google.com>
3031
3032         PR rtl-optimization/49429
3033         PR target/49454
3034         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
3035         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3036         used to copy y into x.
3037         * calls.c (initialize_argument_information): Mark
3038         an argument addressable if it is passed by invisible reference.
3039         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
3040         if it is passed by reference.
3041
3042 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         PR rtl-optimization/49504
3045         * rtlanal.c (nonzero_bits1): Properly handle addition or
3046         subtraction of a pointer in Pmode if pointers extend unsigned.
3047         (num_sign_bit_copies1): Likewise.
3048
3049 2011-06-24  Martin Jambor  <mjambor@suse.cz>
3050
3051         PR tree-optimizations/49516
3052         * tree-sra.c (sra_modify_assign): Choose the safe path for
3053         aggregate copies if we also did scalar replacements.
3054
3055 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3056
3057         PR target/49335
3058         * config/arm/predicates.md (add_operator): New.
3059         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3060
3061 2011-06-24  Andi Kleen  <ak@linux.intel.com>
3062
3063         * tree-sra.c (type_internals_preclude_sra_p): Add msg
3064         parameter. Split up ifs and report reason in *msg.
3065         (reject): Add.
3066         (find_var_candiate): Add msg variable.
3067         Split up ifs and report reason to reject.
3068         (find_param_candidates): Add msg variable.
3069         Pass msg to type_internals_preclude_sra_p.
3070
3071 2011-06-23  Jeff Law  <law@redhat.com>
3072
3073         PR middle-end/48770
3074         * reload.h (reload): Change to return a bool.
3075         * ira.c (ira): If requested by reload, run a fast DCE pass after
3076         reload has completed.  Fix comment typo.
3077         * reload1.c (need_dce): New file scoped static.
3078         (reload): Set reload_completed here.  Return whether or not a DCE
3079         pass after reload is needed.
3080         (delete_dead_insn): Set need_dce as needed.
3081
3082         PR middle-end/49465
3083         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3084         to detect threading through joiner block.  If there was already
3085         an edge to the new target, then do not change the PHI nodes.
3086
3087 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
3088
3089         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3090         get_pointer_alignment to see if base isn't sufficiently aligned.
3091
3092 2011-06-23  Jan Hubicka  <jh@suse.cz>
3093
3094         PR tree-optimize/49373
3095         * tree-pass.h (all_late_ipa_passes): Declare.
3096         * cgraphunit.c (init_lowered_empty_function): Fix properties.
3097         (cgraph_optimize): Execute late passes; remove unreachable funcions
3098         after materialization.
3099         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3100         LTOing.
3101         * passes.c (all_late_ipa_passes): Declare.
3102         (dump_passes, register_pass): Handle late ipa passes.
3103         (init_optimization_passes): Move ipa_pta to late passes; schedule
3104         fixup_cfg at beggining of all_passes.
3105         (apply_ipa_transforms): New function.
3106         (execute_one_pass): When doing simple ipa pass, apply all transforms.
3107
3108 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
3109
3110         * params.c: Include common/common-target.h.  Don't include tm.h.
3111         (lang_independent_params): Move from toplev.c.
3112         (global_init_params): New.
3113         * params.h (global_init_params): Declare.
3114         * target.def (default_params): Move to common-target.def.
3115         * toplev.c (lang_independent_options): Remove.
3116         (lang_independent_params): Move to params.c.
3117         (general_init): Use global_init_params.
3118         * common/common-target.def (option_default_params): Move from
3119         target.def.
3120         * common/config/ia64/ia64-common.c: Include params.h.
3121         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3122         from ia64.c.
3123         * common/config/rs6000/rs6000-common.c: Include params.h.
3124         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3125         from rs6000.c.
3126         * common/config/sh/sh-common.c: Include params.h.
3127         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3128         from sh.c.
3129         * common/config/spu/spu-common.c: Include params.h.
3130         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3131         from spu.c.
3132         * config/ia64/ia64.c (ia64_option_default_params,
3133         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3134         * config/rs6000/rs6000.c (rs6000_option_default_params,
3135         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3136         * config/sh/sh.c (sh_option_default_params,
3137         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3138         * config/spu/spu.c (spu_option_default_params,
3139         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3140         * Makefile.in (OBJS): Remove params.o.
3141         (OBJS-libcommon-target): Add params.o.
3142         (params.o, $(common_out_object_file)): Update dependencies.
3143         * doc/tm.texi: Regenerate.
3144
3145 2011-06-23  Alan Modra  <amodra@gmail.com>
3146
3147         PR bootstrap/49383
3148         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3149         invocation for 2011-06-09 changes.
3150
3151 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3152
3153         PR libgomp/49490
3154         * omp-low.c (expand_omp_for_static_nochunk): Only
3155         use n ceil/ nthreads size for the first n % nthreads threads in the
3156         team instead of all threads except for the last few ones which
3157         get less work or none at all.
3158
3159         PR debug/49496
3160         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3161         uses.
3162
3163 2011-06-22  Richard Guenther  <rguenther@suse.de>
3164
3165         PR tree-optimization/49493
3166         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3167         Refer to the alias target of variables.
3168         (associate_varinfo_to_alias_1): Remove.
3169         (ipa_pta_execute): Do not associate aliases with anything.
3170         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3171         (cgraph_function_node): Likewise.
3172         (cgraph_function_or_thunk_node): Likewise.
3173         (varpool_variable_node): Likewise.
3174
3175 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3176
3177         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3178         * config.gcc (arm*-*-linux*): Default to gnu tls.
3179         (arm*-*-*): Add --with-tls option.
3180         (all_defaults): Add 'tls'.
3181
3182 2011-06-22  Richard Henderson  <rth@redhat.com>
3183
3184         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3185         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3186         (dwarf2out_frame_debug_cfa_window_save): Rename from
3187         dwarf2out_window_save; make static.
3188         * tree.h (dwarf2out_window_save): Don't declare.
3189
3190         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3191         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3192         (emit_save_register_window): Rename from gen_save_register_window;
3193         emit the insn and add REG_CFA_* notes.
3194         (sparc_expand_prologue): Update to match.
3195         * config/sparc/sparc.md (save_register_window_1): Simplify from
3196         save_register_window<P:mode>.
3197
3198 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3199
3200         PR target/49497
3201         * config/i386/i386.md (*lea_general_2): Always allow SImode.
3202         (*lea_general_2_zext): Likewise.
3203         (imul to lea peepholes): Use const359_operand and check
3204         TARGET_PARTIAL_REG_STALL.
3205
3206         * config/i386/predicates.md (const359_operand): New.
3207
3208 2011-06-22  Michael Matz  <matz@suse.de>
3209
3210         * cgraphunit.c (assemble_thunk): Use correct return type.
3211
3212 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3213             Dmitry Melnik  <dm@ispras.ru>
3214
3215         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3216         (neon_output_shift_immediate): Ditto.
3217         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3218         prototype.
3219         (neon_output_shift_immediate): Ditto.
3220         * config/arm/neon.md (vashl<mode>3): Modified constraint.
3221         (vashr<mode>3_imm): New insn pattern.
3222         (vlshr<mode>3_imm): Ditto.
3223         (vashr<mode>3): Modified constraint.
3224         (vlshr<mode>3): Ditto.
3225         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3226         predicate.
3227         (imm_for_neon_rshift_operand): Ditto.
3228         (imm_lshift_or_reg_neon): Ditto.
3229         (imm_rshift_or_reg_neon): Ditto.
3230
3231         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3232
3233 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3234
3235         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3236         builtin calls even if likelyvalue is not CONSTANT.
3237         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3238         Return get_value_for_expr of first operand
3239         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3240         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3241         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3242         their non-checking counterparts.
3243         (call_may_clobber_ref_p_1): Likewise.
3244         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3245         like their non-checking counterparts.
3246         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3247         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3248         like their non-checking counterparts.
3249         (find_func_clobbers): Likewise.
3250         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3251         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3252
3253         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3254         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3255         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3256         of base type reference as argument.
3257         (resolve_addr_in_expr): Likewise.  Fix keep computation.
3258         (convert_descriptor_to_signed): Renamed to...
3259         (convert_descriptor_to_mode): ... this.  For wider types convert to
3260         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3261         (typed_binop): New function.
3262         (scompare_loc_descriptor, ucompare_loc_descriptor,
3263         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3264         default to unsigned type instead of signed.
3265
3266         PR debug/47858
3267         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3268         (gimple_build_debug_source_bind_stat): New prototype.
3269         (gimple_build_debug_source_bind): Define.
3270         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3271         gimple_debug_source_bind_get_value,
3272         gimple_debug_source_bind_get_value_ptr,
3273         gimple_debug_source_bind_set_var,
3274         gimple_debug_source_bind_set_value): New inlines.
3275         * gimple.c (gimple_build_debug_source_bind_stat): New function.
3276         * gimple-pretty-print.c (dump_gimple_debug): Handle
3277         GIMPLE_DEBUG_SOURCE_BIND.
3278         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3279         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3280         * tree-parloops.c (eliminate_local_variables,
3281         separate_decls_in_region): Likewise.
3282         (separate_decls_in_region_debug): Renamed from
3283         separate_decls_in_region_debug_bind.  Handle
3284         gimple_debug_source_bind_p.
3285         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3286         prototypes.
3287         (DECL_HAS_DEBUG_ARGS_P): Define.
3288         (struct tree_function_decl): Add has_debug_args_flag field.
3289         * tree.c (debug_args_for_decl): New variable.
3290         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3291         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3292         (rewrite_debug_stmt_uses): New function.
3293         (rewrite_stmt): Use it to rewrite debug stmt uses.
3294         * rtl.def (DEBUG_PARAMETER_REF): New.
3295         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3296         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3297         DEBUG_PARAMETER_REF.
3298         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3299         * print-rtl.c (print_rtx): Likewise.
3300         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3301         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3302         debug stmts in the first bb.
3303         * tree-inline.c (remap_ssa_name): If remapping default def
3304         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3305         a source bind debug stmt.
3306         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3307         (maybe_move_debug_stmts_to_successors): Likewise.
3308         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
3309         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3310         debug args vector from old_decl to new_decl.
3311         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3312         or modified parameters, add debug bind stmts before call
3313         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3314         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3315         on DECL_DEBUG_EXPRs from debug args vector.
3316         (expand_debug_source_expr): New function.
3317         (expand_debug_locations): Use it for source bind insns.
3318         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3319         * var-tracking.c (prepare_call_arguments): Add debug args
3320         to call_arguments if any.
3321         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3322         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3323         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3324         (get_ref_die_offset, parameter_ref_descriptor): New functions.
3325         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3326         (gen_subprogram_die): Handle parameters identified by
3327         DEBUG_PARAMETER_REF.
3328
3329 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3330
3331         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3332         * doc/install.texi (Configuration): Document --with-tls.
3333         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3334         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3335         (arm_tls_descseq_addr): New.
3336         (legitimize_tls_address): Add tlsdesc support.
3337         (arm_cannot_copy_insn_p): Check for tlscall.
3338         (arm_emit_tls_decoration): Likewise.
3339         * config/arm/arm.h (TARGET_GNU2_TLS): New.
3340         (OPTION_DEFAULT_SPECS): Add with-tls support.
3341         * config/arm/arm.md (R1_REGNUM): Define.
3342         (tlscall): New.
3343         * config/arm/arm.opt (tls_type): New enumeration type and values.
3344         (mtls-dialect): New switch.
3345         * config/arm/arm-opts.h (enum tls_type): New.
3346
3347 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3348
3349         * attribs.c (register_attribute): Added assert to check that all
3350         attribute specs are registered with a name that is not empty and
3351         does not start with '_'.
3352         (decl_attributes): Avoid the lookup of the "naked" attribute spec
3353         if the function has no attributes.
3354         * tree.c (is_attribute_with_length_p): Removed.
3355         (is_attribute_p): Removed.
3356         (private_is_attribute_p): New.
3357         (private_lookup_attribute): New.
3358         (lookup_attribute): Removed.
3359         (lookup_ident_attribute): New.
3360         (remove_attribute): Require the first argument to be in the form
3361         'text', not '__text__'.  Updated asserts.
3362         (merge_attributes): Use lookup_ident_attributes instead of
3363         lookup_attribute.
3364         (merge_dllimport_decl_attributes): Use remove_attribute.
3365         (attribute_list_contained): Likewise.
3366         (attribute_list_equal): Immediately return 1 if the arguments are
3367         identical pointers.
3368         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
3369         'int'.  Require the first argument to be in the form 'text', not
3370         '__text__'.  Require the second argument to be an identifier.
3371         (lookup_attribute): Made inline.  Require the first argument to be
3372         in the form 'text', not '__text__'.
3373         (private_is_attribute_p, private_lookup_attribute): New.
3374         Updated comments.
3375
3376 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3377
3378         * builtins.c: Add sync_ or SYNC__ to builtin names.
3379         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3380         * omp-low.c: Add sync_ or SYNC__ to builtin names.
3381
3382 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
3383
3384         PR target/33049
3385         * config/avr/avr.md (extzv): New expander.
3386         (*extzv): New insn.
3387         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3388         * config/avr/constraints.md (C04): New constraint.
3389         * doc/md.texi (Machine Constraints): Document it.
3390
3391 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
3392
3393         PR middle-end/49489
3394         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3395         unsignedp argument instead of 1 for clrsb_optab.
3396         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3397         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
3398         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3399         * optabs.c (widen_leading): Call widen_operand and expand_unop
3400         with 0 as unsignedp argument instead of 1 for clrsb_optab.
3401         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3402
3403 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
3404
3405         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3406
3407 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
3408
3409         * gensupport.c (add_define_attr): New static function.
3410         (is_predicable): Allow multi-alternative lists for the "predicable"
3411         attribute.
3412         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3413         (process_one_cond_exec): Call alter_attrs_for_insn.
3414         * doc/md.texi (Defining Attributes): Mention some standard names.
3415         (Conditional Execution): Update documentation for "predicable".
3416
3417         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3418         __builtin_clrsbll): Document.
3419         * doc/rtl.texi (clrsb): New entry.
3420         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
3421         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
3422         (expand_unop): Handle clrsb_optab.
3423         (init_optabs): Initialize it.
3424         * optabs.h (enum optab_index): New entry OTI_clrsb.
3425         (clrsb_optab): Define.
3426         * genopinit.c (optabs): Add an entry for it.
3427         * builtins.c (expand_builtin): Handle clrsb builtin functions.
3428         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3429         BUILT_IN_CLRSBLL): New.
3430         * rtl.def (CLRSB): New code.
3431         * dwarf2out.c (mem_loc_descriptor): Handle it.
3432         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3433         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3434         and popcount.
3435         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3436         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3437         (__ctzDI2): Move declaration.
3438         * config/bfin/bfin.md (clrsbsi2): New expander.
3439         (signbitssi2): Use the CLRSB rtx.
3440         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
3441         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3442
3443 2011-06-21  Richard Guenther  <rguenther@suse.de>
3444
3445         * ipa-inline-transform.c (inline_transform): Fix previous change.
3446
3447 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
3448
3449         PR tree-optimization/49478
3450         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3451         with constant operand.
3452
3453 2011-06-21  Richard Guenther  <rguenther@suse.de>
3454
3455         * ipa-inline-transform.c (inline_transform): Fix typo.
3456
3457 2011-06-21  Richard Guenther  <rguenther@suse.de>
3458
3459         PR tree-optimization/49483
3460         * tree-vect-stmts.c (vectorizable_assignment): Also handle
3461         VIEW_CONVERT_EXPR conversions.
3462
3463 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
3464
3465         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3466         * config/avr/avr-tables.opt: New file (generated).
3467         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3468         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3469         avr-mcus.def.
3470         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3471         (avr_option_override): Don't process -mmcu= argument here.  Set
3472         avr_current_device using avr_mcu_index.
3473         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3474         * config/avr/avr.opt (mmcu=): Use Enum.
3475         * config/avr/t-avr (avr-devices.o): Update dependencies.
3476         ($(srcdir)/config/avr/avr-tables.opt): New.
3477         * target.def (help): Remove.
3478         * doc/tm.texi.in (TARGET_HELP): Remove.
3479         * doc/tm.texi: Regenerate.
3480         * opts.c: Don't include target.h.
3481         (common_handle_option): Don't call targetm.help.
3482         * system.h (TARGET_HELP): Poison.
3483         * Makefile.in (opts.o): Update dependencies.
3484
3485 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3486
3487         * config/usegld.h: New file.
3488         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3489         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3490         (LIB_SPEC): Likewise.  Search /lib.
3491         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3492         (RDYNAMIC_SPEC): Handle GNU ld.
3493         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3494         Define.
3495         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3496         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3497         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3498         (STACK_CHECK_STATIC_BUILTIN): Define.
3499         * config/sol2.opt (compat-bsd): Remove.
3500         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3501         * config/sol2-bi.h: New file.
3502         * config/sol2-gld.h: Remove.
3503         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3504         (NO_DBX_BNSYM_ENSYM): Remove.
3505         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3506         (STACK_CHECK_STATIC_BUILTIN): Remove.
3507         Test USE_GLD instead of TARGET_GNU_LD.
3508         * config/i386/sol2-10.h: Rename to ...
3509         * config/i386/sol2-bi.h .. this.
3510         (SUBTARGET_EXTRA_SPECS): Redefine.
3511         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3512         (MULTILIB_DEFAULTS): Remove.
3513         (DEFAULT_ARCH32_P): Define.
3514         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3515         (ARCH64_SUBDIR): Define.
3516         Test USE_GLD instead of TARGET_GNU_LD.
3517         (I386_EMULATION): Rename to ...
3518         (ARCH32_EMULATION): ... this.
3519         (X86_64_EMULATION): Rename to ...
3520         (ARCH64_EMULATION): ... this.
3521         (TARGET_LD_EMULATION): Remove.
3522         (LINK_ARCH_SPEC): Remove.
3523         * config/i386/sol2-gas.h: Remove.
3524         * config/i386/t-sol2-10: Rename to ...
3525         * config/i386/t-sol2-64: ... this.
3526         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3527         (AS_SPARC64_FLAG): Define.
3528         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3529         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3530         depending on TARGET_CPU_DEFAULT.
3531         (CPP_CPU_SPEC): Redefine.
3532         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3533         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3534         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3535         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3536         ASM_ARCH_DEFAULT_SPEC): Redefine.
3537         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3538         LINK_ARCH_DEFAULT_SPEC.
3539         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3540         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3541         (ARCH64_SUBDIR): Define.
3542         (LINK_ARCH64_SPEC): Redefine.
3543         (CC1_SPEC): Redefine.
3544         (OPTION_DEFAULT_SPECS): Redefine.
3545         (MULTILIB_DEFAULTS): Define.
3546         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3547         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3548         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3549         (NO_DBX_BNSYM_ENSYM): Remove.
3550         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3551         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3552         (TARGET_ASM_NAMED_SECTION): Likewise.
3553         (STACK_CHECK_STATIC_BUILTIN): Remove.
3554         * config/sparc/sol2-bi.h: Remove.
3555         * config/sparc/sol2-gas-bi.h: Remove.
3556         * config/sparc/sol2-gas.h: Remove.
3557         * config/sparc/sol2-gld-bi.h: Remove.
3558         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3559         common parts ...
3560         (*-*-solaris2*): ... here.
3561
3562 2011-06-21  Christian Bruel  <christian.bruel@st.com>
3563
3564         PR other/43564
3565         * ipa-inline.c (can_inline_edge_p): Check
3566         !DECL_DISREGARD_INLINE_LIMITS.
3567
3568 2011-06-21  Christian Bruel  <christian.bruel@st.com>
3569
3570         PR middle-end/49139
3571         * cgraphunit.c (process_function_and_variable_attributes): warn when
3572         always_inline functions that are not inline.
3573         * ipa-inline-transform.c (inline_transform): Always call
3574         optimize_inline.
3575         * tree-inline.c (tree_inlinable_function_p): Use error instead
3576         of sorry.
3577         (expand_call_inline): Likewise.
3578
3579 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
3580
3581         * Makefile.in (dg_target_exps): Set.
3582         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3583         instead of 7, try to divide it more evenly.
3584
3585 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
3586
3587         PR target/49089
3588         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3589         (avx256_split_unaligned_store): New definition.
3590         (ix86_option_override_internal): Enable avx256 unaligned load/store
3591         splitting only when avx256_split_unaligned_load/store is set.
3592
3593 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
3594
3595         * regrename.c (scan_rtx_reg): Handle the case where we write to an
3596         open chain in a smaller mode without failing the entire block.
3597
3598 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3599
3600         PR middle-end/47725
3601         * combine.c (cant_combine_insn_p): Don't check zero/sign
3602         extended hard registers.
3603
3604 2011-06-21  Alan Modra  <amodra@gmail.com>
3605
3606         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3607         CONST high part large-toc address.
3608         (rs6000_tls_referenced_p): Make static.
3609         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3610
3611 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3612
3613         PR middle-end/47725
3614         * combine.c (cant_combine_insn_p): Check zero/sign extended
3615         hard registers.
3616
3617 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3618
3619         PR target/49385
3620         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3621         one of the operands is a register.
3622
3623 2011-06-20  Kai Tietz  <ktietz@redhat.com>
3624
3625         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3626         operations in combination with binary and.
3627
3628 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
3629
3630         * regrename.c (do_replace): Don't update notes.
3631
3632 2011-06-20  Alan Modra  <amodra@gmail.com>
3633
3634         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3635         of toc-relative address in CONST.
3636         (rs6000_delegitimize_address): Recognize changed address.
3637         (rs6000_legitimize_reload_address): Likewise.
3638         (rs6000_emit_move): Don't force these constants to memory.
3639         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3640         toc-relative address in CONST.
3641         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3642         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3643
3644 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3645
3646         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
3647         (count_trailing_zeros): Likewise.
3648
3649 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3650
3651         PR other/49325
3652         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3653         .init_array can be used with .ctors on targets.
3654         * configure: Regenerated.
3655
3656 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3657
3658         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3659         if the element type is volatile.
3660
3661 2011-06-18  Jan Hubicka  <jh@suse.cz>
3662
3663         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3664         extra name aliases.
3665         (lto_symtab_resolve_can_prevail_p): Likewise.
3666         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3667         * cgraphbuild.c (record_reference): Remove extra body alias code.
3668         (mark_load): Likewise.
3669         (mark_store): Likewise.
3670         * cgraph.h (varpool_node): Remove extra_name filed;
3671         add alias_of and extraname_alias.
3672         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3673         (varpool_alias_aliased_node): New inline function.
3674         (varpool_variable_node): New function.
3675         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3676         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3677         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3678         (input_varpool_node): Likewise.
3679         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3680         (varpool_externally_visible_p): Remove extra body alias code.
3681         (function_and_variable_visibility): Likewise.
3682         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3683         (ipa_pta_execute): Use it.
3684         * varpool.c (varpool_remove_node): Remove extra name alias code.
3685         (varpool_mark_needed_node): Likewise.
3686         (varpool_analyze_pending_decls): Analyze aliases.
3687         (assemble_aliases): New functoin.
3688         (varpool_assemble_decl): Use it.
3689         (varpool_create_variable_alias): New function.
3690         (varpool_extra_name_alias): Rewrite.
3691         (varpool_for_node_and_aliases): New function.
3692
3693 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
3694
3695         PR target/49411
3696         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3697         last_arg_constant and last argument doesn't match its predicate,
3698         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3699         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3700         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3701         spelling of error message.
3702         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3703         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3704         const_0_to_255_operand instead of const_int_operand.
3705
3706         Revert:
3707         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3708
3709         * config/i386/sse.md (blendbits): Remove mode attribute.
3710         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3711         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3712         Check integer value of operand 3 in insn constraint.
3713
3714 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
3715
3716         PR rtl-optimization/48542
3717         * reload.c (find_equiv_reg): Stop looking when finding a
3718         setjmp-type call.
3719         * reload1.c (reload_as_needed): Invalidate all reload
3720         registers when crossing a setjmp-type call.
3721
3722 2011-06-16  Jeff Law  <law@redhat.com>
3723
3724         * tree-ssa-threadupdate.c (struct redirection_data): New field
3725         intermediate_edge.
3726         (THREAD_TARGET2): Define.
3727         (redirection_data_eq): Also check that the intermediate edge is equal.
3728         (lookup_redirection_data): Drop useless argument.  Extract the
3729         outgoing_edge and intermediate edge from E.  Callers updated.
3730         (copy_phi_args, update_destination_phis): New functions.
3731         (fix_duplicate_block_edges): Likewise.
3732         (create_edge_and_update_destination_phis): Duplicate all the edges
3733         hung off e->aux.  Use copy_phi_args.
3734         (create_duplicates): Use fix_duplicate_block_edges.
3735         (fixup_template_block): Likewise.
3736         (redirect_edges): If necessary, redirect the joiner block's incoming
3737         edge to the duplicate of the joiner block.
3738         (thread_block): Don't muck up loops when threading through a joiner
3739         block.
3740         (thread_through_loop_header): Handle threading through a joiner block.
3741         (mark_threaded_blocks, register_jump_thread): Likewise.
3742         * tree-flow.h (register_jump_thread): Add new argument.  Callers
3743         updated.
3744         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3745         (thread_across_edge): Handle threading through a joiner block.
3746
3747 2011-06-16  Martin Jambor  <mjambor@suse.cz>
3748
3749         PR tree-optimization/49343
3750         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3751         calculate offset, provide 2nd operand for the new COMPONENT_REF.
3752
3753 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
3754
3755         * config/darwin-protos.h (machopic_select_rtx_section): Move to
3756         inside RTX_CODE ifdef.
3757
3758 2011-06-16  Tom de Vries  <tom@codesourcery.com>
3759
3760         PR target/45098
3761         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3762         Disallow NULL pointer for pointer arithmetic.
3763
3764 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3765
3766         PR target/49398
3767         Revert.
3768         2011-06-10  Wei Guozhi  <carrot@google.com>
3769
3770         PR target/45335
3771         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3772         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3773         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3774         related peephole2.
3775         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3776         related peephole2.
3777         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3778         (arm_legitimate_ldrd_p): New prototype.
3779         (arm_output_ldrd): New prototype.
3780         * config/arm/arm.c (arm_check_ldrd_operands): New function.
3781         (arm_legitimate_ldrd_p): New function.
3782         (arm_output_ldrd): New function.
3783
3784 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3785
3786         PR middle-end/46500
3787         * doc/tm.texi.in: Update Copyright date.
3788         * doc/tm.texi: Regenerate.
3789         * targhooks.c (default_setup_incoming_varargs): Replace
3790         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3791         (default_pretend_outgoing_varargs_named): Likewise.
3792         (hook_pass_by_reference_must_pass_in_stack): Likewise.
3793         (hook_callee_copies_named): Likewise.
3794         (default_function_arg_advance): Likewise.
3795         (default_function_arg): Likewise.
3796         (default_function_incoming_arg): Likewise.
3797         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3798         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3799         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3800         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3801         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3802         * targhooks.h (default_setup_incoming_varargs): Likewise.
3803         (default_pretend_outgoing_varargs_named): Likewise.
3804         (hook_pass_by_reference_must_pass_in_stack): Likewise.
3805         (hook_callee_copies_named): Likewise.
3806         (default_function_arg_advance): Likewise.
3807         (default_function_arg): Likewise.
3808         (default_function_incoming_arg): Likewise.
3809         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3810         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3811         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3812         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3813         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3814         * target.def (pass_by_reference): Likewise.
3815         (setup_incoming_varargs, strict_argument_naming): Likewise.
3816         (pretend_outgoing_varargs_named, callee_copies): Likewise.
3817         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3818         (function_incoming_arg): Likewise.
3819         * target.h: Don't include "tm.h" .
3820         (cumulative_args_t): New typedef.
3821         [GCC_TM_H] (get_cumulative_args): New static inline function.
3822         [GCC_TM_H] (pack_cumulative_args): Likewise.
3823         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3824         argument type with cumulative_args_t.
3825         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3826         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3827         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3828         (frv_arg_partial_bytes, frv_function_arg): Likewise.
3829         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3830         (frv_function_arg_1): Likewise.
3831         * config/s390/s390.c (s390_pass_by_reference): Likewise.
3832         (s390_function_arg_advance, s390_function_arg): Likewise.
3833         * config/m32c/m32c.c (m32c_function_arg): Likewise.
3834         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3835         (m32c_strict_argument_naming): Likewise.
3836         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3837         (spu_function_arg_advance): Likewise.
3838         (spu_setup_incoming_varargs): Likewise.  Make static.
3839         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
3840         Remove prototype.
3841         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
3842         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3843         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
3844         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
3845         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
3846         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
3847         (mep_pass_by_reference, mep_function_arg): Likewise.
3848         (mep_function_arg_advance): Likewise.
3849         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3850         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
3851         (m32r_function_arg, m32r_function_arg_advance): Likewise.
3852         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
3853         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
3854         (ix86_function_arg, ix86_pass_by_reference): Likewise.
3855         (ix86_setup_incoming_varargs): Likewise.
3856         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
3857         (sh_strict_argument_naming): Likewise.
3858         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
3859         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
3860         (sh_function_arg_advance, sh_function_arg): Likewise.
3861         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
3862         (pdp11_function_arg_advance): Likewise.
3863         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
3864         Likewise.
3865         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
3866         * config/avr/avr.c (avr_function_arg): Likewise.
3867         (avr_function_arg_advance): Likewise.
3868         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
3869         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
3870         (xtensa_function_arg_1): Likewise.
3871         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
3872         Likewise.
3873         (xstormy16_function_arg): Likewise.
3874         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
3875         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
3876         (fr30_function_arg_advance): Likewise.
3877         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3878         (lm32_function_arg, lm32_function_arg_advance): Likewise.
3879         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
3880         (moxie_function_arg, moxie_function_arg_advance): Likewise.
3881         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
3882         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
3883         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
3884         (cris_function_arg, cris_function_incoming_arg): Likewise.
3885         (cris_function_arg_advance, cris_function_arg_1): Likewise.
3886         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
3887         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
3888         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
3889         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
3890         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
3891         (mn10300_arg_partial_bytes): Likewise.
3892         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
3893         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
3894         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
3895         (ia64_function_arg_1): Likewise.
3896         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
3897         (m68k_function_arg): Likewise.
3898         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
3899         (rs6000_function_arg, setup_incoming_varargs): Likewise.
3900         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
3901         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
3902         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
3903         (picochip_arg_advance): Likewise.
3904         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
3905         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
3906         (mcore_function_arg_advance): Likewise.
3907         * config/score/score.c (score_pass_by_reference): Likewise.
3908         (score_function_arg_advance): Likewise.
3909         (score_arg_partial_bytes): Likewise.  Make static.
3910         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
3911         * config/arm/arm.c (arm_arg_partial_bytes): Replace
3912         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3913         (arm_function_arg, arm_function_arg_advance): Likewise.
3914         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
3915         * config/pa/pa.c (pa_pass_by_reference): Likewise.
3916         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
3917         (pa_function_arg): Likewise.
3918         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
3919         (mips_function_arg, mips_function_arg_advance): Likewise.
3920         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
3921         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
3922         * config/vax/vax.c (vax_function_arg): Likewise.
3923         (vax_function_arg_advance): Likewise.
3924         * config/h8300/h8300.c (h8300_function_arg): Likewise.
3925         (h8300_function_arg_advance): Likewise.
3926         * config/v850/v850.c (v850_pass_by_reference): Likewise.
3927         (v850_strict_argument_naming, v850_function_arg): Likewise.
3928         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
3929         (v850_setup_incoming_varargs): Likewise.
3930         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
3931         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
3932         (mmix_function_arg, mmix_pass_by_reference): Likewise.
3933         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
3934         with const void *.
3935         * config/bfin/bfin.c (setup_incoming_varargs): Replace
3936         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3937         (bfin_function_arg_advance, bfin_function_arg): Likewise.
3938         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
3939         * calls.c (emit_call_1): Change type of args_so_far to
3940         cumulative_args_t.  Changed all callers.
3941         (initialize_argument_information): Likewise.
3942         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
3943         * dse.c (get_call_args): Likewise.
3944         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3945         * function.c (pass_by_reference, reference_callee_copied): Likewise.
3946         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
3947         New member args_so_far_v.  Changed all users.
3948         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
3949         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3950         * config/mips/mips.c (mips_output_args_xfer): Likewise.
3951         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3952         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3953         * config/microblaze/microblaze.c (microblaze_expand_prologue):
3954         Likewise.
3955         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
3956         m32r_pass_by_reference.
3957
3958 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
3959
3960         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
3961         argument to be a VEC of statements.
3962         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
3963         assert that pattern statements have to have their vector type set.
3964         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
3965         Change the first argument to be a VEC of statements.  Update
3966         documentation.
3967         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
3968         (vect_handle_widen_mult_by_const): New function.
3969         (vect_recog_widen_mult_pattern):  Change the first argument to be a
3970         VEC of statements.  Update documentation.  Check that the constant is
3971         INTEGER_CST.  Support multiplication by a constant that fits an
3972         intermediate type - call vect_handle_widen_mult_by_const.
3973         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
3974         call.  Handle additional pattern statements if necessary.
3975
3976 2011-06-16  Nick Clifton  <nickc@redhat.com>
3977
3978         PR target/49427
3979         * config.gcc: Set cpu_type to v850 for any V850 architecture.
3980         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
3981         md_file, extra_modes, out_file and extra_options are these are all
3982         deduced from cpu_type.
3983
3984 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
3985
3986         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
3987         truncation mask to 63.
3988
3989 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
3990
3991         PR target/49313
3992         PR target/29524
3993         * longlong.h: Add AVR support:
3994         (count_leading_zeros): New macro.
3995         (count_trailing_zeros): New macro.
3996         (COUNT_LEADING_ZEROS_0): New macro.
3997         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
3998         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
3999         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4000         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4001         (LIB2FUNCS_EXCLUDE): Add _clz.
4002         * config/avr/libgcc.S (XCALL): Move up in file.
4003         (XJMP): New C Macro.
4004         (DEFUN): New asm macro.
4005         (ENDF): New asm macro.
4006         (__ffssi2): New function.
4007         (__ffshi2): New function.
4008         (__loop_ffsqi2): New function.
4009         (__ctzsi2): New function.
4010         (__ctzhi2): New function.
4011         (__clzdi2): New function.
4012         (__clzsi2): New function.
4013         (__clzhi2): New function.
4014         (__paritydi2): New function.
4015         (__paritysi2): New function.
4016         (__parityhi2): New function.
4017         (__parityqi2): New function.
4018         (__popcounthi2): New function.
4019         (__popcountsi2): New function.
4020         (__popcountdi2): New function.
4021         (__popcountqi2): New function.
4022         (__bswapsi2): New function.
4023         (__bswapdi2): New function.
4024         (__ashldi3): New function.
4025         (__ashrdi3): New function.
4026         (__lshrdi3): New function.
4027         Fix suspicous lines.
4028
4029 2011-06-16  Richard Guenther  <rguenther@suse.de>
4030
4031         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4032         the same as x != 0.
4033         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4034         to (bool) X & 1.
4035         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4036         equality compares against zero for the lower bit.
4037
4038 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
4039
4040         PR tree-optimization/49419
4041         * tree-vrp.c (execute_vrp): Call init_range_assertions
4042         before estimate_numbers_of_iterations, call
4043         free_number_of_iterations_estimates before calling
4044         remove_range_assertions.
4045
4046 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4047
4048         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4049         (struct partial_schedule): Add rows_length field.
4050         (verify_partial_schedule): Check rows_length.
4051         (ps_insert_empty_row): Handle rows_length.
4052         (create_partial_schedule): Likewise.
4053         (free_partial_schedule): Likewise.
4054         (reset_partial_schedule): Likewise.
4055         (create_ps_insn): Remove rest_count argument.
4056         (remove_node_from_ps): Update rows_length.
4057         (add_node_to_ps): Update rows_length and call create_ps_insn
4058         without passing row_rest_count.
4059         (rotate_partial_schedule): Update rows_length.
4060
4061 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4062
4063         * ddg.c (add_intra_loop_mem_dep): New function.
4064         (build_intra_loop_deps): Call it.
4065
4066 2011-06-13  Jeff Law  <law@redhat.com>
4067
4068         * df-problems.c (df_lr_local_compute): Manually CSE
4069         PIC_OFFSET_TABLE_REGNUM.
4070         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4071         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4072
4073 2011-06-13  Jan Hubicka  <jh@suse.cz>
4074
4075         * cgraphunit.c (handle_alias_pairs): New function.
4076         (cgraph_finalize_compilation_unit): Use it.
4077         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4078         as externally visible.
4079
4080 2011-06-15  Richard Guenther  <rguenther@suse.de>
4081
4082         * expr.c (expand_expr_real_2): Reduce all integral types to
4083         bitfield precision.
4084         (expand_expr_real_1): Likewise.
4085
4086 2011-06-15  Martin Jambor  <mjambor@suse.cz>
4087
4088         PR tree-optimization/48613
4089         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4090         ipa_node_params_vector is NULL.
4091
4092 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
4093
4094         PR debug/49382
4095         * dwarf2out.c (dw_loc_list_node): Add force field.
4096         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4097         location in the list, even if it is modified before first real insn.
4098         (output_loc_list): Emit empty ranges with force flag set.
4099         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4100
4101 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
4102
4103         PR target/49349
4104         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4105         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
4106         above a fence.  Update comments.
4107         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4108         placed just above it.  Do not allow NULL place_to_insert.
4109
4110 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
4111
4112         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4113         (slpeel_tree_peel_loop_to_edge): Don't call
4114         remove_dead_stmts_from_loop.
4115         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4116         remove irrelevant pattern statements.  For irrelevant statements
4117         check if it is the last statement of a detected pattern, use
4118         corresponding pattern statement instead.
4119         (destroy_loop_vec_info): No need to remove pattern statements,
4120         only free stmt_vec_info.
4121         (vect_transform_loop): For irrelevant statements check if it is
4122         the last statement of a detected pattern, use corresponding
4123         pattern statement instead.
4124         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4125         pattern statements.  Set basic block for the new statement.
4126         (vect_pattern_recog): Update documentation.
4127         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4128         operands of pattern statements.
4129         (vectorizable_call): Fix printing.  In case of a pattern statement
4130         use the lhs of the original statement when creating a dummy
4131         statement to replace the original call.
4132         (vect_analyze_stmt): For irrelevant statements check if it is
4133         the last statement of a detected pattern, use corresponding
4134         pattern statement instead.
4135         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4136         statements use gsi of the original statement.
4137
4138 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4139
4140         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4141         common/common-target-def.h.
4142         * target.def (default_target_flags, handle_option,
4143         supports_split_stack, optimization_table, init_struct,
4144         except_unwind_info, unwind_tables_default, have_named_sections):
4145         Move to common/common-target.def.
4146         * target.h (enum opt_levels, struct default_options): Move to
4147         common/common-target.h.
4148         * targhooks.c (default_except_unwind_info,
4149         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4150         default_target_handle_option, empty_optimization_table): Move to
4151         common/common-targhooks.c.
4152         * targhooks.h (default_except_unwind_info,
4153         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4154         default_target_handle_option, empty_optimization_table): Move to
4155         common/common-targhooks.h.
4156         * common/common-target-def.h: Include common/common-targhooks.h.
4157         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4158         defined.
4159         * common/common-target.def (handle_option, option_init_struct,
4160         option_optimization_table, default_target_flags,
4161         except_unwind_info, supports_split_stack, unwind_tables_default,
4162         have_named_sections): Move from target.def.
4163         (HOOK_PREFIX): Undefine at end of file.
4164         * common/common-target.h: Include input.h.
4165         (enum opt_levels, struct default_options): Move from target.h.
4166         * common/common-targhooks.c, common/common-targhooks.h: New.
4167         * config.gcc (target_has_targetm_common): Default to yes.
4168         (moxie*): Set target_has_targetm_common=no.
4169         (hppa*-*-*): Don't set target_has_targetm_common=yes.
4170         * doc/tm.texi: Regenerate.
4171         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4172         (C_TARGET_DEF_H): Add common/common-targhooks.h.
4173         (GCC_OBJS): Remove vec.o.
4174         (OBJS): Remove hooks.o and vec.o.
4175         (OBJS-libcommon-target): Add vec.o, hooks.o and
4176         common/common-targhooks.o.
4177         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4178         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4179         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4180         cfglayout.o, $(out_object_file), $(common_out_object_file)):
4181         Update dependencies.
4182         (common/common-targhooks.o): New.
4183         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
4184         * common/config/pa/pa-common.c: Include more headers.  Take
4185         copyright dates from pa.c.
4186         (pa_option_optimization_table, pa_handle_option,
4187         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4188         TARGET_HANDLE_OPTION): Move from pa.c.
4189         * common/config/alpha/alpha-common.c,
4190         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4191         common/config/bfin/bfin-common.c,
4192         common/config/cris/cris-common.c,
4193         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4194         common/config/h8300/h8300-common.c,
4195         common/config/i386/i386-common.c,
4196         common/config/ia64/ia64-common.c,
4197         common/config/iq2000/iq2000-common.c,
4198         common/config/lm32/lm32-common.c,
4199         common/config/m32c/m32c-common.c,
4200         common/config/m32r/m32r-common.c,
4201         common/config/m68k/m68k-common.c,
4202         common/config/mcore/mcore-common.c,
4203         common/config/mep/mep-common.c,
4204         common/config/microblaze/microblaze-common.c,
4205         common/config/mips/mips-common.c,
4206         common/config/mmix/mmix-common.c,
4207         common/config/mn10300/mn10300-common.c,
4208         common/config/pdp11/pdp11-common.c,
4209         common/config/picochip/picochip-common.c,
4210         common/config/rs6000/rs6000-common.c,
4211         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4212         common/config/score/score-common.c, common/config/sh/sh-common.c,
4213         common/config/sparc/sparc-common.c,
4214         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4215         common/config/vax/vax-common.c,
4216         common/config/xstormy16/xstormy16-common.c,
4217         common/config/xtensa/xtensa-common.c: New.
4218         * config/alpha/alpha.c: Include common/common-target.h.
4219         (alpha_option_optimization_table, alpha_handle_option,
4220         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4221         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4222         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4223         * config/arm/arm.c (arm_option_optimization_table,
4224         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4225         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4226         arm-common.c.
4227         * config/avr/avr.c (avr_option_optimization_table,
4228         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4229         to avr-common.c.
4230         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4231         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4232         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4233         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4234         * config/cris/cris.c (cris_option_optimization_table,
4235         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4236         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4237         cris-common.c.
4238         * config/fr30/fr30.c (fr30_option_optimization_table,
4239         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4240         to fr30-common.c.
4241         * config/frv/frv.c (frv_option_optimization_table,
4242         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4243         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4244         * config/h8300/h8300.c (h8300_option_optimization_table,
4245         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4246         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4247         * config/i386/i386-protos.h (ix86_handle_option): Declare.
4248         * config/i386/i386.c: Include common/common-target.h.
4249         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4250         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4251         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4252         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4253         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4254         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4255         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4256         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4257         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4258         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4259         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4260         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4261         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4262         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4263         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4264         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4265         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4266         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4267         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4268         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4269         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4270         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4271         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4272         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4273         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4274         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4275         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4276         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4277         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4278         ix86_option_optimization_table, ix86_option_init_struct,
4279         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4280         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4281         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4282         i386-common.c.
4283         * config/i386/t-i386 (i386.o): Update dependencies.
4284         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4285         * config/ia64/ia64.c (ia64_option_optimization_table,
4286         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4287         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4288         ia64_handle_option): Move to ia64-common.c.
4289         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4290         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4291         * config/lm32/lm32.c (lm32_option_optimization_table,
4292         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4293         to lm32-common.c.
4294         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4295         m32c-common.c.
4296         * config/m32r/m32r.c (m32r_option_optimization_table,
4297         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4298         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4299         m32r_handle_option): Move to m32r-common.c.
4300         (m32r_memory_move_cost): Remove comment referring to
4301         TARGET_HANDLE_OPTION.
4302         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4303         Move to m68k-common.c.
4304         * config/mcore/mcore.c (mcore_option_optimization_table,
4305         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4306         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4307         * config/mep/mep.c (mep_option_optimization_table,
4308         mep_handle_option, TARGET_HANDLE_OPTION,
4309         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4310         Move to mep-common.c.
4311         * config/microblaze/microblaze.c
4312         (microblaze_option_optimization_table,
4313         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4314         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4315         * config/mips/mips.c (mips_handle_option,
4316         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4317         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4318         mips-common.c.
4319         * config/mmix/mmix.c (mmix_option_optimization_table,
4320         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4321         Move to mmix-common.c.
4322         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4323         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4324         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4325         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4326         * config/pa/pa.c: Include common/common-target.h.
4327         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4328         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4329         pa_handle_option): Move to pa-common.c.
4330         (pa_option_override): Use targetm_common.except_unwind_info.
4331         (pa_asm_output_mi_thunk, pa_function_section): Use
4332         targetm_common.have_named_sections.
4333         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4334         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4335         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4336         pdp11_handle_option, pdp11_option_init_struct): Move to
4337         pdp11-common.c.
4338         * config/picochip/picochip.c (picochip_option_optimization_table,
4339         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4340         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4341         * config/rs6000/rs6000.c: Include common/common-target.h.
4342         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4343         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4344         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4345         rs6000_handle_option): Move to rs6000-common.c.
4346         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4347         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4348         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4349         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4350         * config/s390/s390.c (processor_flags_table,
4351         s390_option_optimization_table, s390_option_init_struct,
4352         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4353         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4354         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4355         * config/s390/s390.h (processor_flags_table): Declare.
4356         * config/score/score.c (score_option_optimization_table,
4357         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4358         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4359         score_handle_option): Move to score-common.c.
4360         * config/sh/sh.c (sh_option_optimization_table,
4361         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4362         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4363         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4364         * config/sparc/sparc.c: Include common/common-target.h.
4365         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4366         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4367         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4368         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4369         spu_option_init_struct): Move to spu-common.c.
4370         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4371         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4372         * config/v850/v850.c (small_memory_physical_max,
4373         v850_handle_memory_optionn v850_handle_option,
4374         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4375         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4376         v850-common.c.
4377         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4378         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4379         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4380         Move to xtensa-common.c.
4381         * cfglayout.c: Include common/common-target.h.
4382         (fixup_reorder_chain): Use targetm_common.have_named_sections.
4383         * cfgrtl.c: Include common/common-target.h.
4384         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4385         targetm_common.have_named_sections.
4386         * dbxout.c: Include common/common-target.h.
4387         (dbxout_function_end): Use targetm_common.have_named_sections.
4388         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4389         targetm_common.except_unwind_info.
4390         * dwarf2out.c: Include common/common-target.h.
4391         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4392         dwarf2out_begin_prologue, dwarf2out_frame_init,
4393         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4394         targetm_common.except_unwind_info.
4395         * except.c: Include common/common-target.h.
4396         (init_eh, finish_eh_generation,
4397         output_one_function_exception_table): Use
4398         targetm_common.except_unwind_info.
4399         (switch_to_exception_section): Use targetm_common.have_named_sections.
4400         * explow.c: Include common/common-target.h.
4401         * expr.c: Include common/common-target.h.
4402         (build_personality_function): Use targetm_common.except_unwind_info.
4403         * function.c: Include common/common-target.h.
4404         (expand_function_end): Use targetm_common.except_unwind_info.
4405         * haifa-sched.c: Include common/common-target.h.
4406         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4407         * lto-opts.c: Include common/common-target.h instead of target.h.
4408         (lto_reissue_options): Use targetm_common.handle_option.
4409         * opts.c: Include common/common-target.h.
4410         (target_handle_option): Use targetm_common.handle_option.
4411         (init_options_struct): Update comment referring to
4412         targetm.target_option.optimization.  Use
4413         targetm_common.default_target_flags,
4414         targetm_common.unwind_tables_default and
4415         targetm_common.option_init_struct.
4416         (default_options_optimization): Use
4417         targetm_common.option_optimization_table.
4418         (finish_options): Use targetm_common.except_unwind_info,
4419         targetm_common.unwind_tables_default,
4420         targetm_common.have_named_sections and
4421         targetm_common.supports_split_stack.
4422         * toplev.c: Include common/common-target.h.
4423         (process_options): Use targetm_common.have_named_sections.
4424         * tree-tailcall.c: Include common/common-target.h.
4425         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4426         * tree.c: Include common/common-target.h.
4427         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4428         * varasm.c: Include common/common-target.h.
4429         (resolve_unique_section, hot_function_section,
4430         default_function_section): Use targetm_common.have_named_sections.
4431
4432 2011-06-14  Easwaran Raman  <eraman@google.com>
4433
4434         PR rtl-optimization/44194
4435         * dse.c: Include tree-flow.h
4436         (insn_info): Add new field non_frame_wild_read.
4437         (group_info): Add new fields escaped_n and escaped_p.
4438         (kill_on_calls): New variable.
4439         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4440         (dse_step0): Initialize kill_on_calls.
4441         (can_escape): New function.
4442         (set_usage_bits): Add additional parameter; record information
4443         about escaped locations.
4444         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4445         (dse_step2_nospill): Set kill_on_calls based on
4446         group->escaped_n and group->escaped_n.
4447         (add_wild_read): Refactor into...
4448         (reset_active_stores): ... New function, and
4449         (free_read_records): ... New function.
4450         (add_non_frame_wild_read): New function.
4451         (scan_insn): Call add_non_frame_wild_read on non-const calls.
4452         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4453         (dse_step5_nospill): Call scan_reads_nospill for instructions
4454         marked as non_frame_wild_read.
4455         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4456
4457 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4458
4459         * common/common-target-def.h, common/common-target.def,
4460         common/common-target.h, common/config/default-common.c,
4461         common/config/pa/pa-common.c: New files.
4462         * Makefile.in (common_out_file, common_out_object_file,
4463         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4464         (OBJS-libcommon-target): Include $(common_out_object_file).
4465         (prefix.o): Update dependencies.
4466         ($(common_out_object_file), common/common-target-hooks-def.h,
4467         s-common-target-hooks-def-h): New.
4468         (s-tm-texi): Also check timestamp on common-target.def.
4469         (build/genhooks.o): Update dependencies.
4470         * config.gcc (common_out_file, target_has_targetm_common): Define.
4471         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4472         TARGET_ALWAYS_STRIP_DOTDOT.
4473         * configure.ac (common_out_object_file): Define.
4474         (common_out_file, common_out_object_file): Substitute.
4475         (common): Create directory.
4476         * configure: Regenerate.
4477         * doc/tm.texi.in (targetm_common): Document.
4478         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4479         * doc/tm.texi: Regenerate.
4480         * genhooks.c (hook_array): Also include common/common-target.def.
4481         * prefix.c (tm.h): Don't include.
4482         (common/common-target.h): Include.
4483         (ALWAYS_STRIP_DOTDOT): Don't define.
4484         (update_path): Use targetm_common.always_strip_dotdot instead of
4485         ALWAYS_STRIP_DOTDOT.
4486         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4487
4488 2011-06-14  David Li  <davidxl@google.com>
4489
4490         * passes.c (execute_function_todo): Remove TODO_dump_func.
4491         (execute_one_pass): Remove TODO_dump_func.
4492         (execute_function_dump): New function.
4493         * tree-vrp.c: Remove TODO_dump_func.
4494         * regrename.c: Remove TODO_dump_func.
4495         * fwprop.c: Remove TODO_dump_func.
4496         * tree-into-ssa.c: Remove TODO_dump_func.
4497         * tree-complex.c: Remove TODO_dump_func.
4498         * tracer.c: Remove TODO_dump_func.
4499         * tree-loop-distribution.c: Remove TODO_dump_func.
4500         * postreload-gcse.c: Remove TODO_dump_func.
4501         * postreload.c: Remove TODO_dump_func.
4502         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4503         * tree-tailcall.c: Remove TODO_dump_func.
4504         * ipa-cp.c: Remove TODO_dump_func.
4505         * final.c: Remove TODO_dump_func.
4506         * tree-emutls.c: Remove TODO_dump_func.
4507         * omp-low.c: Remove TODO_dump_func.
4508         * tree-ssa-dse.c: Remove TODO_dump_func.
4509         * tree-ssa-uncprop.c: Remove TODO_dump_func.
4510         * auto-inc-dec.c: Remove TODO_dump_func.
4511         * reorg.c: Remove TODO_dump_func.
4512         * tree-ssa-copyrename.c: Remove TODO_dump_func.
4513         * tree-ssa-ccp.c: Remove TODO_dump_func.
4514         * compare-elim.c: Remove TODO_dump_func.
4515         * mode-switching.c: Remove TODO_dump_func.
4516         * modulo-sched.c: Remove TODO_dump_func.
4517         * tree-call-cdce.c: Remove TODO_dump_func.
4518         * cse.c: Remove TODO_dump_func.
4519         * web.c: Remove TODO_dump_func.
4520         * tree-stdarg.c: Remove TODO_dump_func.
4521         * lto-streamer-out.c: Remove TODO_dump_func.
4522         * tree-ssa-math-opts.c: Remove TODO_dump_func.
4523         * tree-ssa-dom.c: Remove TODO_dump_func.
4524         * tree-nrv.c: Remove TODO_dump_func.
4525         * loop-init.c: Remove TODO_dump_func.
4526         * gimple-low.c: Remove TODO_dump_func.
4527         * ipa-inline.c: Remove TODO_dump_func.
4528         * tree-ssa-sink.c: Remove TODO_dump_func.
4529         * jump.c: Remove TODO_dump_func.
4530         * ifcvt.c: Remove TODO_dump_func.
4531         * tree-ssa-loop.c: Remove TODO_dump_func.
4532         * recog.c: Remove TODO_dump_func.
4533         * dse.c: Remove TODO_dump_func.
4534         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4535         * matrix-reorg.c: Remove TODO_dump_func.
4536         * tree-eh.c: Remove TODO_dump_func.
4537         * regmove.c: Remove TODO_dump_func.
4538         * function.c: Remove TODO_dump_func.
4539         * tree-vectorizer.c: Remove TODO_dump_func.
4540         * ipa-split.c: Remove TODO_dump_func.
4541         * gcse.c: Remove TODO_dump_func.
4542         * tree-if-conv.c: Remove TODO_dump_func.
4543         * init-regs.c: Remove TODO_dump_func.
4544         * tree-ssa-phiopt.c: Remove TODO_dump_func.
4545         * implicit-zee.c: Remove TODO_dump_func.
4546         * lower-subreg.c: Remove TODO_dump_func.
4547         * bt-load.c: Remove TODO_dump_func.
4548         * tree-dfa.c: Remove TODO_dump_func.
4549         * except.c: Remove TODO_dump_func.
4550         * emit-rtl.c: Remove TODO_dump_func.
4551         * store-motion.c: Remove TODO_dump_func.
4552         * cfgexpand.c: Remove TODO_dump_func.
4553         * tree-cfgcleanup.c: Remove TODO_dump_func.
4554         * cfgcleanup.c: Remove TODO_dump_func.
4555         * tree-ssa-pre.c: Remove TODO_dump_func.
4556         * tree-sra.c: Remove TODO_dump_func.
4557         * tree-mudflap.c: Remove TODO_dump_func.
4558         * tree-ssa-copy.c: Remove TODO_dump_func.
4559         * cfglayout.c: Remove TODO_dump_func.
4560         * tree-ssa-forwprop.c: Remove TODO_dump_func.
4561         * tree-ssa-dce.c: Remove TODO_dump_func.
4562         * ira.c: Remove TODO_dump_func.
4563         * tree-ssa.c: Remove TODO_dump_func.
4564         * integrate.c: Remove TODO_dump_func.
4565         * tree-optimize.c: Remove TODO_dump_func.
4566         * tree-ssa-phiprop.c: Remove TODO_dump_func.
4567         * tree-object-size.c: Remove TODO_dump_func.
4568         * combine.c: Remove TODO_dump_func.
4569         * bb-reorder.c: Remove TODO_dump_func.
4570         * cprop.c: Remove TODO_dump_func.
4571         * var-tracking.c: Remove TODO_dump_func.
4572         * tree-profile.c: Remove TODO_dump_func.
4573         * tree-vect-generic.c: Remove TODO_dump_func.
4574         * reg-stack.c: Remove TODO_dump_func.
4575         * sched-rgn.c: Remove TODO_dump_func.
4576         * tree-ssa-structalias.c: Remove TODO_dump_func.
4577         * tree-switch-conversion.c: Remove TODO_dump_func.
4578         * tree-cfg.c: Remove TODO_dump_func.
4579         * tree-ssa-reassoc.c: Remove TODO_dump_func.
4580         * combine-stack-adj.c: Remove TODO_dump_func.
4581         * dce.c: Remove TODO_dump_func.
4582         * tree-ssanames.c: Remove TODO_dump_func.
4583         * regcprop.c: Remove TODO_dump_func.
4584
4585 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4586
4587         PR middle-end/47364
4588         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4589         and properly handle result not in Pmode.
4590
4591 2011-06-14  Robert Millan  <rmh@gnu.org>
4592
4593         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4594         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4595         `config/linux.h'.
4596
4597         * config/i386/kfreebsd-gnu64.h: New file.
4598         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4599         with `i386/kfreebsd-gnu64.h'.
4600
4601         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4602         (GNU_USER_LINK_EMULATION64): New macros.
4603         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4604         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4605         of hardcoding `elf_i386' and `elf_x86_64'.
4606
4607 2011-06-14  Nick Clifton  <nickc@redhat.com>
4608
4609         PR target/49403
4610         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4611
4612         PR target/49402
4613         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4614
4615 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
4616
4617         PR fortran/49103
4618         * tree.h (DECL_NONSHAREABLE): Define.
4619         (struct tree_decl_common): Change decl_common_unused to
4620         decl_nonshareable_flag.
4621         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4622         Ignore vars with DECL_NONSHAREABLE bit set.
4623         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4624         on stores to automatic aggregate vars.
4625
4626         PR rtl-optimization/49390
4627         Revert:
4628         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
4629
4630         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4631         MEM_ALIAS_SET.
4632
4633 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
4634             Tom de Vries  <tom@codesourcery.com>
4635
4636         PR target/45098
4637         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4638         Document changed semantics.
4639         (max_stmt_executions, max_stmt_executions_int): Declare.
4640         * tree-data-ref.c (estimated_loop_iterations)
4641         (estimated_loop_iterations_int): Move functions...
4642         * tree-ssa-loop-niter.c (estimated_loop_iterations)
4643         (estimated_loop_iterations_int): here.
4644         (record_estimate): Change nb_iterations_upper_bound and
4645         nb_iterations_estimate semantics.
4646         (max_stmt_executions, max_stmt_executions_int): New function.
4647         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4648         (max_stmt_executions_tree): this.
4649         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4650         estimated_loop_iterations_tree.
4651         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4652         max_stmt_executions_int instead of estimated_loop_iterations_int.
4653         * predict.c (predict_loops): Idem.
4654         * tree-parloops.c (parallelize_loops): Idem.
4655         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4656         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4657         (init_omega_for_ddr_1): Idem.
4658         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4659         (loop_prefetch_arrays): Idem
4660         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4661         max_stmt_executions instead of estimated_loop_iterations.
4662         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4663         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4664         instead of nb_iterations_upper_bound.
4665
4666 2011-06-13  Jan Hubicka  <jh@suse.cz>
4667
4668         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4669
4670 2011-06-14  Richard Henderson  <rth@redhat.com>
4671
4672         PR debug/48459
4673         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4674         (based_loc_descr): Assert it's true.
4675         (compute_frame_pointer_to_fb_displacement): Set it, rather than
4676         aborting immediately.
4677
4678 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
4679             Mingfeng Wu  <mingfeng@faraday-tech.com>
4680
4681         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4682
4683 2011-06-13  Jan Hubicka  <jh@suse.cz>
4684
4685         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4686
4687 2011-06-13  Jan Hubicka  <jh@suse.cz>
4688
4689         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4690         similarly to DECL_COMDAT.
4691         * cgraphunit.c (cgraph_analyze_function): Likewise.
4692         * ipa.c (function_and_variable_visibility): Likewise.
4693
4694 2011-06-13  Jan Hubicka  <jh@suse.cz>
4695
4696         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4697         BINFO_VIRTUALS when streaming for ltrans unit.
4698
4699 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
4700
4701         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4702         (movdi_internal64): Same.
4703
4704 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
4705
4706         PR target/44618
4707         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4708         a set of similar patterns, where the MATCH_OPERAND for the function
4709         argument is replaced with individual references to hardware registers.
4710         (save_fpregs_<mode>): Ditto
4711         (restore_gpregs_<mode>): Ditto
4712         (return_and_restore_gpregs_<mode>): Ditto
4713         (return_and_restore_fpregs_<mode>): Ditto
4714         (return_and_restore_fpregs_aix_<mode>): Ditto
4715
4716 2011-06-13  Jan Hubicka  <jh@suse.cz>
4717
4718         * ipa-utils.c (postorder_stack): New structure.
4719         (ipa_reverse_postorder): Handle aliases.
4720
4721 2011-06-13  Jan Hubicka  <jh@suse.cz>
4722
4723         * ipa-inline.c (reset_edge_caches): Walk aliases.
4724         (update_caller_keys): Do not test inlinability of aliases.
4725         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4726         (do_estimate_growth): Fix typo.
4727
4728 2011-06-13  Jan Hubicka  <jh@suse.cz>
4729
4730         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4731         (can_remove_node_now_p): ... here; handle same comdat groups.
4732         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4733         (inline_call): Update use of can_remove_node_now_p.
4734
4735 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4736
4737         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4738         condition to disallow non-identical memory locations.
4739         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4740         preference to bit manipulation instructions.
4741
4742 2011-06-13  Jan Hubicka  <jh@suse.cz>
4743
4744         * cgraph.c (cgraph_for_node_thunks_and_aliases,
4745         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4746         (nonremovable_p): New function.
4747         (cgraph_can_remove_if_no_direct_calls_p): New function.
4748         (used_from_object_file_p): New functoin.
4749         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4750         references from aliases.
4751         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4752         * ipa-inline.c (check_caller_edge): New function.
4753         (want_inline_function_called_once_p): Use it; accept aliases called
4754         once, too.
4755         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4756
4757 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4758
4759         PR target/48454
4760         * config/arm/neon.md (vec_pack_trunc): Set the lengths
4761         correctly for the case with Quad vectors.
4762
4763 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
4764            Ira Rosen  <ira.rosen@linaro.org>
4765
4766         PR tree-optimization/49352
4767         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4768         all, make sure loop_use_stmt after the loop is a def stmt of a used
4769         SSA_NAME that is the only one defined inside of the loop.  Don't
4770         check for COND_EXPR and GIMPLE_BINARY_RHS.
4771         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4772         check_reduction is true.
4773
4774 2011-06-11  Jan Hubicka  <jh@suse.cz>
4775
4776         PR middle-end/49373
4777         * ipa.c (cgraph_externally_visible_p): Check resolution info.
4778
4779 2011-06-11  Jan Hubicka  <jh@suse.cz>
4780
4781         PR middle-end/48836
4782         * ipa-inline-transform.c: Include tree-pass.h
4783         (inline_transform): Set TODO_update_ssa_only_virtuals.
4784         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4785
4786 2011-06-11  Jan Hubicka  <jh@suse.cz>
4787
4788         PR middle-end/49378
4789         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4790         aliases and thunks.
4791
4792 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
4793
4794         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4795         Take number of iterations to peel into account for equally frequent
4796         misalignment values.
4797
4798 2011-06-11  Jan Hubicka  <jh@suse.cz>
4799
4800         * lto-streamer-out.c (produce_symtab): Stream out the newly
4801         represented aliases.
4802
4803 2011-06-11  Jan Hubicka  <jh@suse.cz>
4804
4805         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4806         varying args.
4807         (ipa_update_after_lto_read): Likewise.
4808         (ipa_write_node_info): Do not sream call_with_var_arguments.
4809         (ipa_read_node_info): Likewise.
4810
4811 2011-06-11  Jan Hubicka  <jh@suse.cz>
4812
4813         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4814
4815 2011-06-11  Jan Hubicka  <jh@suse.cz>
4816
4817         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4818         (lto_symtab_resolve_can_prevail_p): Likewise.
4819         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4820         * cgraph.c (same_body_aliases_done): New global var.
4821         (cgraph_same_body_alias_1): Rename to ...
4822         (cgraph_create_function_alias): ... this one; reorg to new
4823         representation.
4824         (cgraph_same_body_alias): Use cgraph_create_function_alias;
4825         record references when asked to.
4826         (cgraph_add_thunk): Fix formating.
4827         (cgraph_get_node): Kill same body alias code.
4828         (cgraph_node_for_asm): Likewise.
4829         (cgraph_remove_same_body_alias): Remove.
4830         (cgraph_remove_node): Kill same body alias code.
4831         (cgraph_mark_address_taken_node): Mark also the aliased function
4832         as having address taken.
4833         (dump_cgraph_node): Dump same body aliases.
4834         (cgraph_for_node_thunks_and_aliases): Update for new alias
4835         representation.
4836         (cgraph_for_node_and_aliases): Likewise.
4837         * cgraph.h (same_body): Kll pointer.
4838         (same_body_alias): Update comment.
4839         (same_body_aliases_done): Declare.
4840         (cgraph_remove_same_body_alias): Remove declaration.
4841         (cgraph_create_function_alias): Declare.
4842         (cgraph_process_same_body_aliases): Declare.
4843         (cgraph_function_with_gimple_body_p): Check for alias.
4844         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
4845         (cgraph_alias_aliased_node): New function.
4846         (cgraph_function_node): Update for new aliases.
4847         (cgraph_function_or_thunk_node): Likewise.
4848         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
4849         (inline_call): Remove dead aliases.
4850         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
4851         name hack for same body aliases.
4852         (clone_of_p): Look through aliases.
4853         (verify_cgraph_node): Verify aliases.
4854         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
4855         (cgraph_process_same_body_aliases): New function.
4856         (process_function_and_variable_attributes): Disable weakref warning on
4857         alias.
4858         (cgraph_analyze_functions): Handle aliases.
4859         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
4860         (assemble_thunks): Rename to ...
4861         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
4862         (cgraph_expand_function): Remove alias output code.
4863         (cgraph_output_in_order): Skip aliases.
4864         (cgraph_preserve_function_body_p): Aliases don't need preserving.
4865         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
4866         (ipa_record_reference): Do not assert on alias references.
4867         (ipa_ref_has_aliases_p): New function.
4868         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
4869         (ipa_ref_has_aliases_p): Declare.
4870         * lto-cgraph.c (lto_output_node): Handle aliases.
4871         (input_node): Likewise.
4872         * lto-streamer-out.c (lto_output): Skip aliases.
4873         (produce_symtab): Kill same_body_alias code.
4874         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
4875         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
4876         * ipa-inline.c (update_caller_keys): Walk aliases.
4877         (inline_small_functions): Fix thinko in previous patch.
4878         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
4879         (function_and_variable_visibility): Do not walk same body aliases.
4880         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
4881         (ipa_pta_execute): Use it.
4882
4883 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
4884
4885         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
4886         (*vec_dupv2df): Rename from vec_dupv2df.
4887         (vec_dupv2df): New expander.
4888
4889 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
4890
4891         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
4892
4893 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
4894
4895         * config/i386/i386.md: Use default value in "isa" attribute.
4896         * config/i386/sse.md: Ditto.
4897         * config/i386/mmx.md: Ditto.
4898
4899 2011-06-10  Wei Guozhi  <carrot@google.com>
4900
4901         PR target/45335
4902         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4903         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4904         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4905         related peephole2.
4906         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4907         related peephole2.
4908         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4909         (arm_legitimate_ldrd_p): New prototype.
4910         (arm_output_ldrd): New prototype.
4911         * config/arm/arm.c (arm_check_ldrd_operands): New function.
4912         (arm_legitimate_ldrd_p): New function.
4913         (arm_output_ldrd): New function.
4914
4915 2011-06-10  David Li  <davidxl@google.com>
4916
4917         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4918         * passes.c (passr_eq): New function.
4919         (create_pass_tab): New function.
4920         (pass_traverse): New function.
4921         (dump_one_pass): New function.
4922         (dump_pass_list): New function.
4923         (dump_passes): New function.
4924
4925 2011-06-10  Jan Hubicka  <jh@suse.cz>
4926
4927         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
4928         setting the nothrow flag.
4929         * ipa-reference.c (propagate): Skip aliases.
4930         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
4931         (propagate_nothrow): Skip aliases; do not update cgraph.
4932         (local_pure_const): Do not update cgraph.
4933         * tree-profile.c (tree_profiling): Do fixup_cfg.
4934
4935 2011-06-10  Jan Hubicka  <jh@suse.cz>
4936
4937         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
4938         (cgraph_local_node_p): ... here; handle aliases.
4939         (has_addr_references_p): Break out from ...;
4940         (cgraph_remove_unreachable_nodes) ... here.
4941
4942 2011-06-10  Jan Hubicka  <jh@suse.cz>
4943
4944         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
4945         * common.opt (flag_inline_functions_called_once): Do not
4946         initialize to 1.
4947
4948 2011-06-10  Jan Hubicka  <jh@suse.cz>
4949
4950         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
4951         (ipcp_initialize_node_lattices): Do not deal with aliases;
4952         Do not try to propagate through thunks.
4953         (ipcp_change_tops_to_bottom): Do not deal with aliases.
4954
4955 2011-06-10  Jan Hubicka  <jh@suse.cz>
4956
4957         * ipa-prop.c (ipa_write_node_info): Stream jump functions
4958         for indirect calls.
4959         (ipa_read_node_info): Likewise.
4960
4961 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4962
4963         PR lto/49302
4964         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
4965         (build_and_insert_call): Likewise.
4966         (build_and_insert_ref): New.
4967         (gimple_expand_builtin_pow): Minor cleanup.
4968         (gimple_expand_builtin_cabs): New.
4969         (execute_cse_sincos): Add case for BUILT_IN_CABS.
4970
4971 2011-06-10  Jan Hubicka  <jh@suse.cz>
4972
4973         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
4974         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
4975         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
4976         (ipcp_propagate_stage): Skip aliases when propagating.
4977         (ipcp_need_redirect_p): Skip aliases.
4978         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
4979         collect_callers_of_node.
4980         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
4981         for aliases.
4982         (ipa_compute_jump_functions): Look through aliases.
4983
4984 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4985
4986         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
4987
4988 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
4989
4990         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
4991         Adjust comments.
4992         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
4993
4994 2011-06-10  Jan Hubicka  <jh@suse.cz>
4995
4996         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
4997         Update call of gimple_get_virt_method_for_binfo.
4998         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
4999         refuse_thunks parameter.
5000         (gimple_fold_call): Update.
5001         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5002
5003 2011-06-10  Jan Hubicka  <jh@suse.cz>
5004
5005         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5006         (not_all_callers_have_enough_arguments_p): ... this one; turn into
5007         worker for cgraph_for_node_and_aliases.
5008         (convert_callers_for_node): Break out from ...
5009         (convert_callers): ... here.
5010         (modify_function): Use collect_callers_of_node.
5011         (ipa_early_sra): Use cgraph_for_node_and_aliases.
5012
5013 2011-06-10  Richard Guenther  <rguenther@suse.de>
5014
5015         PR tree-optimization/49361
5016         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5017         when not already in gimple form.
5018
5019 2011-06-10  Richard Guenther  <rguenther@suse.de>
5020
5021         PR bootstrap/49344
5022         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5023         FOR_EACH_PHI_OR_STMT_USE.
5024
5025 2011-06-10  Jan Hubicka  <jh@suse.cz>
5026
5027         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5028         (clone_inlined_nodes): ... here.
5029         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5030         to real destination prior inlining.
5031         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5032         can_early_inline_edge_p, want_early_inline_function_p,
5033         want_early_inline_function_p, want_inline_small_function_p,
5034         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5035         edge_badness, update_all_callee_keys, lookup_recursive_calls,
5036         add_new_edges_to_heap, inline_small_functions, flatten_function,
5037         inline_always_inline_functions, early_inline_small_functions): Use
5038         cgraph_function_or_thunk_node.
5039         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5040         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5041         (do_estimate_edge_growth_1): Break out from ...
5042         (do_estimate_growth) ... here; walk aliases.
5043         (inline_generate_summary): Skip aliases.
5044
5045 2011-06-10  Richard Guenther  <rguenther@suse.de>
5046
5047         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5048         forward when combining, visit inserted stmts when a stmt was changed.
5049
5050 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
5051
5052         * tree.h (error_operand_p): Add.
5053         * dbxout.c (dbxout_type_fields): Use the latter.
5054         * c-decl.c (add_stmt): Likewise.
5055         * gimplify.c (omp_add_variable, omp_notice_variable,
5056         gimplify_scan_omp_clauses): Likewise.
5057
5058 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
5059
5060         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5061         when a value is actually passed in regs.
5062
5063 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5064             Laurent Rougé  <laurent.rouge@menta.fr>
5065
5066         * doc/invoke.texi (SPARC options): Add -mflat.
5067         * config/sparc/sparc.opt: Likewise.
5068         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5069         (sparc_flat_expand_prologue): Declare.
5070         (sparc_flat_expand_epilogue): Likewise.
5071         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5072         (CPP_ENDIAN_SPEC): Replace with...
5073         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
5074         (CPP_SPEC): Adjust to above change.
5075         (EXTRA_SPECS): Likewise.
5076         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5077         (INCOMING_REGNO): Likewise.
5078         (OUTGOING_REGNO): Likewise.
5079         (LOCAL_REGNO): Likewise.
5080         (SETUP_FRAME_ADDRESSES): Likewise.
5081         (FIXED_REGISTERS): Set 0 for %fp.
5082         (CALL_USED_REGISTERS): Likewise.
5083         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5084         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5085         (RETURN_ADDR_REGNUM): Define.
5086         (RETURN_ADDR_RTX): Use it.
5087         (INCOMING_RETURN_ADDR_REGNUM): Define.
5088         (INCOMING_RETURN_ADDR_RTX): Use it.
5089         (DWARF_FRAME_RETURN_COLUMN): Likewise.
5090         (EH_RETURN_REGNUM): Define.
5091         (EH_RETURN_STACKADJ_RTX): Use it.
5092         (EH_RETURN_HANDLER_RTX): Delete.
5093         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5094         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5095         Delete.
5096         (struct machine_function): Add frame_size, apparent_frame_size,
5097         frame_base_reg, frame_base_offset, n_global_fp_regs and
5098         save_local_in_regs_p fields.
5099         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5100         sparc_frame_base_offset, sparc_n_global_fp_regs,
5101         sparc_save_local_in_regs_p): New macros.
5102         (sparc_option_override): Error out if -fcall-saved-REG is specified
5103         for Out registers.
5104         (eligible_for_restore_insn): Fix formatting.
5105         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
5106         (eligible_for_sibcall_delay): Likewise.
5107         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5108         (sparc_legitimate_address_p): Adjust to above change.
5109         (save_global_or_fp_reg_p): New predicate.
5110         (return_addr_reg_needed_p): Likewise.
5111         (save_local_or_in_reg_p): Likewise.
5112         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
5113         (SORR_SAVE, SORR_RESTORE): Delete.
5114         (sorr_pred_t): New typedef.
5115         (sorr_act_t): New enum.
5116         (save_or_restore_regs): Rename to...
5117         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
5118         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5119         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
5120         mechanism.  Add CFI information for double-word saves in 32-bit mode.
5121         (emit_adjust_base_to_offset): New function extracted from...
5122         (emit_save_or_restore_regs): ...this.  Rename the rest to...
5123         (emit_save_or_restore_regs_global_fp_regs): ...this.
5124         (emit_save_or_restore_regs_local_in_regs): New function.
5125         (gen_create_flat_frame_[123]): New functions.
5126         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
5127         (sparc_flat_expand_prologue): New function.
5128         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5129         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
5130         (sparc_flat_expand_epilogue): New function.
5131         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5132         (output_return): Likewise.
5133         (output_sibcall): Likewise.
5134         (sparc_output_mi_thunk): Likewise.
5135         (sparc_frame_pointer_required): Likewise.
5136         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5137         function optimization.
5138         * config/sparc/sparc.md (flat): New attribute.
5139         (prologue): Add TARGET_FLAT handling.
5140         (save_register_window): Disable if TARGET_FLAT.
5141         (create_flat_frame_[123]): New patterns.
5142         (epilogue): Add TARGET_FLAT handling.
5143         (sibcall_epilogue): Likewise.
5144         (eh_return): New expander.
5145         (eh_return_internal): New insn and splitter.
5146         (return_internal): Add TARGET_FLAT handling.
5147         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5148         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5149         (nonlocal_goto): Add TARGET_FLAT handling.
5150         * config/sparc/t-elf: Add -mflat multilib.
5151         * config/sparc/t-leon: Likewise.
5152
5153 2011-06-10  Jan Hubicka  <jh@suse.cz>
5154
5155         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5156         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5157         (self_recursive_p): Use cgraph_function_node.
5158         (propagate_pure_const): Likewise.
5159         (propagate_nothrow): Likewise.
5160         * ipa-reference.c (ipa_reference_get_not_read_global): Use
5161         cgraph_function_node.
5162         (propagate_bits): Likewise.
5163         (propagate): Likewise.
5164
5165 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5166             Richard Earnshaw  <rearnsha@arm.com>
5167
5168         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5169         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5170         (*thumb2_movdi_vfp): Delete.
5171         (*arm_movdi_vfp_cortexa8): Delete.
5172         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5173         (*movdi_vfp_cortexa8): Likewise.
5174
5175 2011-06-10  Richard Guenther  <rguenther@suse.de>
5176
5177         * stor-layout.c (initialize_sizetypes): Give names to all
5178         sizetype kinds.
5179
5180 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
5181
5182         PR tree-optimization/49318
5183         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5184         irrelevant pattern statements.
5185
5186 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5187
5188         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5189
5190         PR bootstrap/49354
5191         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5192         to last assignment.
5193
5194 2011-06-09  Jan Hubicka  <jh@suse.cz>
5195
5196         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5197         do not recompute reachable flag.
5198         (cgraph_finalize_function, cgraph_analyze_functions): Set
5199         redefined_extern_inline here.
5200
5201 2011-06-09  Jan Hubicka  <jh@suse.cz>
5202
5203         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5204         (cgraph_only_called_directly_p): ... this one; bring offline.
5205         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5206         varpool_used_from_object_file_p): Drop names from the declaratoin.
5207         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5208         collect_callers_of_node): New.
5209         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5210         (cgraph_edge_recursive_p): Use cgraph_function_node.
5211         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5212         (cgraph_node_cannot_be_local_p_1): Break out from ...
5213         (cgraph_node_can_be_local_p): ... here; walk aliases.
5214         (cgraph_for_node_thunks_and_aliases): New function.
5215         (cgraph_for_node_and_aliases): New function.
5216         (cgraph_make_node_local_1): Break out from ...
5217         (cgraph_make_node_local) ... here; use
5218         cgraph_for_node_thunks_and_aliases.
5219         (cgraph_set_nothrow_flag_1): Break out from ...
5220         (cgraph_set_nothrow_flag) ... here;
5221         use cgraph_for_node_thunks_and_aliases.
5222         (cgraph_set_const_flag_1): Break out from ...
5223         (cgraph_set_const_flag) ... here;
5224         use cgraph_for_node_thunks_and_aliases.
5225         (cgraph_set_pure_flag_1): Break out from ...
5226         (cgraph_set_pure_flag) ... here;
5227         use cgraph_for_node_thunks_and_aliases.
5228         (cgraph_propagate_frequency_1): Break out from ...
5229         (cgraph_propagate_frequency) ... here; use
5230         cgraph_for_node_thunks_and_aliases.
5231         (cgraph_used_from_object_file_p): Do not care about aliases.
5232         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5233         New functions.
5234         (collect_callers_of_node_1, collect_callers_of_node): New functions.
5235
5236 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5237
5238         PR rtl-optimization/49154
5239         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5240         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5241         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5242         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5243         * config/cris/cris.h (cris_register_move_cost): Remove
5244         !TARGET_V32 code.  Tweak comments.
5245
5246 2011-06-09  Jan Hubicka  <jh@suse.cz>
5247
5248         * cgraphbuild.c (record_eh_tables): Mark personality function as having
5249         address taken.
5250
5251 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5252
5253         PR rtl-optimization/49154
5254         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5255         is a matching slot in the hashtable, assign it to classes_ptr.
5256
5257         PR rtl-optimization/49154
5258         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5259         register classes.
5260         * doc/tm.texi: Regenerate.
5261
5262 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5263
5264         PR target/49307
5265         * config/sh/sh.md (UNSPEC_CHKADD): New.
5266         (chk_guard_add): New define_insn_and_split.
5267         (symGOT_load): Use chk_guard_add instead of blockage.
5268
5269 2011-06-09  Kai Tietz  <ktietz@redhat.com>
5270
5271         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5272
5273 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5274
5275         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5276
5277 2011-06-09  Wei Guozhi  <carrot@google.com>
5278
5279         PR target/46975
5280         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5281         (peephole2 for conditional move): Generate 16 bit instructions.
5282
5283 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
5284
5285         * config/i386/i386.md (*movdi_internal_rex64): Merge
5286         alternatives 6 and 8.
5287
5288 2011-06-09  David Li  <davidxl@google.com>
5289
5290         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5291         * passes.c (passr_eq): New function.
5292         (create_pass_tab): New function.
5293         (pass_traverse): New function.
5294         (dump_one_pass): New function.
5295         (dump_pass_list): New function.
5296         (dump_passes): New function.
5297
5298 2011-06-09  David Li  <davidxl@google.com>
5299
5300         * tree-complex.c (tree_lower_complex): Gate cleanup.
5301         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5302         (execute_optimize_stdarg): Ditto.
5303         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5304         (execute_cleanup_eh_1): Ditto.
5305         (execute_cleanup_eh): Ditto.
5306         * gcse.c (gate_rtl_pre): Ditto.
5307         (execute_rtl_pre): Ditto.
5308         * except.c (finish_eh_generation): Ditto.
5309         (convert_to_eh_region_ranges): Ditto.
5310         * cprop.c (one_cprop_pass): Ditto.
5311
5312 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5313
5314         PR target/48673
5315         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5316         in all basic blocks.
5317
5318 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5319
5320         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5321         (HAVE_ENABLE_EXECUTE_STACK): Define.
5322         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5323         (HAVE_ENABLE_EXECUTE_STACK): Define.
5324         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5325         (HAVE_ENABLE_EXECUTE_STACK): Define.
5326         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5327         (ENABLE_EXECUTE_STACK): Remove.
5328         (HAVE_ENABLE_EXECUTE_STACK): Define.
5329         [IN_LIBGCC2]: Don't include <windows.h>.
5330         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5331         (HAVE_ENABLE_EXECUTE_STACK): Define.
5332         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5333         (HAVE_ENABLE_EXECUTE_STACK): Define.
5334         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5335         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5336         (HAVE_ENABLE_EXECUTE_STACK): Define.
5337         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5338         (HAVE_ENABLE_EXECUTE_STACK): Define.
5339         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5340         (HAVE_ENABLE_EXECUTE_STACK): Define.
5341         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5342         (HAVE_ENABLE_EXECUTE_STACK): Define.
5343         * config/alpha/alpha.c (alpha_trampoline_init): Test
5344         HAVE_ENABLE_EXECUTE_STACK.
5345         * config/i386/i386.c (ix86_trampoline_init): Likewise.
5346         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5347         (sparc64_initialize_trampoline): Likewise.
5348         * libgcc2.c [L_enable_execute_stack]: Remove.
5349         * system.h (ENABLE_EXECUTE_STACK): Poison.
5350         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5351         * doc/tm.texi: Regenerate.
5352         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5353
5354 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
5355
5356         PR middle-end/49308
5357         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5358         variable.  After resetting and rescanning insn continue with previous
5359         statement.
5360
5361 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5362
5363         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5364         (gcc_cv_ld_hidden): Likewise.
5365         * configure: Regenerate.
5366         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5367         (ix86_stack_protect_fail): Mark unused.
5368         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5369         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5370         [TARGET_MACHO]: Don't define.
5371         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5372         (TARGET_STACK_PROTECT_FAIL): Likewise.
5373         (rs6000_stack_protect_fail): Mark unused.
5374         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5375         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
5376
5377 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5378
5379         * varasm.c (get_section): Print location of other conflict
5380         for section conflicts.
5381
5382 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5383
5384         * config/i386/driver-i386.c (host_detect_local_cpu):
5385         Add model 0x2d Intel CPU.
5386
5387 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5388
5389         * reginfo.c (global_regs_decl): Add.
5390         (globalize_reg): Add decl parameter. Compute location.  Pass location
5391         to warnings and add inform. Store decl in global_regs_decl.
5392         * rtl.h (globalize_reg): Update prototype.
5393         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5394
5395 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
5396
5397         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5398
5399 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5400
5401         PR target/49305
5402         * config/sh/predicates.md (general_movsrc_operand): Check
5403         mode for memory with indexed address for QI and HImode.
5404         (general_movdst_operand): Likewise.
5405
5406 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
5407
5408         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5409
5410 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
5411
5412         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5413         (num_ssa_operands): Likewise.
5414         (op_iter_init_phiuse): Forward-declare.
5415         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5416
5417 2011-06-08  Nick Clifton  <nickc@redhat.com>
5418
5419         * doc/invoke.texi (ARM Options): Update description of
5420         -mthumb-interwork.
5421
5422 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
5423
5424         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5425         unknown Intel family 0x6 CPUs.
5426
5427 2011-06-08  Martin Jambor  <mjambor@suse.cz>
5428
5429         * tree-sra.c (mark_rw_status): Removed.
5430         (analyze_access_subtree): New parameter parent instead of
5431         mark_read and mark_write, propagate from that.
5432
5433 2011-06-08  Julian Brown  <julian@codesourcery.com>
5434
5435         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5436         for double-precision helper functions in hard-float mode if only
5437         single-precision arithmetic is supported in hardware.
5438
5439 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
5440
5441         PR rtl-optimization/49303
5442         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
5443         code_motion_path_driver returned 0 or 1.
5444         (sel_region_finish): Clear h_d_i_d.
5445
5446 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5447
5448         * config/sh/sh.c (prepare_move_operands): Set pic register
5449         appropriately for global and local dynamic tls models even
5450         if flag_pic is unset.
5451
5452 2011-06-07  Jason Merrill  <jason@redhat.com>
5453
5454         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5455
5456 2011-06-07  Xinliang David Li  <davidxl@google.com>
5457         * passes.c (enable_disable_pass): Handle assembler name.
5458         (is_pass_explicitly_enabled_or_disabled): Ditto.
5459
5460 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5461
5462         PR tree-optimization/48497
5463         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5464
5465 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5466
5467         PR tree-optimization/46728
5468         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5469         to use gimple_val_nonnegative_real_p.
5470         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5471         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5472
5473 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
5474
5475         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5476
5477 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
5478
5479         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5480         constant vectors.
5481
5482 2011-06-07  Richard Guenther  <rguenther@suse.de>
5483
5484         * stor-layout.c (initialize_sizetypes): Initialize all
5485         sizetypes based on target definitions.
5486         (set_sizetype): Remove.
5487         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5488         * tree.h (set_sizetype): Remove.
5489
5490 2011-06-07  Nick Clifton  <nickc@redhat.com>
5491
5492         * config.gcc: Unify V850 architecture options and add support for
5493         newer V850 architectures.
5494         * config/v850/t-v850e: Delete.
5495
5496 2011-06-07  Richard Guenther  <rguenther@suse.de>
5497
5498         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5499         Call set_sizetype from here.
5500
5501 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
5502
5503         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5504         (*maddhisi4tb, *maddhisi4tt): New define_insns.
5505
5506 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
5507             Andrew Stubbs  <ams@codesourcery.com>
5508
5509         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5510         multiplies.
5511         * doc/md.texi (Canonicalization of Instructions): Document widening
5512         multiply canonicalization.
5513
5514 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
5515
5516         PR gcov-profile/49299
5517         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5518
5519 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
5520
5521         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5522         a pointer.
5523         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5524         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5525         vect_recog_pow_pattern): Likewise.
5526         (vect_pattern_recog_1): Remove declaration.
5527         (widened_name_p): Remove declaration.  Add new argument to specify
5528         whether to check that both types are either signed or unsigned.
5529         (vect_recog_widen_mult_pattern): Update documentation.  Handle
5530         unsigned patterns and multiplication by constants.
5531         (vect_pattern_recog_1): Update vect_recog_func references.  Use
5532         statement information from the statement returned from pattern
5533         detection functions.
5534         (vect_pattern_recog): Update vect_recog_func reference.
5535         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5536         multiplication by a constant use the type of the other operand.
5537
5538 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
5539
5540         PR rtl-optimization/49145
5541         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5542
5543 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
5544
5545         PR debug/49262
5546         * dwarf2out.c (native_encode_initializer): Decrement count in each
5547         iteration.
5548
5549         PR debug/49294
5550         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5551         non-MODE_INT modes.
5552
5553         PR c++/49264
5554         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5555         if stmt folded into nothing.
5556         * tree-inline.c (fold_marked_statements): If a builtin at the end of
5557         a bb folded into nothing, just update cgraph edges and move to next bb.
5558         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5559         to be NULL.  Don't compute count and frequency if new_call is NULL.
5560
5561 2011-06-04  Diego Novillo  <dnovillo@google.com>
5562
5563         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5564         (cgraph.o): Likewise.
5565         (cgraphunit.o): Likewise.
5566         * cgraphunit.c: Include lto-streamer.h
5567         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5568         if LTO is enabled.
5569         * lto-streamer-in.c (unpack_value_fields): Call
5570         streamer_hooks.unpack_value_fields if set.
5571         (lto_materialize_tree): For unhandled nodes, first try to
5572         call lto_streamer_hooks.alloc_tree, if it exists.
5573         (lto_input_ts_decl_common_tree_pointers): Move reading of
5574         DECL_INITIAL to lto_streamer_read_tree.
5575         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5576         (lto_streamer_read_tree): New.
5577         (lto_reader_init): Rename from lto_init_reader.
5578         Move initialization code to lto/lto.c.
5579         * lto-streamer-out.c (pack_value_fields): Call
5580         streamer_hooks.pack_value_fields if set.
5581         (lto_output_tree_ref): For tree nodes that are not normally indexable,
5582         call streamer_hooks.indexable_with_decls_p before giving up.
5583         (lto_output_ts_decl_common_tree_pointers): Move handling
5584         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5585         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5586         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
5587         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
5588         (lto_streamer_write_tree): New.
5589         (lto_output): Call lto_streamer_init directly.
5590         (lto_writer_init): Remove.
5591         * lto-streamer.c (streamer_hooks): New.
5592         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5593         instead of lto_preload_common_nodes.
5594         (lto_is_streamable): Move from lto-streamer.h
5595         (lto_streamer_hooks_init): New.
5596         (streamer_hooks): New.
5597         (streamer_hooks_init): New.
5598         * lto-streamer.h (struct output_block): Forward declare.
5599         (struct lto_input_block): Likewise.
5600         (struct data_in): Likewise.
5601         (struct bitpack_d): Likewise.
5602         (struct streamer_hooks): Declare.
5603         (streamer_hooks): Declare.
5604         (lto_streamer_hooks_init): Declare.
5605         (lto_streamer_write_tree): Declare.
5606         (lto_streamer_read_tree): Declare.
5607         (streamer_hooks_init): Declare.
5608         (lto_is_streamable): Move to lto-streamer.c
5609
5610 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5611
5612         * longlong.h (smul_ppmm): The resulting register pair contains the
5613         higher order word first.
5614
5615 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5616
5617         PR tree-optimization/46728
5618         * builtins.c (powi_table): Remove.
5619         (powi_lookup_cost): Remove.
5620         (powi_cost): Remove.
5621         (expand_powi_1): Remove.
5622         (expand_powi): Remove.
5623         (expand_builtin_pow_root): Remove.
5624         (expand_builtin_pow): Remove.
5625         (expand_builtin_powi): Eliminate handling of constant exponent.
5626         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
5627
5628 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5629
5630         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5631
5632 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5633
5634         * dce.c (reset_unmarked_insns_debug_uses): New.
5635         (delete_unmarked_insns): Skip debug insns.
5636         (prescan_insns_for_dce): Likewise.
5637         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5638         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5639         active reg can be found.
5640         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
5641         (convert_regs_1): Use it.
5642
5643 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5644
5645         * tree-pretty-print.c (dump_function_header): Add flags.
5646         Don't dump decl_uid with nouid.
5647         * tree-pretty-print.h (dump_function_header): Adjust.
5648         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5649         * passes.c (pass_init_dump_file): Pass dump_flags on.
5650         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5651
5652 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5653
5654         PR bootstrap/49270
5655         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5656
5657 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
5658
5659         PR tree-optimization/49243
5660         * calls.c (setjmp_call_p): Also check if fndecl has the
5661         returns_twice attribute.
5662
5663 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5664
5665         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5666         -ffast-math etc.
5667
5668 2011-06-06  Richard Henderson  <rth@redhat.com>
5669             Georg-Johann Lay  <avr@gjlay.de>
5670
5671         PR target/42210
5672         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5673         New predicates.
5674         * config/avr/avr.md ("insv"): New insn expander.
5675         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5676         "*insv.not.io", "*insv.reg"): New insns.
5677
5678 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
5679
5680         PR target/49285
5681         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5682         to nonimmediate_operand from memory_operand for the operand that is to
5683         be forced to memory by the expander.  Lose the constraints.
5684
5685 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5686
5687         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5688         EH return when delayed branches are disabled.
5689
5690 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
5691
5692         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5693         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
5694         calculation.
5695         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5696         Simplify MODE_V1DF and MODE_V2SF handling.
5697         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5698         Simplify MODE_SF handling.
5699
5700 2011-06-04  Jan Hubicka  <jh@suse.cz>
5701
5702         PR tree-optimization/48893
5703         PR tree-optimization/49091
5704         PR tree-optimization/49179
5705         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5706         Bounds check.
5707
5708 2011-06-04  Jan Hubicka  <jh@suse.cz>
5709
5710         PR lto/48954
5711         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5712         bitmaps.
5713
5714 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
5715
5716         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5717
5718 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
5719
5720         PR target/49281
5721         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5722         to be strictly smaller than 1 << shiftcount.
5723
5724 2011-06-04  Jan Hubicka  <jh@suse.cz>
5725
5726         PR tree-optimize/48929
5727         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5728         of empty predicate.
5729
5730 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
5731
5732         PR debug/48333
5733         * calls.c (emit_call_1): Prefer the __builtin declaration of
5734         builtin functions.
5735
5736 2011-06-03   Diego Novillo  <dnovillo@google.com>
5737
5738         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5739         (lto_input_tree_pointers): Likewise.
5740         * lto-streamer-out.c (pack_value_fields): Likewise.
5741         (lto_output_tree_pointers): Likewise.
5742         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5743         and OPTIMIZATION_NODE.
5744
5745 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5746
5747         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5748         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5749         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5750         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5751         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5752         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5753         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5754         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5755         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5756         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5757         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5758         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5759         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5760         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5761         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5762         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5763         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5764         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5765         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5766         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5767         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5768         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5769         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5770         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5771         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5772         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5773         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5774         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5775         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5776         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5777         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5778         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5779         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5780         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5781         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5782         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5783         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5784         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5785         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5786         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5787         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5788         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5789         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5790         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5791         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5792         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5793         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5794         * system.h (MD_UNWIND_SUPPORT): Poison.
5795         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5796         * doc/tm.texi: Regenerate.
5797         * unwind-dw2.c: Include md-unwind-support.h instead of
5798         MD_UNWIND_SUPPORT.
5799         * config/ia64/unwind-ia64.c: Likewise.
5800         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5801
5802 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
5803
5804         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5805
5806 2011-06-03  Richard Henderson  <rth@redhat.com>
5807             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5808
5809         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5810         (sigill_hdlr): Correct insn, insn size.
5811         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5812
5813 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5814
5815         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5816         t-slibgcc-dummy.
5817         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5818         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5819         * config/mips/t-iris: Remove.
5820         * config/mips/t-irix6: New file.
5821         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5822
5823 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5824
5825         * Makefile.in (LIB2ADDEHDEP): Remove.
5826         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5827         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5828         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5829         * config/t-darwin (LIB2ADDEHDEP): Remove.
5830         * config/t-freebsd (LIB2ADDEHDEP): Remove.
5831         * config/t-linux (LIB2ADDEHDEP): Remove.
5832
5833 2011-06-03  Diego Novillo  <dnovillo@google.com>
5834
5835         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5836         (lto_register_var_decl_in_symtab): Likewise.
5837         (lto_register_function_decl_in_symtab): Likewise.
5838         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
5839         logic to uniquify_nodes.
5840
5841 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5842
5843         * config/alpha/t-osf5: Remove.
5844         * config/alpha/t-osf-pthread: Remove.
5845         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
5846         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
5847
5848 2011-06-03  Julian Brown  <julian@codesourcery.com>
5849
5850         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
5851         (strongarm1110): Use strongarm tuning.
5852         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
5853         * config/arm/arm.c (arm_strongarm_tune): New.
5854         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5855         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
5856         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
5857         setting, using previous defaults or 1 for Cortex-A5.
5858         (arm_option_override): Set max_insns_skipped from current tuning.
5859
5860 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
5861
5862         * doc/install.texi (Options specification): Document --with-specs.
5863
5864 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5865
5866         * config/arm/neon.md (orndi3_neon): Actually split it.
5867
5868 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
5869
5870         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
5871         * var-tracking.c (reverse_op): Limite recurse depth to 5.
5872
5873 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
5874
5875         PR debug/47590
5876         * target.def (delay_sched2, delay_vartrack): New.
5877         * doc/tm.texi.in: Update.
5878         * doc/tm.texi: Rebuild.
5879         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
5880         * var-tracking.c (gate_handle_var_tracking): Likewise.
5881         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
5882         (bfin_flag_var_tracking): Drop.
5883         (output_file_start): Don't save and override flag_var_tracking.
5884         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
5885         (bfin_reorg): Test original variables.
5886         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5887         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
5888         (ia64_flag_var_tracking): Drop.
5889         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5890         (ia64_file_start): Don't save and override flag_var_tracking.
5891         (ia64_override_options_after_change): Ditto
5892         flag_schedule_insns_after_reload.
5893         (ia64_reorg): Test original variables.
5894         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
5895         (picochip_flag_var_tracking): Drop.
5896         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5897         (picochip_option_override): Don't save and override
5898         flag_schedule_insns_after_reload.
5899         (picochip_asm_file_start): Ditto flag_var_tracking.
5900         (picochip_reorg): Test original variables.
5901         * config/spu/spu.c (spu_flag_var_tracking): Drop.
5902         (TARGET_DELAY_VARTRACK): Define.
5903         (spu_var_tracking): New.
5904         (spu_machine_dependent_reorg): Call it.
5905         (asm_file_start): Don't save and override flag_var_tracking.
5906
5907 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5908
5909         PR target/49163
5910         * config/sh/predicates.md (general_movsrc_operand): Return 0
5911         for memory and memory subreg of which address is an invalid
5912         indexed address for QI and HImode.
5913         (general_movdst_operand): Likewise.
5914
5915 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
5916
5917         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
5918         edges only, when there is a non-local label in the function.
5919         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
5920
5921 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
5922
5923         * config/i386/constraints.md (Y3): New register constraint.
5924         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
5925         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
5926         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
5927         *sse2_interleave_lowv2df.
5928
5929 2011-06-02  Julian Brown  <julian@codesourcery.com>
5930
5931         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
5932         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
5933         (arm_cortex_a5_tune): New.
5934
5935 2011-06-02  Julian Brown  <julian@codesourcery.com>
5936
5937         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
5938         * config/arm/arm.c (arm_default_branch_cost): New.
5939         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5940         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
5941         (arm_fa726_tune): Set branch_cost field using
5942         arm_default_branch_cost.
5943         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
5944         current_tune structure.
5945         * dojump.c (tm_p.h): Include file.
5946
5947 2011-06-02  Julian Brown  <julian@codesourcery.com>
5948
5949         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
5950         tuning.
5951         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5952         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
5953         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
5954         field.
5955         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
5956         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
5957         (arm_fa726te_tune): Add prefer_constant_pool setting.
5958         (arm_v6t2_tune, arm_cortex_tune): New.
5959         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
5960         prefer_constant_pool setting.
5961
5962 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
5963
5964         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
5965         switch statement.
5966         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
5967         (*movdf_internal) <case 6,7,8>: Ditto.
5968
5969         * config/i386/constraints.md (Y4): New register constraint.
5970         * config/i386/sse.md (vec_set<mode>_0): Merge with
5971         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
5972         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
5973         *vec_extractv2di_1_sse.
5974         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
5975         and *vec_concatv2di_rex64_sse.
5976
5977 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
5978
5979         PR target/48807
5980         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
5981         of cgraph_local_info for null before attempting to use it.
5982
5983 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
5984
5985         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
5986         (current_function_dynamic_alloc_count): Delete.
5987         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
5988         (expand_builtin_nonlocal_goto): Remove obsolete comment.
5989         (expand_builtin_update_setjmp_buf): Remove dead code.
5990         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
5991         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
5992         support.
5993         * function.c (instantiate_virtual_regs): Likewise.
5994         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
5995         for a block with a single abnormal incoming edge.
5996         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
5997         (SETJMP_VIA_SAVE_AREA): Delete.
5998         * config/sparc/sparc-protos.h (load_got_register): Declare.
5999         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6000         (load_got_register): Make global.
6001         (sparc_frame_pointer_required): Add 'static'.
6002         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
6003         (sparc_builtin_setjmp_frame_value): New function.
6004         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6005         (save_stack_nonlocal): New expander.
6006         (restore_stack_nonlocal): Likewise.
6007         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6008         (nonlocal_goto_internal): New insn.
6009         (goto_handler_and_restore): Delete.
6010         (builtin_setjmp_setup): Likewise.
6011         (do_builtin_setjmp_setup): Likewise.
6012         (setjmp): Likewise.
6013         (builtin_setjmp_receiver): New expander.
6014
6015 2011-06-01  David Li  <davidxl@google.com>
6016
6017         PR middle-end/49261
6018         * tree-pretty-print.c (dump_function_header): Format cleanup.
6019
6020 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
6021
6022         PR target/49238
6023         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6024         needed when original operands are used for msw_skip comparison.
6025
6026 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6027
6028         PR debug/49250
6029         * var-tracking.c (add_uses, add_stores): Don't call
6030         cselib_subst_to_values on ENTRY_VALUE.
6031
6032 2011-06-01  Diego Novillo  <dnovillo@google.com>
6033
6034         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6035         output_record_start with LTO_null instead of output_zero.
6036         (lto_output_ts_binfo_tree_pointers): Likewise.
6037         (lto_output_tree): Likewise.
6038         (output_eh_try_list): Likewise.
6039         (output_eh_region): Likewise.
6040         (output_eh_lp): Likewise.
6041         (output_eh_regions): Likewise.
6042         (output_bb): Likewise.
6043         (output_function): Likewise.
6044         (output_unreferenced_globals): Likewise.
6045         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6046         instead of NUM_TREE_CODES.
6047         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6048         (lto_output_int_in_range): Change << to >> when shifting VAL.
6049
6050 2011-06-01  Diego Novillo  <dnovillo@google.com>
6051
6052         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6053         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6054
6055 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6056
6057         PR target/45074
6058         * optabs.h (valid_multiword_target_p): Declare.
6059         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6060         doing multi-word operations.
6061         * optabs.c (expand_binop): Likewise.
6062         (expand_doubleword_bswap): Likewise.
6063         (expand_absneg_bit): Likewise.
6064         (expand_unop): Likewise.
6065         (expand_copysign_bit): Likewise.
6066         (multiword_target_p): New function.
6067
6068 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6069
6070         PR rtl-optimization/48830
6071         PR rtl-optimization/48808
6072         PR rtl-optimization/48792
6073         * reload.c (push_reload): Check contains_reg_of_mode.
6074         * reload1.c (strip_paradoxical_subreg): New function.
6075         (gen_reload_chain_without_interm_reg_p): Use it to handle
6076         paradoxical subregs.
6077         (emit_output_reload_insns, gen_reload): Likewise.
6078
6079 2011-06-01  David Li  <davidxl@google.com>
6080
6081         * predict.c : Change pass name
6082         * ipa.c: Ditto.
6083         * dce.c: Ditto.
6084         * tree-profile.c: Ditto.
6085         * except.c: Ditto.
6086
6087 2011-06-01  David Li  <davidxl@google.com>
6088
6089         * tree-pretty-print.c (dump_function_header): New function.
6090         * final.c (rest_of_clean_state): Use header dumper.
6091         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6092         * passes.c (pass_init_dump_file): Use header dumper.
6093
6094 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6095
6096         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6097         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6098         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6099         New functions.
6100         (mem_loc_descriptor): Use them.
6101
6102         * var-tracking.c (create_entry_value): New function.
6103         (vt_add_function_parameter): Use it.
6104
6105 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6106
6107         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6108         Include <signal.h>, <ucontext.h>.
6109         (sigill_caught): Define.
6110         (sigill_hdlr): New function.
6111         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6112         insns can be executed.
6113         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6114         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6115
6116 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6117
6118         * config/t-slibgcc-darwin: Move to ...
6119         * config/t-slibgcc-dummy: ... this.  Clarify comments.
6120         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6121         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6122         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6123         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
6124         Remove i386/t-crtstuff from tmake_file.
6125         (i[34567]86-*-solaris2*): Remove t-svr4,
6126         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6127         t-slibgcc-dummy.
6128         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6129         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6130         sparc/t-crtfm from tmake_file.
6131         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6132         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6133         Remove extra_parts.
6134         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6135         * config/i386/t-nwld (SHLIB_LINK): Remove.
6136         * config/i386/t-rtems-i386: Rename to ...
6137         * config/i386/t-rtems: ... this.
6138         ($(T)crti.o, $(T)crtn.o): Remove.
6139         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6140         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6141         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6142         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6143         EXTRA_MULTILIB_PARTS): Remove.
6144         * config/sparc/t-sol2-64: Likewise.
6145         * config/sparc/t-sol2: Remove.
6146         * config/sparc/t-crtin: Remove.
6147         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6148         * config/i386/gmon-sol2.c: Remove.
6149         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6150         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6151         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6152         * config/i386/sol2-gc1.asm: Remove.
6153         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6154         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6155         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6156         * config/t-slibgcc-sld: Remove.
6157
6158 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6159
6160         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6161         base_type_for_mode with op_mode instead of mode.
6162
6163 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
6164
6165         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
6166         Cortex-A15.
6167         * config/arm/arm-tune.md: Regenerate.
6168         * config/arm/arm-tables.opt: Regenerate.
6169         * config/arm/arm.c (FL_DIV): Rename...
6170         (FL_THUMB_DIV): ... to this.
6171         (FL_ARM_DIV): Define.
6172         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6173         (arm_arch_hwdiv): Remove.
6174         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6175         (arm_issue_rate): Add cortexr5.
6176         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6177         __ARM_ARCH_EXT_IDIV__.
6178         (TARGET_IDIV): Define.
6179         (arm_arch_hwdiv): Remove.
6180         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6181         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6182         (divsi3, udivsi3): New patterns.
6183         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6184         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6185
6186 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6187
6188         * ipa-utils.c (ipa_dfs_info): New field scc_no.
6189         * ipa-utils.c (searchc): Set scc_no.
6190
6191 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6192
6193         * ipa-utils.c (searchc_env): New field allow_overwritable.
6194         (searchc): do not ignore edges to overwritable nodes if indicated
6195         by env->allow_overwritable.
6196         (ipa_reduced_postorder): Set env.allow_overwritable.
6197
6198 2011-06-01  Richard Guenther  <rguenther@suse.de>
6199
6200         * tree.c (free_lang_data): Do not reset boolean_type_node nor
6201         char_type_node.
6202         * lto-streamer.c (lto_record_common_node): Take node pointer,
6203         do not register types.
6204         (lto_preload_common_nodes): Explicitly skip preloading nodes
6205         that differ between frontends.
6206
6207 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6208
6209         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6210         NON_FLOAT_REGS.
6211
6212 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6213
6214         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6215         parameter value for dump. Dump cost on outermost call only.
6216         (rs6000_memory_move_cost): Dump cost on outermost call only.
6217
6218 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6219
6220         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6221         DW_OP_GNU_convert ops.
6222
6223         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6224         cselib_preserve_constants.
6225         (cselib_lookup_1): If cselib_preserve_constants,
6226         a new VALUE is being created for REG and there is a VALUE for the
6227         same register in wider mode, add another loc with lowpart SUBREG of
6228         the wider VALUE.
6229         (cselib_subst_to_values): Handle ENTRY_VALUE.
6230         * var-tracking.c  (replace_expr_with_values): Return NULL for
6231         ENTRY_VALUE too.
6232         * dwarf2out.c (convert_descriptor_to_signed): New function.
6233         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6234         instead of two shifts.
6235         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6236         the right mode if needed.
6237         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6238         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6239         convert_descriptor_to_signed.
6240         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6241         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6242
6243         PR target/48688
6244         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6245
6246 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6247
6248         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6249         of X87MODEI12 and SWI48x instead of SSEMODEI24.
6250         (SWI248x): New mode iterator, rename from X87MODEI.
6251         (X87MODEI): Remove mode iterator.
6252         (X87MODEI12): Ditto.
6253         (SSEMODEI24): Ditto.
6254
6255 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6256
6257         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6258         * doc/invoke.texi: Document max-vartrack-expr-depth.
6259         * var-tracking.c (EXPR_DEPTH): New.
6260         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6261
6262 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6263
6264         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6265         * config/i386/sse.md: Add n to negated FMA pattern names.
6266
6267 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6268
6269         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6270
6271 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6272
6273         * gengtype-state.c (read_state_params_structs): Initialize previous.
6274
6275 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6276
6277         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6278         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6279
6280 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6281
6282         * config/i386/i386.md (*movtf_internal): Avoid allocating general
6283         registers.  Penalize F*r->o alternative to prevent partial memory
6284         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
6285         CONST_DOUBLE immediates when optimizing function for size.  Do not move
6286         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6287         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6288         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6289         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6290         alternatives.
6291         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6292
6293         (fp_register_operand splitters): Use fp_register_operand
6294         constraint.  Do not use FP_REG_P in insn condition.
6295         (any_fp_register_operand splitters): Use any_fp_register_operand
6296         constraint.  Do not use ANY_FP_REG_P in insn condition.
6297
6298 2011-05-31  Jan Hubicka  <jh@suse.cz>
6299
6300         * cgraph.h (cgraph_inline_failed_t): Give enum a name
6301         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6302         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6303         (lto_output_edge): Use output_enum and var_len_unsigned.
6304         (lto_output_varpool_node): Likewise.
6305         (input_overwrite_node): Do not take resolution parameter;
6306         extract it from a bitpack.
6307         (input_node): Do not read resolution; use input_enum and
6308         var_len_unsigned.
6309         (input_varpool_node): Likewise.
6310         (input_edge): Likewise.
6311         (input_cgraph_1): Likewise.
6312
6313 2011-05-31  Richard Guenther  <rguenther@suse.de>
6314
6315         * gimple.c (gimple_register_canonical_type): Do not register
6316         any types via gimple_register_type.
6317
6318 2011-05-31  Jan Hubicka  <jh@suse.cz>
6319
6320         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6321         of thunks.
6322
6323 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6324
6325         PR rtl-optimization/49235
6326         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6327         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6328
6329 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
6330
6331         PR tree-optimization/49093
6332         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6333         data references.
6334
6335 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
6336
6337         PR debug/49047
6338         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6339         for concrete functions containing the code of cloned functions.
6340
6341 2011-05-31  Richard Guenther  <rguenther@suse.de>
6342
6343         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6344         to ...
6345         (forward_propagate_into_comparison_1): ... this.
6346         (forward_propagate_comparison): Rename to ...
6347         (forward_propagate_into_comparison): ... this.  Split out
6348         real forward propagation code to ...
6349         (forward_propagate_comparison): ... this.
6350         (forward_propagate_into_gimple_cond): Remove looping.
6351         (forward_propagate_into_cond): Likewise.
6352         (simplify_not_neg_expr): Return whether we have done something.
6353         (simplify_gimple_switch): Likewise.
6354         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6355         (ssa_forward_propagate_and_combine): ... this.  Re-structure
6356         to do a forward forward-propagation walk on BBs and a backward
6357         stmt combining walk on BBs.  Consistently re-scan changed statements.
6358         (pass_forwprop): Adjust.
6359
6360 2011-05-30  Ian Lance Taylor  <iant@google.com>
6361
6362         * godump.c (go_format_type): Correct length of name added to
6363         obstack for anonymous field.
6364
6365 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6366
6367         PR target/49186
6368         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6369         part of the second operand is 0.
6370
6371 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
6372
6373         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6374         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
6375         to memory for !TARGET_MEMORY_MISMATCH_STALL.
6376         (*movdf_internal_rex64): Do not penalize F->r alternative.
6377         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6378         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
6379         when optimizing function for size.  Do not move CONST_DOUBLEs
6380         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6381         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
6382         SUBREGs.  Do not check for MEM_P operands in the insn condition,
6383         check for ANY_FP_REGNO_P instead.
6384         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6385         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6386         function for speed.
6387         * config/i386/i386.c (ix86_option_override_internal): Do not
6388         set TARGET_INTEGER_DFMODE_MOVES here.
6389
6390 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         PR target/49168
6393         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6394
6395 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
6396
6397         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6398         DW_TAG_rvalue_reference_type even for
6399         -gdwarf-4 -fno-debug-types-section.
6400
6401 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6402
6403         PR tree-optimization/46728
6404         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6405         (build_and_insert_binop): New.
6406         (gimple_expand_builtin_pow): Reorder args for
6407         build_and_insert_call; use build_and_insert_binop; add more
6408         optimizations for fractional exponents.
6409
6410 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
6411
6412         PR bootstrap/49190
6413
6414         Revert:
6415         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6416
6417         * tree.h (struct tree_identifier): Inherit from tree_typed, not
6418         tree_common.
6419         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6420         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6421         TS_BASE instead of TS_COMMON.
6422         * varasm.c (assemble_name): Remove assert.
6423
6424 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
6425
6426         * config.gcc: Keep obselete list sorted.
6427
6428 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
6429             Eric Botcazou  <ebotcazou@adacore.com>
6430
6431         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6432         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6433         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6434         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6435         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6436
6437 2011-05-30  Richard Guenther  <rguenther@suse.de>
6438
6439         * gimple.c (gimple_types_compatible_p_1): Compare record
6440         and union type members properly.
6441
6442 2011-05-30  Richard Guenther  <rguenther@suse.de>
6443
6444         PR tree-optimization/49210
6445         * ipa-split.c (split_function): Care for the case where the call
6446         result is not trivially convertible to the result holding variable.
6447
6448 2011-05-30  Richard Guenther  <rguenther@suse.de>
6449
6450         PR tree-optimization/49218
6451         * tree-vrp.c (adjust_range_with_scev): Properly check whether
6452         overflow occured.
6453
6454 2011-05-30  Richard Guenther  <rguenther@suse.de>
6455
6456         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6457         New function split out from ...
6458         (forward_propagate_into_gimple_cond): ... here.  Adjust.
6459         (forward_propagate_into_cond): Likewise.
6460         (forward_propagate_comparison): Also propagate into
6461         comparisons on assignment RHS.  Change return value to
6462         behave similar to forward_propagate_into_cond.
6463         (tree_ssa_forward_propagate_single_use_vars): Handle
6464         strict-overflow warnings properly for forward_propagate_comparison.
6465
6466 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6467
6468         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6469         from plugin linker.
6470         * configure: Regenerate.
6471
6472 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
6473
6474         PR tree-optimization/49199
6475         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6476         non-reduction operands are either defined in the loop or by induction.
6477
6478 2011-05-29  Xinliang David Li  <davidxl@google.com>
6479
6480         * opts-global.c (handle_common_deferred_options): Handle new options.
6481         * passes.c (register_one_dump_file): Call register_pass_name.
6482         (execute_one_pass): Check explicit enable/disable flag.
6483         (passr_hash): New function.
6484         (passr_eq): Ditto.
6485         (register_pass_name): Ditto.
6486         (get_pass_by_name): Ditto.
6487         (pass_hash): Ditto.
6488         (pass_eq): Ditto.
6489         (enable_pass): Ditto.
6490         (disable_pass): Ditto.
6491         (is_pass_explicitly_enabled_or_disabled): Ditto.
6492
6493 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
6494
6495         * config/i386/i386.md (*movoi_internal_avx): Use
6496         standard_sse_constant_opcode for alternative 0.
6497         (*movti_internal_sse): Ditto.
6498         (*movti_internal_rex64): Use standard_sse_constant_opcode for
6499         alternative 2.
6500         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6501         sselog1 type moves.
6502         (*movsi_internal): Ditto.
6503         (*movdi_internal): Ditto.  Add ssecvt type moves.
6504
6505 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6506
6507         PR target/48830
6508         * rtlanal.c (simplify_subreg_regno): Adjust comment.
6509
6510 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
6511
6512         PR rtl-optimization/49095
6513         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6514         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6515
6516 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
6517
6518         PR target/43995
6519         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6520         recurse_p argument.  Only follow register copies if it is set,
6521         and prevent mips_find_pic_call_symbol from recursing.
6522         (mips_find_pic_call_symbol): Add a recurse_p argument.
6523         Pass it to mips_pic_call_symbol_from_set.
6524         (mips_annotate_pic_calls): Update accordingly.
6525
6526 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
6527
6528         * emit-rtl.c (try_split): Use a loop to search for
6529         NOTE_INSN_CALL_ARG_LOCATIONs.
6530
6531 2011-05-29  Richard Guenther  <rguenther@suse.de>
6532
6533         PR tree-optimization/49217
6534         * ipa-pure-const.c (propagate_pure_const): Fix typos.
6535
6536 2011-05-28  Jan Hubicka  <jh@suse.cz>
6537
6538         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6539         length.
6540         (string_slot_free): Remove
6541         (create_output_block): Initialize obstack.
6542         (destroy_output_block): Free obstack.
6543         (lto_string_index): Add PERSISTENT parameter; do not duplicate
6544         the string unless it needs to be added into the hash.
6545         (lto_output_string_with_length): Add persistent attribute;
6546         handle NULL strings.
6547         (lto_output_string): Add PERSISTENT parameter.
6548         (output_string_cst, output_identifier): Simplify.
6549         (lto_output_location_bitpack): Update.
6550         (lto_output_builtin_tree): Update.
6551         * lto-streamer.h (struct output_block): Add obstack.
6552         (lto_output_string, lto_output_string_with_length): Remove
6553         declarations; functions are static now.
6554
6555 2011-05-28  Jan Hubicka  <jh@suse.cz>
6556
6557         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6558         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6559         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6560         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6561         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6562         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6563         unpack_ts_decl_with_vis_value_fields,
6564         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6565         lto_get_builtin_tree): Use enum and variable length i/o.
6566         * basic-block.h (profile_status_d): Add PROFILE_LAST.
6567         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6568         New functions.
6569         (bp_pack_enum, bp_unpack_enum): New macros.
6570
6571 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6572
6573         * genrecog.c: Remove redundant forward declarations.
6574
6575 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6576
6577         * config.gcc: Deprecate mips*-*-openbsd*.
6578
6579 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6580
6581         PR bootstrap/49195
6582         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6583         for match_op_dup.
6584
6585 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
6586
6587         PR middle-end/48981
6588         * gengtype.c (vec_prefix_type): New function.
6589         (note_def_vec): Use vec_prefix_type and change the length
6590         attribute to be based on the prefix.
6591         * vec.c: Include coretypes.h before vec.h.
6592         (struct vec_prefix): Remove.
6593         (vec_gc_p_reserve): Change the offsetof to sizeof.
6594         (vec_gc_p_reserve_exact): Likewise.
6595         (vec_heap_p_reserve): Likewise.
6596         (vec_heap_p_reserve_exact): Likewise.
6597         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6598         (vec_stack_p_reserve): Change the offsetof to sizeof.
6599         (vec_stack_p_reserve_exact): Likewise.
6600         * vec.h (struct vec_prefix): New struct definition.
6601         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6602         (VEC_T_GTY(T,B)): Likewise.
6603         (DEF_VEC_FUNC_P(T)): Use prefix field.
6604         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6605         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6606
6607 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6608
6609         PR tree-optimization/46728
6610         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6611         (powi_as_mults): Add gimple_set_location.
6612         (build_and_insert_call): New.
6613         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6614         0.5, 0.25, 0.75, 1./3., or 1./6.
6615
6616 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
6617
6618         * doc/contrib.texi: Update copyright years.
6619         (Contributors): Add Zdenek Sojka.
6620
6621 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
6622
6623         * c-decl.c (c_push_function_context): Copy the current statement
6624         list stack.
6625         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6626         (finish_struct): Call building_stmt_list_p instead of checking
6627         cur_stmt_list.
6628         * c-parser.c (c_parser_postfix_expression): Likewise.
6629         * c-typeck.c (c_end_compound_stmt): Likewise.
6630         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6631         * tree-iterator.c (stmt_list_cache): Change to a VEC.
6632         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6633         (free_stmt_list): Likewise.
6634         * tree.h (struct tree_statement_list): Include typed_tree instead
6635         of tree_common.
6636         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6637         as TS_TYPED instead of TS_COMMON.
6638
6639 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6640             Uros Bizjak  <ubizjak@gmail.com>
6641
6642         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6643         (HAVE_AS_IX86_TLSGDPTL): Define.
6644         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6645         (HAVE_AS_IX86_TLSLDMPLT): Define.
6646         * configure: Regenerate.
6647         * config.in: Regenerate.
6648         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6649         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6650         TARGET_SUN_TLS, use @tlsgdplt or @plt.
6651         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6652         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6653         @tlsldmplt or @plt.
6654         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6655
6656 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
6657
6658         * sched-int.h (struct _haifa_deps_insn_data): New members cond
6659         and reverse_cond.
6660         (INSN_COND, INSN_REVERSE_COND): New macros.
6661         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6662         once.
6663         (sched_get_condition_with_rev): Cache the results, and look them up
6664         if possible.
6665         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6666         are clobbered by the current insn.
6667         * target.def (exposed_pipline): New sched data hook.
6668         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6669         * doc/tm.texi: Regenerate.
6670
6671 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6672
6673         PR tree-optimization/49170
6674         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
6675         sincos or cexp.
6676
6677 2011-05-27  Richard Guenther  <rguenther@suse.de>
6678
6679         PR middle-end/49189
6680         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6681         of comparisons.
6682
6683 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
6684
6685         * haifa-sched.c (sched_scan_info): Remove.
6686         (schedule_block): Call sched_extend_luids rather than sched_init_luids
6687         with NULL args.
6688         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6689         Remove functions.
6690         (sched_scan): Remove.
6691         (sched_extend_luids): Renamed from luids_extend_insn and no longer
6692         static.  All callers changed.
6693         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6694         static.  All callers changed.
6695         (sched_init_luids): Remove all arguments except the first.  All
6696         callers changed.  Don't use sched_scan.
6697         (haifa_init_h_i_d): Likewise.
6698         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6699         manually rather than using sched_init_luids.  Likewise with
6700         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6701         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6702         rather than sched_init_luids with NULL args.
6703         * sel-sched-ir.c (new_insns): Remove variable.
6704         (sched_scan): New static function, previously in haifa-sched.c.  Remove
6705         all arguments but the first two; all callers changed.
6706         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6707         rather than sched_init_luids.
6708         (sel_init_bbs): Remove second argument.  All callers changed.
6709         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6710         with NULL arguments.
6711         (create_insn_rtx_from_pattern): Likewise.
6712         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6713         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6714         (sched_init_insn_luid, sched_extend_luids): Declare.
6715         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6716         declarations.
6717
6718 2011-05-27  Richard Guenther  <rguenther@suse.de>
6719
6720         PR middle-end/49177
6721         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6722         A CMP B ? (T) true : (T) false for non-integral types T again.
6723
6724 2011-05-27  Jan Hubicka  <jh@suse.cz>
6725
6726         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6727         so 0 means NULL string.
6728         (lto_output_string_with_length): ... here.
6729         (lto_output_string, output_string_cst, output_identifier): Update
6730         handling of NULL strings.
6731         (lto_output_location_bitpack): New function.
6732         (lto_output_location): Use it.
6733         (lto_output_tree_ref): Use output_record_start.
6734         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6735         len values.
6736         * lto-streamer-in.c (string_for_index): Break out from ...; offset
6737         values by 1.
6738         (input_string_internal): ... here;
6739         (input_string_cst, input_identifier, lto_input_string): Update handling
6740         of NULL strings.
6741         (lto_input_location_bitpack): New function
6742         (lto_input_location): Use it.
6743         (unpack_ts_type_common_value_fields): Pack align & alias in var len
6744         values.
6745         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6746         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6747         (bp_pack_value): Sanity check the value range.
6748         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6749         New functions.
6750         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6751         New functions.
6752
6753 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
6754
6755         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6756         call_arg_location instructions down the floor.
6757
6758 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
6759
6760         PR rtl-optimization/49154
6761         * ira.c (setup_pressure_classes): Process class without sublcasses
6762         as a candidate for pressure classes.
6763
6764 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
6765
6766         PR rtl-optimization/48575
6767         * genrecog.c (position_type): New enum.
6768         (position): New structure.
6769         (decision): Use position structure instead of a string.
6770         (root_pos, peep2_insn_pos_list): New variables.
6771         (next_position, compare_positions): New functions.
6772         (new_decision): Use position structures instead of strings.
6773         (maybe_both_true): Likewise.
6774         (change_state): Likewise.
6775         (write_tree): Likewise.
6776         (make_insn_sequence): Likewise.
6777
6778 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6779
6780         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6781         TS_BASE instead of TS_COMMON.
6782         (find_decls_types_r): Check for TS_TYPED structure before looking at
6783         TREE_TYPE.
6784         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6785         Add chain field.
6786         (BLOCK_CHAIN): Use new chain field.
6787
6788 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
6789
6790         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6791         moves expensive on Power7 also.
6792
6793 2011-05-26  Richard Guenther  <rguenther@suse.de>
6794
6795         * fold-const.c (fold_unary_loc): Remove bogus code.
6796
6797 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6798
6799         * tree.h (struct tree_identifier): Inherit from tree_typed, not
6800         tree_common.
6801         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6802         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6803         TS_BASE instead of TS_COMMON.
6804         * varasm.c (assemble_name): Remove assert.
6805
6806 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
6807
6808         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6809         substituted first.
6810         * libgcc-std.ver: Delete file.
6811
6812 2011-05-26  Richard Guenther  <rguenther@suse.de>
6813
6814         PR tree-optimization/48702
6815         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6816         only when we know the base address is within bounds.
6817         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6818         assume the base address of TARGET_MEM_REFs is in bounds.
6819
6820 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6821
6822         PR target/49099
6823         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6824         declaration in TARGET_SOLARIS.
6825
6826 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
6827
6828         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
6829         The instruction is then expanded explicitly.
6830         (supported_compare): Callable instruction.
6831         (compare): Likewise.
6832
6833 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
6834
6835         PR c++/49165
6836         * gimplify.c (shortcut_cond_r): Don't special case
6837         COND_EXPRs if they have void type on one of their arms.
6838
6839 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
6840
6841         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
6842         to reduce duplication, and to achieve a slightly more logical order
6843         of operations.
6844
6845 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
6846
6847         PR tree-optimization/49161
6848         * tree-vrp.c (struct case_info): New type.
6849         (compare_case_labels): Sort case_info structs instead of
6850         trees, and not primarily by CASE_LABEL uids but by
6851         label_for_block indexes.
6852         (find_switch_asserts): Put case labels into struct case_info
6853         array instead of TREE_VEC, adjust sorting, compare label_for_block
6854         values instead of CASE_LABELs.
6855
6856 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6857
6858         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
6859         ("orndi3_neon"): Likewise.
6860         ("bic<mode>3_neon"): Likewise.
6861
6862 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
6863
6864         PR tree-optimization/49038
6865         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
6866         Ensure at least one epilogue iteration if required by data
6867         accesses with gaps.
6868         * tree-vectorizer.h (struct _loop_vec_info): Add new field
6869         to mark loops that require peeling for gaps.
6870         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
6871         (vect_get_known_peeling_cost): Take peeling for gaps into
6872         account.
6873         (vect_transform_loop): Generate epilogue if required by data
6874         access with gaps.
6875         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
6876         loop as requiring an epilogue if there are gaps in the end of
6877         the strided group.
6878
6879 2011-05-25  Ian Lance Taylor  <iant@google.com>
6880
6881         * godump.c (go_format_type): Output the first field with a usable
6882         Go type, if any.
6883
6884 2011-05-25  Ian Lance Taylor  <iant@google.com>
6885
6886         * godump.c (go_format_type): Check for invalid type names, pointer
6887         target types, and struct field types.
6888
6889 2011-05-25  Jason Merrill  <jason@redhat.com>
6890
6891         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
6892
6893 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
6894
6895         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
6896
6897 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6898
6899         * config/i386/i386.md (*movqi_extv_1)): Put back
6900         "register_operand" check in "type" calculation.
6901         (*movqi_extzv_2): Likewise.
6902
6903 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6904
6905         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6906
6907 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
6908
6909         PR bootstrap/49160
6910         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
6911         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
6912         __divxc3, __divtc3): Wrap definitions in #ifndef.
6913
6914 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6915
6916         PR target/49142
6917         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
6918         "register_operand" check and replace q_regs_operand with
6919         QIreg_operand in "type" calculation.
6920         (*movqi_extv_1): Likewise.
6921         (*movqi_extzv_2_rex64): Likewise.
6922         (*movqi_extzv_2): Likewise.
6923
6924         * config/i386/predicates.md (QIreg_operand): New.
6925
6926 2011-05-25  Richard Guenther  <rguenther@suse.de>
6927
6928         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6929         type-based offset disambiguation, streamline MEM_REF and
6930         TARGET_MEM_REF handling.
6931
6932 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6933
6934         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
6935         (bdesc_special_args): Add pause intrinsic.
6936
6937         * config/i386/i386.md (UNSPEC_PAUSE): New.
6938         (pause): Likewise.
6939         (*pause): Likewise.
6940         * config/i386/ia32intrin.h (__pause): Likewise.
6941
6942         * doc/extend.texi (X86 Built-in Functions): Add documentation for
6943         pause intrinsic.
6944
6945 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6946
6947         PR tree-optimization/46728
6948         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
6949         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
6950
6951 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
6952
6953         * tree.h (struct tree_exp): Inherit from struct tree_typed.
6954         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
6955         instead of TS_COMMON.
6956
6957 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
6958
6959         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
6960         LIBGCC2_GNU_PREFIX is defined.
6961         (__N): New macro.
6962         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
6963         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
6964         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
6965         __clz_tab): Define using __N.
6966         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
6967         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
6968         * target.def (libfunc_gnu_prefix): New hook.
6969         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
6970         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
6971         * doc/tm.texi: Regenerate.
6972         * system.h (LIBGCC2_GNU_PREFIX): Poison.
6973         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
6974         account.
6975         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6976         (init_optabs): Likewise for the bswap libfuncs.
6977         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
6978         and divide.
6979         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
6980         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
6981         * libgcc-std.ver: Remove.
6982         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
6983         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
6984         libgcc-std.ver.
6985         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6986         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
6987         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
6988         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
6989         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
6990         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6991         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6992         * config/fixed-bit.h (FIXED_OP): Define differently depending on
6993         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
6994         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
6995
6996 2011-05-25  Jan Hubicka  <jh@suse.cz>
6997
6998         * lto-streamer-out.c (output_record_start): Use lto_output_enum
6999         (lto_output_tree): Use output_record_start.
7000         * lto-streamer-in.c (input_record_start): Use lto_input_enum
7001         (lto_get_pickled_tree): Use input_record_start.
7002         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7003         (lto_value_range_error): New function.
7004         * lto-streamer.h (lto_value_range_error): Declare.
7005         (lto_output_int_in_range, lto_input_int_in_range): New functions.
7006         (lto_output_enum, lto_input_enum): New macros.
7007
7008 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7009
7010         * common.opt (flag_stack_usage_info): New variable.
7011         (-Wstack-usage): New option.
7012         * doc/invoke.texi (Warning options): Document -Wstack-usage.
7013         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7014         <OPT_fstack_usage>: Likewise.
7015         * toplev.c (output_stack_usage): Handle -Wstack-usage.
7016         * calls.c (expand_call): Test flag_stack_usage_info variable instead
7017         of flag_stack_usage.
7018         (emit_library_call_value_1): Likewise.
7019         * explow.c (allocate_dynamic_stack_space): Likewise.
7020         * function.c (instantiate_virtual_regs ): Likewise.
7021         (prepare_function_start): Likewise.
7022         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7023         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7024         * config/arm/arm.c (arm_expand_prologue): Likewise.
7025         (thumb1_expand_prologue): Likewise.
7026         * config/avr/avr.c (expand_prologue): Likewise.
7027         * config/i386/i386.c (ix86_expand_prologue): Likewise.
7028         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7029         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7030         * config/mips/mips.c (mips_expand_prologue): Likewise.
7031         * config/pa/pa.c (hppa_expand_prologue): Likewise.
7032         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7033         * config/s390/s390.c (s390_emit_prologue): Likewise.
7034         * config/sh/sh.c (sh_expand_prologue): Likewise.
7035         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7036         * config/spu/spu.c (spu_expand_prologue): Likewise.
7037
7038 2011-05-25  Richard Guenther  <rguenther@suse.de>
7039
7040         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7041         (gimple_canonical_types_compatible_p): Likewise.
7042
7043 2011-05-25  Jan Hubicka  <jh@suse.cz>
7044
7045         PR middle-end/49062
7046         * ipa.c (function_and_variable_visibility): Only add to same
7047         comdat group list if DECL_ONE_ONLY.
7048
7049 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
7050
7051         PR rtl-optimization/49014
7052         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7053
7054 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7055
7056         PR target/49128
7057         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7058
7059 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7060
7061         PR rtl-optimization/48757
7062         * ira-build.c (loop_with_eh_edge_p): Rename to
7063         loop_with_complex_edge_p, check edges on complexity, make function
7064         conditional.
7065         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7066         conditional.
7067
7068 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7069
7070         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7071         force flag_ira_share_save_slots to 0.
7072
7073 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7074
7075         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7076         (vt_initialize): Set PROLOGUE_BB unconditionally.
7077         Add block comment about CFA_BASE_RTX machinery.
7078         Reset FP_CFA_OFFSET to -1 on all invalid paths.
7079         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7080
7081 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7082
7083         PR objc/48187
7084         * c-parser.c (c_parser_objc_class_instance_variables): More robust
7085         parsing of syntax error in ObjC instance variable lists.  In
7086         particular, avoid an infinite loop if there is a stray ']'.
7087         Updated error message.
7088
7089 2011-05-24  Ian Lance Taylor  <iant@google.com>
7090
7091         * godump.c (go_define): Don't accept a string immediately after
7092         another operand.
7093
7094 2011-05-24  Ian Lance Taylor  <iant@google.com>
7095
7096         * godump.c (struct godump_container): Add invalid_hash field.
7097         (go_format_type): Return false if type is found in invalid_hash.
7098         (go_output_typedef): Add invalid type to invalid_hash.
7099         (go_finish): Create and delete invalid_hash.
7100
7101 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7102
7103         PR tree-optimization/46728
7104         * tree-ssa-math-opts.c (powi_table): New.
7105         (powi_lookup_cost): New.
7106         (powi_cost): New.
7107         (powi_as_mults_1): New.
7108         (powi_as_mults): New.
7109         (gimple_expand_builtin_powi): New.
7110         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7111         (gate_cse_sincos): Remove sincos/cexp restriction.
7112
7113 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7114
7115         PR target/3746
7116         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7117         mips-tdump native.
7118         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7119         * mips-tdump.c: Likewise.
7120
7121 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7122
7123         PR target/49128
7124         * config/i386/driver-i386.c (host_detect_local_cpu): Always
7125         add -mno-XXX.  Handle FMA.
7126
7127 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7128
7129         PR rtl-optimization/48633
7130         * ira-build.c (loop_with_eh_edge_p): New function.
7131         (mark_loops_for_removal): Use it.
7132
7133 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7134
7135         PR rtl-optimization/48971
7136         * ira.c (setup_pressure_classes): Don't check register move cost
7137         for classes with one registers.  Don't add pressure class if there
7138         is a pressure class with the same available hard registers.
7139         Check contains_reg_of_mode.  Fix a typo in collecting
7140         temp_hard_regset.  Ignore hard registers not belonging to a class.
7141
7142 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
7143
7144         PR target/49133
7145         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7146
7147 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7148             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7149
7150         PR gcov-profile/48845
7151         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7152
7153 2011-05-24  Richard Guenther  <rguenther@suse.de>
7154
7155         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7156         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7157         (gimple_types_compatible_p_1): Adjust.
7158         (iterative_hash_canonical_type): Do not bother about complete vs.
7159         incomplete types.
7160         (gimple_canonical_types_compatible_p): Likewise.
7161
7162 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7163
7164         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7165
7166 2011-05-24  Richard Guenther  <rguenther@suse.de>
7167
7168         PR bootstrap/49078
7169         * gimple.c (gimple_register_canonical_type): Revert
7170         previous change.
7171         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7172         does not for a tree for the case where it matters.  Cache
7173         pointer-type alias-sets.
7174
7175 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
7176
7177         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7178         (OBJS): Remove options.o, opts-common.o and prefix.o.
7179         (OBJS-libcommon-target): New.
7180         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7181         (BACKEND): Include libcommon-target.a.
7182         (MOSTLYCLEANFILES): Include libcommon-target.a.
7183         (libcommon-target.a): New.
7184         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7185         prefix.o.
7186
7187 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
7188
7189         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
7190         parts of output shared with the driver.
7191         * optc-gen.awk: Don't generate parts of output not shared with the
7192         driver.
7193         * opth-gen.awk: Remove GCC_DRIVER conditionals.
7194         * doc/options.texi (SourcerInclude): Mention options-save.c.
7195         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7196         (OBJS): Add options-save.o.
7197         (options-save.c, options-save.o): New.
7198         (options.o): Update dependencies.
7199         (gcc-options.o): Remove.
7200         (mostlyclean): Remove options-save.c.
7201
7202 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7203
7204         PR debug/49032
7205         * dbxout.c: Include cgraph.h.
7206         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7207         and without value expr, return NULL if no varpool node exists for
7208         it or if it is not needed.
7209         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7210
7211         PR c/49120
7212         * c-decl.c (start_decl): Convert expr to void_type_node.
7213
7214 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
7215
7216         PR rtl-optimization/48826
7217         * emit-rtl.c (try_split): When splitting a call that is followed
7218         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7219
7220 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7221
7222         * cfgexpand.c (expand_debug_expr): For unused non-addressable
7223         parameters passed in memory prefer using DECL_INCOMING_RTL over
7224         the pseudos it will be copied into.
7225
7226 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7227
7228         PR target/47315
7229         * config/i386/i386.c (ix86_option_override_internal): Save the
7230         initial options after checking vzeroupper.
7231
7232 2011-05-23  David Li  <davidxl@google.com>
7233
7234         PR tree-optimization/48988
7235         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7236         Initialize has_valid_pred for each pred chain.
7237
7238 2011-05-23  Richard Guenther  <rguenther@suse.de>
7239
7240         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7241         (iterative_hash_gimple_type): Always hash type names.
7242
7243 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7244
7245         * c-typeck.c (build_function_call_vec): Tweak call to
7246         check_function_arguments.
7247
7248 2011-05-23  Richard Guenther  <rguenther@suse.de>
7249
7250         PR tree-optimization/49115
7251         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7252         is not necessarily carried out, do not claim it kills the ref.
7253         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7254
7255 2011-05-23  Richard Guenther  <rguenther@suse.de>
7256
7257         PR middle-end/15419
7258         * builtins.c (fold_builtin_memory_op): Be less restrictive about
7259         what pointer types we accept for folding.
7260
7261 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7262
7263         * gthr-gnat.c: Remove.
7264         * gthr-gnat.h: Remove.
7265         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7266         * config/t-freebsd (LIB2ADDEH): Likewise.
7267         * config/t-linux (LIB2ADDEH): Likewise.
7268         * config/t-sol2 (LIB2ADDEH): Likewise.
7269         * config/ia64/t-vms (LIB2ADDEH): Likewise.
7270         * configure.ac (target_thread_file): Remove gnat handling.
7271         * configure: Regenerate.
7272         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7273
7274 2011-05-23  Tristan Gingold  <gingold@adacore.com>
7275             Eric Botcazou  <ebotcazou@adacore.com>
7276
7277         * gcov.c (create_file_names): If no object directory is specified,
7278         keep the directory of the file.
7279
7280 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7281
7282         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7283         * configure: Regenerate.
7284
7285 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7286
7287         PR middle-end/48973
7288         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7289         failed and the comparison has a single bit signed type, use
7290         constm1_rtx instead of const1_rtx for true value.
7291         (do_store_flag): If ops->type is single bit signed type, disable
7292         signel bit test optimization and pass -1 instead of 1 as last
7293         parameter to emit_store_flag_force.
7294
7295 2011-05-23  Tom de Vries  <tom@codesourcery.com>
7296
7297         PR target/45098
7298         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7299         function.
7300         (infer_loop_bounds_from_undefined): Use new function.
7301
7302 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7303
7304         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7305         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
7306         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7307         and -O0 otherwise.
7308         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7309
7310 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7311
7312         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7313         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7314         returns true.
7315
7316 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7317
7318         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7319
7320 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7321
7322         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7323         UNSPEC_MOVE_PIC pattern.
7324
7325 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7326
7327         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7328         (sparc-*-rtems*): Likewise.
7329         (sparc64-*-elf*): Likewise.
7330         (sparc64-*-rtems*): Likewise.
7331         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
7332         * config/sparc/t-crtin: New file.
7333         * config/sparc/t-sol2 (crti.o): Delete rule.
7334         (crtn.o): Likewise.
7335         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7336         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7337         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7338         (ENDFILE_SPEC): Add crtn.o.
7339
7340 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7341
7342         PR middle-end/48689
7343         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7344         CODE_CONTAINS_STRUCT (TS_COMMON).
7345
7346 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
7347
7348         PR middle-end/49029
7349         * expmed.c (extract_fixed_bit_field): Test whether target can be used
7350         only after deciding which mode to use.
7351
7352 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7353
7354         PR target/45098
7355         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7356         for call to get_shiftadd_cost.
7357
7358 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
7359
7360         PR target/49104
7361         * config/i386/cpuid.h (bit_MMXEXT): New define.
7362
7363 2011-05-22  Nick Clifton  <nickc@redhat.com>
7364
7365         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7366         initialisation of non-existant args[2] element.  Use args[] array
7367         not arg[] array to pass arguments to build_function_type_list.
7368
7369 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
7370
7371         PR tree-optimization/49087
7372         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7373
7374 2011-05-21  Jason Merrill  <jason@redhat.com>
7375
7376         PR c++/49092
7377         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7378         static storage duration.
7379
7380 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7381
7382         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7383         frame pointer.
7384
7385 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7386
7387         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7388         false if there are call-saved registers here...
7389         (sparc_can_use_return_insn_p): ...but here instead.
7390         (save_or_restore_regs): Fix thinko.
7391         (sparc_expand_prologue): Use current_function_is_leaf.
7392         (sparc_frame_pointer_required): Likewise.
7393
7394 2011-05-21  Nick Clifton  <nickc@redhat.com>
7395
7396         PR target/49098
7397         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7398
7399 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7400
7401         * gengtype.c (walk_type): Implemented "atomic" GTY option.
7402         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7403
7404 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
7405
7406         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
7407         * optc-gen.awk: Move common code to opt-read.awk.
7408         * opth-gen.awk: Likewise.
7409         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7410
7411 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
7412
7413         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7414
7415 2011-05-20  Tom de Vries  <tom@codesourcery.com>
7416
7417         PR target/45098
7418         * tree-ssa-loop-ivopts.c: Include expmed.h.
7419         (get_shiftadd_cost): New function.
7420         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
7421
7422 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
7423
7424         PR bootstrap/49086
7425         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7426         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7427
7428 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
7429
7430         * Makefile.in: Update comment referring to $(OBJS-common).
7431
7432 2011-05-20  Ian Lance Taylor  <iant@google.com>
7433
7434         * godump.c (go_output_typedef): Put enum constants in the macro
7435         hash table to avoid duplicate Go const definitions.
7436
7437 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
7438
7439         * Makefile.in (LIBDEPS): Add libcommon.a.
7440         (LIBS): Likewise.
7441         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7442         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7443         pretty-print.o and version.o.
7444         (OBJS-libcommon): New.
7445         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7446         (BACKEND): Add libcommon.a.
7447         (MOSTLYCLEANFILES): Likewise.
7448         (libcommon.a): New.
7449         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7450         (cpp$(exeext)): Likewise.
7451         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7452         pretty-print.o and input.o.
7453         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7454         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7455         (errors.o): Remove.
7456         (mips-tfile): Don't explicitly use version.o.
7457         (mips-tdump): Likewise.
7458         (gcov.o): Depend on $(DIAGNOSTIC_H).
7459         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7460         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7461         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7462         * gcov-dump.c: Include intl.h and diagnostic.h.
7463         (main): Initialize diagnostics.
7464         * gcov.c: Include diagnostic.h.
7465         (fnotice): Remove.
7466         (main): Initialize diagnostics.
7467         * lto-wrapper.c: Include diagnostic.h.
7468         (main): Initialize diagnostics.
7469
7470 2011-05-20  Michael Matz  <matz@suse.de>
7471
7472         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7473
7474 2011-05-20  Michael Matz  <matz@suse.de>
7475             Richard Guenther  <rguenther@suse.de>
7476
7477         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7478         use lto_streamer_cache_append directly instead of returning a VEC.
7479         (preload_common_node): Remove.
7480         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7481         track seen nodes.
7482         (lto_streamer_cache_create): Call lto_preload_common_nodes.
7483
7484 2011-05-20  Richard Guenther  <rguenther@suse.de>
7485
7486         PR tree-optimization/49079
7487         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7488         MEM_REFs correctly for the trailing array access detection.
7489         Special case constants the same way as decls for overall size
7490         constraining.
7491
7492 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
7493
7494         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7495         argument expansion.
7496
7497 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
7498
7499         PR tree-optimization/49073
7500         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7501         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7502         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7503
7504 2011-05-20  Richard Guenther  <rguenther@suse.de>
7505
7506         PR middle-end/48849
7507         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7508         of pointer types the same way the middle-end does.
7509
7510 2011-05-20  Richard Guenther  <rguenther@suse.de>
7511
7512         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7513         or pointer-to chains.  Delay all fixup to uniquify_nodes.
7514
7515 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
7516
7517         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7518         (fma4_fmaddsub): Likewise
7519
7520 2011-05-19  Jan Hubicka  <jh@suse.cz>
7521
7522         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7523         (GIMPLE_TYPE_PAIR_SIZE): New macro.
7524         (type_pair_cache): New static var.
7525         (lookup_type_pair): Use fixed sized custom hash; make inline.
7526         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7527         calls of lookup_type_pair.
7528         (print_gimple_types_stats): Remove cache stats.
7529         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7530         and gtc_ob.
7531
7532 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
7533
7534         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7535         when TARGET_RDRND is active.
7536         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7537         Generate dummy SImode target register when target is NULL.
7538
7539 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
7540
7541         * config/arm/arm-fpus.def: New.
7542         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7543         arm-fpus.def.
7544         * config/arm/arm-tables.opt: Regenerate.
7545         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7546         (arm_option_override): Don't decode FPU name to string here.
7547         * config/arm/arm.opt (mfpu=): Use Enum.
7548         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7549         Update dependencies.
7550
7551 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
7552
7553         * collect2.c: Include diagnostic.h.
7554         (fatal_perror, fatal, error, fancy_abort): Remove.
7555         (main): Set progname.  Call xmalloc_set_program_name and
7556         diagnostic_initialize.
7557         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7558         scan_libraries, resolve_lib_name): Call fatal_error instead of
7559         fatal and fatal_perror.
7560         * collect2.h (error, fatal, fatal_perror): Don't declare.
7561         * tlink.c: Include diagnostic-core.h.
7562         (recompile_files): Call fatal_error instead of fatal_perror.
7563         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7564         pretty-print.o and input.o.
7565         (collect2.o, tlink.o): Update dependencies.
7566
7567 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7568
7569         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7570
7571 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7572
7573         PR target/40483
7574         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7575         COMDAT group syntax, both SPARC and x86 variants.
7576         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7577         * configure: Regenerate.
7578         * config/sol2.h (TARGET_SOLARIS): Define.
7579         (PUSHSECTION_FORMAT): Remove.
7580         (SECTION_NAME_FORMAT): Define.
7581         * config/sol2.c: Include hashtab.h.
7582         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7583         expansion, using SECTION_NAME_FORMAT.
7584         (solaris_comdat_htab): New variable.
7585         (struct comdat_entry): Define.
7586         (comdat_hash): New function.
7587         (comdat_eq): New function.
7588         (solaris_elf_asm_comdat_section): New function.
7589         (solaris_define_comdat_signature): New function.
7590         (solaris_code_end): New function.
7591         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7592         (solaris_code_end): Declare.
7593         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7594         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7595         solaris_code_end.
7596         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7597         Remove ATTRIBUTE_UNUSED.
7598         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7599         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
7600         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
7601         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7602         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7603         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7604         (PUSHSECTION_FORMAT): Remove.
7605         (SECTION_NAME_FORMAT): Redefine.
7606
7607 2011-05-19  Kai Tietz  <ktietz@redhat.com>
7608
7609         * tree-cfg.c (verify_gimple_assign_binary): Barf on
7610         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7611         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7612
7613 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
7614             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7615
7616         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7617
7618 2011-05-19  Richard Guenther  <rguenther@suse.de>
7619
7620         PR middle-end/48985
7621         * tree-object-size.c (addr_object_size): If the pointed-to
7622         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7623
7624 2011-05-19  Richard Guenther  <rguenther@suse.de>
7625
7626         * gimple.c (gimple_types_compatible_p_1): Compare names of
7627         the types themselves.
7628         (iterative_hash_gimple_type): And hash them that way.
7629         (gimple_register_type_1): If we register a main variant properly
7630         initialize the leader to ourselves.
7631
7632 2011-05-19  Tom de Vries  <tom@codesourcery.com>
7633
7634         PR target/45098
7635         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7636         get_loop_invariant_expr_id.
7637         (get_loop_invariant_expr_id): Use get_expr_id.
7638         (parm_decl_cost): New function.
7639         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7640         Improve bound cost estimation.  Use different inv_expr_id for elim and
7641         express cases.
7642
7643 2011-05-19  Tom de Vries  <tom@codesourcery.com>
7644
7645         PR target/45098
7646         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7647         cost_base.cost == 0.
7648
7649 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7650
7651         PR target/49002
7652         * config/i386/sse.md
7653         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7654         load cast.
7655
7656 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
7657
7658         PR tree-optimization/49039
7659         * tree-vrp.c (extract_range_from_binary_expr): For
7660         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7661         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7662
7663 2011-05-18  Tom de Vries  <tom@codesourcery.com>
7664
7665         PR target/45098
7666         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7667
7668 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
7669
7670         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7671         (*tls_global_dynamic_64): Ditto.
7672         (*tls_local_dynamic_base_32_gnu): Ditto.
7673         (*tls_local_dynamic_base_64): Ditto.
7674         (tls_initial_exec_64_sun): Ditto.
7675
7676 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
7677
7678         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7679         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7680         bf592-none.
7681         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7682         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7683         * config/bfin/bfin.c (bfin_cpus): Add bf592.
7684         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7685         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
7686         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7687         * config/bfin/elf.h (LIB_SPEC): Add bf592.
7688
7689 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
7690
7691         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
7692         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
7693         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7694         target_thread_pointer, arm_structure_size_boundary, struct
7695         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7696         struct abi_name, arm_all_abis): Remove.
7697         (arm_option_override) Don't process most enumerated option values here.
7698         Don't process target_fpe_name here.  Work with integer not string for
7699         structure size boundary; use separate diagnostics for each case.
7700         * config/arm/arm.h (enum float_abi_type, enum
7701         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7702         to arm-opts.h.
7703         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7704         arm_structure_size_boundary): Remove.
7705         * config/arm/arm.opt (mabi=): Use Enum and Init.
7706         (arm_abi_type): New Enum and EnumValue entries.
7707         (mfloat-abi=): Use Enum and Init.
7708         (float_abi_type): New Enum and EnumValue entries.
7709         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
7710         (mfp16-format=): Use Enum and Init.
7711         (arm_fp16_format_type): New Enum and EnumValue entries.
7712         (mstructure-size-boundary=): Use UInteger and Init.
7713         (mtp=): Use Enum and Init.
7714         (arm_tp_type): New Enum and EnumValue entries.
7715
7716 2011-05-18  Richard Guenther  <rguenther@suse.de>
7717
7718         PR tree-optimization/49018
7719         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7720         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7721         gimple_has_side_effects.
7722
7723 2011-05-18  Richard Guenther  <rguenther@suse.de>
7724
7725         * gimple.c (gimple_register_type_1): New function, split out from ...
7726         (gimple_register_type): ... here.  Avoid infinite recursion.
7727
7728 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
7729
7730         PR tree-optimization/41881
7731         * tree-vectorizer.h (struct _loop_vec_info): Add new field
7732         reduction_chains along with a macro for its access.
7733         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7734         (destroy_loop_vec_info): Free reduction chains.
7735         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7736         (vect_is_slp_reduction): New function.
7737         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7738         (vect_create_epilog_for_reduction): Support SLP reduction chains.
7739         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7740         definition types for reduction chains.
7741         (vect_supported_load_permutation_p): Don't allow permutations for
7742         reduction chains.
7743         (vect_analyze_slp_instance): Support reduction chains.
7744         (vect_analyze_slp): Try to build SLP instance from reduction chains.
7745         (vect_get_constant_vectors):  Handle reduction chains.
7746         (vect_schedule_slp_instance): Mark the first statement of the
7747         reduction chain as reduction.
7748
7749 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
7750
7751         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7752         names for group elements access.
7753         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7754         reduction chains as well.  Remove data reference and interleaving
7755         related words from the fields names.
7756         * tree-vect-loop.c (vect_transform_loop): Use new names for group
7757         elements access.
7758         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7759         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7760         vect_update_interleaving_chain, vect_same_range_drs,
7761         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7762         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7763         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7764         vect_analyze_group_access, vect_analyze_data_ref_access,
7765         vect_create_data_ref_ptr, vect_transform_strided_load,
7766         vect_record_strided_load_vectors): Likewise.
7767         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7768         vect_model_load_cost, vectorizable_store, vectorizable_load,
7769         vect_remove_stores, new_stmt_vec_info): Likewise.
7770         * tree-vect-slp.c (vect_build_slp_tree,
7771         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7772
7773 2011-05-18  Richard Guenther  <rguenther@suse.de>
7774
7775         PR middle-end/48989
7776         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7777         operand verification.
7778         (verify_gimple_assign_binary): Likewise.
7779         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7780         to non-1-precision BOOLEAN_TYPEs.
7781
7782 2011-05-18  Tom de Vries  <tom@codesourcery.com>
7783
7784         PR target/45098
7785         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7786
7787 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
7788
7789         PR tree-optimization/49000
7790         * tree-ssa.c (execute_update_addresses_taken): Call
7791         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
7792         be rewritten and decl has been marked for renaming, reset
7793         the debug stmt.
7794
7795 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
7796
7797         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7798         enum_opts_set when testing if attributes have set -mfpmath=.
7799
7800 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
7801
7802         * config/mips/mips.c (mips_handle_option): Remove unused variable.
7803
7804 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
7805
7806         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7807         info->entry with 0
7808         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
7809         id.transform_lang_insert_block with NULL.
7810
7811 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
7812
7813         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7814         (output_fp_compare): Change args 3 and 4 to bool.
7815         (ix86_expand_call): Change arg 6 to bool.
7816         (ix86_attr_length_immediate_default): Change arg 2 to bool.
7817         (ix86_attr_length_vex_default): Change arg 3 to bool.
7818         * config/i386/i386.md: Update all uses.
7819         * config/i386/i386.c: Ditto.
7820         (ix86_flags_dependent): Change return type to bool.
7821
7822 2011-05-17  Richard Guenther  <rguenther@suse.de>
7823
7824         * gimple.c (type_hash_pair_compare): Fix comparison.
7825
7826 2011-05-17  Richard Guenther  <rguenther@suse.de>
7827
7828         * gimple.c (iterative_hash_gimple_type): Simplify singleton
7829         case some more, fix final hash value of the non-singleton case.
7830
7831 2011-05-17  Richard Guenther  <rguenther@suse.de>
7832
7833         PR bootstrap/49013
7834         Revert
7835         2011-05-16  Richard Guenther  <rguenther@suse.de>
7836
7837         * gimple.c (gimple_types_compatible_p_1): Use names of the
7838         type itself, not its main variant.
7839         (iterative_hash_gimple_type): Likewise.
7840
7841 2011-05-17  Richard Guenther  <rguenther@suse.de>
7842
7843         * gimple.c (gimple_register_canonical_type): Use the main-variant
7844         leader for computing the canonical type.
7845
7846 2011-05-17  Nick Clifton  <nickc@redhat.com>
7847
7848         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
7849         moves.
7850
7851         * config/rx/rx.md: Add peephole to remove redundant extensions
7852         after loads.
7853         (bitset_in_memory): Use rx_restricted_mem_operand.
7854         (bitinvert_in_memory): Likewise.
7855         (bitclr_in_memory): Likewise.
7856
7857 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
7858             Nick Clifton  <nickc@redhat.com>
7859
7860         * config/rx/rx.md: Add peepholes to match a register move followed
7861         by a comparison of the moved register.  Replace these with an
7862         addition of zero that does both actions in one instruction.
7863
7864 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
7865
7866         PR target/48986
7867         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
7868         predicate to allow CONST_INT.
7869         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
7870
7871 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
7872
7873         * opts-common.c (opt_enum_arg_to_value): New.
7874         * opts.h (opt_enum_arg_to_value): Declare.
7875         * config/i386/i386.opt (fpmath): Remove.
7876         (mfpmath=): Use Enum, Init and Save.
7877         (fpmath_unit): New Enum and EnumValue entries.
7878         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
7879         name for function fpmath state.
7880         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
7881         * config/i386/i386.c: Include diagnostic.h.
7882         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
7883         (ix86_target_string): Take enum fpmath_unit value instead of string.
7884         (ix86_debug_options): Update call to ix86_target_string.
7885         (ix86_option_override_internal): Don't process fpmath strings here.
7886         (x86_function_specific_save, ix86_function_specific_restore):
7887         Don't handle fpmath state specially.
7888         (ix86_function_specific_print): Pass fpmath state to
7889         ix86_target_string instead of printing in this function.
7890         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
7891         Handle enum attributes.
7892         (IX86_ATTR_ENUM, ix86_opt_enum): New.
7893         (ix86_valid_target_attribute_tree): Update option_strings
7894         handling.  Handle fpmath as enum option.
7895         (ix86_can_inline_p): Update field names for function fpmath state.
7896         (ix86_expand_builtin): Update call to ix86_target_string.
7897         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
7898         (ix86_fpmath): Remove.
7899         * config/i386/t-i386 (i386.o): Update dependencies.
7900
7901 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
7902
7903         PR preprocessor/48677
7904         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
7905         from decoded_options[0], not from itself.
7906
7907 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
7908
7909         * config/i386/constraints.md (z): New constraint.
7910         * config/i386/i386.c (c): New mode attribute.
7911         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
7912         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7913         constraint for operand 0.
7914         (*call_vzeroupper): Ditto.
7915         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
7916         (*call_rex64_ms_sysv_vzeroupper): Ditto.
7917         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
7918         Use "lzm" constraint for operand 0.
7919         (*call_pop_vzeroupper): Ditto.
7920         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
7921         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
7922         constraint for operand 0.
7923         (*sibcall_vzeroupper): Ditto.
7924         (*sibcall_rex64_ms_sysv): Ditto.
7925         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
7926         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
7927         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
7928         (*sibcall_pop_vzeroupper): Ditto.
7929         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
7930         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
7931         mode iterator.  Use "<c>zm" constraint for operand 1.
7932         (*call_value_vzeroupper): Ditto.
7933         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
7934         for operand 1.
7935         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
7936         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
7937         *call_value_pop_1.  Use "lzm" constraint for operand 1.
7938         (*call_value_pop_vzeroupper): Ditto.
7939         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
7940         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
7941         mode iterator.  Use "Uz" constraint for operand 1.
7942         (*sibcall_value_vzeroupper): Ditto.
7943         (*sibcall_value_rex64_ms_sysv): Ditto.
7944         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
7945         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
7946         constraint for operand 1.
7947         (*sibcall_value_pop_vzeroupper): Ditto.
7948         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
7949         and "z" constraint for operand 2.
7950         (*tls_global_dynamic_32_gnu): Ditto.
7951         (*tls_local_dynamic_base_32_gnu): Ditto.
7952         (*tls_local_dynamic_base_64): Ditto.
7953         (*tls_local_dynamic_32_once): Ditto.
7954         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
7955         Update all callers.
7956         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
7957
7958 2011-05-16  Richard Guenther  <rguenther@suse.de>
7959
7960         * gimple.c (gimple_types_compatible_p_1): Use names of the
7961         type itself, not its main variant.
7962         (iterative_hash_gimple_type): Likewise.
7963
7964 2011-05-16  Richard Guenther  <rguenther@suse.de>
7965
7966         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
7967         always visit pointer target and function result and argument types.
7968
7969 2011-05-16  Jason Merrill  <jason@redhat.com>
7970
7971         PR c++/48999
7972         * tree-inline.c (copy_statement_list): Put back recursion.
7973
7974 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
7975
7976         PR target/27663
7977         PR target/41076
7978         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
7979         * config/avr/avr.md ("*ior<mode>qi.byte0",
7980         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
7981
7982 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
7983
7984         PR target/45099
7985         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
7986         register is needed for a function argument.
7987
7988 2011-05-16  Richard Guenther  <rguenther@suse.de>
7989
7990         * gimple.c (struct type_hash_pair): New type.
7991         (type_hash_pair_compare): New function.
7992         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
7993
7994 2011-05-16  Revital Eres  <revital.eres@linaro.org>
7995
7996         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
7997
7998 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
7999
8000         * config/i386/i386.md (floating point move splitters): Fix
8001         usage of standard_80387_constant_p.
8002         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8003
8004 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8005
8006         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8007
8008 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8009
8010         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8011         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8012         (tree_ssa_lim_finalize): Likewise.
8013
8014 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
8015
8016         * config/i386/constraint.md (Yd, Yx): New register constraints.
8017         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
8018         Yd conditional register constraint.
8019         (*movtf_internal): Use standard_sse_constant_opcode.
8020         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
8021         Yx conditional register constraint.
8022         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
8023         Yd conditional register constraint.  Use standard_sse_constant_p to
8024         check for valid SSE constants and call standard_sse_constant_opcode to
8025         output SSE insn.
8026         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8027         constants and call standard_sse_constant_opcode to output SSE insn.
8028         * config/i386/i386.c (ix86_option_ovverride_internal): Set
8029         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
8030         optimize_size is set.
8031         (standard_sse_constant_opcode): Output conditional AVX insn templates.
8032
8033 2011-05-14  Tobias Burnus  <burnus@net-b.de>
8034
8035         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8036
8037 2011-05-13  Martin Jambor  <mjambor@suse.cz>
8038
8039         * ipa-prop.c (ipa_cst_from_jfunc): New function.
8040         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8041         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8042         (evaluate_conditions_for_ipcp_clone): Removed.
8043         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8044         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8045         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8046
8047 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8048
8049         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8050         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8051         lieu of MAY_HAVE_DEBUG_STMTS.
8052         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8053         debug statements if !MAY_HAVE_DEBUG_STMTS.
8054
8055 2011-05-13  Martin Thuresson  <martint@google.com>
8056
8057         PR gcov-profile/47793
8058         * libgcov.c (gcov_exit): Support relative profile paths.
8059         * doc/invoke.texi (-fprofile-dir): Update for above change.
8060
8061 2011-05-13  Richard Guenther  <rguenther@suse.de>
8062
8063         * gimple.c (gimple_canonical_types_compatible_p): Do not use
8064         type-pair caching, do not compare hashes.
8065
8066 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
8067
8068         PR middle-end/48965
8069         * tree-cfg.c (edge_to_cases_cleanup): Return true.
8070         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8071
8072 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8073
8074         * gimplify.c (gimplify_expr): Make sure operand is boolified.
8075         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8076         compatible type for TRUTH_NOT_EXPR.
8077
8078 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8079
8080         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8081         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
8082         can_create_pseudo_p ().
8083
8084 2011-05-13  Richard Guenther  <rguenther@suse.de>
8085
8086         PR lto/48978
8087         * gimple.c (iterative_hash_gimple_type): Revert change in
8088         pointer target and function result and argument hashing.
8089
8090 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
8091
8092         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8093         (*movxf_internal_nointeger): Ditto.
8094         (*movdf_internal_rex64): Ditto.
8095         (*movdf_internal): Ditto.
8096         (*movdf_internal_nointeger): Ditto.
8097         (*movsf_internal): Ditto.
8098         (sincos splitters): Use can_create_pseudo ().
8099
8100 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
8101
8102         * config/i386/i386-opts.h: New.
8103         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8104         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8105         ix86_section_threshold): Remove.
8106         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
8107         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8108         OPT_mbranch_cost_.
8109         (ix86_option_override_internal): Don't decode strings for options
8110         other than -march=, -mtune= and -mfpmath=.  Don't allow for
8111         __attribute__ uses in remaining diagnostics for options with
8112         string arguments.  Don't check for integer arguments being negative.
8113         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8114         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8115         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8116         ix86_branch_cost, ix86_section_threshold): Remove.
8117         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8118         HeaderInclude.
8119         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8120         but not Var.
8121         (masm=): Use Enum and Init.
8122         (asm_dialect): New Enum and EnumValue entries.
8123         (mbranch-cost=): Use UInteger.
8124         (mlarge-data-threshold=): Use UInteger and Init.
8125         (mcmodel=): Use Enum and Init.
8126         (cmodel): New Enum and EnumValue entries.
8127         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8128         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8129         mregparm=): Use UInteger.
8130         (mstringop-strategy=): Use Enum and Init.
8131         (stringop_alg): New Enum and EnumValue entries.
8132         (mtls-dialect=): Use Enum and Init.
8133         (tls_dialect): New Enum and EnumValue entries.
8134         (mabi=): Use Enum and Init.
8135         (calling_abi): New Enum and EnumValue entries.
8136         (mveclibabi=): Use Enum and Init.
8137         (ix86_veclibabi): New Enum and EnumValue entries.
8138
8139 2011-05-13  Nick Clifton  <nickc@redhat.com>
8140
8141         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8142         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8143
8144 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8145
8146         PR middle-end/48984
8147         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8148         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8149         (gimple_boolify): Check for cast for boolean_type_node instead for
8150         BOOLEAN_TYPE.
8151
8152 2011-05-13  Richard Guenther  <rguenther@suse.de>
8153
8154         PR tree-optimization/48172
8155         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8156         multiplying by number of iterations for equal step.
8157         (vect_create_cond_for_alias_checks): Likewise.
8158
8159 2011-05-13  Andreas Schwab  <schwab@redhat.com>
8160
8161         * configure.ac: Use AS_HELP_STRING throughout.
8162         * configure: Regenerate.
8163
8164 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8165
8166         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8167         (ix86_emit_restore_regs_using_mov): Likewise.
8168         (ix86_emit_restore_sse_regs_using_mov): Likewise.
8169
8170 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
8171
8172         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8173         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8174         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8175         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8176         RTX_OK_FOR_OLO10_P): ...here.
8177         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8178         SYMBOLIC_CONST.
8179
8180 2011-05-12  Kai Tietz  <ktietz@redhat.com>
8181
8182         * gimplify.c (gimple_boolify): Re-boolify expression
8183         arguments even if expression type is of kind BOOLEAN_TYPE.
8184         (gimplify_boolean_expr): Removed.
8185         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8186         and XOR. Additional take care that we keep expression's type.
8187         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8188         of TRUTH_AND|OR|XOR_EXPR.
8189
8190 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8191
8192         PR tree-optimization/48975
8193         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8194         on all bbs here and free and clear ifc_bbs at the end.
8195
8196 2011-05-12  Richard Guenther  <rguenther@suse.de>
8197
8198         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8199         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
8200         until after simple checks.
8201         (gimple_types_compatible_p): Likewise.
8202         (iterative_hash_gimple_type): Always hash pointer targets
8203         and function return and argument types.
8204         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8205         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
8206         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8207         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
8208         completely in the simple compare section.
8209         (gimple_register_canonical_type): Query the cache again after
8210         registering.
8211
8212 2011-05-12  Richard Guenther  <rguenther@suse.de>
8213
8214         PR tree-optimization/48172
8215         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8216         the number of iterations from the segment size calculation.
8217         (vect_create_cond_for_alias_checks): Adjust.
8218
8219 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8220
8221         PR debug/48967
8222         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8223         if validate_subreg fails.
8224
8225 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
8226
8227         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8228         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8229         early.
8230
8231 2011-05-12  DJ Delorie  <dj@redhat.com>
8232
8233         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8234         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8235         created builtin into rx_builtins array.
8236         (rx_builtin_decl): New function.
8237         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
8238
8239 2011-05-12  DJ Delorie  <dj@redhat.com>
8240             Nick Clifton  <nickc@redhat.com>
8241
8242         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8243         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8244         (rx_is_legitimate_address): Add pre-decrement and post-increment
8245         addressing in HImode and QImode.  Fix test for out of range
8246         REG+INT addressing.
8247         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8248         (rx_align_for_label): Test label before extracting its usage count.
8249         (rx_adjust_insn_lengths): Fix selection of insn codes.
8250         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8251
8252 2011-05-11  Jason Merrill  <jason@redhat.com>
8253
8254         * tree.c (type_hash_canon): Use struct tree_type_non_common.
8255
8256 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8257
8258         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8259         reindent the subsequent block.
8260
8261 2011-05-11  Satoru Takabayashi  <satorux@google.com>
8262             Paul Pluzhnikov  <ppluzhnikov@google.com>
8263
8264         * doc/install.texi (Configuration): Document --with-linker-hash-style.
8265         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8266         * config.in: Add LINKER_HASH_STYLE.
8267         * configure.ac: Add --with-linker-hash-style.
8268         * configure: Regenerate.
8269
8270 2011-05-11  Richard Guenther  <rguenther@suse.de>
8271
8272         PR middle-end/48964
8273         * gimple.c (iterative_hash_canonical_type): Fix typo.
8274
8275 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
8276
8277         * config/i386/i386.c (legitimize_tls_address)
8278         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8279         expanders directly for TARGET_GNU2_TLS.  Determine pic and
8280         __tls_get_addr symbol reference here.  Update call to
8281         gen_tls_global_dynamic_{32,64} for added arguments.
8282         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8283         expanders directly for TARGET_GNU2_TLS.  Determine
8284         __tls_get_addr symbol reference here.  Update call to
8285         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
8286         unique UNSPEC REG_EQUIV to libcall block.
8287         (ix86_tls_get_addr): Declare static.
8288         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8289         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8290         Do not determine pic and __tls_get_addr symbol reference here. Do not
8291         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8292         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8293         (tls_global_dynamic_64): Add operand 2.  Do not determine
8294         __tls_get_addr symbol reference here.  Do not call
8295         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8296         (tls_local_dynamic_base64): Ditto for operand 1.
8297
8298 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8299
8300         * function.c (expand_function_start): Initialize stack_check_probe_note
8301         only if the generic stack checking mechanism is used.
8302
8303 2011-05-11  Richard Guenther  <rguenther@suse.de>
8304
8305         PR tree-optimization/15256
8306         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8307         (A & B) | C, combine (A op CST1) op CST2.
8308         (tree_ssa_forward_propagate_single_use_vars): Only bother to
8309         visit assigns that have uses.
8310
8311 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
8312
8313         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8314         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8315         (unpack_ts_type_common_value_fields): ...this.  Update comment.
8316         (unpack_value_fields): Adjust for renaming.
8317         (lto_input_ts_type_tree_pointers): Split into...
8318         (lto_input_ts_type_common_tree_pointer): ...this and...
8319         (lto_input_ts_type_non_common_tree_pointers): ...this.
8320         (lto_input_tree_pointers): Adjust for above split.
8321         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8322         (pack_ts_type_common_value_fields): ...this.  Update comment.
8323         (lto_output_ts_type_tree_pointers): Split into...
8324         (lto_output_ts_type_common_tree_pointers): ...this and...
8325         (lto_output_ts_type_non_common_tree_pointers): ...this.
8326         (lto_output_tree_pointers): Adjust for above split.
8327         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8328         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8329         * stor-layout.c (vector_type_mode): Adjust location of mode field.
8330         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8331         Define.
8332         (struct tree_type): Split into...
8333         (struct tree_type_common: ...this and...
8334         (struct tree_type_with_lang_specific): ...this and...
8335         (struct tree_type_non_common): ...this.  Adjust accessor macros
8336         accordingly.
8337         (TYPE_VALUES_RAW): Define.
8338         (union tree_node): Update for above changes.
8339         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8340         TS_TYPE_NON_COMMON.
8341         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8342         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8343         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8344         * treestructu.def (TS_TYPE): Remove.
8345         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8346         Define.
8347
8348 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
8349
8350         PR debug/48159
8351         * tree-ssa.c (reset_debug_uses): New function.
8352         * tree-flow.h (reset_debug_uses): New prototype.
8353         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8354         * tree-loop-distribution.c (generate_loops_for_partition): Call
8355         reset_debug_uses on the stmts that will be removed.  Keep around
8356         all debug stmts, don't count them as bits in partition bitmap.
8357         (generate_builtin): Don't count debug stmts or labels as bits in
8358         partition bitmap.
8359
8360 2011-05-11  Richard Guenther  <rguenther@suse.de>
8361
8362         * gimple.c (gimple_type_hash_1): Merge with ...
8363         (gimple_type_hash): ... this.
8364         (gtc_visit): Remove mode parameter and simplify accordingly.
8365         (gimple_types_compatible_p_1): Likewise.
8366         (gimple_types_compatible_p): Likewise.
8367         (iterative_hash_gimple_type): Likewise.
8368         (visit): Likewise.
8369         (gimple_type_eq): Adjust.
8370
8371 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8372
8373         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8374         enters the branch create an anti edge in the opposite direction
8375         to prevent the creation of reg-moves.
8376         * modulo-sched.c: Adjust comment to reflect the fact we are
8377         scheduling closing branch.
8378         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8379         (stage_count): New field in struct partial_schedule.
8380         (calculate_stage_count): New function.
8381         (normalize_sched_times): Rename to reset_sched_times and handle
8382         incrementing the sched time of the nodes by a constant value
8383         passed as parameter.
8384         (duplicate_insns_of_cycles): Skip closing branch.
8385         (sms_schedule_by_order): Schedule closing branch.
8386         (ps_insn_find_column): Handle closing branch.
8387         (sms_schedule): Call reset_sched_times and adjust the code to
8388         support scheduling of the closing branch.
8389         (ps_insert_empty_row): Update calls to normalize_sched_times
8390         and rotate_partial_schedule functions.
8391
8392 2011-05-11  Richard Guenther  <rguenther@suse.de>
8393
8394         PR middle-end/48953
8395         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8396
8397 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
8398
8399         * opts.c (finish_options): Move warning settings from process_options.
8400         * toplev.c (process_options): Move warning settings to finish_options.
8401
8402 2011-05-11  Richard Guenther  <rguenther@suse.de>
8403
8404         PR tree-optimization/18041
8405         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8406         (simplify_bitwise_binary): ... this.  Handle operand conversions
8407         by applying them to the result instead.
8408         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
8409
8410 2011-05-11  Richard Guenther  <rguenther@suse.de>
8411
8412         * gimple.c (gimple_canonical_types_compatible_p): Split out
8413         from gimple_types_compatible_p and friends.  Do not recurse
8414         to pointed-to types.
8415         (gimple_canonical_type_eq): Use it.
8416         (iterative_hash_canonical_type): Split out from
8417         iterative_hash_gimple_type and friends.  Do not recurse
8418         to pointed-to types.
8419         (gimple_canonical_type_hash): Use it, allocate the hash here.
8420
8421 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8422
8423         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8424         recognizing doloop.
8425
8426 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8427
8428         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8429         instead of PREV_INSN.
8430
8431 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8432
8433         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8434         * loop-doloop.c (doloop_condition_get): Likewise.
8435         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8436         (doloop_end): New.
8437         * config/arm/arm.md (*addsi3_compare0): Remove "*".
8438
8439 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
8440
8441         * tree.def (CASE_LABEL_EXPR): Add an operand.
8442         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8443
8444 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8445
8446         * c-decl.c (c_override_global_bindings_to_false): Remove.
8447         (global_bindings_p): Don't check
8448         c_override_global_bindings_to_false.
8449         * c-tree.h (c_override_global_bindings_to_false): Remove.
8450         * c-typeck.c (composite_type): Don't set
8451         c_override_global_bindings_to_false.
8452
8453 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8454
8455         PR target/48857, 48495
8456         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8457         (VSX_MODE): Ditto.
8458         (VSX_MOVE_MODE): Ditto.
8459         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8460         VSX vector types.  Add V2DImode.
8461         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8462         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8463         (MODES_TIEABLE_P): Ditto.
8464
8465         * config/rs6000/rs6000.c (rs6000_emit_move): Use
8466         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8467         VSX_VECTOR_MODE.
8468         (init_cumulative_args): Ditto.
8469         (rs6000_function_arg_boundary): Ditto.
8470         (rs6000_function_arg_advance_1): Ditto.
8471         (rs6000_function_arg): Ditto.
8472         (rs6000_function_ok_for_sibcall): Ditto.
8473         (emit_frame_save): Ditto.
8474         (rs6000_function_value): Ditto.
8475         (rs6000_libcall_value): Ditto.
8476
8477 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8478
8479         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8480         i386/darwin-lib.h to $libgcc_tm_file.
8481         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8482
8483 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8484
8485         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8486
8487 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8488
8489         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8490         * config/rs6000/rs6000-tables.opt: New file (generated).
8491         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8492         rs6000/rs6000-tables.opt to extra_options.
8493         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8494         * config/rs6000/rs6000.c (rs6000_select): Remove.
8495         (processor_target_table): Move contents to rs6000-cpus.def.
8496         (darwin_rs6000_override_options): Check
8497         global_options_set.x_rs6000_cpu_index instead of
8498         rs6000_select[1].string.
8499         (rs6000_option_override_internal): Likewise.
8500         (rs6000_handle_option): Don't assert that global structures are in
8501         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
8502         (rs6000_default_cpu): New variable.
8503         (rs6000_file_start): Set it instead of local default_cpu.  Check
8504         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8505         global_options_set.x_rs6000_tune_index instead of rs6000_select.
8506         (rs6000_darwin_file_start): Check rs6000_default_cpu and
8507         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8508         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8509         rs6000_select): Remove.
8510         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8511         Remove.
8512         (mcpu=, mtune=): Use Var, Init, Enum and Save.
8513         * config/rs6000/t-rs6000
8514         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8515         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8516         global_options_set.x_rs6000_cpu_index instead of
8517         rs6000_select[1].string.
8518         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8519         global_options_set.x_rs6000_cpu_index instead of
8520         rs6000_select[1].string.
8521
8522 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8523
8524         * config.gcc (libgcc_tm_file): Define instead of including files
8525         from ../../libgcc/config/ in tm_file.
8526         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8527         * configure: Regenerate.
8528         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8529         libgcc_tm.h, cs-libgcc_tm.h): New.
8530         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8531         (clean): Remove libgcc_tm.h.
8532         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8533         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8534         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8535
8536 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
8537
8538         PR target/48896
8539         * config/avr/avr.c (avr_ret_register): Return unsigned int
8540         instead of int.
8541         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8542         it to avr_libcall_value.
8543         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8544         expand_expr.
8545         (avr_expand_binop_builtin): Ditto.
8546         (avr_expand_unop_builtin): Ditto.
8547
8548 2011-05-10  DJ Delorie  <dj@redhat.com>
8549
8550         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8551         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8552         * config/rx/rx.c (rx_align_for_label): Add label and
8553         uses_threshold parameters.  Do not align when the label is not
8554         used enough.
8555         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8556
8557 2011-05-10  Richard Guenther  <rguenther@suse.de>
8558
8559         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8560         a series of conversions and apply foldings similar to what
8561         fold-const does.
8562         (tree_ssa_forward_propagate_single_use_vars): Call it.
8563
8564 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
8565
8566         PR tree-optimization/48611
8567         PR tree-optimization/48794
8568         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8569         referenced from RESX or EH_DISPATCH arguments.
8570
8571         PR debug/48928
8572         * dfp.c (decimal_to_decnumber): Handle conversion from
8573         dconst{1,2,m1,half}.
8574
8575 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8576
8577         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8578         for !flag_prefer_avx128.
8579         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8580
8581 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
8582
8583         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8584         (fold_ternary_loc): Use expr_location_or.
8585
8586 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8587
8588         PR debug/48853
8589         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8590         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8591         Pmode and mem_mode is not VOIDmode.
8592
8593 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
8594
8595         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8596         TYPE_QUAL_RESTRICT): Convert to enum.
8597
8598 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8599
8600         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8601         (const_pow2_1_to_8_operand): Ditto.
8602         (const_pow2_1_to_128_operand): Ditto.
8603         (const_pow2_1_to_32768_operand): Ditto.
8604         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8605         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
8606         in insn constraint to check integer value of operand 3.
8607         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8608
8609         (PINSR_MODE): New mode iterator.
8610         (sse2p4_1): New mode attribute.
8611         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8612         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8613         iterator.  Use const_int_operand instead of
8614         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
8615         exact_log2 in insn constraint to check integer value of operand 3.
8616
8617 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8618
8619         * config/i386/sse.md (blendbits): Remove mode attribute.
8620         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8621         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8622         Check integer value of operand 3 in insn constraint.
8623
8624 2011-05-09  Richard Guenther  <rguenther@suse.de>
8625
8626         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8627         for diagnostics.
8628         (lto_symtab_merge): Likewise.  Do not register types here.
8629         (lto_symtab_merge_decls_2): Likewise.
8630         (lto_symtab_merge_decls_1): Likewise.
8631         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8632         * gimple.c (enum gtc_mode): Declare.
8633         (gimple_types_compatible_p): Make static.
8634
8635 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8636
8637         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8638         temporary register to match Pmode.
8639
8640 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8641
8642         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8643         and *vec_concatv4si_1_avx.
8644
8645 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8646
8647         PR rtl-optimization/48927
8648         * ira-conflicts.c (commutative_constraint_p): Use
8649         recog_data.alternative_enabled_p to disable alternatives where
8650         "enabled" attribute is false.
8651         (get_dup_num): Ditto.
8652         * ira-lives.c (single_reg_class): Ditto.
8653         (ira_implicitly_set_insn_hard_regs): Ditto.
8654
8655 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
8656
8657         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8658         (dataflow_set_preserve_mem_locs): Likewise.
8659
8660 2011-05-09  Philipp Thomas  <pth@suse.de>
8661
8662         * config/mep/mep.c (mep_validate_vliw): Syntax description
8663         should not be translated.
8664
8665 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
8666
8667         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8668         * config/mips/mips-tables.opt: New file (generated).
8669         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
8670         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8671         MIPS_ARCH_OPTION_NATIVE): Define.
8672         * config/mips/mips.c (mips_cpu_info_table): Move contents to
8673         mips-cpus.def.
8674         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8675         mips_parse_cpu): Remove.
8676         (mips_cpu_info_from_opt, mips_default_arch): New.
8677         (mips_handle_option): Don't assert that global structures are in
8678         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8679         (mips_option_override): Use new variables and functions to set
8680         state of these options.  Use strcmp to check for individual CPU names.
8681         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8682         definition.
8683         * config/mips/mips.opt (march=): Use ToLower and Enum.
8684         (mips): Use ToLower, Enum and Var.
8685         (mtune=): Use ToLower and Enum.
8686         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8687
8688 2011-05-08  Jan Hubicka  <jh@suse.cz>
8689
8690         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8691         Arrange type pairs to be UID ordered.
8692         (gimple_lookup_type_leader): Make inline.
8693
8694 2011-05-09  Nick Clifton  <nickc@redhat.com>
8695
8696         PR target/48899
8697         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8698         PROCESSOR_DEFAULT.
8699
8700         PR target/48897
8701         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8702         variable 's'.
8703
8704 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
8705
8706         * combine.c (simplify_comparison): Abstract out parts into...
8707         (simplify_compare_const): ... new function.
8708         (try_combine): Generalize parallel arithmetic/compare combining
8709         to call simplify_compare_const() and CANONICALIZE_COMPARE().
8710
8711 2011-05-08  Jan Hubicka  <jh@suse.cz>
8712
8713         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
8714         (cgraph_create_virtual_clone): Call hooks once virtual clone
8715         is finished.
8716         * cgraph.h (cgraph_clone_node): Update prototype.
8717         * ipa-cp.c (ipcp_estimate_growth): Use
8718         estimate_ipcp_clone_size_and_time.
8719         * ipa-inline-transform.c (clone_inlined_nodes): Update.
8720         * lto-cgraph.c (input_node): Update.
8721         * ipa-inline.c (recursive_inlining): Update.
8722         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8723         (evaluate_conditions_for_known_args): Break out from ...
8724         (evaluate_conditions_for_edge): ... here.
8725         (evaluate_conditions_for_ipcp_clone): New function.
8726         (inline_node_duplication_hook): Update clone summary based
8727         on parameter map.
8728         (estimate_callee_size_and_time): Rename to ...
8729         (estimate_node_size_and_time): take NODE instead of EDGE;
8730         take POSSIBLE_TRUTHS as argument.
8731         (estimate_callee_size_and_time): Update.
8732         (estimate_ipcp_clone_size_and_time): New function.
8733         (do_estimate_edge_time): Update.
8734
8735 2011-05-08  Richard Guenther  <rguenther@suse.de>
8736
8737         PR middle-end/48908
8738         PR middle-end/48905
8739         * expmed.c (expand_shift_1): Compute adjusted constant shift
8740         amount manually.
8741
8742 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
8743
8744         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8745
8746 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
8747
8748         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8749
8750 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
8751
8752         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8753
8754 2011-05-07  Jan Hubicka  <jh@suse.cz>
8755
8756         * ipa-inline-transform.c (inline_call): Account when program size
8757         decreases.
8758         * ipa-inline.c (relative_time_benefit): New function.
8759         (edge_badness): Reorganize to be power 2 based; fix thinko when
8760         computing badness for negative growth; update comments to match
8761         reality; better dumps.
8762
8763 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
8764
8765         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8766         type to bool and adjust comment.
8767         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8768         (fold_mathfn_compare): Remove calls to global_bindings_p.
8769         (fold_inf_compare): Likewise.
8770         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8771         * c-tree.h (global_bindings_p): Adjust prototype.
8772         * c-decl.c (global_bindings_p): Return bool and simplify.
8773
8774 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
8775
8776         PR tree-optimization/48837
8777         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8778         when accumulator transformation is performed.
8779
8780 2011-05-06  Jan Hubicka  <jh@suse.cz>
8781
8782         * i386.h (ix86_tune_indices): Add
8783         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
8784         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
8785         * i386.c (initial_ix86_tune_features): Add
8786         X86_SOFTARE_PREFETCHING_BENEFICIAL.
8787         (software_prefetching_beneficial_p): Remove predicate.
8788         (ix86_option_override_internal): Use new macro.
8789
8790 2011-05-06  Jan Hubicka  <jh@suse.cz>
8791
8792         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8793
8794 2011-05-06  Jan Hubicka  <jh@suse.cz>
8795
8796         * cgraph.c (cgraph_add_thunk): Create real function node instead
8797         of alias node; finalize it and mark needed/reachale; arrange visibility
8798         to be right and add it into the corresponding same comdat group list.
8799         (dump_cgraph_node): Dump thunks.
8800         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
8801         cgraph_function_with_gimple_body_p,
8802         cgraph_first_function_with_gimple_body,
8803         cgraph_next_function_with_gimple_body): New functions.
8804         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8805         New macros.
8806         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8807         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8808         * cgraphunit.c (cgraph_finalize_function): Only look into possible
8809         devirtualization when optimizing.
8810         (verify_cgraph_node): Verify thunks.
8811         (cgraph_analyze_function): Analyze thunks.
8812         (cgraph_mark_functions_to_output): Output thunks only in combination
8813         with function they are assigned to.
8814         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8815         alias into normal node.
8816         (assemble_thunks): New functoin.
8817         (cgraph_expand_function): Use it.
8818         * lto-cgraph.c (lto_output_node): Stream thunks.
8819         (input_overwrite_node): Stream in thunks.
8820         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8821         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8822         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8823         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8824         (inline_analyze_function): Do not care about thunk jump functions.
8825         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
8826         * ipa-prop.c (ipa_prop_write_jump_functions): Use
8827         cgraph_function_with_gimple_body_p.
8828         * passes.c (do_per_function_toporder): Use
8829         cgraph_function_with_gimple_body_p.
8830         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8831         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8832         (function_called_by_processed_nodes_p): Likewise.
8833
8834 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
8835
8836         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8837         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8838         entries.
8839         (mabi=): Replace with separate entries for mabi=altivec,
8840         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
8841         mabi=ieeelongdouble and mabi=ibmlongdouble.
8842         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
8843         check for -mabi=spe without SPE ABI support here.
8844         (rs6000_handle_option): Replace OPT_mabi_ handling with
8845         OPT_mabi_altivec and OPT_mabi_spe handling.
8846
8847 2011-05-06  Cary Coutant  <ccoutant@google.com>
8848
8849         * dwarf2out.c (contains_subprogram_definition): New function.
8850         (should_move_die_to_comdat): Call it.
8851
8852 2011-05-06  Jeff Law  <law@redhat.com>
8853
8854         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
8855         remove_ctrl_stmt_and_useless_edges.
8856         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
8857         (fixup_template_block, thread_single_edge): Likewise.
8858         (mark_threaded_blocks): Use THREAD_TARGET.
8859
8860 2011-05-06  Alan Modra  <amodra@gmail.com>
8861
8862         PR target/48900
8863         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8864         const0_rtx as the arg to the dummy __tls_get_addr libcall.
8865
8866 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
8867
8868         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
8869         constraint modifier to "r".
8870
8871 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
8872
8873         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
8874         fall through for OPT_mcmodel_.
8875
8876 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8877
8878         * config/s390/s390.c (s390_asm_trampoline_template): Comment
8879         instruction sizes.
8880         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
8881
8882 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8883
8884         PR target/47930
8885         * config/arm/arm.opt (marm): Document it.
8886         (mthumb): Reject negative variant.
8887
8888 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
8889
8890         PR target/48898
8891         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8892         Fix typo in "ccvt" variable name.
8893
8894 2011-05-06  Tristan Gingold  <gingold@adacore.com>
8895
8896         PR target/48895
8897         * config/vms/vms-ar.c (main): Remove cwd variable.
8898
8899 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
8900
8901         PR debug/48902
8902         * var-tracking.c (prepare_call_arguments): Move else before #endif.
8903
8904 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
8905
8906         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
8907         * gimplify.c (gimplify_switch_expr): Likewise.
8908         * omp-low.c (expand_omp_sections): Likewise.
8909         * tree-eh.c (lower_try_finally_switch): Likewise.
8910         (lower_eh_dispatch): Likewise.
8911         * tree.h (build_case_label): Declare.
8912         * tree.c (build_case_label): Define.
8913
8914 2011-05-05  Jason Merrill  <jason@redhat.com>
8915
8916         PR c++/40975
8917         * tree-inline.c (copy_tree_r): Use copy_statement_list.
8918         (copy_statement_list): Don't recurse.
8919         * stor-layout.c (copy_self_referential_tree_r): Don't allow
8920         STATEMENT_LIST.
8921
8922 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
8923
8924         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
8925         through from -mfpu= handling.
8926         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
8927
8928 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
8929
8930         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
8931         POST_MODIFY.
8932
8933 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
8934
8935         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
8936         for 11.31.
8937         (hppa[12]*-*-hpux11*): Ditto.
8938         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
8939         * config/ia64/hpux-unix2003.h: New.
8940         * config/pa/pa-hpux1131.opt: New.
8941         * config/pa/pa-hpux1131.h: New.
8942         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
8943         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
8944         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
8945
8946 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
8947
8948         PR debug/48853
8949         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
8950         instead of mode as 3rd argument to recursive call.
8951         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
8952         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
8953         VOIDmode.
8954         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
8955         don't give up if mode is Pmode and mem_mode is not VOIDmode.
8956         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
8957         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
8958
8959 2011-05-05  Julian Brown  <julian@codesourcery.com>
8960
8961         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
8962         parenthesis in D-register case.
8963
8964 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
8965
8966         * opt-functions.awk (var_type_struct): Handle Enum options.
8967         * optc-gen.awk: Don't check range of variables of character type.
8968         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
8969         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
8970         rs6000_sdata_name, rs6000_explicit_options): Remove.
8971         (rs6000_option_override_internal): Check for -malign-power here.
8972         Use global_options_set instead of rs6000_explicit_options.
8973         (rs6000_parse_fpu_option): Remove.
8974         (rs6000_handle_option): Access variables via opts and opts_set
8975         pointers.  Use error_at and warning_at.  Add fall-through
8976         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
8977         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
8978         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
8979         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
8980         here.  Don't use rs6000_parse_fpu_option.
8981         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
8982         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
8983         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
8984         (mrecip=): Use Var.
8985         (mspe): Use Var and Save.
8986         (mtraceback=): Use Enum and Var.
8987         (rs6000_traceback_type): New Enum and EnumValue entries.
8988         (mfloat-gprs=): Use Enum, Var and Save.
8989         (rs6000_float_gprs): New Enum and EnumValue entries.
8990         (mlong-double-): use Var and Save.
8991         (msched-costly-dep=, minsert-sched-nops=): Use Var.
8992         (malign-): Use Enum and Var.
8993         (rs6000_alignment_flags): New Enum and EnumValue entries.
8994         (mfpu=): Use Enum.
8995         (fpu_type_t): New Enum and EnumValue entries.
8996         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8997         global_options_set instead of rs6000_explicit_options.
8998         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8999         global_options_set instead of rs6000_explicit_options.
9000         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9001         global_options_set instead of rs6000_explicit_options.
9002         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9003         global_options_set instead of rs6000_explicit_options.
9004         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9005         global_options_set instead of rs6000_explicit_options.
9006         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9007         global_options_set instead of rs6000_explicit_options.
9008         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9009         definition.
9010         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9011         global_options_set instead of rs6000_explicit_options.
9012         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9013         (rs6000_cmodel): New Enum and EnumValue entries.
9014         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9015         global_options_set instead of rs6000_explicit_options.
9016         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9017         (mtls-size=): Use Enum and Var.
9018         (rs6000_tls_size): New Enum and EnumValue entries.
9019
9020 2011-05-05  Michael Matz  <matz@suse.de>
9021
9022         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9023         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9024         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9025         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9026         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9027         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9028         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9029         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9030         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9031         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9032         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9033         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9034         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9035         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9036         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9037         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9038
9039 2011-05-05  Richard Guenther  <rguenther@suse.de>
9040
9041         * expmed.c (expand_variable_shift): Rename to ...
9042         (expand_shift_1): ... this.  Take an expanded shift amount.
9043         For rotates recurse directly not building trees for the shift amount.
9044         (expand_variable_shift): Wrap around expand_shift_1.
9045         (expand_shift): Adjust.
9046
9047 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
9048
9049         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9050
9051 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9052
9053         * tree.h (get_pending_sizes): Remove prototype.
9054         (put_pending_size): Likewise.
9055         (put_pending_sizes): Likewise.
9056         * stor-layout.c (pending_sizes): Delete.
9057         (get_pending_sizes): Likewise.
9058         (put_pending_size): Likewise.
9059         (put_pending_sizes): Likewise.
9060         (variable_size): Do not call put_pending_size and tidy up.
9061         * function.h (struct function): Remove dont_save_pending_sizes_p.
9062         * lto-streamer-in.c (input_function): Do not stream it.
9063         * lto-streamer-out.c (output_function): Likewise.
9064         * tree-inline.c (initialize_cfun): Do not copy it.
9065         * c-decl.c (store_parm_decls): Do not set it.
9066         * omp-low.c (create_task_copyfn): Likewise.
9067         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9068
9069 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
9070
9071         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9072         conditions.
9073         (*movdf_internal): Ditto.
9074         (*movdf_internal_nointeger): Ditto.
9075         (*movsf_internal): Ditto.
9076
9077 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9078
9079         * c-decl.c (finish_decl): Don't call get_pending_sizes.
9080         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
9081         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
9082         (c_variable_size): Remove.
9083         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
9084         call put_pending_sizes.
9085         (get_parm_info): Add parameter expr.  Use it to set
9086         arg_info->pending_sizes.
9087         (store_parm_decls): Use arg_info->pending_sizes instead or calling
9088         get_pending_sizes.
9089         * c-parser.c (c_parser_parms_declarator): Update call to
9090         c_parser_parms_list_declarator.
9091         (c_parser_parms_list_declarator): Take parameter expr.  Update
9092         call to push_parm_decl.  Update recursive call.  Don't call
9093         get_pending_sizes.  Update calls to get_parm_info.
9094         (c_parser_objc_method_definition): Update calls to
9095         c_parser_objc_method_decl and objc_start_method_definition.
9096         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9097         (c_parser_objc_method_decl): Add parameter expr.  Update call to
9098         grokparm.
9099         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9100         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9101         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9102
9103 2011-05-05  Michael Hope  <michael.hope@linaro.org>
9104
9105         PR pch/45979
9106         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9107         __ARM_EABI__ hosts.
9108
9109 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9110
9111         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9112         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9113         (spu_output_mi_thunk): New function.
9114
9115 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9116
9117         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9118         targetm.asm_out.print_operand.
9119         * config/sol2.c: Include target.h.
9120
9121 2011-05-04  Jan Hubicka  <jh@suse.cz>
9122
9123         * ipa-inline.c (reset_edge_caches): New function.
9124         (update_caller_keys): Add check_inlinablity_for; do not
9125         reset edge caches; remove now unnecesary loop.
9126         (update_callee_keys): Add comments; reset node_growth_cache of callee.
9127         (update_all_callee_keys): Likewise.
9128         (inline_small_functions): Sanity check cache; update code
9129         recomputing it.
9130
9131 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
9132
9133         PR rtl-optimization/47612
9134         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9135         as the last insn of the sequence to be moved.
9136
9137 2011-05-04  Tobias Burnus  <burnus@net-b.de>
9138
9139         PR fortran/48864
9140         * doc/invoke.texi (Ofast): Document that it
9141         enables Fortran's -fno-protect-parens.
9142
9143 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9144
9145         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9146
9147 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9148
9149         * stor-layout.c (variable_size): Do not issue errors.
9150
9151 2011-05-04  Richard Guenther  <rguenther@suse.de>
9152
9153         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9154         for array-ref indices.
9155         (tree_coverage_counter_addr): Likewise.
9156         (build_fn_info_type): Use size_int for index types.
9157         (build_gcov_info): Likewise.
9158
9159 2011-05-04  Richard Guenther  <rguenther@suse.de>
9160
9161         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9162         to build_int_cst.
9163         * c-typeck.c (really_start_incremental_init): Use bitsize_int
9164         for constructor indices.
9165         (push_init_level): Likewise.
9166
9167 2011-05-04  Richard Guenther  <rguenther@suse.de>
9168
9169         * explow.c (promote_mode): Move variable declarations before code.
9170
9171 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
9172
9173         * tree.h (build_function_type_array): Declare.
9174         (build_varargs_function_type_array): Declare.
9175         (build_function_type_vec, build_varargs_function_type_vec): Define.
9176         * tree.c (build_function_type_array_1): New function.
9177         (build_function_type_array): New function.
9178         (build_varargs_function_type_array): New function.
9179
9180 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
9181
9182         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9183         before setting STMT_VINFO_TYPE.
9184
9185 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9186
9187         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9188         instead of spu_pass_by_reference.
9189
9190 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9191
9192         * calls.c (emit_library_call_value_1): Invoke
9193         promote_function_mode hook on libcall arguments.
9194         * explow.c (promote_function_mode, promote_mode): Handle TYPE
9195         argument being NULL.
9196         * targhooks.c (default_promote_function_mode): Lisewise.
9197         * config/s390/s390.c (s390_promote_function_mode): Likewise.
9198         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9199
9200         * doc/tm.texi: Document that TYPE argument might be NULL.
9201
9202 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9203
9204         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9205
9206 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9207
9208         From Bernd Schmidt
9209         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9210
9211 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9212
9213         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9214         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9215         Move ...
9216         * mips-tfile.c: ... here.
9217         Don't include coretypes.h, tm.h, filenames.h.
9218         (saber_stop): Remove definition and all calls.
9219         [__SABER__]: Remove.
9220         (__LINE__): Remove default.
9221         (Size_t, Ptrdiff_t): Remove definitions.
9222         Replace by size_t, ptrdiff_t.
9223         [!MIPS_DEBUGGING_INFO]: Remove.
9224         (SHASH_SIZE, THASH_SIZE): Remove defaults.
9225         (progname): Add const.
9226         (STATIC): Remove.
9227         Replace all uses by static.
9228         (ALIGN_SYMTABLE_OFFSET): Remove default.
9229         * mips-tdump.c: Don't include coretypes.h, tm.h.
9230         Remove !MIPS_IS_STAB guard.
9231         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9232         $(TM_H), filenames.h dependencies.
9233         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9234
9235 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9236
9237         From Jie Zhang
9238         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9239         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9240
9241 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9242
9243         From Bernd Schmidt
9244         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9245         account and save/restore RETS.
9246         (PROFILE_BEFORE_PROLOGUE): Define.
9247         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
9248         the push insn to use predecrement.
9249
9250 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9251
9252         From Jie Zhang
9253         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9254
9255 2011-05-04  Nick Clifton  <nickc@redhat.com>
9256
9257         * config/mn10300/mn10300.c: Include cfgloop.h.
9258         (DUMP): New macro.
9259         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
9260         Lcc or a FLcc insn into the instruction stream.
9261         (mn10300_block_contains_call): New function.  Returns true if the
9262         given basic block contains a CALL insn.
9263         (mn10300_loop_contains_call_insn): New function.  Returns true if
9264         the given loop contains a CALL insn.
9265         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
9266         to use the SETLB and Lcc or FLcc insns.
9267         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9268         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9269         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
9270         disable the SETLB optimization.
9271         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9272         __SETLB__ or __NO_SETLB__.
9273         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9274         (movsf_internal): Handle MDR register.
9275         (cmpsi): Make visible.
9276         (setlb): New pattern.
9277         (Lcc): New pattern.
9278         (FLcc): New pattern.
9279
9280 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9281
9282         PR target/48860
9283         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9284         for reg<->xmm moves.
9285         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9286         (vec_concatv2di_rex64_sse): Ditto.
9287         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9288         (*vec_extractv2di_1_rex64): Ditto.
9289
9290         Revert:
9291         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9292
9293         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9294         reg<->xmm moves.
9295         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9296
9297 2011-05-04  Richard Guenther  <rguenther@suse.de>
9298
9299         * tree.h (int_const_binop): Remove notrunc argument.
9300         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
9301         create integer constants that are properly truncated.
9302         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9303         (const_binop): Remove zero notrunc argument to int_const_binop.
9304         (size_binop_loc): Likewise.
9305         (fold_div_compare): Likewise.
9306         (maybe_canonicalize_comparison_1): Likewise.
9307         (fold_comparison): Likewise.
9308         (fold_binary_loc): Likewise.
9309         (multiple_of_p): Likewise.
9310         * expr.c (store_constructor): Likewise.
9311         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9312         (maybe_fold_stmt_addition): Likewise.
9313         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9314         * stor-layout.c (layout_type): Likewise.
9315         * tree-data-ref.c (tree_fold_divides_p): Likewise.
9316         * tree-sra.c (build_ref_for_offset): Likewise.
9317         (build_user_friendly_ref_for_offset): Likewise.
9318         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9319         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9320         * tree-ssa-loop-niter.c (inverse): Likewise.
9321         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9322         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9323         * tree-switch-conversion.c (check_range): Likewise.
9324         (build_constructors): Likewise.
9325         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9326         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9327         (extract_range_from_assert): Likewise.
9328         (vrp_int_const_binop): Likewise.
9329         (extract_range_from_binary_expr): Likewise.
9330         (extract_range_from_unary_expr): Likewise.
9331         (check_array_ref): Likewise.
9332         (find_case_label_range): Likewise.
9333         (simplify_div_or_mod_using_ranges): Likewise.
9334         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9335         comparing case labels for merging.
9336
9337 2011-05-03  Mark Wielaard  <mjw@redhat.com>
9338
9339         * dwarf2out.c (debug_str_hash_forced): Removed.
9340         (gen_label_for_indirect_string): Removed.
9341         (get_debug_string_label): Removed.
9342         (AT_string_form): Generate label directly.
9343         (output_indirect_string): Test indirect_string_node for
9344         DW_FORM_strp instead of checking label and refcount.
9345         (prune_indirect_string): Removed.
9346         (prune_unused_types): Don't check debug_str_hash_forced or
9347         call prune_indirect_string.
9348
9349 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9350
9351         PR other/48093
9352         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9353
9354 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9355
9356         PR debug/47994
9357         PR debug/47919
9358         * combine.c (try_combine): Skip debug insns at m_split tests.
9359
9360 2011-04-26  Mark Wielaard  <mjw@redhat.com>
9361
9362         PR42288
9363         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9364         when info_section_emitted.
9365
9366 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
9367
9368         * config/mips/mips-opts.h: New.
9369         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9370         to mips-opts.h.
9371         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9372         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9373         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
9374         via opts pointer.
9375         * config/mips/mips.h (enum mips_code_readable_setting): Move to
9376         mips-opts.h.
9377         (mips_abi, mips_code_readable): Don't declare.
9378         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9379         (mabi=): Use Enum and Var.
9380         (mips_abi): New Enum and EnumValue entries.
9381         (mcode-readable=): Use Enum and Var.
9382         (mips_code_readable_setting): New Enum and EnumValue entries.
9383         (mr10k-cache-barrier=): Use Enum and Var.
9384         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9385
9386 2011-05-03  Jan Hubicka  <jh@suse.cz>
9387
9388         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9389         replace hash by pointer map.
9390         (cgraph_node_set_element_def, cgraph_node_set_element,
9391         const_cgraph_node_set_element, varpool_node_set_element_def,
9392         varpool_node_set_element, const_varpool_node_set_element): Remove.
9393         (free_cgraph_node_set, free_varpool_node_set): New function.
9394         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9395         * tree-emutls.c: Free varpool node set.
9396         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9397         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9398         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9399         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9400         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9401         Move here from ipa.c; implement using pointer_map
9402         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9403         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9404         debug_cgraph_node_set, varpool_node_set_new,
9405         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9406         dump_varpool_node_set, debug_varpool_node_set):
9407         Move to ipa-uitls.c.
9408         * passes.c (ipa_write_summaries): Update.
9409
9410 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9411
9412         From Mike Frysinger:
9413         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9414         bf542/bf544/bf547/bf548/bf549.
9415
9416 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
9417
9418         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9419
9420 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9421
9422         From Bernd Schmidt:
9423         * config/bfin/bfin.md (MOVCC): New mode_macro.
9424         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9425         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
9426         comments from generated assembly.
9427
9428 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9429
9430         From Bernd Schmidt
9431         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9432         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9433         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9434         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9435         * config/bfin/lib1funcs.asm (___muldi3): New function.
9436
9437 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9438
9439         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9440         build_function_type_list instead of build_function_type.
9441         Rearrange initialization of `args' to do so.
9442
9443 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9444
9445         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9446         instead of build_function_type.
9447
9448 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9449
9450         * config/rs6000/rs6000.c (spe_init_builtins): Call
9451         build_function_type_list instead of build_function_type.
9452         (paired_init_builtins, altivec_init_builtins): Likewise.
9453         (builtin_function_type): Likewise.
9454
9455 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9456
9457         * config/sh/sh.c (sh_media_init_builtins): Call
9458         build_function_type_list instead of build_function_type.
9459
9460 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9461
9462         * config/sparc/sparc.c (sparc_file_end): Call
9463         build_function_type_list instead of build_function_type.
9464
9465 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9466
9467         * config/alpha/alpha.c (alpha_init_builtins): Call
9468         build_function_type_list instead of build_function_type.
9469
9470 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9471
9472         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9473         build_function_type_list instead of build_function_type.
9474
9475 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9476
9477         * config/iq2000/i2000.c (iq2000_init_builtins): Call
9478         build_function_type_list instead of build_function_type.
9479         Delete `endlink' variable.
9480
9481 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9482
9483         * config/avr/avr.c (avr_init_builtins): Call
9484         build_function_type_list instead of build_function_type.
9485
9486 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9487
9488         * config/picochip/picochip.c (picochip_init_builtins): Call
9489         build_function_type_list instead of build_function_type.
9490         Delete `endlink' variable.
9491
9492 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9493
9494         * config/bfin/bfin.c (bfin_init_builtins): Call
9495         build_function_type_list instead of build_function_type.
9496
9497 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9498
9499         From Bernd Schmidt
9500         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9501         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
9502
9503 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9504
9505         From Jie Zhang:
9506         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9507         libbffastfp overrides libgcc when -mfast-fp.
9508
9509 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9510
9511         Originally from Bernd Schmidt
9512         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9513         * config/bfin/bfin.c (override_options): Test it and error if
9514         TARGET_FDPIC.
9515
9516 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9517
9518         Originally From Bernd Schmidt
9519         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9520         FD-PIC.
9521
9522 2011-05-03  Jeff Law  <law@redhat.com>
9523
9524         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9525         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9526         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9527         than accessing AUX field directly.  Free the AUX field before
9528         clearing it.
9529         (thread_block, thread_through_loop_header): Likewise.
9530         (thread_single_edge, mark_threaded_blocks): Likewise.
9531         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
9532         (register_jump_thread): Do not attempt to thread to a NULL edge.
9533
9534 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
9535
9536         * function.c (init_function_start): Call decide_function_section.
9537         * varasm.c (decide_function_section): New function.
9538         (assemble_start_function): When not using
9539         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9540         or first_function_block_is_cold.
9541         * rtl.h (decide_function_section): Declare.
9542
9543 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
9544             Jakub Jelinek  <jakub@redhat.com>
9545
9546         PR target/48774
9547         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9548         only succeed if req_mode is the same as set_mode.
9549
9550 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
9551
9552         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9553         * genemit.c (gen_exp): Handle RETURN.
9554         * emit-rtl.c (verify_rtx_sharing): Likewise.
9555         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9556         * rtl.c (copy_rtx): RETURN is shared.
9557         * rtl.h (enum global_rtl_index): Add GR_RETURN.
9558         (ret_rtx): New.
9559         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9560         * config/s390/s390.c (s390_emit_epilogue): Likewise.
9561         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9562         * config/cris/cris.c (cris_expand_return): Likewise.
9563         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9564         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9565         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9566         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9567         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9568         Likewise.
9569         * config/v850/v850.c (expand_epilogue): Likewise.
9570         * config/bfin/bfin.c (bfin_expand_call): Likewise.
9571         * config/arm/arm.md (epilogue): Likewise.
9572         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9573         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9574         variable to ret_reg.
9575
9576 2011-05-03  Richard Guenther  <rguenther@suse.de>
9577
9578         PR lto/48846
9579         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9580         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9581         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9582
9583 2011-05-03  Richard Guenther  <rguenther@suse.de>
9584
9585         * c-decl.c (grokdeclarator): Instead of looking at
9586         TREE_OVERFLOW check if the constant fits in the index type.
9587
9588 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
9589
9590         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9591         (vec_store_lanes<mode><mode>): Likewise.
9592
9593 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
9594
9595         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9596         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9597         convert_optab_index values.
9598         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9599         * genopinit.c (optabs): Initialize the new optabs.
9600         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9601         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9602         (expand_STORE_LANES): New functions.
9603         * tree.h (build_array_type_nelts): Declare.
9604         * tree.c (build_array_type_nelts): New function.
9605         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9606         (vect_model_load_cost): Likewise.
9607         (vect_store_lanes_supported, vect_load_lanes_supported)
9608         (vect_record_strided_load_vectors): Declare.
9609         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9610         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9611         (vect_transform_strided_load): Split out statement recording into...
9612         (vect_record_strided_load_vectors): ...this new function.
9613         * tree-vect-stmts.c (create_vector_array, read_vector_array)
9614         (write_vector_array, create_array_ref): New functions.
9615         (vect_model_store_cost): Add store_lanes_p argument.
9616         (vect_model_load_cost): Add load_lanes_p argument.
9617         (vectorizable_store): Try to use store-lanes functions for
9618         interleaved stores.
9619         (vectorizable_load): Likewise load-lanes and loads.
9620         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9621         to vect_model_store_cost.
9622         (vect_build_slp_tree): Likewise vect_model_load_cost.
9623
9624 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
9625
9626         * hooks.h (hook_bool_mode_uhwi_false): Declare.
9627         * hooks.c (hook_bool_mode_uhwi_false): New function.
9628         * target.def (array_mode_supported_p): New hook.
9629         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9630         * doc/tm.texi: Regenerate.
9631         * stor-layout.c (mode_for_array): New function.
9632         (layout_type): Use it.
9633         * config/arm/arm.c (arm_array_mode_supported_p): New function.
9634         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9635
9636 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
9637
9638         PR target/48723
9639         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9640         for -fstack-check if the size to allocate is negative.
9641
9642 2011-05-02  Lawrence Crowl  <crowl@google.com>
9643
9644         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9645         (timevar_cond_start): New for starting a timer only when it is not
9646         already running.
9647         (timevar_cond_stop): New for stopping a timer when it was not already
9648         running.
9649
9650         * timevar.c (timevar_stop): Enable start/stop timers to start again.
9651         (timevar_cond_start): New as above.
9652         (timevar_cond_stop): New as above.
9653
9654         * timevar.def: Add start/stop timers for compiler phases,
9655         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9656         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9657         and TV_PHASE_FINALIZE.
9658         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9659         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9660         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9661         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9662         Make unused TV_OVERLOAD into a start/stop timer.
9663
9664         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9665         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9666         to indicate that they are start/stop timers.
9667
9668         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9669         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9670         Move initialization to do_compile.
9671         (do_compile): Add initialization from above.
9672         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9673
9674         * c-decl.c (c_write_global_declarations): Add start/stop of
9675         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9676
9677         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9678         or TV_PARSE_INLINE, as appropriate.
9679         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9680         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9681
9682 2011-05-02  Jason Merrill  <jason@redhat.com>
9683
9684         PR c++/40975
9685         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9686
9687 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
9688
9689         PR c/35445
9690         * c-decl.c (finish_decl): Only create a composite if the types are
9691         compatible.
9692
9693 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
9694
9695         * config/fr30/fr30-protos.h (Mmode): Don't define.
9696         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
9697         definition where used.
9698         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9699         define.  Expand definitions where used.
9700         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9701         Expand definitions where used.
9702         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9703         rx_function_arg, rx_function_arg_advance,
9704         rx_function_arg_boundary): Expand definitions of those macros.
9705         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
9706         definition where used.
9707
9708 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9709
9710         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9711         reg<->xmm moves.
9712         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9713         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
9714         with *movv2sf_internal_rex64_avx.
9715         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9716         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9717         Use %v prefix in insn mnemonic to handle TARGET_AVX.
9718         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
9719         "vex" in "prefix" attribute calculation.
9720         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
9721
9722 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
9723
9724         PR target/47951
9725         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9726         inputs match the output.
9727
9728 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
9729
9730         PR target/47955
9731         * config/m68k/m68k.c (m68k_expand_prologue): Set
9732         current_function_static_stack_size.
9733
9734 2011-05-02   Jan Hubicka  <jh@suse.cz>
9735
9736         * lto-streamer.c (lto_streamer_cache_insert_1,
9737         lto_streamer_cache_lookup, lto_streamer_cache_create,
9738         lto_streamer_cache_delete): Use pointer map instead of hashtable.
9739         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9740
9741 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
9742
9743         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9744         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9745         config/m68k/t-opts: New files.
9746         * config/m68k/m68k-tables.opt: New file (generated).
9747         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9748         extra_options and m68k/t-opts to tmake_file.
9749         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9750         (all_isas): Initialize using m68k-isas.def.
9751         (all_microarchs): Initialize using m68k-microarchs.def.
9752         (m68k_find_selection): Remove.
9753         (m68k_handle_option): Don't assert that global structures are in
9754         use.  Use error_at.  Access variables via opts pointer.  Don't
9755         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
9756         directly for -m68020-40 and -m68020-60.
9757         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9758         m68k_tune_entry here.
9759         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9760         to m68k-opts.h.
9761         (m68k_library_id_string): Remove declaration.
9762         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
9763         (m68k_library_id_string): New Variable.
9764         (march=, mcpu=, mtune=): Use Enum and Var.
9765
9766 2011-05-02  Richard Guenther  <rguenther@suse.de>
9767
9768         * varasm.c (output_constructor_regular_field): Compute zero-based
9769         index with double-ints.  Make sure to ICE instead of producing
9770         wrong code.
9771         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9772         in asserts.  Properly use a signed type.
9773
9774 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9775
9776         * config/i386/sse.md (V): New mode iterator.
9777         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
9778         TARGET_SSE2.
9779         (V_256): Rename from AVX256MODE.
9780         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
9781         condition to all users.
9782         (VF1): Ditto.
9783         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
9784         condition to all users.
9785         (VF_128): Make V4SF mode unconditional.
9786         (VF_256): Rename from AVX256MODEF2P.
9787         (VI4F_128): Rename from SSEMODE4S.
9788         (VI8F_128): Rename from SSEMODE2D.
9789         (VI4F_256): Rename from AVX256MODE8P.
9790         (VI8F_256): Rename from AVX256MODE4P.
9791         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9792         (ssescalarmodesuffix): Remove SF and DF modes.
9793         (SSEMODE124): Remove.
9794         (SSEMODE1248): Ditto.
9795         (SSEMODEF2P): Ditto.
9796         (AVXMODEF2P): Ditto.
9797         (AVXMODEFDP): Ditto.
9798         (AVXMODEFSP): Ditto.
9799         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9800         unconditional.
9801         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
9802         unconditional.
9803         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9804         xop_pcmov_<mode>256.  Use V mode iterator.
9805
9806         Adjust RTX patterns globally for renamed mode attributes.
9807
9808 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9809
9810         * haifa-sched.c (sched_emit_insn): Emit insn before first
9811         non-scheduled insn.  Inform back-end about new insn.  Add
9812         new insn to scheduled_insns list.
9813
9814 2011-05-02  Richard Guenther  <rguenther@suse.de>
9815
9816         PR tree-optimization/48822
9817         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9818         (process_scc): Indicate which iteration we start.
9819
9820 2011-05-02  Jan Hubicka  <jh@suse.cz>
9821
9822         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9823         (lto_section_overrun): New.
9824         * lto-section-out.c (append_block): Rename to ...
9825         (lto_append_block): ... this one; export.
9826         (lto_output_1_stream): Move lto lto-streamer.h
9827         (lto_output_data_stream): Update.
9828         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9829         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9830         functions.
9831
9832 2011-05-02  Richard Guenther  <rguenther@suse.de>
9833
9834         * tree.c (tree_code_counts): New global array.
9835         (record_node_allocation_statistics): Count individual tree codes.
9836         (dump_tree_statistics): Dump individual code stats.
9837
9838 2011-05-01  Jan Hubicka  <jh@suse.cz>
9839
9840         * ipa-inline.c (caller_growth_limits): Fix thinko when
9841         looking for largest stack frame.
9842         * ipa-inline.h (dump_inline_summary): Declare.
9843         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
9844         on stack usage.
9845         (dump_inline_summary): Export.
9846         (debug_inline_summary): Declare as DEBUG_FUNCTION.
9847
9848 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
9849
9850         * reginfo.c (memory_move_cost): Change rclass argument type form
9851         'enum reg_class' to reg_class_t.
9852         * reload.h (memory_move_cost): Update prototype.
9853         * postreload.c reload_cse_simplify_set): Change type dclass var to
9854         reg_class_t.
9855         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
9856         Update prototype.
9857         (ira_allocate_and_set_costs): Change aclass argument type form
9858         'enum reg_class' to reg_class_t.
9859         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
9860         Change aclass argument type to reg_class_t.
9861         (update_conflict_hard_reg_costs): Change type aclass and pref vars
9862         to reg_class_t.
9863         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
9864         memory_move_cost call.
9865
9866         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
9867         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
9868         Change type tmp var to reg_class_t.
9869
9870 2011-04-30  Jan Hubicka  <jh@suse.cz>
9871
9872         * ipa-inline.c (can_inline_edge_p): Disregard limits when
9873         inlining into function with flatten attribute.
9874         (want_inline_small_function_p): Be more realistic about inlining
9875         cold calls where callee size grows.
9876
9877 2011-04-30  Jan Hubicka  <jh@suse.cz>
9878
9879         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
9880         flags.
9881
9882 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
9883
9884         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9885         PRINT_OPERAND_PUNCT_VALID_P): Remove.
9886         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
9887         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
9888         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9889         (print_operand): Rename to...
9890         (sparc_print_operand): ...this. Make static. Adjust
9891         sparc_print_operand function call.
9892         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
9893         functions.
9894
9895 2011-04-30  Jan Hubicka  <jh@suse.cz>
9896
9897         PR middle-end/48752
9898         * ipa-inline.c (early_inliner): Disable when doing late
9899         addition of function.
9900
9901 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
9902
9903         * dwarf2out.c (get_address_mode): New inline.
9904         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
9905         if not dwarf_strict emit
9906         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
9907         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
9908         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
9909         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
9910         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
9911         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
9912         mem_loc_descriptor callers.
9913         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9914         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
9915         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
9916         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
9917         (base_types): New variable.
9918         (get_base_type_offset, calc_base_type_die_sizes,
9919         base_type_for_mode, mark_base_types, base_type_cmp,
9920         move_marked_base_types): New functions.
9921         (calc_die_sizes): Assert that die_offset is 0 or equal to
9922         next_die_offset.
9923         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
9924         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
9925         callers.  If not dwarf_strict, call mem_loc_descriptor even for
9926         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
9927         (gen_subprogram_die): Don't give up on call site parameters
9928         with non-integral or large integral modes.  Adjust
9929         mem_loc_descriptor callers.
9930         (prune_unused_types): Call prune_unused_types_mark on base_types
9931         vector entries.
9932         (resolve_addr): Call mark_base_types.
9933         (dwarf2out_finish): Call move_marked_base_types.
9934
9935         PR tree-optimization/48809
9936         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
9937         type.
9938         (gen_inbound_check): Don't compute index_expr - range_min in utype
9939         again, instead reuse SSA_NAME initialized in build_arrays.
9940         Remove two useless gsi_for_stmt calls.
9941
9942 2011-04-29  Jeff Law  <law@redhat.com>
9943
9944         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
9945
9946 2011-04-29  Martin Jambor  <mjambor@suse.cz>
9947
9948         * cgraph.h (cgraph_postorder): Remove declaration.
9949         * ipa-utils.h (ipa_free_postorder_info): Declare.
9950         (ipa_reverse_postorder): Likewise.
9951         * cgraphunit.c: Include ipa-utils.h.
9952         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
9953         * ipa-inline.c: Include ipa-utils.h.
9954         (ipa_inline): Update call to ipa_reverse_postorder.
9955         * ipa-pure-const.c (propagate_pure_const): Update call to
9956         ipa_reduced_postorder and ipa_print_order.  Call
9957         ipa_free_postorder_info to clean up.
9958         (propagate_nothrow): Likewise.
9959         * ipa-reference.c (propagate): Removed a useless call to
9960         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
9961         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
9962         * ipa.c: Include ipa-utils.h.
9963         (ipa_profile): Update call to ipa_reverse_postorder.
9964         (cgraph_postorder): Moved to...
9965         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
9966         (ipa_utils_print_order): Renamed to ipa_print_order.
9967         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
9968         comments.
9969         (ipa_free_postorder_info): New function.
9970         * passes.c: Include ipa-utils.h.
9971         (do_per_function_toporder): Update call to ipa_reverse_postorder.
9972         (ipa_write_summaries): Likewise.
9973         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
9974         (cgraphunit.o): Likewise.
9975         (ipa.o): Likewise.
9976         (ipa-inline.o): Likewise.
9977
9978 2011-04-29  Jan Hubicka  <jh@suse.cz>
9979
9980         * gcc.dg/tree-ssa/inline-10.c: New testcase.
9981         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
9982         * ipa-inline.h (clause_t): Turn into unsigned int.
9983         * ipa-inline-analysis.c (add_clause): Do more simplification.
9984         (and_predicates): Shortcut more cases.
9985         (predicates_equal_p): Move forward; check that clauses are properly
9986         ordered.
9987         (or_predicates): Shortcut more cases.
9988         (edge_execution_predicate): Rewrite as...
9989         (set_cond_stmt_execution_predicate): ... this function; handle
9990         __builtin_constant_p.
9991         (set_switch_stmt_execution_predicate): New .
9992         (compute_bb_predicates): New.
9993         (will_be_nonconstant_predicate): Update TODO.
9994         (estimate_function_body_sizes): Use compute_bb_predicates
9995         and free them later, always try to estimate if stmt is constant.
9996         (estimate_time_after_inlining, estimate_size_after_inlining):
9997         Gracefully handle optimized out edges.
9998         (read_predicate): Fix off by one error.
9999
10000 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10001
10002         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10003
10004 2011-04-27  Xinliang David Li  <davidxl@google.com>
10005
10006         * tree-profile.c (init_ic_make_global_vars): Set
10007         tls attribute on ic vars.
10008         * coverage.c (coverage_end_function): Initialize
10009         function_list with zero.
10010
10011 2011-04-29  Richard Guenther  <rguenther@suse.de>
10012
10013         * builtins.c (fold_builtin_classify_type): Use integer_type_node
10014         for the type of the result.
10015         (fold_builtin_isascii): Likewise.
10016         (fold_builtin_toascii): Use integer_type_node where appropriate.
10017         (fold_builtin_logb): Likewise.
10018         (fold_builtin_frexp): Likewise.
10019         (fold_builtin_strstr): Likewise.
10020         (fold_builtin_strpbrk): Likewise.
10021         (fold_builtin_fputs): Likewise.
10022         (fold_builtin_sprintf): Likewise.
10023         (fold_builtin_snprintf): Likewise.
10024         (fold_builtin_printf): Likewise.
10025         (do_mpfr_remquo): Use a proper type for the assigned constant.
10026         (do_mpfr_lgamma_r): Likewise.
10027         * dwarf2out.c (resolve_one_addr): Use size_int.
10028         * except.c (init_eh): Likewise.
10029         (assign_filter_values): Use integer_type_node for filter values.
10030         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10031         indices.
10032         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10033         for EH region numbers.
10034         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10035         for the shift amount.
10036
10037 2011-04-29  Richard Guenther  <rguenther@suse.de>
10038
10039         * expr.h (expand_shift): Rename to ...
10040         (expand_variable_shift): ... this.
10041         (expand_shift): Take a constant shift amount.
10042         * expmed.c (expand_shift): Rename to ...
10043         (expand_variable_shift): ... this.
10044         (expand_shift): New wrapper around expand_variable_shift.
10045         * expr.c (convert_move, emit_group_load_1, emit_group_store,
10046         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10047         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10048         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10049         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10050         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10051         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10052         emit_store_flag_1, emit_store_flag): Likewise.
10053         * builtins.c (expand_builtin_signbit): Likewise.
10054         * calls.c (load_register_parameters): Likewise.
10055         * function.c (assign_parm_setup_block): Likewise.
10056         * lower-subreg.c (resolve_shift_zext): Likewise.
10057         * optabs.c (widen_bswap, expand_abs_nojump,
10058         expand_one_cmpl_abs_nojump, expand_float): Likewise.
10059         * spu/spu.c (spu_expand_extv): Likewise.
10060         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10061
10062 2011-04-29  Richard Guenther  <rguenther@suse.de>
10063
10064         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10065         for the remapped region number.
10066         * predict.c (build_predict_expr): Use integer_type_node for the
10067         predict kind.
10068         * fold-const.c (fold_binary_loc): Use integer_type_node for
10069         the shift amount.  Use a proper type for the PLUS_EXPR operand.
10070
10071 2011-04-29  Michael Matz  <matz@suse.de>
10072
10073         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10074         other trees that just builtins.
10075         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10076
10077 2011-04-29  Richard Guenther  <rguenther@suse.de>
10078
10079         * tree-nested.c (get_trampoline_type): Use size_int.
10080         (get_nl_goto_field): Likewise.
10081         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10082         for all indexes.
10083         (lower_eh_constructs_2): Likewise.
10084         (lower_resx): Likewise.
10085         (lower_eh_dispatch): Likewise.
10086         * tree-mudflap.c (mf_build_string): Use size_int.
10087         (mudflap_register_call): Use integer_type_node for the flag.
10088         (mudflap_enqueue_constant): Use size_int.
10089         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10090         instead of rebuilding it.
10091
10092 2011-04-29  Richard Guenther  <rguenther@suse.de>
10093
10094         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10095         Handle OBJ_TYPE_REF.
10096         (find_func_aliases_for_call): Use it more consistently.
10097
10098 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
10099
10100         * haifa-sched.c (last_nondebug_scheduled_insn): New.
10101         (rank_for_schedule): Use it.
10102         (schedule_block): Set it.
10103
10104 2011-04-28  David Li  <davidxl@google.com>
10105
10106         * tree.c (crc32_string): Use crc32_byte.
10107         (crc32_byte): New function.
10108         * tree.h (crc32_byte): New function.
10109         * gcov.c (read_graph_file): Handle new cfg_cksum.
10110         (read_count_file): Ditto.
10111         * profile.c (instrument_values): Ditto.
10112         (get_exec_counts): Ditto.
10113         (read_profile_edge_counts): Ditto.
10114         (compute_branch_probabilities): Ditto.
10115         (compute_value_histograms): Ditto.
10116         (branch_prob): Ditto.
10117         (end_branch_prob): Ditto.
10118         * coverage.c (read_counts_file): Ditto.
10119         (get_coverage_counts): Ditto.
10120         (tree_coverage_counter_addr): Ditto.
10121         (coverage_checksum_string): Ditto.
10122         (coverage_begin_output): Ditto.
10123         (coverage_end_function): Ditto.
10124         (build_fn_info_type): Ditto.
10125         (build_fn_info_value): Ditto.
10126         * libgcov.c (gcov_exit): Ditto.
10127         * gcov-dump.c (tag_function): Ditto.
10128         (compute_checksum): Remove.
10129
10130 2011-04-29  Alan Modra  <amodra@gmail.com>
10131
10132         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10133         unspec plus offset.  Tidy macho code.
10134
10135 2011-04-29  Martin Jambor  <mjambor@suse.cz>
10136
10137         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10138         node instead of a decl.  Update all callers.
10139         * cgraph.h: Update declaration.
10140
10141 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
10142
10143         PR tree-optimization/48765
10144         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10145         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10146         to indicate if loop aware SLP is being used.  Scan the statements
10147         and update the vectorization factor according to the type of
10148         vectorization before statement analysis.
10149         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10150         pass it to vect_analyze_loop_operations.
10151         (vectorizable_reduction): Set number of copies to 1 in case of pure
10152         SLP statement.
10153         * tree-vect-stmts.c (vectorizable_conversion,
10154         vectorizable_assignment, vectorizable_shift,
10155         vectorizable_operation, vectorizable_type_demotion,
10156         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10157         Likewise.
10158         (vectorizable_condition): Move the check that it is not SLP
10159         vectorization before the number of copies check.
10160         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10161         to vectorize the loop using SLP.
10162
10163 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
10164
10165         PR middle-end/48597
10166         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10167         inline asm.
10168
10169 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
10170
10171         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10172         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10173         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10174         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10175         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10176         linux*.h headers.
10177         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10178         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10179         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10180         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10181         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10182         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10183         REG_NAME.
10184         * config/i386/linux.h (REG_NAME): Don't define.
10185         * config/i386/linux64.h (REG_NAME): Don't define.
10186         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10187         Undefine before defining.
10188
10189 2011-04-28  Jan Hubicka  <jh@suse.cz>
10190
10191         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10192         nonconstant_names array.
10193         (estimate_function_body_sizes): Build nonconstant_names array; handle
10194         BUILT_IN_CONSTANT_P.
10195
10196 2011-04-28  Richard Guenther  <rguenther@suse.de>
10197
10198         PR bootstrap/48804
10199         Revert
10200         2011-04-28  Richard Guenther  <rguenther@suse.de>
10201
10202         * tree-ssa-structalias.c (solve_constraints): Build succ graph
10203         as late as possible.
10204
10205 2011-04-28  Richard Guenther  <rguenther@suse.de>
10206
10207         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10208         (debug_constraint): Do it here.
10209         (dump_constraints): And here.
10210         (rewrite_constraints): And here.
10211         (dump_constraint_edge): Remove.
10212         (dump_constraint_graph): Rewrite to produce DOT output.
10213         (solve_constraints): Build succ graph as late as possible.
10214         Dump constraint graphs before and after solving.
10215
10216 2011-04-28  Richard Guenther  <rguenther@suse.de>
10217
10218         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10219         New function split out from ...
10220         (find_func_aliases): ... here.  Call it.
10221         (find_func_aliases_for_call): Likewise.
10222
10223 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10224
10225         * internal-fn.h (internal_fn_name_array): Declare.
10226         (internal_fn_flags_array): Likewise.
10227
10228 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10229
10230         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
10231         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10232         Move from sse.md.
10233         (ssemodefsuffix): Remove.
10234         (ssevecmodesuffix): New mode attribute.
10235         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10236         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10237         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10238         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10239         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10240         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10241         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10242         ssemodesuffix mode attribute.
10243         (float splitters): Use ssevecmodesuffix mode attribute.
10244         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10245         (sseinsmode): Rename from avxvecmode.
10246         (avxsizesuffix): Rename from avxmodesuffix.
10247         (sseintvecmode): Rename from avxpermvecmode.
10248         (ssedoublevecmode): Rename from ssedoublesizemode.
10249         (ssehalfvecmode): Rename from avxhalfvecmode.
10250         (ssescalarmode): Rename from avxscalarmode.
10251         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10252         templates for ssemodesuffix mode attribute.
10253         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10254         mode attribute.
10255
10256         Adjust RTX patterns globally for renamed mode attributes.
10257
10258 2011-04-27  Jan Hubcika  <jh@suse.cz>
10259
10260         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10261         * ipa-inline-analysis.c: Include alloc-pool.h.
10262         (edge_predicate_pool): New.
10263         (trye_predicate_p): New function
10264         (false_predicate_p): New function.
10265         (add_clause): Sanity check that false clauses are "optimized";
10266         never add clauses to predicate that is already known to be false.
10267         (and_predicate): Use flase_predicate_p.
10268         (evaulate_predicate): Rename to ...
10269         (evaluate_predicate): ... this one; update all callers; assert
10270         that false is not listed among possible truths.
10271         (dump_predicate): Use true_predicate_p.
10272         (account_size_time): Use false_predicate_p.
10273         (evaulate_conditions_for_edge): Rename to ...
10274         (evaluate_conditions_for_edge) ... this one.
10275         (edge_set_predicate): New function.
10276         (inline_edge_duplication_hook): Duplicate edge predicates.
10277         (inline_edge_removal_hook): Free edge predicates.
10278         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10279         (dump_inline_summary): Update.
10280         (estimate_function_body_sizes): Set edge predicates.
10281         (estimate_calls_size_and_time): Handle predicates.
10282         (estimate_callee_size_and_time): Update.
10283         (remap_predicate): Add toplev_predicate; update comment.
10284         (remap_edge_predicates): New function.
10285         (inline_merge_summary): Compute toplev predicate; update.
10286         (read_predicate): New function.
10287         (read_inline_edge_summary): Use it.
10288         (inline_read_section): Likewise.
10289         (write_predicate): New function.
10290         (write_inline_edge_summary): Use it.
10291         (inline_write_summary): Likewise.
10292         (inline_free_summary): Free alloc pool and edge summary vec.
10293
10294 2011-04-27  Richard Guenther  <rguenther@suse.de>
10295
10296         * tree-ssa-structalias.c (changed_count): Remove.
10297         (changed): Use a bitmap.
10298         (unify_nodes): Adjust.
10299         (do_sd_constraint): Likewise.
10300         (do_ds_constraint): Likewise.
10301         (do_complex_constraint): Likewise.
10302         (solve_graph): Likewise.
10303
10304 2011-04-27  Jan Hubicka  <jh@suse.cz>
10305
10306         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10307
10308 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10309
10310         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10311         (avx_vperm2f128_*_operand): Ditto.
10312         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10313         Use avx_vpermilp_parallel in insn condition.
10314         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10315         Use avx_vperm2f128_parallel in insn condition.
10316
10317 2011-04-27  Richard Guenther  <rguenther@suse.de>
10318
10319         * Makefile.in (tree-ssa-structalias.o): Remove
10320         gt-tree-ssa-structalias.h dependency.
10321         (GTFILES): Remove tree-ssa-structalias.c.
10322         * tree.c (allocate_decl_uid): New function.
10323         (make_node_stat): Use it.
10324         (copy_node_stat): Likewise.
10325         * tree.h (allocate_decl_uid): Declare.
10326         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10327         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10328         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10329         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10330         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10331         (struct heapvar_map): Likewise.
10332         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10333         heapvar_insert): Likewise.
10334         (make_heapvar_for): Rename to ...
10335         (make_heapvar): ... this.  Simplify.
10336         (fake_var_decl_obstack): New global var.
10337         (build_fake_var_decl): New function.
10338         (make_constraint_from_heapvar): Adjust.
10339         (handle_lhs_call): Likewise.
10340         (create_function_info_for): Likewise.
10341         (intra_create_variable_infos): Likewise.
10342         (init_alias_vars): Allocate fake_var_decl_obstack.
10343         (init_alias_heapvars, delete_alias_heapvars): Remove.
10344         (compute_points_to_sets): Do not call init_alias_heapvars.
10345         (ipa_pta_execute): Likewise.
10346         (delete_points_to_sets): Free fake_var_decl_obstack.
10347
10348 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10349
10350         * config/spu/divmovti4.c (union qword_UTItype): New data type.
10351         (si_from_UTItype, si_to_UTItype): New functions.
10352         (__udivmodti4): Use them to implement type-punning.
10353         * config/spu/multi3.c (union qword_TItype): New data type.
10354         (si_from_TItype, si_to_TItype): New functions.
10355         (__multi3): Use them to implement type-punning.
10356
10357 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10358
10359         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10360
10361 2011-04-27  Jan Hubicka  <jh@suse.cz>
10362
10363         * ipa-prop.c (function_insertion_hook_holder): New holder.
10364         (ipa_add_new_function): New function.
10365         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10366         Register/deregister holder.
10367
10368 2011-04-27  Richard Guenther  <rguenther@suse.de>
10369
10370         PR tree-optimization/48772
10371         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10372
10373 2011-04-27  Richard Guenther  <rguenther@suse.de>
10374
10375         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10376         TARGET_MEM_REF handling.
10377
10378 2011-04-27  Nick Clifton  <nickc@redhat.com>
10379
10380         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10381         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10382         (REG_CLASS_NAMES): Likewise.
10383         (REG_CLASS_CONTENTS): Likewise.
10384         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
10385         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
10386         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
10387         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
10388         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
10389         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10390         duplicate register classes.
10391         (frv_class_likely_spilled_p): Likewise.
10392         (frv_register_move_cost): Likewise.
10393
10394         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10395         end of the regno_reg_class array.
10396
10397 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
10398
10399         PR c/48742
10400         * c-typeck.c (build_binary_op): Don't wrap arguments if
10401         int_operands is true.
10402
10403 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
10404
10405         PR target/48767
10406         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10407         targetm.calls.must_pass_in_stack for void type.
10408
10409 2011-04-26  Jan Hubicka  <jh@suse.cz>
10410
10411         * cgraphbuild.c (build_cgraph_edges): Update call
10412         of cgraph_create_edge and cgraph_create_indirect_edge.
10413         * cgraph.c (cgraph_create_edge_including_clones,
10414         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10415         cgraph_update_edges_for_call_stmt_node): Do not take nest
10416         argument; do not initialize call_stmt_size/time.
10417         (dump_cgraph_node): Do not dump nest.
10418         (cgraph_clone_edge): Do not take loop_nest argument;
10419         do not propagate it; do not clone call_stmt_size/time.
10420         (cgraph_clone_node): Likewise.
10421         (cgraph_create_virtual_clone): Update.
10422         * cgraph.h (struct cgraph_edge): Remove
10423         call_stmt_size/call_stmt_time/loop_nest.
10424         (cgraph_create_edge, cgraph_create_indirect_edge,
10425         cgraph_create_edge_including_clones, cgraph_clone_node): Update
10426         prototype.
10427         * tree-emutls.c (gen_emutls_addr): Update.
10428         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10429         loop_nest; handle indirect calls, too.
10430         (clone_inlined_nodes): Do not care about updating inline summaries.
10431         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10432         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10433         stream call_stmt_size/call_stmt_time/loop_nest.
10434         * ipa-inline.c (edge_badness): Update.
10435         (ipa_inline): dump summaries after inlining.
10436         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10437         New.
10438         (inline_edge_summary): New function.
10439         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10440         (inline_edge_removal_hook): Handle edge summaries.
10441         (inline_edge_duplication_hook): New hook.
10442         (inline_summary_alloc): Alloc hooks.
10443         (initialize_growth_caches): Do not register removal hooks.
10444         (free_growth_caches); Do not free removal hook.
10445         (dump_inline_edge_summary): New function.
10446         (dump_inline_summary): Use it.
10447         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10448         (inline_update_callee_summaries): New function.
10449         (inline_merge_summary): Use it.
10450         (do_estimate_edge_time, do_estimate_edge_growth): Update.
10451         (read_inline_edge_summary): New function.
10452         (inline_read_section): Use it.
10453         (write_inline_edge_summary): New function.
10454         (inline_write_summary): Use it.
10455         (inline_free_summary): Free edge new holders.
10456         * tree-inline.c (copy_bb): Update.
10457
10458 2011-04-26  Jason Merrill  <jason@redhat.com>
10459
10460         * tree-eh.c (lower_try_finally_switch): Create the label along with
10461         the CASE_LABEL_EXPR.
10462
10463 2011-04-26  David S. Miller  <davem@davemloft.net>
10464             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10465
10466         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10467         * configure: Regenerate.
10468
10469 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10470
10471         PR target/48258
10472         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10473         reduction.
10474         (VEC_reduc): New code iterator and splitters for vector reduction.
10475         (VEC_reduc_name): Ditto.
10476         (VEC_reduc_rtx): Ditto.
10477         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10478         (reduc_<VEC_reduc_name>_v4sf): Ditto.
10479
10480         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10481         support for extracting SF on VSX.
10482
10483         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10484         generating xscvspdp.
10485         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10486         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10487         double add, minimum, maximum vector reduction.
10488         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10489         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10490         optimize double vector reduction.
10491         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10492
10493 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
10494
10495         * config/fr30/fr30.h (inhibit_libc): Don't define.
10496         * config/m32r/m32r-protos.h: Correct comment.
10497         * config/v850/v850.h (GHS_default_section_names,
10498         GHS_current_section_names): Use tree, not union tree_node *.
10499
10500 2011-04-26  Xinliang David Li  <davidxl@google.com>
10501
10502         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10503         * c-family/c-opts.c (c_common_handle_option): Set
10504         warn_maybe_uninitialized.
10505         * opts.c (common_handle_option): Ditto.
10506         * common.opt:  New option.
10507         * tree-ssa.c (warn_uninit): Add one more parameter.
10508         (warn_uninitialized_var): Pass warning code.
10509         * tree-flow.h: Interface change.
10510
10511 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10512
10513         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10514         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10515         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10516
10517 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10518
10519         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10520         * config/mips/mips.opt (mmips-tfile): Remove.
10521
10522         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10523         mips-tdump reference to ...
10524         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
10525         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10526         reference by Tru64 UNIX.
10527
10528 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
10529
10530         PR debug/48768
10531         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10532         is error_mark_node, set value to NULL.
10533
10534         PR tree-optimization/48734
10535         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10536         if return value from maybe_fold_*_comparsions isn't something
10537         the code is prepared to handle.
10538
10539 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
10540
10541         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10542         mode check.
10543         (ext_QIreg_nomode_operands): Remove.
10544         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10545         (*andsi_1): Ditto.
10546         (*andhi_1): Ditto.
10547
10548 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
10549
10550         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10551
10552 2011-04-26  Richard Guenther  <rguenther@suse.de>
10553
10554         * c-typeck.c (build_unary_op): Do not expand array-refs via
10555         pointer arithmetic.  Only adjust qualifiers for function types.
10556
10557 2011-04-26  Richard Guenther  <rguenther@suse.de>
10558
10559         PR middle-end/48694
10560         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10561         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10562         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
10563         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10564
10565 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
10566
10567         * doc/extend.texi: Document __underlying_type.
10568
10569 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
10570
10571         * config/rs6000/titan.md (automata_option "progress"): Remove.
10572
10573 2011-04-25  Jeff Law  <law@redhat.com>
10574
10575         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10576
10577 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10578
10579         * system.h (ENUM_BITFIELD): Remove.
10580
10581 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
10582             Eric Botcazou  <ebotcazou@adacore.com>
10583
10584         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10585         for STORE_FLAG_VALUE==-1 case.
10586
10587 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
10588
10589         PR target/43804
10590         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10591         LEGITIMATE_PIC_OPERAND_P.
10592
10593 2011-04-24  Jan Hubicka  <jh@suse.cz>
10594
10595         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10596         WPA hack.
10597         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10598         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10599         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
10600         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10601         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10602         Sanity check predicate length.
10603         (remap_predicate): Likewise; sanity check jump functions.
10604         (inline_read_section, inline_write_summary): Sanity check
10605         predicate length.
10606
10607 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10608
10609         PR other/48748
10610         * doc/extend.texi (Type Traits): Document __is_standard_layout,
10611         __is_literal_type, and __is_trivial; update throughout about
10612         possibly cv-qualified void types.
10613
10614 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
10615
10616         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10617         testsuite and make it version agnostic.
10618
10619 2011-04-22  Jan Hubicka  <jh@suse.cz>
10620
10621         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10622
10623 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
10624
10625         PR c/48685
10626         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10627         to VOID_TYPE even around MODIFY_EXPR.
10628
10629 2011-04-22  Mike Stump  <mikestump@comcast.net>
10630
10631         * gensupport.c (read_md_rtx): Fix typo in comment.
10632         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10633         comment.
10634
10635 2011-04-22  Jan Hubicka  <jh@suse.cz>
10636
10637         * gengtype.c (open_base_files): Add ipa-inline.h include.
10638         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10639         ipa-prop.c; update all uses.
10640         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
10641         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10642         merge summary of inlined function into former caller.
10643         * ipa-inline.c (max_benefit): Remove.
10644         (edge_badness): Compensate for removal of benefits.
10645         (update_caller_keys): Use
10646         reset_node_growth_cache/reset_edge_growth_cache.
10647         (update_callee_keys): Likewise.
10648         (update_all_callee_keys): Likewise.
10649         (inline_small_functions): Do not collect max_benefit; do not reset
10650         estimated_growth; call free_growth_caches and initialize_growth_caches.
10651         * ipa-inline.h (struct condition, type clause_t, struct predicate,
10652         struct size_time_entry): New structures.
10653         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
10654         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10655         and estimated_growth.
10656         (edge_growth_cache_entry): New structure.
10657         (node_growth_cache, edge_growth_cache): New global vars.
10658         (estimate_growth): Turn into inline.
10659         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10660         initialize_growth_caches, free_growth_caches): Declare.
10661         (estimate_edge_growth): Rewrite.
10662         (estimate_edge_time): Implement as inline cache lookup.
10663         (reset_node_growth_cache, reset_edge_growth_cache): New inline
10664         functions.
10665         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10666         (NUM_CONDITIONS): New constant.
10667         (predicate_conditions): New enum.
10668         (IS_NOT_CONSTANT): New constant.
10669         (edge_removal_hook_holder): New var.
10670         (node_growth_cache, edge_growth_cache): New global vars.
10671         (true_predicate, single_cond_predicate, false_predicate,
10672         not_inlined_predicate, add_condition, add_clause, and_predicates,
10673         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10674         dump_clause, dump_predicate, account_size_time,
10675         evaulate_conditions_for_edge): New functions.
10676         (inline_summary_alloc): Move to heap.
10677         (inline_node_removal_hook): Clear condition and entry vectors.
10678         (inline_edge_removal_hook): New function.
10679         (initialize_growth_caches, free_growth_caches): New function.
10680         (dump_inline_summary): Update.
10681         (edge_execution_predicate): New function.
10682         (will_be_nonconstant_predicate): New function.
10683         (estimate_function_body_sizes): Compute BB and constantness predicates.
10684         (compute_inline_parameters): Do not clear estimated_growth.
10685         (estimate_edge_size_and_time): New function.
10686         (estimate_calls_size_and_time): New function.
10687         (estimate_callee_size_and_time): New function.
10688         (remap_predicate): New function.
10689         (inline_merge_summary): New function.
10690         (do_estimate_edge_time): New function based on...
10691         (estimate_edge_time): ... this one.
10692         (do_estimate_edge_growth): New function.
10693         (do_estimate_growth): New function based on....
10694         (estimate_growth): ... this one.
10695         (inline_analyze_function): Analyze after deciding on jump functions.
10696         (inline_read_section): New function.
10697         (inline_read_summary): Use it.
10698         (inline_write_summary): Write all the new data.
10699         * ipa-prop.c (ipa_get_param_decl_index): Export.
10700         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
10701         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10702         Declare.
10703         (ipa_get_lattice): Move here from ipa-cp.c
10704         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10705         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10706         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10707         cgraph_edge_inlinable_p): Remove.
10708         * cgraphunit.c: Include ipainline.h
10709         (cgraph_process_new_functions): Update call of
10710         compute_inline_parameters.
10711
10712 2011-04-22  Richard Guenther  <rguenther@suse.de>
10713
10714         * tree.c (build_int_cst): Properly create canonicalized integer
10715         constants.
10716         (build_int_cst_type): Remove scary comments.
10717
10718 2011-04-22  Xinliang David Li  <davidxl@google.com>
10719
10720         * toplev.c (process_options): Enable -Werror=coverage-mismatch
10721         by default when -Wno-error is not specified.
10722         * opts-global.c (decode_options): Remove call to
10723         control_warning_options.
10724
10725 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
10726
10727         PR tree-optimization/48717
10728         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10729         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10730
10731 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
10734         definition where used.
10735
10736 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
10737
10738         PR c/48716
10739         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10740         TREE_STATIC variables declared inside of some OpenMP construct.
10741
10742 2011-04-22  Martin Jambor  <mjambor@suse.cz>
10743
10744         PR middle-end/48585
10745         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
10746
10747 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
10748
10749         PR c/36750
10750         * c-typeck.c (pop_init_level): Do not warn about initializing
10751         with ` = {0}'.
10752
10753 2011-04-22  Alan Modra  <amodra@gmail.com>
10754
10755         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10756         when returning call_cookie.
10757         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10758         pointers, to functions with no more vector args than the current
10759         function, and some non-local calls for ABI_V4.
10760         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10761         sibcall_nonlocal_aix64): Combine to ..
10762         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
10763         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10764         (sibcall_value_nonlocal_aix<mode>): ..likewise.
10765         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10766         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
10767         operand.
10768         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10769         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10770         sibcall_value_symbolic_64): Delete.
10771
10772 2011-04-21  Xinliang David Li  <davidxl@google.com>
10773
10774         * cgraph.h: Remove pid.
10775         * cgraph.c: Remove pid.
10776         * value-prof.c (init_node_map): New function.
10777         (del_node_map): New function.
10778         (find_func_by_funcdef_no): New function.
10779         (gimple_ic_transform): Call new function.
10780         * cgraphunit.c (cgraph_finalize_function): Remove pid.
10781         * function.c (get_last_funcdef_no): New function.
10782         * function.h (get_last_funcdef_no): New function.
10783         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10784         to libgcov function.
10785         (tree-profiling): Call node map init and delete function.
10786
10787 2011-04-21  Ian Lance Taylor  <iant@google.com>
10788
10789         * godump.c (go_format_type): Use exported Go name for anonymous
10790         field name.
10791
10792 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10793
10794         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10795         Call builtin_function_type_list instead of builtin_function_type.
10796         (UNARY, BINARY, TRINARY, QUAD): Likewise.
10797
10798 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10799
10800         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10801         build_function_type_list instead of build_function_type.
10802         Delete variable `endlink'.
10803
10804 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10805
10806         * config/s390/s390.c (s390_init_builtins): Call
10807         build_function_type_list instead of build_function_type.
10808
10809 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10810
10811         * config/ia64/ia64.c (ia64_init_builtins): Call
10812         build_function_type_list instead of builtin_function_type.
10813
10814 2011-04-21  Easwaran Raman  <eraman@google.com>
10815
10816         * cfgexpand.c (stack_var): Remove OFFSET...
10817         (add_stack_var): ...and its reference here...
10818         (expand_stack_vars): ...and here.
10819         (stack_var_cmp): Sort by descending order of size.
10820         (partition_stack_vars): Change heuristic.
10821         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
10822         (dump_stack_var_partition): Add newline after each partition.
10823
10824 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
10825             Jeff Law  <law@redhat.com>
10826
10827         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
10828         * gengtype.c (matching_file_name_substitute): Likewise.
10829
10830 2011-04-21  Richard Guenther  <rguenther@suse.de>
10831
10832         PR lto/48703
10833         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
10834
10835 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
10836
10837         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10838
10839 2011-04-21  Richard Guenther  <rguenther@suse.de>
10840
10841         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
10842         file name.
10843
10844 2011-04-21  Richard Guenther  <rguenther@suse.de>
10845
10846         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10847         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10848         Use DECL_P, not SSA_VAR_P.
10849         (ptr_derefs_may_alias_p): Likewise.
10850         (ptr_deref_may_alias_ref_p_1): Likewise.
10851         (decl_refs_may_alias_p): Likewise.
10852         (refs_may_alias_p_1): Likewise.
10853         (ref_maybe_used_by_call_p_1): Likewise.
10854         (call_may_clobber_ref_p_1): Likewise.
10855         (indirect_ref_may_alias_decl_p): Assume indirect refrences
10856         are either MEM_REF or TARGET_MEM_REF.
10857         (indirect_refs_may_alias_p): Likewise.
10858         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
10859         for MEM_EXPR of indirect calls.
10860
10861 2011-04-21  Tristan Gingold  <gingold@adacore.com>
10862
10863         * vmsdbgout.c (write_srccorr): Compute file length from the string.
10864         (dst_file_info_struct): Remove flen field.
10865         (lookup_filename): Remove code that set flen field.
10866
10867 2011-04-21  Tristan Gingold  <gingold@adacore.com>
10868
10869         * config/ia64/ia64.c (ia64_start_function): Add a guard.
10870
10871 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
10872
10873         PR target/48708
10874         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
10875         vec_extract and vec_concat for non-SSE4_1 targets.
10876
10877 2011-04-21  Richard Guenther  <rguenther@suse.de>
10878
10879         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
10880         return statements.
10881
10882 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
10883
10884         * config/i386/cygming.h (union tree_node, TREE): Don't define or
10885         undefine.
10886         (FILE): Don't undefine.
10887
10888 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
10889
10890         * config/alpha/alpha.c (struct machine_function): Use rtx, not
10891         struct rtx_def *.
10892         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
10893         struct rtx_def *.
10894         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
10895         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
10896         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
10897         rtx_def *.
10898         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
10899         definitions where used.
10900         * config/microblaze/microblaze.h (struct microblaze_args): Use
10901         rtx, not struct rtx_def *.
10902         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
10903         rtx_def *.
10904         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
10905         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
10906         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
10907         not struct rtx_def *.
10908         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
10909         struct rtx_def *.
10910         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
10911         rtx_def *.
10912         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
10913
10914 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
10915
10916         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
10917         operand_equal_p to compare DR_BASE_ADDRESSes.
10918         (vect_check_interleaving): Likewise.
10919
10920 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
10921
10922         PR target/46329
10923         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
10924         for all Neon struct constants.
10925
10926 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
10927
10928         * target.def (legitimate_constant_p): New hook.
10929         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
10930         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
10931         * doc/tm.texi: Regenerate.
10932         * hooks.h (hook_bool_mode_rtx_true): Declare.
10933         * hooks.c (hook_bool_mode_rtx_true): Define.
10934         * system.h (LEGITIMATE_CONSTANT_P): Poison.
10935         * calls.c (precompute_register_parameters): Replace uses of
10936         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
10937         (emit_library_call_value_1): Likewise.
10938         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
10939         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
10940         * ira-costs.c (scan_one_insn): Likewise.
10941         * recog.c (general_operand, immediate_operand): Likewise.
10942         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
10943         * reload1.c (init_eliminable_invariants): Likewise.
10944
10945         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
10946         mode argument.
10947         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
10948         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
10949         argument.
10950         (TARGET_LEGITIMATE_CONSTANT_P): Define.
10951         * config/alpha/predicates.md (input_operand): Update call to
10952         alpha_legitimate_constant_p.
10953
10954         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
10955         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
10956         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
10957         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10958         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
10959         (arm_legitimate_constant_p): New functions.
10960         (arm_cannot_force_const_mem): Make static.
10961
10962         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
10963
10964         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
10965         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
10966         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
10967         instead of bfin_legitimate_constant_p.
10968         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
10969         (TARGET_LEGITIMATE_CONSTANT_P): Define.
10970
10971         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
10972
10973         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
10974
10975         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
10976         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
10977         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10978         (frv_legitimate_constant_p): Make static.  Add a mode argument.
10979
10980         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
10981         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
10982         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
10983
10984         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
10985         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
10986         * config/i386/i386.c (legitimate_constant_p): Rename to...
10987         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
10988         argument.
10989         (ix86_cannot_force_const_mem): Update accordingly.
10990         (ix86_legitimate_address_p): Likewise.
10991         (TARGET_LEGITIMATE_CONSTANT_P): Define.
10992         * config/i386/i386.md: Update commentary.
10993
10994         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
10995         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
10996         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10997         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
10998
10999         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11000
11001         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11002         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11003         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11004         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
11005
11006         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11007         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11008         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11009
11010         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11011         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11012         (m32r_legitimate_constant_p): New function.
11013
11014         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11015         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11016         LEGITIMATE_CONSTANT_P.
11017         (LEGITIMATE_CONSTANT_P): Delete.
11018         * config/m68k/m68k.c (m68k_expand_prologue): Call
11019         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11020         (m68k_legitimate_constant_p): New function.
11021         * config/m68k/m68k.md: Update comments.
11022
11023         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11024         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11025         (mcore_legitimate_constant_p): New function.
11026
11027         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11028         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11029         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11030         Add a mode argument.
11031         (mep_legitimate_address): Update accordingly.
11032         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11033
11034         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11035         Delete.
11036         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11037         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11038         static.  Check OP's mode for VOIDmode.
11039         (microblaze_legitimate_constant_p): New function.
11040         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11041
11042         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11043         * config/mips/mips.c (mips_legitimate_constant_p): New function.
11044         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11045         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11046         * config/mips/predicates.md: Update comments.
11047
11048         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11049         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11050         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11051         (mmix_legitimate_constant_p): Make static, return a bool, and take
11052         a mode argument.
11053         (mmix_print_operand_address): Update accordingly.
11054
11055         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11056         Delete.
11057         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11058         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11059         static.  Add a mode argument.
11060         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11061
11062         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11063
11064         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11065         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11066         (pa_legitimate_constant_p): New function.
11067
11068         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11069
11070         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11071         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11072         (pdp11_legitimate_constant_p): New function.
11073
11074         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11075         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11076         (rs6000_legitimate_constant_p): New function.
11077
11078         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11079         (rx_legitimate_constant_p): ...this.
11080         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11081         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11082         (rx_legitimate_constant_p): ...this.
11083         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11084         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11085
11086         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11087         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11088         * config/s390/s390.c (legitimate_constant_p): Rename to...
11089         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
11090         and add a mode argument.
11091         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11092
11093         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11094
11095         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11096         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11097         (sh_legitimate_constant_p): New function.
11098
11099         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11100         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11101         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11102         (legitimate_constant_p): Rename to...
11103         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
11104         argument.
11105         (constant_address_p): Update accordingly.
11106
11107         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11108         argument and return a bool.
11109         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11110         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11111         (spu_legitimate_constant_p): Add a mode argument and return a bool.
11112         (spu_rtx_costs): Update accordingly.
11113         * config/spu/predicates.md (vec_imm_operand): Likewise.
11114
11115         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11116
11117         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11118         * config/v850/v850.c (v850_legitimate_constant_p): New function.
11119         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11120
11121         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11122         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11123         * config/vax/vax.c (legitimate_constant_p): Likewise.
11124
11125         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11126         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11127         (xtensa_legitimate_constant_p): New function.
11128
11129 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11130
11131         * target.def (cannot_force_const_mem): Add a mode argument.
11132         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11133         * doc/tm.texi: Regenerate.
11134         * hooks.h (hook_bool_mode_rtx_false): Declare.
11135         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11136         (hook_bool_mode_const_rtx_true): Likewise.
11137         (hook_bool_mode_rtx_false): New function.
11138         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11139         to be non-VOID.  Update call to cannot_force_const_mem.
11140         (find_reloads): Update accordingly.
11141         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11142         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11143         argument.
11144         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11145         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11146         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11147         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11148         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11149         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11150         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11151         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11152         (m68k_cannot_force_const_mem): ...this new function.
11153         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11154         argument.
11155         (mips_const_insns, mips_legitimize_const_move): Update calls.
11156         (mips_secondary_reload_class): Likewise.
11157         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11158         (pa_cannot_force_const_mem): ...this new function.
11159         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11160         (rs6000_cannot_force_const_mem): ...this new function.
11161         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11162         argument.
11163         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11164         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11165         to...
11166         (xtensa_cannot_force_const_mem): ...this new function.
11167
11168 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11169
11170         * config/mips/mips.c (mips16_build_function_stub): Call
11171         build_function_type_list instead of build_function_type.
11172         (mips16_build_call_stub): Likewise.
11173
11174 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11175
11176         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11177         instead of build_function_type.
11178
11179 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11180
11181         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11182         instead of build_function_type.
11183
11184 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
11185
11186         PR target/48678
11187         * config/i386/i386.md (insv): Change operand 0 constraint to
11188         "register_operand".  Change operand 1 and 2 constraint to
11189         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
11190         * config/i386/sse.md (sse4_1_pinsrb): Export.
11191         (sse2_pinsrw): Ditto.
11192         (sse4_1_pinsrd): Ditto.
11193         (sse4_1_pinsrq): Ditto.
11194         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11195         * config/i386/i386.c (ix86_expand_pinsr): New.
11196
11197 2011-04-20  Easwaran Raman  <eraman@google.com>
11198
11199         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11200         containing union type only with -fstrict-aliasing.
11201
11202 2011-04-20  Jim Meyering  <meyering@redhat.com>
11203
11204         Remove useless if-before-free tests.
11205         * calls.c (expand_call, save_area): Likewise.
11206         * cfgcleanup.c (try_forward_edges): Likewise.
11207         * collect2.c (collect_execute): Likewise.
11208         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11209         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11210         * coverage.c (coverage_checksum_string): Likewise.
11211         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11212         * cselib.c (cselib_init): Likewise.
11213         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11214         (df_set_clean_cfg): Likewise.
11215         * function.c (free_after_compilation): Likewise.
11216         * gcc.c (do_spec_1, main): Likewise.
11217         * gcov.c (create_file_names): Likewise.
11218         * gensupport.c (identify_predicable_attribute): Likewise.
11219         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11220         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11221         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11222         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11223         * ipa-pure-const.c (local_pure_const): Likewise.
11224         * ipa-reference.c (propagate): Likewise.
11225         * ira-costs.c (free_ira_costs): Likewise.
11226         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11227         * matrix-reorg.c (mat_free): Likewise.
11228         * prefix.c (get_key_value): Likewise.
11229         * profile.c (compute_value_histograms): Likewise.
11230         * reload1.c (free_reg_equiv): Likewise.
11231         * sched-deps.c (free_deps): Likewise.
11232         * sel-sched-ir.c (fence_clear): Likewise.
11233         * sese.c (set_rename, if_region_set_false_region): Likewise.
11234         * tree-data-ref.c (free_rdg): Likewise.
11235         * tree-eh.c (lower_try_finally): Likewise.
11236         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11237         * tree-ssa-live.c (delete_var_map): Likewise.
11238         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11239         * tree-ssa-pre.c (phi_trans_add): Likewise.
11240
11241 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
11242
11243         PR tree-optimization/48611
11244         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11245         beyond ERT_MUST_NOT_THROW region.
11246
11247 2011-04-20  Catherine Moore  <clm@codesourcery.com>
11248
11249         * config/mips/mips.opt (mfix-24k): New.
11250         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11251         * config/mips/mips.md (length): Increase by 4 for stores if
11252         fixing 24K errata.
11253         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11254         all noreorder if fixing 24K errata.
11255         * doc/invoke.texi: Document mfix-24k.
11256
11257 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
11258
11259         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11260         quad-word modes, reduce to 9-bit index range when above 1016 limit.
11261
11262 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11263
11264         * config/arm/arm.c (arm_gen_constant): Move movw support ....
11265         (const_ok_for_op): ... to here.
11266
11267 2011-04-20  Kai Tietz  <ktietz@redhat.com>
11268
11269         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11270         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11271
11272 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11273
11274         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11275
11276 2011-04-20  Richard Guenther  <rguenther@suse.de>
11277
11278         PR tree-optimization/47892
11279         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11280         are if-convertible.
11281
11282 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
11283
11284         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11285
11286 2011-04-20  Tristan Gingold  <gingold@adacore.com>
11287
11288         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11289
11290 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
11291
11292         PR target/18145
11293
11294         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11295         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11296         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11297         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11298         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11299
11300         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11301         New prototype.
11302
11303         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11304         (avr_asm_named_section, avr_asm_output_aligned_common,
11305         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11306         New functions to update...
11307         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11308         (avr_asm_init_sections): Overwrite section callbacks for
11309         data_section, bss_section.
11310         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11311         from here to...
11312         (avr_file_end): ...here.
11313
11314 2011-04-20  Richard Guenther  <rguenther@suse.de>
11315
11316         PR middle-end/48695
11317         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11318         objects and types here.  Adjust for their offset before comparing.
11319
11320 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11321
11322         * tree-vect-stmts.c (vectorizable_store): Only chain one related
11323         statement per copy.
11324
11325 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11326
11327         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11328         (GIMPLE_H): Include $(INTERNAL_FN_H).
11329         (OBJS-common): Add internal-fn.o.
11330         (internal-fn.o): New rule.
11331         * internal-fn.def: New file.
11332         * internal-fn.h: Likewise.
11333         * internal-fn.c: Likewise.
11334         * gimple.h: Include internal-fn.h.
11335         (GF_CALL_INTERNAL): New gf_mask.
11336         (gimple_statement_call): Put fntype into a union with a new
11337         internal_fn field.
11338         (gimple_build_call_internal): Declare.
11339         (gimple_build_call_internal_vec): Likewise.
11340         (gimple_call_same_target_p): Likewise.
11341         (gimple_call_internal_p): New function.
11342         (gimple_call_internal_fn): Likewise.
11343         (gimple_call_fntype): Return null for internal calls.
11344         (gimple_call_set_fntype): Assert that the function is not internal.
11345         (gimple_call_set_fn): Likewise.
11346         (gimple_call_set_fndecl): Likewise.
11347         (gimple_call_set_internal_fn): New function.
11348         (gimple_call_addr_fndecl): Handle null functions.
11349         (gimple_call_return_type): Likewise null types.
11350         * gimple.c (gimple_build_call_internal_1): New function.
11351         (gimple_build_call_internal): Likewise.
11352         (gimple_build_call_internal_vec): Likewise.
11353         (gimple_call_same_target_p): Likewise.
11354         (gimple_call_flags): Handle calls to internal functions.
11355         (gimple_call_fnspec): New function.
11356         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11357         (gimple_has_side_effects): Handle null functions.
11358         (gimple_rhs_has_side_effects): Likewise.
11359         (gimple_call_copy_skip_args): Handle calls to internal functions.
11360         * cfgexpand.c (expand_call_stmt): Likewise.
11361         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11362         * gimple-fold.c (gimple_fold_call): Handle null functions.
11363         (gimple_fold_stmt_to_constant_1): Don't fold
11364         calls to internal functions.
11365         * gimple-low.c (gimple_check_call_args): Handle calls to internal
11366         functions.
11367         * gimple-pretty-print.c (dump_gimple_call): Likewise.
11368         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11369         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11370         (do_warn_unused_result): Likewise.
11371         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11372         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11373         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11374         the target of a call.
11375         (initialize_hash_element): Update accordingly.
11376         (hashable_expr_equal_p): Use gimple_call_same_target_p.
11377         (iterative_hash_hashable_expr): Handle calls to internal functions.
11378         (print_expr_hash_elt): Likewise.
11379         * tree-ssa-pre.c (can_value_number_call): Likewise.
11380         (eliminate): Handle null functions.
11381         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11382         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11383         (find_func_aliases): Likewise.
11384         * value-prof.c (gimple_ic_transform): Likewise.
11385         (gimple_indirect_call_to_profile): Likewise.
11386         * lto-streamer-in.c (input_gimple_stmt): Likewise.
11387         * lto-streamer-out.c (output_gimple_stmt): Likewise.
11388
11389 2011-04-19  Jan Hubicka  <jh@suse.cz>
11390
11391         * ipa-inline-transform.c (save_inline_function_body): Add comments.
11392         * ipa-inline.c (inline_small_functions): Compute summaries first,
11393         populate heap later.
11394
11395 2011-04-19  Jan Hubicka  <jh@suse.cz>
11396
11397         * cgraph.h (save_inline_function_body): Remove.
11398         * ipa-inline-transform.c: New file, broke out of...
11399         * ipa-inline.c: ... this one; Update toplevel comment.
11400         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11401         make global.
11402         (update_noncloned_frequencies): Move to ipa-inline-transform.c
11403         (cgraph_mark_inline_edge): Rename to inline_call; move to
11404         ipa-inline-transform.c.
11405         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11406         move to ipa-inline-transform.c
11407         (recursive_inlining, inline_small_functions, flatten_function,
11408         ipa_inline, inline_always_inline_functions,
11409         early_inline_small_functions): Update.
11410         (inline_transform): Move to ipa-inline-transform.c.
11411         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11412         Declare.
11413         * Makefile.in (ipa-inline-transform.o): New file.
11414         * cgraphunit.c (save_inline_function_body): Move to
11415         ipa-inline-transform.c
11416
11417 2011-04-19  DJ Delorie  <dj@redhat.com>
11418
11419         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11420         registers if we already know there aren't any.
11421         (m32c_emit_epilogue): Don't emit a barrier here.
11422         (m32c_emit_eh_epilogue): Likewise.
11423         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11424         operands at expand time.
11425         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11426         int" wchar type.
11427         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11428         duplicates.  Provide aliases instead.
11429         * config/m32c/prologue.md (eh_return): Emit a barrier here.
11430         (eh_epilogue): Add a "(return)" here as a hint to other parts of
11431         the compiler.
11432
11433 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
11434
11435         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11436         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11437         (general_or_i64_p, sparc_register_move_cost): New function.
11438
11439 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11440
11441         * doc/install.texi (Configuration, --enable-threads): Remove mach.
11442         Add lynx, mipssde.  Sort table.
11443
11444 2011-04-19  Xinliang David Li  <davidxl@google.com>
11445
11446         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11447         not negative.
11448
11449 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
11450
11451         PR target/48678
11452         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11453         is a SUBREG with non-MODE_INT mode inside of it.
11454
11455 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11456
11457         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11458         also according to actual contants.
11459         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11460         (gimple_fold_call): Use it.
11461         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11462
11463 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11464
11465         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11466         non-pointer assignments.
11467
11468 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11469
11470         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11471         account anc_offset and otr_type from the indirect edge info.
11472         * ipa-prop.c (get_ancestor_addr_info): New function.
11473         (compute_complex_ancestor_jump_func): Assignment analysis moved to
11474         get_ancestor_addr_info, call it.
11475         (ipa_note_param_call): Do not initialize information about polymorphic
11476         calls, return the indirect call graph edge.  Remove the last
11477         parameter, adjust all callers.
11478         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11479         parameters.  Initialize polymorphic information in the indirect edge.
11480
11481 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11482
11483         PR lto/48148
11484         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11485         the types if they have different enumeration identifiers.
11486
11487 2011-04-19  Jan Hubicka  <jh@suse.cz>
11488
11489         * cgraph.h (cgraph_optimize_for_size_p): Declare.
11490         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11491         * predict.c (cgraph_optimize_for_size_p): Break out from ...
11492         (optimize_function_for_size_p) ... here.
11493
11494 2011-04-19  Richard Guenther  <rguenther@suse.de>
11495
11496         PR lto/48207
11497         * tree.c (free_lang_data): Do not reset the decl-assembler-name
11498         langhook.
11499
11500 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11501
11502         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11503         if DECL_NO_INLINE_WARNING_P is set on the function.
11504
11505 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
11506
11507         PR fortran/47976
11508         * reload1.c (inc_for_reload): Return void. All callers changed.
11509         (emit_input_reload_insns): Don't try to delete previous output
11510         reloads to a register, or record spill_reg_store for autoincs.
11511
11512 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
11513
11514         * gengtype.h: Updated copyright year.
11515         (struct input_file_st): Add inpisplugin field.
11516         (type_fileloc): New function.
11517         * gengtype.c
11518         (write_typed_struct_alloc_def): Add gcc_assert.
11519         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11520         (write_typed_alloc_defns): Don't output for plugin files.
11521         (input_file_by_name): Clear inpisplugin field.
11522         (main): Set inpisplugin field for plugin files.
11523
11524 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
11525
11526         * gengtype-state.c (string_eq): New.
11527         (read_state): Use string_eq instead of strcmp when creating the
11528         state_ident_tab.
11529
11530 2011-04-19  Wei Guozhi  <carrot@google.com>
11531
11532         PR target/47855
11533         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11534         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11535         linkage.
11536         * config/arm/constraints.md (Uu): New constraint.
11537         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11538
11539 2011-04-19  Tristan Gingold  <gingold@adacore.com>
11540
11541         * config.gcc (-*-*-*vms): Added.
11542         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11543         definitions moved.
11544         * config/vms/vms-ld.c: New file.
11545         * config/vms/vms-ar.c: New file.
11546         * config/vms/t-vmsnative: New file.
11547
11548 2011-04-18  Xinliang David Li  <davidxl@google.com>
11549
11550         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11551
11552 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
11553
11554         PR middle-end/48661
11555         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11556         if TREE_TYPE (v) is non-NULL.
11557
11558         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11559         gimple_get_virt_mehtod_for_binfo.
11560         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11561         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11562         callers.
11563         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11564
11565 2011-04-18  Michael Matz  <matz@suse.de>
11566             Steve Ellcey  <sje@cup.hp.com>
11567
11568         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11569         use its mode as source mode if it isn't VOIDmode.
11570
11571 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
11572
11573         * doc/passes.texi: Fill crossref nodes.
11574
11575 2011-04-18  Jim Meyering  <meyering@redhat.com>
11576
11577         Fix doubled-word typos in comments and strings
11578         * config/alpha/vms-unwind.h: s/for for/for/
11579         * config/arm/unwind-arm.h: Likewise.
11580         * config/microblaze/microblaze.c: Likewise.
11581         * config/sh/constraints.md: s/in in/in/
11582         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11583
11584 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
11585
11586         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11587         (AVX_FLOAT_MODE_P): Ditto.
11588         (AVX128_VEC_FLOAT_MODE_P): Ditto.
11589         (AVX256_VEC_FLOAT_MODE_P): Ditto.
11590         (AVX_VEC_FLOAT_MODE_P): Ditto.
11591         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11592         (UNSPEC_MASKSTORE): Ditto.
11593         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11594         Merge from <sse>_movmsk<ssemodesuffix> and
11595         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
11596         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
11597         iterator.
11598         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11599         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11600         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11601
11602 2011-04-18  Jan Hubicka  <jh@suse.cz>
11603
11604         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11605
11606         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11607         (want_inline_function_called_once_p): Break out the logic from
11608         ipa_inline.
11609         (edge_badness): Ensure that profile is not misupdated.
11610         (lookup_recursive_calls): Prioritize by call frequencies.
11611         (inline_small_functions): Move program size estimates here;
11612         actually process whole queue even when unit growth has been
11613         met. (to properly compute inline_failed reasons and for the
11614         case unit size decrease.) Revisit comments on recursive inlining.
11615         (ipa_inline): Remove unit summary code; first inline hot calls
11616         of functions called once, cold calls next.
11617         (order, nnodes): Remove unused variables.
11618         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11619         (GTFILES): Remove ipa-inline.c
11620         * sel-sched.c (fill_insns): Silence uninitialized var warning.
11621
11622 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11623
11624         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11625
11626 2011-04-18  Jie Zhang  <jie@codesourcery.com>
11627             Richard Earnshaw  <rearnsha@arm.com>
11628
11629         * arm.c (neon_builtin_type_bits): Remove.
11630         (typedef enum neon_builtin_mode): New.
11631         (T_MAX): Don't define.
11632         (typedef enum neon_builtin_datum): Remove bits, codes[],
11633         num_vars and base_fcode.  Add mode, code and fcode.
11634         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11635         VAR10): Change accordingly.
11636         (neon_builtin_data[]): Change accordingly
11637         (arm_init_neon_builtins): Change accordingly.
11638         (neon_builtin_compare): Remove.
11639         (locate_neon_builtin_icode): Remove.
11640         (arm_expand_neon_builtin): Change accordingly.
11641
11642         * arm.h (enum arm_builtins): Move to ...
11643         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11644
11645         * arm.c (arm_builtin_decl): Declare.
11646         (TARGET_BUILTIN_DECL): Define.
11647         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11648         (arm_builtin_decls[]): New.
11649         (arm_init_neon_builtins): Store builtin declarations in
11650         arm_builtin_decls[].
11651         (arm_init_tls_builtins): Likewise.
11652         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
11653         (arm_builtin_decl): New.
11654
11655 2011-04-18  Richard Guenther  <rguenther@suse.de>
11656
11657         * tree.c (upper_bound_in_type): Build properly canonicalized
11658         INTEGER_CSTs.
11659         (lower_bound_in_type): Likewise.
11660
11661 2011-04-18  Richard Guenther  <rguenther@suse.de>
11662
11663         * gimple.h (gimple_call_addr_fndecl): New function.
11664         (gimple_call_fndecl): Use it.
11665         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11666         for direct calls.
11667         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11668         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11669
11670 2011-04-18  Richard Guenther  <rguenther@suse.de>
11671
11672         PR middle-end/48650
11673         * tree.c (build_string): STRING_CST is now derived from tree_typed.
11674
11675 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11676
11677         PR lto/48492
11678         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11679         DECL_IN_CONSTANT_POOL without RTL.
11680
11681 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
11682             Ira Rosen  <ira.rosen@linaro.org>
11683
11684         PR target/48252
11685         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11686         to match neon_vzip/vuzp/vtrn_internal.
11687         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11688         outputs explicitly dependent on both inputs.
11689         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11690
11691 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
11692
11693         PR tree-optimization/48616
11694         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11695         whether the shift is by scalar or vector based on whether all SLP
11696         scalar stmts have the same rhs.
11697
11698 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
11699
11700         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11701         memory operands.
11702
11703 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
11704
11705         PR target/43700
11706         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11707         registers.
11708
11709 2011-04-17  Jan Hubicka  <jh@suse.cz>
11710
11711         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
11712         * cgrpahunit.c (cgraph_finalize_function): Do not set
11713         finalized_by_frontend.
11714         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11715         finalized_by_frontend.
11716
11717 2011-04-17  Jan Hubicka  <jh@suse.cz>
11718
11719         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11720         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11721         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
11722         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11723         method.
11724         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11725         gimple-fold.c
11726         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11727
11728 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
11729
11730         PR lto/48538
11731         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11732         is non-null before accessing it.
11733         (input_cgraph): Remove trailing spaces.
11734
11735 2011-04-17  Revital Eres  <revital.eres@linaro.org>
11736
11737         * params.def (sms-min-sc): New param flag.
11738         * modulo-sched.c (sms_schedule): Use it.
11739         * doc/invoke.texi (sms-min-sc): Document it.
11740
11741 2011-04-17  Jan Hubicka  <jh@suse.cz>
11742
11743         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11744         present, also set gimple_call_set_cannot_inline.
11745         * ipa-inline.c: Update toplevel comment.
11746         (MAX_TIME): Remove.
11747         (cgraph_clone_inlined_nodes): Fix linebreaks.
11748         (cgraph_check_inline_limits): Restructure to ...
11749         (caller_growth_limits): ... this one; be more tolerant
11750         on growth in nested inline chains; add explanatory comment;
11751         fix stack accounting thinko introduced by previous patch.
11752         (cgraph_default_inline_p): Remove.
11753         (report_inline_failed_reason): New function.
11754         (can_inline_edge_p): New function.
11755         (can_early_inline_edge_p): New function.
11756         (leaf_node_p): Move upwards in file.
11757         (want_early_inline_function_p): New function.
11758         (want_inline_small_function_p): New function.
11759         (want_inline_self_recursive_call_p): New function.
11760         (cgraph_edge_badness): Rename to ...
11761         (edge_badness) ... this one; fix linebreaks.
11762         (update_edge_key): Update call of edge_baddness; add
11763         detailed dump about queue updates.
11764         (update_caller_keys): Use can_inline_edge_p and
11765         want_inline_small_function_p.
11766         (cgraph_decide_recursive_inlining): Rename to...
11767         (recursive_inlining): Use can_inline_edge_p and
11768         want_inline_self_recursive_call_p; simplify and remove no longer
11769         valid FIXME.
11770         (cgraph_set_inline_failed): Remove.
11771         (add_new_edges_to_heap): Use can_inline_edge_p and
11772         want_inline_small_function_p.
11773         (cgraph_decide_inlining_of_small_functions): Rename to ...
11774         (inline_small_functions): ... this one; cleanup; use
11775         can/want predicates; cleanup debug ouput; work edges till fibheap
11776         is exhausted and do not stop once unit growth is reached; remove
11777         later loop processing remaining edges.
11778         (cgraph_flatten): Rename to ...
11779         (flatten_function): ... this one; use can_inline_edge_p
11780         and can_early_inline_edge_p predicates.
11781         (cgraph_decide_inlining): Rename to ...
11782         (ipa_inline): ... this one; remove unreachable nodes before
11783         inlining functions called once; simplify the pass.
11784         (cgraph_perform_always_inlining): Rename to ...
11785         (inline_always_inline_functions): ... this one; use
11786         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
11787         (cgraph_decide_inlining_incrementally): Rename to ...
11788         (early_inline_small_functions): ... this one; simplify
11789         using new predicates; cleanup; make dumps prettier.
11790         (cgraph_early_inlining): Rename to ...
11791         (early_inliner): newer inline regular functions into always-inlines;
11792         fix updating of call stmt summaries.
11793         (pass_early_inline): Update for new names.
11794         (inline_transform): Fix formating.
11795         (gate_cgraph_decide_inlining): Rename to ...
11796         (pass_ipa_inline): ... this one.
11797         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11798         * ipa-inline-analysis.c (dump_inline_summary): Update.
11799         (compute_inline_parameters): Do not compute disregard_inline_limits;
11800         look for mismatching arguments.
11801         (estimate_growth): Fix handlig of non-trivial self recursion.
11802         (inline_read_summary): Do not read info->disregard_inline_limits.
11803         (inline_write_summary): Do not write info->disregard_inline_limits.
11804         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11805         and move all checks into can_inline_edge_p predicate; re-enable code
11806         comparing optimization levels.
11807         (expand_call_inline): Do not test inline_forbidden_into_p.
11808         * Makefile.in (ipa-inline.o): Update arguments.
11809
11810 2011-04-17  Revital Eres  <revital.eres@linaro.org>
11811
11812         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11813
11814 2011-04-17  Revital Eres  <revital.eres@linaro.org>
11815
11816         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11817
11818 2011-04-17  Michael Matz  <matz@suse.de>
11819
11820         PR tree-optimization/48622
11821         PR lto/48645
11822         * ipa-inline-analysis.c (inline_read_summary): Read size/time
11823         in same order as they're written.
11824
11825 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11826
11827         * config/pa/predicates.md: Reorganize and simplify predicates.
11828         Eliminate duplicate code checks.
11829         (arith_operand): Rename to arith14_operand
11830         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11831         * config/pa/pa.md: Use renamed operands.
11832         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11833         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11834         arith11_operand, adddi3_operand, indexed_memory_operand,
11835         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11836         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11837         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11838         move_dest_operand, move_src_operand, prefetch_cc_operand,
11839         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
11840         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
11841         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
11842         div_operand, int5_operand, movb_comparison_operator,
11843         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
11844         arith_double_operand, ireg_operand, lhs_lshift_operand,
11845         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
11846         integer_store_memory_operand): Likewise.
11847         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
11848         (integer_store_memory_operand, read_only_operand,
11849         function_label_operand, borx_reg_operand,
11850         non_hard_reg_operand): Likewise.
11851         (eq_neq_comparison_operator): Delete unused operator.
11852         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
11853         function_label_operand.
11854         (emit_move_sequence): Likewise.
11855
11856 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
11857
11858         * config/i386/sse.md (sseunpackmode): New mode attribute.
11859         (ssepackmode): Ditto.
11860         (vec_pack_trunc_<mode>): Macroize expander from
11861         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
11862         (vec_unpacks_lo_<mode>): Macroize expander from
11863         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11864         (vec_unpacks_hi_<mode>): Macroize expander from
11865         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11866         (vec_unpacku_lo_<mode>): Macroize expander from
11867         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11868         (vec_unpacku_hi_<mode>): Macroize expander from
11869         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11870         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
11871         ix86_expand_sse4_unpack.
11872         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
11873
11874 2011-04-16  Jan Hubicka  <jh@suse.cz>
11875
11876         * cgraphbuild.c: Include ipa-inline.h.
11877         (reset_inline_failed): Use initialize_inline_failed.
11878         * cgraph.c: Include ipa-inline.h.
11879         (cgraph_create_node_1): Do not initialize estimated_growth.
11880         (initialize_inline_failed): More to ipa-inline-analysis.c
11881         (dump_cgraph_node): Do not dump inline flags.
11882         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
11883         and disregard_inline_limits flags.
11884         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
11885         time, size, estimated_growth.
11886         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
11887         Update.
11888         * cgraphunit.c (cgraph_decide_is_function_needed): Use
11889         DECL_DISREGARD_INLINE_LIMITS.
11890         (cgraph_analyze_function): Do not initialize
11891         node->local.disregard_inline_limits.
11892         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11893         inlinable, versionable and disregard_inline_limits.
11894         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
11895         cgraph_check_inline_limits, cgraph_default_inline_p,
11896         cgraph_edge_badness, update_caller_keys, update_callee_keys,
11897         add_new_edges_to_heap): Update.
11898         (cgraph_decide_inlining_of_small_function): Update; set
11899         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
11900         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
11901         cgraph_decide_inlining_incrementally): Update.
11902         * ipa-inline.h (inline_summary): Add inlinable, versionable,
11903         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
11904         time, size and estimated_growth parameters.
11905         (estimate_edge_growth): Update.
11906         (initialize_inline_failed): Declare.
11907         * ipa-split.c: Include ipa-inline.h
11908         (execute_split_functions): Update.
11909         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
11910         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
11911         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
11912         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
11913         estimated_growth to INT_MIN.
11914         (inline_node_duplication_hook): Likewise.
11915         (dump_inline_summary): Dump new fields.
11916         (compute_inline_parameters): Update.
11917         (estimate_edge_time, estimate_time_after_inlining,
11918         estimate_size_after_inlining, estimate_growth, inline_read_summary,
11919         inline_write_summary):
11920         (initialize_inline_failed): Move here from cgraph.c.
11921         * tree-sra.c: Include ipa-inline.h.
11922         (ipa_sra_preliminary_function_checks): Update.
11923         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
11924         ipa-inline.h.
11925
11926 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
11927
11928         * config/i386/sse.md (V16): New mode iterator.
11929         (VI1, VI8): Ditto.
11930         (AVXMODEQI, AVXMODEDI): Remove.
11931         (sse2, sse3): New mode attribute.
11932         (mov<mode>): Use V16 mode iterator.
11933         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
11934         (push<mode>1): Use V16 mode iterator.
11935         (movmisalign<mode>): Ditto.
11936         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11937         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
11938         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11939         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
11940         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
11941         avx_movdqu<avxmodesuffix>.
11942         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
11943         *avx_movdqu<avxmodesuffix>.
11944         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
11945         avx_lddqu<avxmodesuffix>.
11946         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
11947         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
11948         avx_movnt<AVXMODEDI:mode>.
11949         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
11950         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
11951
11952 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11953
11954         PR target/48629
11955         * haifa-sched.c (prune_ready_list, schedule_block): Use
11956         sched_pressure_p rather than flag_sched_pressure.
11957
11958 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
11959
11960         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11961         cgraph_get_node instead of cgraph_get_create_node.
11962
11963 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
11964
11965         * cfgexpand.c (expand_debug_expr): Use
11966         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
11967
11968 2011-04-15  Michael Matz  <matz@suse.de>
11969
11970         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
11971         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
11972         * function.c (gimplify_parameters): Ditto.
11973         * gimplify.c (gimplify_vla_decl): Ditto.
11974
11975         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
11976         (gimple_call_set_alloca_for_var): New inline function.
11977         (gimple_call_alloca_for_var_p): Ditto.
11978         * gimple.c (gimple_build_call_from_tree): Remember
11979         CALL_ALLOCA_FOR_VAR_P state.
11980         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
11981
11982         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
11983         calls if they were for VLA objects.
11984
11985 2011-04-15  Martin Jambor  <mjambor@suse.cz>
11986
11987         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
11988         of ADR_EXPRs.
11989
11990 2011-04-15  Martin Jambor  <mjambor@suse.cz>
11991
11992         PR middle-end/48601
11993         * tree-emutls.c (lower_emutls_function_body): Call
11994         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
11995         result is non-NULL.
11996
11997 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
11998
11999         * c-decl.c (detect_field_duplicates): Call
12000         objc_detect_field_duplicates instead of objc_get_interface_ivars.
12001
12002 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
12003
12004         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12005         * gimple.c (gimple_asm_clobbers_memory_p): Define.
12006         * ipa-pure-const.c (check_stmt): Call it.
12007         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12008
12009 2011-04-15  Richard Guenther  <rguenther@suse.de>
12010
12011         PR tree-optimization/48290
12012         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12013         Properly decide inhibiting propagation based on the valueized
12014         operand.  Do loop-closed SSA form preserving here ...
12015         (init_copy_prop): ... not here.
12016
12017 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12018
12019         PR target/48612
12020         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12021         (*ieee_smax<mode>3): Likewise.
12022
12023 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12024
12025         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12026         Replace match_operand with match_dup for the third operand in
12027         these expanders.
12028
12029 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12030
12031         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12032         to track processing of conditionals.  Update all callers.
12033         (try_combine, simplify_if_then_else): Update.
12034
12035 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12036
12037         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12038         -fsched-pressure.
12039
12040 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
12041
12042         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12043         instead of match_operand for operand 3.
12044
12045 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
12046
12047         * recog.h (insn_operand_data): Add an "allows_mem" field.
12048         * genoutput.c (output_operand_data): Initialize it.
12049         * optabs.c (maybe_legitimize_operand_same_code): New function.
12050         (maybe_legitimize_operand): Use it when matching the original
12051         op->value.
12052
12053 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12054
12055         * gimplify.c: Fix issues in comments throughout.
12056         (voidify_wrapper_expr): Fix long line.
12057         (build_stack_save_restore): Likewise.
12058         (gimplify_loop_expr): Likewise.
12059         (gimplify_compound_lval): Likewise.
12060         (gimplify_init_ctor_eval): Likewise.
12061         (gimplify_modify_expr_rhs): Likewise.
12062         (omp_notice_threadprivate_variable): Likewise.
12063
12064 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12065
12066         * cfgexpand.c (expand_call_stmt): Convert the function type to the
12067         original one if this is not a builtin function.
12068
12069 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
12070
12071         PR target/48605
12072         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12073         offset it as needed based on top 2 bits in operands[3], change
12074         MEM mode to SFmode and mask those 2 bits away from operands[3].
12075
12076 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12077
12078         * c-parser.c (c_parser_objc_protocol_definition): Updated for
12079         change from objc_declare_protocols() to objc_declare_protocol().
12080
12081 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
12082
12083         * config/i386/sse.md (sse4_1): New mode attribute.
12084         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12085         avx_blend<ssemodesuffix><avxmodesuffix> and
12086         sse4_1_blend<ssemodesuffix> using VF mode iterator.
12087         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12088         avx_blendv<ssemodesuffix><avxmodesuffix> and
12089         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12090         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12091         avx_dp<ssemodesuffix><avxmodesuffix> and
12092         sse4_1_dp<ssemodesuffix> using VF mode iterator.
12093         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12094         (sse4_1_packusdw): Merge with *avx_packusdw.
12095         (sse4_1_pblendvb): Merge with *avx_pblendvb.
12096         (sse4_1_pblendw): Merge with *avx_pblendw.
12097         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12098         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12099         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12100         VF mode iterator.
12101         (sse4_1_round<ssescalarmodesuffix>): Merge with
12102         *avx_round<ssescalarmodesuffix>.
12103         (aesenc): Merge with *avx_aesenc.
12104         (aesenclast): Merge with *avx_aesenclast.
12105         (aesdec): Merge with *avx_aesdec.
12106         (aesdeclast): Merge with *avx_aesdeclast.
12107         (pclmulqdq): Merge with *pclmulqdq.
12108         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12109         New predicate.
12110         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12111
12112 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
12113
12114         PR middle-end/48608
12115         * cfgexpand.c (get_decl_align_unit): Renamed to ...
12116         (align_local_variable): This.  Update DECL_ALIGN.
12117         (add_stack_var): Updated.
12118         (expand_one_stack_var): Likewise.
12119
12120 2011-04-14  Richard Guenther  <rguenther@suse.de>
12121
12122         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12123         Remove.
12124         (dse_initialize_block_local_data, dse_leave_block,
12125         record_voperand_set, get_stmt_uid): Likewise.
12126         (dse_possible_dead_store_p): Allow any kind of killing stmt.
12127         (dse_optimize_stmt): Remove voperand set handling code.
12128         Simplify and improve to handle any kind of killing stmt.
12129         (dse_record_phi): Remove.
12130         (dse_enter_block): Simplify.
12131         (tree_ssa_dse): Likewise.
12132         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12133
12134 2011-04-14  Jan Hubicka  <jh@suse.cz>
12135
12136         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12137         * cgraph.h (struct inline_summary): Move to ipa-inline.h
12138         (cgraph_local_info): Remove inline_summary.
12139         * ipa-cp.c: Include ipa-inline.h.
12140         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12141         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12142         accesor.
12143         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12144         (input_overwrite_node): Do not set inline summary.
12145         (input_node): Do not stream inline summary.
12146         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12147         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12148         growth; we do not have inline parameters computed for that anyway.
12149         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12150         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12151         (inline_summary_t): New type and VECtor.
12152         (debug_inline_summary, dump_inline_summaries): Declare.
12153         (inline_summary): Use VOCtor.
12154         (estimate_edge_growth): Kill hack computing call stmt size directly.
12155         * lto-section-in.c (lto_section_name): Add inline section.
12156         * ipa-inline-analysis.c: Include lto-streamer.h
12157         (node_removal_hook_holder, node_duplication_hook_holder): New holders
12158         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12159         (inline_summary_vec): Define.
12160         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12161         dump_inline_summaries): New functions.
12162         (estimate_function_body_sizes): Properly compute size/time of outgoing
12163         calls.
12164         (compute_inline_parameters): Alloc inline_summary; do not compute
12165         size/time of incomming calls.
12166         (estimate_edge_time): Avoid missing time summary hack.
12167         (inline_read_summary): Read inline summary info.
12168         (inline_write_summary): Write inline summary info.
12169         (inline_free_summary): Free all hooks and inline summary vector.
12170         * lto-streamer.h: Add LTO_section_inline_summary section.
12171         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12172         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12173
12174 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12175
12176         * tree-vectorizer.h (vect_strided_store_supported): Add a
12177         HOST_WIDE_INT argument.
12178         (vect_strided_load_supported): Likewise.
12179         (vect_permute_store_chain): Return void.
12180         (vect_transform_strided_load): Likewise.
12181         (vect_permute_load_chain): Delete.
12182         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12183         count argument.  Check that the count is a power of two.
12184         (vect_strided_load_supported): Likewise.
12185         (vect_permute_store_chain): Return void.  Update after above changes.
12186         Assert that the access is supported.
12187         (vect_permute_load_chain): Likewise.
12188         (vect_transform_strided_load): Return void.
12189         * tree-vect-stmts.c (vectorizable_store): Update calls after
12190         above interface changes.
12191         (vectorizable_load): Likewise.
12192         (vect_analyze_stmt): Don't check for strided powers of two here.
12193
12194 2011-04-14  Richard Guenther  <rguenther@suse.de>
12195
12196         PR tree-optimization/48590
12197         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12198         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12199         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12200         BUILT_IN_STACK_SAVE.
12201         * tree-ssa-dce.c (propagate_necessity): Handle
12202         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12203
12204 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12205
12206         * c-parser.c (c_parser_objc_class_declaration): Updated call to
12207         objc_declare_class.
12208
12209 2011-04-14  Richard Guenther  <rguenther@suse.de>
12210
12211         * tree.h (get_object_alignment_1): Declare.
12212         * builtins.c (get_object_alignment_1): Split out worker from ...
12213         (get_object_alignment): ... here.
12214         * fold-const.c (get_pointer_modulus_and_residue): Use
12215         get_object_alignment_1.
12216
12217 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12218
12219         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12220         type parameter.
12221         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12222         parameter.  Generalise code to handle arrays as well as vectors.
12223         (vect_setup_realignment): Update accordingly.
12224         * tree-vect-stmts.c (vectorizable_store): Likewise.
12225         (vectorizable_load): Likewise.
12226
12227 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12228
12229         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12230         within the per-copy loop.
12231
12232 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12233
12234         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12235         in the dump file.
12236
12237 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12238
12239         * doc/options.texi (Negative): Explicitly mention that the
12240         Negative chain must be circular.
12241
12242 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
12243
12244         * function.h (block_chainon): Declare.
12245         * function.c (block_chainon): Define.
12246
12247 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
12248             Eric Weddington  <eric.weddington@atmel.com>
12249             Georg-Johann Lay  <avr@gjlay.de>
12250
12251         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12252         New Includes
12253         (avr_init_builtins, avr_expand_builtin,
12254         avr_expand_delay_cycles, avr_expand_unop_builtin,
12255         avr_expand_binop_builtin ): New functions.
12256         (avr_builtin_id): New enum
12257         (struct avr_builtin_description): New struct
12258         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12259         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12260
12261         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12262         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12263         UNSPECV_DELAY_CYCLES): new enumeration values
12264         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12265         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12266         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12267         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12268         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12269         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12270         "fmulsu"): New insns
12271
12272         * config/avr/avr-c.c: fix line endings
12273         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12274         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12275         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12276         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12277         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12278
12279         * doc/extend.texi (AVR Built-in Functions): New node
12280         (Target Builtins): Add documentation of AVR
12281         built-in functions.
12282
12283 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
12284
12285         PR target/44643
12286         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12287         alone. Error if non-const data has attribute progmem.
12288
12289 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12290
12291         * tree.h (struct tree_constructor): Include tree_typed instead of
12292         tree_common.
12293         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12294         TS_TYPED instead of TS_COMMON.
12295
12296 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12297
12298         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12299         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12300         (sse2_psadbw): Merge with *avx_psadbw.
12301         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12302         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12303         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12304         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12305         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12306         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12307         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12308         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12309         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12310         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12311         (ssse3_palignrti): Merge with *avx_palignrti.
12312
12313 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12314
12315         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12316         * tree-ssanames.c (fini_ssanames): VEC_free it.
12317         (make_ssa_name_fn): Update for VECness of free_ssanames.
12318         (release_ssa_name, release_dead_ssa_names): Likewise.
12319         * tree.h (struct tree_ssa_name): Include tree_typed instead of
12320         tree_common.
12321         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12322         TS_TYPED instead of TS_COMMON.
12323
12324 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12325
12326         * postreload-gcse.c (gcse_after_reload_main): Add calls to
12327         statistics_counter_event.
12328         * tree-ssa-copyrename.c (stats): Define.
12329         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
12330         statistics_counter_event.
12331         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12332         (bswap_stats, widen_mul_stats): Define.
12333         (insert_reciprocals): Increment rdivs_inserted.
12334         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
12335         rfuncs_inserted.  Add calls to statistics_counter_event.
12336         (execute_cse_sincos_1): Increment inserted.
12337         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
12338         statistics_counter_event.
12339         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
12340         of bswap_stats.  Add calls to statistics_counter_event.
12341         (convert_mult_to_widen): Increment widen_mults_inserted.
12342         (convert_plusminus_to_widen): Increment maccs_inserted.
12343         (convert_mult_to_fma): Increment fmas_inserted.
12344         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
12345         calls to statistics_counter_event.
12346
12347 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
12348
12349         PR rtl-optimization/48455
12350         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12351         `temp_costs->mem_cost'.
12352
12353 2011-04-13  Jan Hubicka  <jh@suse.cz>
12354
12355         * ipa-inline.h: New file.
12356         * ipa-inline-analysis.c: New file. Broken out of ...
12357         * ipa-inline.c: ... this file; update toplevel comment;
12358         include ipa-inline.h
12359         (inline_summary): Move to ipa-inline.h
12360         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12361         ipa-inline-analysis.c.
12362         (cgraph_estimate_time_after_inlining): Rename to
12363         estiamte_time_after_inlining; move to ipa-inline-analysis.c
12364         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12365         to estimate_edge_growth.
12366         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12367         rename to estimate_size_after_inlining.
12368         (cgraph_mark_inline_edge): Update for new naming convention.
12369         (cgraph_check_inline_limits): Likewise.
12370         (cgraph_edge_badness): Likewise.
12371         (cgraph_decide_recursive_inlining): Likewise.
12372         (cgraph_decide_inlining_of_small_functions): Likewise.
12373         (cgraph_decide_inlining_incrementally): Likewise.
12374         (cgraph_estimate_growth): Rename to estimate_growth; move to
12375         ipa-inline-analysis.c.
12376         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12377         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12378         (compute_inline_parameters): Likewise.
12379         (compute_inline_parameters_for_current): Likewise.
12380         (pass_inline_parameters): Likewise.
12381         (inline_indirect_intraprocedural_analysis): Likewise.
12382         (analyze_function): Rename to inline_analyze_function; likewise.
12383         (add_new_function): Move to ipa-inline-analysis.c.
12384         (inline_generate_summary): Likewise.
12385         (inline_read_summary): Likewise.
12386         (inline_write_summary): Likewise.
12387         * Makefile.in (ipa-inline-analysis.c): New file.
12388
12389 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12390
12391         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12392         * configure: Regenerate.
12393
12394 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12395
12396         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12397         instead of tree_common.
12398         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12399         Likewise.
12400         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12401         TS_TYPED rather than TS_COMMON.
12402         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12403
12404 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
12405
12406         PR target/45263
12407         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12408         r20 around calls of __tablejump_elpm__
12409
12410 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
12411
12412         PR middle-end/48591
12413         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12414         NULL.
12415         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12416
12417 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
12418
12419         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12420         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12421         (cfi_vec): New typedef.
12422         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12423         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12424         (cie_cfi_vec): New static variable.
12425         (cie_cfi_head): Delete.
12426         (add_cfi): Accept a cfi_vec * as first argument. All callers and
12427         declaration changed. Use vector rather than list operations.
12428         (new_cfi): Don't initialize the dw_cfi_next field.
12429         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12430         rather than list operations.
12431         (lookup_cfa): Use vector rather than list operations.
12432         (output_cfis): New argument upto. Accept a cfi_vec rather than
12433         a dw_cfi_ref list head as argument. All callers changed.
12434         Iterate over the vector using upto as a maximum index.
12435         (output_all_cfis): New static function.
12436         (output_fde): Use vector rather than list operations. Use the
12437         new upto argument for output_cfis rather than manipulating a
12438         list.
12439         (dwarf2out_begin_prologue): Change initializations to match
12440         new struct members.
12441         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12442         from the vector length rather than searching for the end of a list.
12443         Use output_all_cfis.
12444         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12445
12446 2011-04-13  Nick Clifton  <nickc@redhat.com>
12447
12448         * config/rx/rx.md (movmemsi): Do not use this pattern when
12449         volatile pointers are involved.
12450
12451 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12452
12453         * config/i386/sse.md (pinsrbits): Remove.
12454         (sse2_packsswb): Merge with *avx_packsswb.
12455         (sse2_packssdw): Merge with *avx_packssdw.
12456         (sse2_packuswb): Merge with *avx_packuswb.
12457         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12458         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12459         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12460         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12461         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12462         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12463         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12464         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12465         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12466         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12467         (sse2_loadld): Merge with *avx_loadld.
12468         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12469         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12470         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12471         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12472         (vec_concatv2di): Merge with *vec_concatv2di_avx.
12473
12474 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
12475
12476         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12477         calling TREE_CHAIN.
12478         * print-tree.c (print_node): Likewise.
12479         * tree-inline.c (copy_tree_r): Likewise.
12480         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12481         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12482         instead of TS_COMMON.
12483         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12484         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12485         (copy_node_stat): Zero TREE_CHAIN only if necessary.
12486         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12487         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12488         ...and these...
12489         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12490         * tree.h: ...here.
12491         (TREE_CHAIN): Check for a TS_COMMON structure.
12492         (TREE_TYPE): Check for a TS_TYPED structure.
12493
12494 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
12495
12496         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12497         cgraph_get_create_node instead of cgraph_node.
12498
12499 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12500
12501         * c-parser.c (c_parser_initelt): Updated call to
12502         objc_build_message_expr.
12503         (c_parser_postfix_expression): Likewise.
12504
12505 2011-04-12  Kai Tietz  <ktietz@redhat.com>
12506
12507         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12508         MASK_MS_BITFIELD_LAYOUT bit.
12509
12510 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12511
12512         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12513         assert it is always true.
12514         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12515         moves.
12516
12517 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12518
12519         * c-parser.c (c_lex_one_token): Rewritten conditional used when
12520         compiling Objective-C to be more efficient.
12521
12522 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
12523
12524         * opts-common.c (decode_cmdline_options_to_array): Remove variable
12525         argv_copied.
12526
12527 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12528
12529         * recog.h, genoutput.c, optabs.c: Revert last patch.
12530
12531 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12532
12533         PR target/48090
12534         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12535
12536 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12537
12538         * recog.h (insn_operand_data): Add an "allows_mem" field.
12539         * genoutput.c (output_operand_data): Initialize it.
12540         * optabs.c (maybe_legitimize_operand_same_code): New function.
12541         (maybe_legitimize_operand): Use it when matching the original
12542         op->value.
12543
12544 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12545
12546         * genpreds.c (process_define_predicate): Move most processing
12547         to gensupport.c.  Continue to validate the expression.
12548         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12549         (process_define_predicate): Move processing to gensupport.c.
12550         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12551         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12552         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
12553         argument.
12554         (valid_predicate_name_p): New function, split out from old
12555         genpreds.c:process_define_predicate.
12556         (process_define_predicate): New function, combining code from
12557         old genpreds.c and genrecog.c functions.
12558         (process_rtx): Call it for DEFINE_PREDICATE and
12559         DEFINE_SPECIAL_PREDICATE.
12560
12561 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12562
12563         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12564         size of a '%A' memory reference.
12565         (T_DREG, T_QREG): New neon_builtin_type_bits.
12566         (arm_init_neon_builtins): Assert that the load and store operands
12567         are neon_struct_operands.
12568         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12569         (NEON_ARG_MEMORY): New builtin_arg.
12570         (neon_dereference_pointer): New function.
12571         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12572         Handle NEON_ARG_MEMORY.
12573         (arm_expand_neon_builtin): Update after above interface changes.
12574         Use NEON_ARG_MEMORY for loads and stores.
12575         * config/arm/predicates.md (neon_struct_operand): New predicate.
12576         * config/arm/iterators.md (V_two_elem): Tweak formatting.
12577         (V_three_elem): Use BLKmode for accesses that have no associated mode.
12578         (V_four_elem): Tweak formatting.
12579         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12580         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12581         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12582         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12583         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12584         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12585         (neon_vst4<mode>): Replace pointer operand with a memory operand.
12586         Use %A in the output template.
12587         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12588         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12589         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12590         the width of the memory access.  Remove post-increment.
12591         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12592
12593 2011-04-12  Nick Clifton  <nickc@redhat.com>
12594
12595         * config/v850/v850.c (expand_prologue): Do not use the CALLT
12596         instruction for interrupt handlers if the target is the basic V850
12597         architecture.
12598         (expand_epilogue): Likewise.
12599
12600 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12601
12602         PR rtl-optimization/48549
12603         * combine.c (propagate_for_debug): Also stop after BB_END of
12604         this_basic_block.  Process LAST and just stop processing after it.
12605         (combine_instructions): If last_combined_insn has been deleted,
12606         set last_combined_insn to its PREV_INSN.
12607
12608 2011-04-12  Richard Guenther  <rguenther@suse.de>
12609
12610         PR tree-optimization/46076
12611         * gimple.h (struct gimple_statement_call): Add fntype field.
12612         (gimple_call_fntype): Adjust.
12613         (gimple_call_set_fntype): New function.
12614         * gimple.c (gimple_build_call_1): Set the call function type.
12615         * gimplify.c (gimplify_call_expr): Preserve the function
12616         type the frontend used for the call.
12617         (gimplify_modify_expr): Likewise.
12618         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12619         function type.
12620         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12621         function type.
12622         * tree-ssa.c (useless_type_conversion_p): Function pointer
12623         conversions are useless.
12624
12625 2011-04-12  Martin Jambor  <mjambor@suse.cz>
12626
12627         * cgraph.h (cgraph_node): Remove function declaration.
12628         (cgraph_create_node): Declare.
12629         (cgraph_get_create_node): Likewise.
12630         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12631         Updated all callers.
12632         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12633         the decl does not already exist.  Call cgraph_get_create_node instead
12634         of cgraph_node.
12635         (cgraph_get_create_node): New function.
12636         (cgraph_same_body_alias): Update comment.
12637         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12638         assert it does not return NULL.
12639         (cgraph_update_edges_for_call_stmt): Likewise.
12640         (cgraph_clone_edge): Likewise.
12641         (cgraph_create_virtual_clone): Likewise.
12642         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12643         instead of cgraph_node.
12644         (cgraph_add_new_function): Call cgraph_create_node or
12645         cgraph_get_create_node instead of cgraph_node.
12646         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12647         instead of cgraph_node.
12648         (record_eh_tables): Likewise.
12649         (mark_address): Likewise.
12650         (mark_load): Likewise.
12651         (build_cgraph_edges): Call cgraph_get_create_node instead
12652         of cgraph_node.
12653         (rebuild_cgraph_edges): Likewise.
12654         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12655         instead of cgraph_node.
12656         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12657         cgraph_node.
12658         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12659         cgraph_create_node instead of cgraph_node.
12660         * c-decl.c (finish_function): Call cgraph_get_create_node instead
12661         of cgraph_node.
12662         * lto-cgraph.c (input_node): Likewise.
12663         * lto-streamer-in.c (input_function): Likewise.
12664         * varasm.c (mark_decl_referenced): Likewise.
12665         (assemble_alias): Likewise.
12666
12667 2011-04-12  Martin Jambor  <mjambor@suse.cz>
12668
12669         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12670         instead of cgraph_node and assert it does not return NULL.
12671         * lto-streamer-in.c (lto_read_body): Likewise.
12672         * omp-low.c (new_omp_context): Likewise.
12673         (create_task_copyfn): Likewise.
12674         * tree-emutls.c (lower_emutls_function_body): Likewise.
12675         * matrix-reorg.c (transform_allocation_sites): Likewise.
12676
12677 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12678
12679         PR c/48552
12680         * c-typeck.c (build_asm_expr): Error out on attempts to use
12681         void type outputs or inputs for constraints that allow reg or
12682         don't allow memory.
12683
12684 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
12685             Richard Earnshaw  <rearnsha@arm.com>
12686
12687         PR target/48250
12688         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12689         to use sign-magnitude offsets. Reject unsupported unaligned
12690         cases. Add detailed description in comments.
12691         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12692         condition from TARGET_32BIT to TARGET_ARM.
12693
12694 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
12695
12696         * tree.h (struct typed_tree): New.
12697         (struct tree_common): Include it instead of tree_base.
12698         (TREE_TYPE): Update for new location of type field.
12699         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12700         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12701         (union tree_node): Add typed field.
12702         * treestruct.def (TS_TYPED): New.
12703         * lto-streamer.c (check_handled_ts_structures): Handle it.
12704         * tree.c (MARK_TS_TYPED): New macro.
12705         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12706
12707 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
12708
12709         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12710         (force_nonfallthru): Do not alter the loop nest if no basic block
12711         was created.
12712
12713 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
12714
12715         * config/i386/sse.md (VI): New mode iterator.
12716         (SSEMODEI): Remove.
12717         (AVX256MODEI): Ditto.
12718         (AVXMODEF4P): Ditto.
12719         (avxvecpsmode): Ditto.
12720         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
12721         (sse2_andnot<mode>3): New expander.
12722         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12723         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
12724         (<any_logic:code><mode>3): Use VI mode iterator.
12725         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12726         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
12727         (*andnottf3): Handle AVX three-operand constraints.
12728         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12729
12730 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12731             Robert Millan  <rmh@gnu.org>
12732
12733         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12734         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12735         GNU_USER_DYNAMIC_LINKER64): Define.
12736         (REG_NAME): Don't undefine.
12737         (MD_UNWIND_SUPPORT): Undefine.
12738         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12739         (REG_NAME): Don't undefine.
12740         (MD_UNWIND_SUPPORT): Undefine.
12741         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
12742
12743 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12744
12745         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12746         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12747
12748 2011-04-11  Xinliang David Li  <davidxl@google.com>
12749
12750         * value-profile.c (check_ic_target): New function.
12751         (gimple_ic_transform): Sanity check indirect call target.
12752         * gimple-low.c (gimple_check_call_args): Interface change.
12753         (gimple_check_call_matching_types): New function.
12754         * tree-inline.c (tree_can_inline_p): Call new function.
12755
12756 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
12757
12758         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12759         tree-pretty-print.h & realmpfr.h.
12760
12761 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
12762
12763         PR middle-end/48464
12764         * ira.c (setup_pressure_classes): Fix typo in loop condition.
12765         (setup_allocno_and_important_classes): Ditto.
12766
12767 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12768
12769         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12770         GNU_USER_DYNAMIC_LINKER.
12771         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12772         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12773         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12774         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12775         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12776         GNU_USER_TARGET_OS_CPP_BUILTINS.
12777         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12778         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12779         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12780         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12781         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12782         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12783         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12784         GNU_USER_TARGET_OS_CPP_BUILTINS.
12785         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12786         GNU_USER_DYNAMIC_LINKER.
12787         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12788         GNU_USER_TARGET_OS_CPP_BUILTINS.
12789         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12790         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12791         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12792         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12793         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12794         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12795         GNU_USER_DYNAMIC_LINKER64): Remove.
12796         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12797         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12798         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12799         GNU_USER_DYNAMIC_LINKER.
12800         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12801         GNU_USER_TARGET_OS_CPP_BUILTINS.
12802         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12803         GNU_USER_TARGET_OS_CPP_BUILTINS.
12804         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12805         to GNU_USER_TARGET_OS_CPP_BUILTINS.
12806         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12807         GNU_USER_TARGET_OS_CPP_BUILTINS.
12808         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12809         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12810         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12811         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12812         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12813         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12814         GNU_USER_DYNAMIC_LINKER.
12815         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12816         GNU_USER_TARGET_OS_CPP_BUILTINS.
12817         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12818         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12819         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12820         GNU_USER_DYNAMIC_LINKER.
12821         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12822         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12823         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12824         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12825         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12826         GNU_USER_DYNAMIC_LINKER.
12827         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12828         GNU_USER_DYNAMIC_LINKERN32.
12829         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12830         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
12831         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
12832         GNU_USER_DYNAMIC_LINKER32.
12833         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12834         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12835         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12836         GNU_USER_DYNAMIC_LINKER.
12837         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12838         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12839         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
12840         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12841         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12842         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
12843         GNU_USER_DYNAMIC_LINKER32.
12844         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12845         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
12846         GNU_USER_DYNAMIC_LINKER.
12847         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
12848         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12849         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12850         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
12851         GNU_USER_DYNAMIC_LINKER64.
12852         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
12853         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12854         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12855         GNU_USER_DYNAMIC_LINKER.
12856         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
12857         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12858         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12859         GNU_USER_DYNAMIC_LINKER.
12860         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
12861         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12862         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12863         GNU_USER_DYNAMIC_LINKER32.
12864         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12865         GNU_USER_DYNAMIC_LINKER64.
12866         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12867         GNU_USER_DYNAMIC_LINKER64.
12868         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
12869         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12870         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
12871         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12872         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12873
12874 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12875
12876         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
12877         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
12878         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
12879         GNU_USER_DYNAMIC_LINKER.
12880         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12881         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
12882         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
12883         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
12884         GNU_USER_DYNAMIC_LINKER64.
12885         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12886         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
12887         GNU_USER_LINK_EMULATION.
12888         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
12889         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
12890         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
12891         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
12892         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
12893         CPP_SPEC, CC1_SPEC): Remove.
12894         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
12895         (GNU_USER_DYNAMIC_LINKER): Define.
12896         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
12897         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
12898         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
12899         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
12900         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
12901         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
12902         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12903         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
12904         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
12905         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
12906         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
12907         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
12908         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
12909         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
12910         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
12911         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12912         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12913         GNU_USER_DYNAMIC_LINKER.
12914         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12915         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
12916         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12917         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
12918         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12919         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
12920         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
12921         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
12922         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
12923         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
12924
12925 2011-04-11  Kai Tietz  <ktietz@redhat.com>
12926
12927         PR target/9601
12928         PR target/11772
12929         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
12930         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
12931         comment.
12932         (ix86_is_msabi_thiscall): Removed.
12933         (ix86_is_type_thiscall): Likewise.
12934         (ix86_get_callcvt): New function.
12935         (ix86_comp_type_attributes): Simplify check.
12936         (ix86_function_regparm): Use ix86_get_callcvt for calling
12937         convention attribute checks.
12938         (ix86_return_pops_args): Likewise.
12939         (ix86_static_chain): Likewise.
12940         (x86_this_parameter): Likewise.
12941         (x86_output_mi_thunk): Likewise.
12942         (ix86_function_type_abi): Optimize check for types without attributes.
12943         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
12944         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
12945         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
12946         by flag-values.
12947         (IX86_BASE_CALLCVT): Helper macro.
12948         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12949         Use ix86_get_callcvt for calling convention attribute checks and avoid
12950         symbol-decoration for stdcall in TARGET_RTD case.
12951         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12952         Likewise.
12953         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
12954         for declaration.
12955
12956 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
12957
12958         * config/i386/sse.md (VI_128): New mode iterator.
12959         (VI12_128): Rename from SSEMODE12.
12960         (VI14_128): Rename from SSEMODE14.
12961         (VI124_128): New mode iterator.
12962         (VI24_128): Rename from SSEMODE248.
12963         (VI248_128): Rename from SSEMODE248.
12964         (SSEMODE124C8): Remove.
12965         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12966         (*sse2_<plusminus_insn><mode>3): Merge with
12967         *avx_<plusminus_insn><mode>3.
12968         (*mulv8hi3): Merge with *avx_mulv8hi3.
12969         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
12970         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
12971         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
12972         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
12973         (ashr<mode>3): Merge with *avx_ashr<mode>3.
12974         (lshr<mode>3): Merge with *avx_lshr<mode>3.
12975         (ashl<mode>3): Merge with *avx_ashl<mode>3.
12976         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
12977         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
12978         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12979         (*<smaxmin:code>v8hi3): Ditto.
12980         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
12981         (*<smaxmin:code>v16qi3): Ditto.
12982         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
12983         (*sse2_eq<mode>3): Ditto.
12984         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
12985         (*sse2_gt<mode>3): Ditto.
12986         (vcondv2di): Split out of vcond<mode>.
12987         (vconduv2di): Split out of vcondu<mode>.
12988
12989 2011-04-11  Richard Guenther  <rguenther@suse.de>
12990
12991         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
12992         before calling tree_low_cst.
12993
12994 2011-04-11  Richard Guenther  <rguenther@suse.de>
12995
12996         * stor-layout.c (layout_type): Compute all array index size operations
12997         in the original type.
12998         (initialize_sizetypes): Add comment.
12999         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13000
13001 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13002
13003         * common.opt (Tbss=, Tdata=, Ttext=): New options.
13004
13005 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13006
13007         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13008         of cgraph_node, handle NULL return value.
13009         (cgraph_global_info): Likewise.
13010         (cgraph_rtl_info): Likewise.
13011         * tree-inline.c (estimate_num_insns): Likewise.
13012         * gimplify.c (unshare_body): Likewise.
13013         (unvisit_body): Likewise.
13014         (gimplify_body): Likewise.
13015         * predict.c (optimize_function_for_size_p): Likewise.
13016         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13017         (call_may_clobber_ref_p_1): Likewise.
13018         * varasm.c (function_section_1): Likewise.
13019         (assemble_start_function): Likewise.
13020
13021 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13022
13023         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13024         of cgraph_node.
13025         * final.c (rest_of_clean_state): Likewise.
13026         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13027         * passes.c (pass_init_dump_file): Likewise.
13028         (execute_all_ipa_transforms): Likewise.
13029         (function_called_by_processed_nodes_p): Likewise.
13030         * predict.c (maybe_hot_frequency_p): Likewise.
13031         (probably_never_executed_bb_p): Likewise.
13032         (compute_function_frequency): Likewise.
13033         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13034         (unnest_nesting_tree_1): Likewise.
13035         (lower_nested_functions): Likewise.
13036         * tree-optimize.c (execute_fixup_cfg): Likewise.
13037         (tree_rest_of_compilation): Likewise.
13038         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13039         * tree-sra.c (ipa_early_sra): Likewise.
13040         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13041         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13042         * ipa.c (record_cdtor_fn): Likewise.
13043         * ipa-inline.c (cgraph_early_inlining): Likewise.
13044         (compute_inline_parameters_for_current): Likewise.
13045         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13046         * ipa-pure-const.c (local_pure_const): Likewise.
13047         * ipa-split.c (split_function): Likewise.
13048         (execute_split_functions): Likewise.
13049         * cgraphbuild.c (build_cgraph_edges): Likewise.
13050         (rebuild_cgraph_edges): Likewise.
13051         (cgraph_rebuild_references): Likewise.
13052         (remove_cgraph_callee_edges): Likewise.
13053         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13054         (verify_cgraph_node): Likewise.
13055         (cgraph_analyze_functions): Likewise.
13056         (cgraph_preserve_function_body_p): Likewise.
13057         (save_inline_function_body): Likewise.
13058         (save_inline_function_body): Likewise.
13059         * tree-inline.c (copy_bb): Likewise.
13060         (optimize_inline_calls): Likewise.
13061
13062 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13063
13064         PR tree-optimization/48195
13065         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13066         ipa_check_create_edge_args.
13067         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13068         ipa_check_create_edge_args.
13069         * ipa-inline.c (inline_generate_summary): Do not call
13070         ipa_check_create_node_params and ipa_check_create_edge_args.
13071         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13072         ipa_check_create_edge_args.
13073
13074 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
13075
13076         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13077         instead of loop.
13078         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13079         * function.c (record_hard_reg_sets): Likewise.
13080         * ira.c (compute_regs_asm_clobbered): Likewise.
13081         * sched-deps.c (sched_analyze_1): Likewise.
13082         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13083
13084 2011-04-09  Xinliang David Li  <davidxl@google.com>
13085
13086         PR tree-optimization/PR48484
13087         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13088         has_valid_pred lazily
13089
13090 2011-04-09  Duncan Sands  <baldrick@free.fr>
13091
13092         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13093
13094 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13095
13096         * combine.c (combine_validate_cost): Adjust comments.  Set registered
13097         cost of I0 to zero at the end, if any.
13098
13099 2011-04-08  Xinliang David Li  <davidxl@google.com>
13100
13101         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13102         to insane profile data.
13103
13104 2011-04-08  Xinliang David Li  <davidxl@google.com>
13105
13106         * ipa-cp.c (ipcp_update_profiling): Correct
13107          negative scale factor due to insane profile data.
13108
13109 2011-04-08  Xinliang David Li  <davidxl@google.com>
13110
13111         * final.c (dump_basic_block_info): New function.
13112         (final): Dump basic block.
13113         (final_scan_insn): Remove old dump.
13114
13115 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
13116
13117         PR target/47829
13118         * config.gcc (i386-*-freebsd): Disable unwind table generation for
13119         crtbegin/crtend.
13120
13121 2011-04-08  Michael Matz  <matz@suse.de>
13122
13123         PR middle-end/48389
13124         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13125         functions.
13126         (rebuild_jump_labels): Call rebuild_jump_labels_1.
13127         * rtl.h (rebuild_jump_labels_chain): Declare.
13128         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13129         insns inserted on edges.
13130
13131 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
13132
13133         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13134         * config/arm/arm-arches.def: New.
13135         * config/arm/arm-opts.h: New.
13136         * config/arm/genopt.sh: New.
13137         * config/arm/arm-tables.opt: New (generated).
13138         * config/arm/arm.c (arm_handle_option, arm_target_help,
13139         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13140         (all_architectures): Get most table contents from arm-arches.def.
13141         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13142         arm_selected_tune here.
13143         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13144         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13145         (march=, mcpu=, mtune=): Use Enum and Var.
13146         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13147         (arm.o): Update dependencies.
13148
13149 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
13150
13151         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13152         of header_file.
13153         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13154         (write_typed_alloc_defns): Likewise.
13155         (main): Calls write_typed_alloc_defns with output_header.
13156
13157 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
13158
13159         PR inline-asm/48435
13160         * ira-color.c (setup_profitable_hard_regs): Add comments.
13161         Don't take prohibited hard regs into account.
13162         (setup_conflict_profitable_regs): Rename to
13163         get_conflict_profitable_regs.
13164         (check_hard_reg_p): Check prohibited hard regs.
13165
13166 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13167
13168         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13169         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13170         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13171
13172 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13173
13174         PR target/48366
13175         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13176         move from floating point to shift amount register.
13177         (emit_move_sequence): Remove secondary reload support for floating
13178         point to shift amount amount register copies.
13179         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13180         amount register copies.
13181         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13182         register, return false if mode isn't a scalar integer mode.
13183         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13184
13185 2011-04-08  Richard Guenther  <rguenther@suse.de>
13186
13187         * gimple.c (gimple_call_flags): Remove kludge.
13188
13189 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13190
13191         * sel-sched.c (sel_region_init): Move call to
13192         sel_setup_region_sched_flags after setup_current_loop_nest.
13193
13194 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
13195
13196         PR rtl-optimization/48272
13197         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13198         init_insn_reg_pressure_info.  Adjust a caller.
13199         * sched-int.h (init_insn_reg_pressure_info): Declare.
13200         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13201         when sched-pressure is enabled.
13202
13203 2011-04-08  Richard Guenther  <rguenther@suse.de>
13204
13205         * gimple.c (gimple_set_modified): Do not queue calls to
13206         MODIFIED_NORETURN_CALLS here ...
13207         * tree-ssa-operands.c (update_stmt_operands): ... but here.
13208
13209 2011-04-08  Richard Guenther  <rguenther@suse.de>
13210
13211         PR lto/48467
13212         * toplev.c (lang_dependent_init): Do not open asm_out_file
13213         in WPA mode, nor perform debug machinery initialization.
13214         (finalize): Do not unlink asm_out_file in WPA mode.
13215
13216 2011-04-08  Richard Guenther  <rguenther@suse.de>
13217
13218         * gimple.h (gimple_call_fntype): New function.
13219         (gimple_call_return_type): Use it.
13220         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13221         * gimple-low.c (gimple_check_call_args): Likewise.
13222         * gimple.c (gimple_call_flags): Likewise.
13223         (gimple_call_arg_flags): Likewise.
13224         (gimple_call_return_flags): Likewise.
13225         * tree-cfg.c (verify_gimple_call): Likewise.
13226         (do_warn_unused_result): Likewise.
13227         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13228         * value-prof.c (gimple_ic_transform): Fix fndecl check.
13229
13230 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
13231
13232         PR rtl-optimization/48235
13233         * sel-sched.c (code_motion_process_successors): Recompute the last
13234         insn in basic block if control flow changed.
13235         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
13236         Update condition for ilist_remove.
13237
13238 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13239
13240         PR rtl-optimization/48302
13241         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13242         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
13243         it to record added preheader blocks.
13244         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
13245         on to sel_add_loop_preheaders.
13246         (sel_region_init): Move call to setup_current_loop_nest after
13247         sel_init_bbs.
13248
13249 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13250
13251         PR target/48273
13252         * cfgloop.h (loop_has_exit_edges): New helper.
13253         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13254         non-clonable.
13255         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13256         that have no exit edges.
13257
13258 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13259
13260         PR rtl-optimization/48442
13261         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
13262         all callers.  Adjust assert.
13263
13264 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
13265
13266         PR tree-optimization/48377
13267         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13268         is_packed to true even for types with smaller TYPE_ALIGN than
13269         TYPE_SIZE.
13270
13271 2011-04-08  Richard Guenther  <rguenther@suse.de>
13272
13273         PR bootstrap/48513
13274         * doc/tm.texi: Re-generate.
13275
13276 2011-04-08  Wei Guozhi  <carrot@google.com>
13277
13278         PR target/47855
13279         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13280         * config/arm/arm.c (arm_attr_length_push_multi): New function.
13281         * config/arm/arm.md (*push_multi): Change the length computation to
13282         call a C function.
13283
13284 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
13285
13286         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13287         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13288         * doc/tm.texi: Regenerate.
13289         * system.h (ASM_OUTPUT_BSS): Poison.
13290         * varasm.c (asm_output_bss): Remove function.
13291         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13292
13293         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13294         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13295         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13296         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13297         Likewise.
13298         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13299         Likewise.
13300         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13301         Likewise.
13302         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13303
13304 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13305
13306         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13307         EnumValue lines.
13308
13309 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13310
13311         * config/m68k/m68k.c (m68k_handle_option): Don't handle
13312         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13313         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13314         OPT_mcpu32.
13315         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13316         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13317         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13318         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13319         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13320         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13321         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13322         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13323         options.  Don't map other m68k options manually.  Don't handle
13324         old-style options as canonical.
13325         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13326         * doc/install.texi (m68k-*-*): Document binutils version requirement.
13327
13328 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
13329
13330         * basic-block.h (force_nonfallthru): Move to...
13331         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13332         (force_nonfallthru): ...here.
13333         * cfghooks.c (force_nonfallthru): New function.
13334         * cfgrtl.c (force_nonfallthru): Rename into...
13335         (rtl_force_nonfallthru): ...this.
13336         (commit_one_edge_insertion): Do not set AUX field.
13337         (commit_edge_insertions): Do not discover new basic blocks.
13338         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13339         (cfg_layout_rtl_cfg_hooks): Likewise.
13340         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13341         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
13342         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13343
13344 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
13345
13346         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13347         Remove macros.
13348
13349 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
13350
13351         * config/i386/sse.md: Update copyright year.
13352         (avxcvtvecmode): Remove.
13353         (sse_movhlps): Merge with *avx_movhlps.
13354         (sse_movlhps): Merge with *avx_movlhps.
13355         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13356         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13357         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13358         (sse_loadhps): Merge with *avx_loadhps.
13359         (sse_storelps): Merge with *avx_storelps.
13360         (sse_loadlps): Merge with *avx_loadlps.
13361         (sse_movss): Merge with *avx_movss.
13362         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13363         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13364         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13365         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13366         (vec_set<mode>_0): Ditto.
13367         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13368         (sse4_1_insertps): Merge with *avx_insertps.
13369         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13370         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13371         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13372         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13373         (sse2_storehpd): Merge with *avx_storehpd.
13374         (sse2_loadhpd): Merge with *avx_loadhpd.
13375         (sse2_loadlpd): Merge with *avx_loadlpd.
13376         (sse2_movsd): Merge with *avx_movsd.
13377         (*vec_concatv2df): Merge with *vec_concatv2df.
13378
13379 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
13380
13381         PR debug/48343
13382         * combine.c (combine_instructions): Add last_combined_insn,
13383         update it if insn is after it, pass it to all try_combine calls.
13384         (try_combine): Add last_combined_insn parameter, pass it instead of
13385         i3 to propagate_for_debug.
13386
13387 2011-04-07  Nick Clifton  <nickc@redhat.com>
13388
13389         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13390         to handle MDR <-> data register transfers.
13391         (movhi_internal): Likewise.
13392
13393 2011-04-07  Alan Modra  <amodra@gmail.com>
13394
13395         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13396         previous stack info.
13397
13398 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13399
13400         PR target/43920
13401         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
13402         flow_find_cross_jump.  Swap variables to implement backward replacement.
13403         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13404
13405 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13406
13407         PR target/43920
13408         * cfgcleanup.c (walk_to_nondebug_insn): New function.
13409         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
13410         and bb2.
13411         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13412         src1 or src2.  Redirect edges to the last basic block.  Update
13413         frequency and count on multiple basic blocks in case of fallthru.
13414
13415 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13416
13417         PR target/43920
13418         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13419         function.
13420         (old_insns_match_p): Change return type.  Replace return false/true
13421         with return dir_none/dir_both.  Use can_replace_by.
13422         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
13423         direction from dir_p.  Register replacement direction in dir, last_dir
13424         and afterlast_dir.  Handle new return type of old_insns_match_p using
13425         merge_dir.  Return replacement direction in dir_p.
13426         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13427         return type of old_insns_match_p.
13428         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13429         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13430         flow_find_cross_jump.
13431         * basic-block.h (enum replace_direction): New type.
13432         (flow_find_cross_jump): Add parameter to declaration.
13433
13434 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
13435
13436         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13437         (AVXMODEDCVTPS2DQ): Ditto.
13438         (VEC_FLOAT_MODE): Ditto.
13439         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
13440         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13441         (<any_logic:code><mode>3): Use VF mode iterator.
13442         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13443         Use VF mode iterator.
13444         (copysign<mode>3): Use VF mode iterator.
13445         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
13446         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13447         (*<any_logic:code><MODEF:mode>3): Merge with
13448         *avx_<any_logic:code><MODEF:mode>3.
13449         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13450         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13451         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13452         (avx_cvtdq2ps<avxmodesuffix>): Remove.
13453         (sse2_cvtdq2ps): Use %v modifier.
13454         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13455         (avx_cvtps2dq<avxmodesuffix>): Remove.
13456         (sse2_cvtps2dq): Use %v modifier.
13457         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13458         (avx_cvttps2dq<avxmodesuffix>): Remove.
13459         (sse2_cvttps2dq): Use %v modifier.
13460         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13461         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13462         (sse2_cvtsd2siq): Fix insn template.
13463         (sse2_cvtsd2siq_2): Ditto.
13464         (sse2_cvttsd2siq): Ditto.
13465         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13466         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13467
13468 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13469
13470         * gcov-io.c: Use GCC Runtime Library Exception.
13471
13472 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
13473
13474         PR debug/48466
13475         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13476         as base_reg whatever register reg has been eliminated to, instead
13477         of hardcoding STACK_POINTER_REGNUM.
13478
13479 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13480
13481         * doc/tm.texi.in: Document C target hooks as separate from general
13482         target hooks.
13483         * doc/tm.texi: Regenerate.
13484         * genhooks.c (struct hook_desc): Add docname field.
13485         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
13486         docname field.
13487         (hook_array): Include c-target.def.
13488         (emit_documentation): Use docname field in output.
13489         (emit_init_macros): Take docname argument.  Only emit definitions
13490         for hooks matching docname.
13491         (main): Expect additional arguments in all cases.  Pass argument
13492         to emit_init_macros.
13493         * target.def: Move initial macro definitions and comments to
13494         target-hooks-macros.h.
13495         (gcc_targetcm): Move to c-family/c-target.def.
13496         * target.h (targetcm): Move declaration to c-family/c-target.h.
13497         * targhooks.c (default_handle_c_option): Move to
13498         c-family/c-opts.c.
13499         * targhooks.h (default_handle_c_option): Move declaration to
13500         c-family/c-common.h.
13501         * target-hooks-macros.h: New file.
13502         * config.gcc (target_has_targetcm): Define and use to add to
13503         c_target_objs and cxx_target_objs.
13504         * config/default-c.c: New file.
13505         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13506         of target.h and target-def.h.
13507         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13508         (darwin_objc_construct_string, darwin_cfstring_ref_p,
13509         darwin_check_cfstring_format_arg): Make static.
13510         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13511         TARGET_STRING_OBJECT_REF_TYPE_P,
13512         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13513         * config/darwin-protos.h (darwin_objc_construct_string,
13514         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13515         declare.
13516         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13517         TARGET_STRING_OBJECT_REF_TYPE_P,
13518         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13519         * config/t-darwin (darwin-c.o): Update dependencies.
13520         * system.h (TARGET_HAS_TARGETCM): Poison.
13521         * Makefile.in (TARGET_H): Update.
13522         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13523         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13524         (default-c.o): New target.
13525         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13526         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13527         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
13528         c-target.def.
13529         (build/genhooks.o): Update dependencies.
13530
13531 2011-04-06  Richard Guenther  <rguenther@suse.de>
13532
13533         * ipa-inline.c (enum inlining_mode): Remove.
13534         (cgraph_flatten): Use some other token.
13535         (cgraph_edge_early_inlinable_p): New function, split out from ...
13536         (cgraph_perform_always_inlining): New function, split out from ...
13537         (cgraph_decide_inlining_incrementally): ... here.
13538         (cgraph_mark_inline_edge): Adjust.
13539         (cgraph_early_inlining): Re-structure.
13540         (pass_early_inline): Require SSA form.
13541
13542 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
13543             Julian Brown  <julian@codesourcery.com>
13544             Mark Shinwell  <shinwell@codesourcery.com>
13545
13546         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13547         LO_REGS only for Thumb-1.
13548         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13549         be used in short instructions when optimising for size on Thumb-2.
13550
13551 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
13552
13553         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13554         associated with user returns to be preserved.
13555
13556 2011-04-06  Tristan Gingold  <gingold@adacore.com>
13557
13558         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13559         symbol_queue_size, DBXOUT_DECR_NESTING,
13560         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13561         if XCOFF_DEBUGGING_INFO.
13562
13563 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
13564
13565         * config/i386/i386.md (attribute isa): New.
13566         (attribute enabled): New.
13567         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13568         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13569         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13570         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13571         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13572         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13573         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13574         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13575
13576         * config/i386/sse.md (VF): New mode iterator.
13577         (VF1): Ditto.
13578         (VF2): Ditto.
13579         (VF_128): Ditto.
13580         (SSEMODEF4): Remove.
13581         (attribute sse): Handle V8SF and V4DF modes.
13582         (<absneg:code><mode>2): Use VF mode iterator.
13583         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
13584         mode iterator.
13585         (<plusminus_insn><mode>3): Use VF mode iterator.
13586         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13587         Use VF mode iterator.
13588         (<sse>_vm<plusminus_insn><mode>3): Merge with
13589         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
13590         (mul<mode>3): Use VF mode iterator.
13591         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
13592         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
13593         mode iterator.
13594         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13595         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13596         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
13597         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
13598         mode iterator.
13599         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13600         Use VF1 mode iterator.
13601         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13602         (sqrt<VF2:mode>2): New expander.
13603         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13604         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13605         and sqrtv2df2.  Use VF mode iterator.
13606         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
13607         mode iterator.
13608         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13609         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13610         Use VF1 mode iterator.
13611         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13612         (<smaxmin:code><mode>3): Use VF mode iterator.
13613         (*<smaxmin:code><mode>3_finite): Merge with
13614         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
13615         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13616         (<sse>_vm<smaxmin:code><mode>2): Merge with
13617         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
13618         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
13619         mode iterator.
13620         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
13621         mode iterator.
13622         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13623         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13624         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13625         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13626         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
13627         VF mode iterator.
13628         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13629         Use VF_128 mode iterator.
13630         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
13631         mode iterator.
13632         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
13633         VF_128 mode iterator.
13634         (vcond<mode>): Use VF mode iterator.
13635         * config/i386/predicates.md (sse_comparison_operator): Merge with
13636         avx_comparison_float_operator.  Do not declare as special_predicate.
13637         * config/i386/i386.c (struct builtin_description): Update for renamed
13638         compare patterns.
13639         (ix86_expand_args_builtin): Ditto.
13640         (ix86_expand_sse_compare_mask): Ditto.
13641
13642 2011-04-06  Richard Guenther  <rguenther@suse.de>
13643
13644         * tree-inline.c (estimate_num_insns): For calls simply account
13645         for all passed arguments and a used return value.
13646
13647 2011-04-06  Richard Guenther  <rguenther@suse.de>
13648
13649         PR tree-optimization/47663
13650         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13651         call_stmt_time fields.
13652         (cgraph_edge_inlinable_p): Declare.
13653         (cgraph_edge_recursive_p): New inline function.
13654         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13655         (cgraph_clone_edge): Copy it.
13656         * ipa-inline.c (cgraph_estimate_edge_time): New function.
13657         Account for call stmt time.
13658         (cgraph_estimate_time_after_inlining): Take edge argument.
13659         (cgraph_estimate_edge_growth): Account call stmt size.
13660         (cgraph_estimate_size_after_inlining): Take edge argument.
13661         (cgraph_mark_inline_edge): Adjust.
13662         (cgraph_check_inline_limits): Likewise.
13663         (cgraph_recursive_inlining_p): Remove.
13664         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13665         (cgraph_decide_recursive_inlining): Take edge argument and
13666         adjust.
13667         (cgraph_decide_inlining_of_small_functions): Do not avoid
13668         diags for recursive inlining here.
13669         (cgraph_flatten): Adjust.
13670         (cgraph_decide_inlining_incrementally): Likewise.
13671         (estimate_function_body_sizes): Remove call cost handling.
13672         (compute_inline_parameters): Initialize caller edge call costs.
13673         (cgraph_estimate_edge_growth): New function.
13674         (cgraph_estimate_growth): Use it.
13675         (cgraph_edge_badness): Likewise.
13676         (cgraph_check_inline_limits): Take an edge argument.
13677         (cgraph_decide_inlining_of_small_functions): Adjust.
13678         (cgraph_decide_inlining): Likewise.
13679         * tree-inline.c (estimate_num_insns): Only account for call
13680         return value if it is used.
13681         (expand_call_inline): Avoid diagnostics on recursive inline
13682         functions here.
13683         * lto-cgraph.c (lto_output_edge): Output edge call costs.
13684         (input_edge): Input edge call costs.
13685
13686 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13687
13688         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13689
13690 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
13691
13692         * doc/invoke.texi (Spec Files): Fix typo.
13693
13694 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
13695
13696         * profile.c (branch_prob): Move declaration of local variable.  Remove
13697         obsolete ??? comment.  Expand the location explicitly instead of using
13698         the LOCATION_FILE and LOCATION_LINE macros.
13699
13700 2011-04-06  Wei Guozhi  <carrot@google.com>
13701
13702         PR target/47855
13703         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13704         (arm_cond_branch): Likewise.
13705         (arm_cond_branch_reversed): Likewise.
13706         (arm_jump): Likewise.
13707         (push_multi): Likewise.
13708         * config/arm/constraints.md (Py): New constraint.
13709
13710 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13711
13712         PR bootstrap/48471
13713         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13714         Move these...
13715         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13716         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13717         #ifdef DBX_DEBUGGING_INFO.
13718
13719 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
13720
13721         PR bootstrap/48403
13722         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13723         if old and new states differ.
13724
13725 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
13726
13727         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13728         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13729         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13730         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13731         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13732         mcfv4e): Use Alias.
13733         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13734         ColdFire options to -mcpu= options.
13735
13736 2011-04-05  Jeff Law  <law@redhat.com>
13737
13738         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13739         check if BB is a successor of LOOP->header and return
13740         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13741
13742 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
13743
13744         * cprop.c (struct reg_use): Remove.
13745         (reg_use_table): Make an array of RTX.
13746         (find_used_regs, constprop_register, local_cprop_pass,
13747         bypass_block): Simplify users of reg_use_table.
13748         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
13749         on one of the uses found by find_used_regs.
13750
13751 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13752
13753         PR bootstrap/48469
13754         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13755         declaration.
13756
13757 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13758
13759         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13760         as an rtx.
13761         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13762
13763 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
13764
13765         PR middle-end/48441
13766         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13767
13768 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13769
13770         * combine.c: Include obstack.h.
13771         (struct insn_link): Define.
13772         (uid_log_links): Adjust type.
13773         (FOR_EACH_LOG_LINK): New macro.
13774         (insn_link_obstack): Declare.
13775         (alloc_insn_link): Define.
13776         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
13777         type of link variables.
13778         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13779         (try_combine, record_promoted_values, distribute_notes): Likewise.
13780         (distribute_links): Likewise.  Tweak prototype.
13781         (clear_log_links): Delete.
13782         (adjust_for_new_dest): Call alloc_insn_link.
13783         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13784
13785 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13786
13787         * gcse.c (modify_mem_list): Convert to an array of VECs.
13788         (canon_modify_mem_list, compute_transp): Tweak formatting.
13789         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
13790         (load_killed_in_block_p): Likewise.
13791         (record_last_mem_set_info): Likewise.
13792         (clear_modify_mem_tables): Likewise.
13793
13794 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13795
13796         PR middle-end/48461
13797         * function.c (emit_use_return_register_into_block): Only define if
13798         HAVE_return.
13799
13800 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
13801
13802         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13803
13804 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
13805
13806         * config/rx/rx-opts.h: New.
13807         * config/rx/rx.c (rx_cpu_type): Remove.
13808         (rx_handle_option): Don't assert that global structures are in
13809         use.  Access variables via opts pointer.  Defer most handling of
13810         OPT_mint_register_.  Use error_at.
13811         (rx_option_override): Handle deferred OPT_mint_register_ here.
13812         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13813         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13814         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13815         (rx_cpu_types): New Enum and EnumValue entries.
13816         (mint-register=): Use Defer and use Var accordingly.
13817
13818 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13819
13820         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13821         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13822         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13823         Move these...
13824         (debug_free_queue, debug_nesting, symbol_queue_index):
13825         ...and these...
13826         * dbxout.c: ...to here.  Make static.
13827
13828 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13829
13830         * gcse.c (modify_pair): Define.  Define a VEC of it.
13831         (canon_modify_mem_list): Convert to an array of VECs.
13832         (free_insn_expr_list_list): Delete.
13833         (clear_modify_mem_tables): Call VEC_free instead.
13834         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13835         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13836         (canon_list_insert, compute_transp): Likewise.
13837
13838 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13839
13840         PR target/43920
13841         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
13842         for size.
13843
13844 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13845
13846         PR target/43920
13847         * function.c (emit_use_return_register_into_block): New function.
13848         (thread_prologue_and_epilogue_insns): Use
13849         emit_use_return_register_into_block.
13850
13851 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13852
13853         PR target/43920
13854         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
13855         insn.
13856
13857 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13858
13859         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
13860
13861 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
13862
13863         * config/arm/arm.md (define_constants for unspec): Replace with
13864         define_c_enum.
13865         (define_constants for unspecv): Replace with define_c_enum.
13866         * config/arm/neon.md (define_constants for unspec): Replace with
13867         define_c_enum.
13868
13869 2011-04-04  Richard Henderson  <rth@redhat.com>
13870
13871         PR bootstrap/48400
13872         * dwarf2out.c (output_line_info): Always emit line info from
13873         at least one section.
13874         (dwarf2out_init): Create text_section_line_info here ...
13875         (set_cur_line_info_table): ... not here.
13876
13877 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
13878
13879         PR target/48380
13880         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
13881         not called.
13882
13883         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
13884
13885 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
13886
13887         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
13888         (expr_equiv_p): Remove.
13889         (insert_set_in_table): Look at <dest, src> pair instead of expr.
13890         (hash_scan_set): Update call to insert_set_in_table.
13891         (dump_hash_table): Dump <dest, src> pair.
13892         (lookup_set): Simplify.  Lookup <dest, src> pair.
13893         (compute_transp): Remove, fold heavily simplified code into...
13894         (compute_local_properties): ...here.  Expect COMP and TRANSP
13895         unconditionally.
13896         (find_avail_set): Take set directly from struct expr.
13897         (find_bypass-set): Likewise.
13898         (bypass_block): Likewise.
13899         (cprop_insn): Likewise.  Remove redundant INSN_P test.
13900
13901         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
13902         checks on form of COND from find_implicit_sets to here.
13903         (find_implicit_sets): Cleanup control flow. Split critical edges
13904         if it exposes implicit sets.  Allocate/resize implicit_sets as
13905         necessary.
13906         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
13907         changed something.  Run df_analyze after find_implicit_sets if any
13908         edges were split.  Do not allocate implicit_sets here.
13909
13910         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
13911         (gcse_obstack): Renamed to cprop_obstack.
13912         (GNEW, GNEWVEC, GNEWVAR): Remove.
13913         (gmalloc): Remove.
13914         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
13915         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
13916         (gcse_alloc): Likewise, and rename to cprop_alloc.
13917         (alloc_gcse_men, free_gcse_mem): Remove.
13918         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
13919         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
13920         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
13921
13922         * cprop.c (oprs_not_set_p): Remove.
13923         (mark_set, mark_clobber): Remove.
13924         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
13925         (reg_not_set_p): New function.
13926         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
13927         (cprop_insn): Likewise.
13928         (cprop_jump): Use FOR_EACH_EDGE.
13929
13930 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
13931
13932         PR bootstrap/48403
13933         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
13934         (rank_for_schedule): Use scheduled_insns vector instead of
13935         last_scheduled_insn.
13936         (ok_for_early_queue_removal): Likewise.
13937         (queue_to_ready): Search forward in nonscheduled_insns_begin if
13938         we have a dbg_cnt.
13939         (choose_ready): Likewise.
13940         (commit_schedule): Use VEC_iterate.
13941         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
13942         a dbg_cnt, use it and ensure the first insn is in the ready list.
13943         (haifa_sched_init): Allocate scheduled_insns.
13944         (sched_extend_ready_list): Don't allocate it; reserve space.
13945         (haifa_sched_finish): Free it.
13946
13947 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
13948
13949         * optc-gen.awk: Always remove type from Variable entry before
13950         recording in var_seen.
13951
13952 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
13953
13954         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
13955         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
13956         call to tidy_fallthru_edges.
13957
13958 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
13959
13960         * doc/options.texi (ToLower): Document.
13961         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
13962         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
13963         * opts.h (cl_option): Add cl_tolower field.
13964         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
13965         arguments with lowercase strings.
13966         * config/rx/rx.opt (mcpu=): Add ToLower.
13967         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
13968         argument.
13969
13970 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
13971
13972         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
13973
13974 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
13975
13976         * config/vax/vax.c: Include reload.h.
13977
13978 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
13979
13980         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
13981         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13982         (sparc_preferred_reload_class): New function.
13983
13984 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
13985
13986         PR debug/48401
13987         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13988         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
13989
13990 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
13991
13992         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
13993         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
13994
13995 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
13996
13997         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
13998         (ASM_OUTPUT_ALIGNED_BSS): Define.
13999
14000 2011-04-03  Michael Matz  <matz@suse.de>
14001
14002         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14003         and next_slot members.
14004         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14005         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14006         (lto_streamer_cache_append): Declare.
14007         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14008         unsigned index, remove offset parameter, ensure that we append
14009         or update existing entries.
14010         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14011         parameter, update next_slot for append.
14012         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14013         parameter.
14014         (lto_streamer_cache_insert_at): Likewise.
14015         (lto_streamer_cache_append): New function.
14016         (lto_streamer_cache_lookup): Use unsigned index.
14017         (lto_streamer_cache_get): Likewise.
14018         (lto_record_common_node): Don't test tree_node_can_be_shared.
14019         (preload_common_node): Adjust call to lto_streamer_cache_insert.
14020         (lto_streamer_cache_delete): Don't free offsets member.
14021         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14022         (lto_output_string_with_length): Use lto_output_data_stream.
14023         (lto_output_tree_header): Remove ix parameter, don't write it.
14024         (lto_output_builtin_tree): Likewise.
14025         (lto_write_tree): Adjust callers to above, don't track and write
14026         offset, write unsigned index.
14027         (output_unreferenced_globals): Don't emit all global vars.
14028         (write_global_references): Use unsigned indices.
14029         (lto_output_decl_state_refs): Likewise.
14030         (write_symbol): Likewise.
14031         * lto-streamer-in.c (lto_input_chain): Move earlier.
14032         (input_function): Use unsigned index.
14033         (input_alias_pairs): Don't read and then ignore all global vars.
14034         (lto_materialize_tree): Remove ix_p parameter, don't read index,
14035         don't pass it back, use lto_streamer_cache_append.
14036         (lto_register_var_decl_in_symtab): Use unsigned index.
14037         (lto_register_function_decl_in_symtab): Likewise.
14038         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14039         index.
14040         (lto_get_builtin_tree): Don't read index, use
14041         lto_streamer_cache_append.
14042         (lto_read_tree): Adjust call to lto_materialize_tree.
14043
14044         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14045         don't use function calls in arguments to MIN.
14046
14047         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14048         twice.
14049
14050         * gimple.c (gimple_type_leader_entry): Mark deletable.
14051
14052 2011-04-03  Alan Modra  <amodra@gmail.com>
14053
14054         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14055
14056 2011-04-03  Michael Matz  <matz@suse.de>
14057
14058         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14059         an integer.
14060         * tree.h (tree_decl_non_common.vindex): Adjust comment.
14061
14062 2011-04-03  Michael Matz  <matz@suse.de>
14063
14064         * cgraphbuild.c (record_reference): Canonicalize constructor values.
14065         * gimple-fold.c (canonicalize_constructor_val): Accept being called
14066         without function context.
14067         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14068         current_function_decl and cfun.
14069
14070 2011-04-03  Michael Matz  <matz@suse.de>
14071
14072         * tree.c (decl_init_priority_insert): Don't create entry for
14073         default priority.
14074         (decl_fini_priority_insert): Ditto.
14075         (fields_compatible_p, find_compatible_field): Remove.
14076         * tree.h (fields_compatible_p, find_compatible_field): Remove.
14077         * gimple.c (gimple_compare_field_offset): Adjust block comment.
14078
14079 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
14080
14081         * combine.c (try_combine): Remove useless local variable.
14082
14083 2011-04-03  Richard Guenther  <rguenther@suse.de>
14084             Ira Rosen  <ira.rosen@linaro.org>
14085
14086         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14087         non-variable offsets and compare the remaining bases of the two
14088         accesses instead of looking for exact same data-ref.
14089
14090 2011-04-02  Kai Tietz  <ktietz@redhat.com>
14091
14092         PR target/48416
14093         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14094
14095         * i386.c (ix86_is_msabi_thiscall): New helper function.
14096         (ix86_is_type_thiscall): New helper function.
14097         (ix86_comp_type_attributes): Handle thiscall for method-functions
14098         special.
14099         (init_cumulative_args): Likewise.
14100         (find_drap_reg): Likewise.
14101         (ix86_static_chain): Likewise.
14102         (x86_this_parameter): Likewise.
14103         (x86_output_mi_thunk): Likewise.
14104
14105 2011-04-01  Olivier Hainque  <hainque@adacore.com>
14106             Nicolas Setton  <setton@adacore.com>
14107             Eric Botcazou  <ebotcazou@adacore.com>
14108
14109         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14110         (add_gnat_descriptive_type_attribute): New function.
14111         (gen_array_type_die): Call it.
14112         (gen_enumeration_type_die): Likewise.
14113         (gen_struct_or_union_type_die): Likewise.
14114         (modified_type_die): Likewise.
14115         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14116         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14117         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14118
14119 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14120
14121         PR bootstrap/48148
14122         * dwarf2out.c (resolve_addr): Don't call force_decl_die
14123         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14124
14125         Revert:
14126         2011-03-17  Richard Guenther  <rguenther@suse.de>
14127
14128         PR bootstrap/48148
14129         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14130         origin for decls in other ltrans units.
14131         (input_varpool_node): Likewise.
14132
14133 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14134
14135         PR middle-end/48335
14136         * expr.c (expand_assignment): Handle all possibilities
14137         if TO_RTX is CONCAT.
14138         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14139         (store_split_bit_field): If SUBREG_REG (op0) or
14140         op0 itself has smaller mode than word, return it
14141         for offset 0 and const0_rtx for out-of-bounds stores.
14142         If word is const0_rtx, skip it.
14143
14144 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
14145
14146         * config/h8300/h8300.c (print_operand_address): Rename to...
14147         (h8300_print_operand_address): ...this. Make static. Adjust comments.
14148         Call h8300_print_operand and h8300_print_operand_address instead of
14149         print_operand and print_operand_address. Declare.
14150         (print_operand): Renake to...
14151         (h8300_print_operand): ...this. Make static. Adjust comments.
14152         Call h8300_print_operand instead of print_operand. Declare.
14153         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14154         (h8300_register_move_cost): Likewise.
14155         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14156         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14157         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14158         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14159         * config/h8300/h8300-protos.h (print_operand): Delete.
14160         (print_operand_address): Delete.
14161
14162 2011-04-01  Richard Henderson  <rth@redhat.com>
14163
14164         PR 48400
14165         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14166         in strict mode before dwarf4.  Re-order tests to early out
14167         before switching sections.
14168
14169 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
14170
14171         * config/h8300/constraints.md: New file.
14172         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
14173         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14174         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14175         * config/h8300/predicates.md (bit_operand): Likewise.
14176         (incdec_operand): Use satisfies_constraint_M and
14177         satisfies_constraint_O.  Don't use C code block.
14178         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14179         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14180         (compute_mov_length): Use satisfies_constraint_G.
14181         (fix_bit_operand): Use satisfies_constraint_U.
14182         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14183         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14184         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14185         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14186         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14187         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14188         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14189         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14190         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14191         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14192         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14193         (EXTRA_MEMORY_CONSTRAINT): Delete.
14194
14195 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
14196             Michael Meissner  <meissner@linux.vnet.ibm.com>
14197
14198         PR target/48262
14199         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14200         operands, as per the specifications.
14201
14202         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14203         (vec_extract_evenv4sf): Ditto.
14204         (vec_extract_evenv8hi): Ditto.
14205         (vec_extract_evenv16qi): Ditto.
14206         (vec_extract_oddv4si): Ditto.
14207
14208 2011-03-31  Mark Wielaard  <mjw@redhat.com>
14209
14210         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14211         high_pc attribute if the CU has no associated code. Only output
14212         DW_AT_entry_pc for CU if not generating strict dwarf and
14213         dwarf_version < 4.
14214
14215 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
14216
14217         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14218         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14219         out of ...
14220         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14221         * final.c (final_start_function): Call the new function rather
14222         than using a NULL argument for dwarf2out_frame_debug.
14223
14224         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14225         that contains the prologue.
14226
14227         * haifa-sched.c (queue_insn): New arg REASON.  All callers
14228         changed.  Print it in debugging output.
14229
14230         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14231
14232         * sched-ebb.c (begin_schedule_ready): Remove second argument.
14233         Split most of the code into...
14234         (begin_move_insn): ... here.  New function.
14235         (ebb_sched_info): Add a pointer to it.
14236         * haifa-sched.c (scheduled_insns): New static variable.
14237         (sched_extend_ready_list): Allocate it.
14238         (schedule_block): Use it to record the order of scheduled insns.
14239         Perform RTL changes to move insns only after all scheduling
14240         decisions have been made.
14241         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14242         begin_move_insn field.
14243         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14244         * sched-int.h (struct haifa_sched_info): Remove second argument
14245         from begin_schedule_ready hook.  Add new member begin_move_insn.
14246         * sched-rgn.c (begin_schedule_ready): Remove second argument.
14247         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14248
14249         * haifa-sched.c (prune_ready_list): New function, broken out of
14250         schedule_block.
14251         (schedule_block): Use it.
14252
14253 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14254
14255         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14256
14257 2011-04-01  Kai Tietz  <ktietz@redhat.com>
14258
14259         * config.gcc (*-*-mingw*): Allow as option the
14260         posix threading model.
14261         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
14262         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14263         definition.
14264         (CPP_SPEC): Add pthread/no-pthread handling.
14265         (LIB_SPEC): Likewise.
14266         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14267         (LIB_SPEC): Likewise.
14268         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14269         flag to pass -pthread option for shared libgcc build.
14270         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14271         for shared libgcc build.
14272         * config/i386/t-mingw-pthread: New file.
14273         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14274         New define to enable use of library pthread by default.
14275         * config/i386/mingw.opt (pthread): New driver option.
14276         (no-pthread): New driver option.
14277         * config/i386/cygming.opt: Make sure trailing empty line is retained.
14278         * config/i386/mingw-w64.opt: Likewise.
14279
14280 2011-04-01  Gary Funck  <gary@intrepid.com>
14281
14282         * c-decl.c (grokdeclarator): Fix formatting.
14283
14284 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14285
14286         * expr.c (emit_block_move_via_movmem): Use n_generator_args
14287         instead of n_operands.
14288         (set_storage_via_setmem): Likewise.
14289         * optabs.c (maybe_gen_insn): Likewise.
14290         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14291         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14292         (mips_expand_builtin_direct): Likewise.
14293         * config/spu/spu.c (expand_builtin_args): Likewise.
14294
14295 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14296
14297         * recog.h (insn_data_d): Add n_generator_args.
14298         * genoutput.c (data): Likewise.
14299         (output_insn_data): Print it.
14300         (max_opno, num_dups): Delete.
14301         (scan_operands): Just fill in "d->operand[...]".
14302         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14303
14304 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14305
14306         * gensupport.h (pattern_stats): New structure.
14307         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14308         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14309         (max_operand_1, max_operand_vec): Delete.
14310         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14311
14312 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
14313
14314         * emit-rtl.c (emit_pattern_after_setloc): New function.
14315         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14316         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14317         (emit_pattern_after): New function.
14318         (emit_insn_after, emit_jump_insn_after): Call it.
14319         (emit_call_insn_after, emit_debug_insn_after): Likewise.
14320         (emit_pattern_before_setloc): New function.
14321         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14322         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14323         Likewise.
14324         (emit_pattern_before): New function.
14325         (emit_insn_before, emit_jump_insn_before): Call it.
14326         (emit_call_insn_before, emit_debug_insn_before): Likewise.
14327
14328 2011-03-31  Richard Henderson  <rth@redhat.com>
14329
14330         * dwarf2out.c (dw_separate_line_info_ref): Remove.
14331         (dw_separate_line_info_entry): Remove.
14332         (enum dw_line_info_opcode): New.
14333         (dw_line_info_entry): Use it.
14334         (dw_line_info_table, dw_line_info_table_p): New.
14335         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14336         (line_info_table, line_info_label_num): Remove.
14337         (line_info_table_in_use): Remove.
14338         (separate_line_info_table): Remove.
14339         (separate_line_info_table_allocated): Remove.
14340         (separate_line_info_table_in_use): Remove.
14341         (LINE_INFO_TABLE_INCREMENT): Remove.
14342         (line_info_label_num): New.
14343         (cur_line_info_table): New.
14344         (text_section_line_info, cold_text_section_line_info): New.
14345         (separate_line_info): New.
14346         (SEPARATE_LINE_CODE_LABEL): Remove.
14347         (print_dwarf_line_table): Remove.
14348         (debug_dwarf): Don't dump it.
14349         (output_one_line_info_table): New.
14350         (output_line_info): Use it.
14351         (new_line_info_table): New.
14352         (set_cur_line_info_table): New.
14353         (dwarf2out_switch_text_section): Use it.
14354         (dwarf2out_begin_function): Likewise.
14355         (push_dw_line_info_entry): New.
14356         (dwarf2out_source_line): Rewrite for new line info tables.
14357         (dwarf2out_init): Remove dead initailizations.
14358
14359 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14360
14361         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
14362         various flags.
14363         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14364         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14365         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14366         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14367         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14368         * opt-functions.awk (flag_init, switch_bit_fields): New.
14369         (switch_flags): Don't handle flags moved to bit-fields.  Don't
14370         generate CL_MISSING_OK or CL_SAVE.
14371         * optc-gen.awk: Update to generate bit-field output as well as
14372         flags field.
14373         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14374         bit-field instead of CL_REJECT_DRIVER flag.
14375         * opts-common.c (generate_canonical_option,
14376         decode_cmdline_option): Use bit-fields instead of CL_* flags.
14377         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14378         instead of CL_REJECT_NEGATIVE flag.
14379         * toplev.c (print_switch_values): Use cl_report bit-field instead
14380         of CL_REPORT flag.
14381
14382 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
14383
14384         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14385         a zero minimum index only if it is redundant.
14386
14387 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
14388
14389         PR rtl-optimization/48381
14390         * ira-color.c (assign_hard_reg): Use hard reg set intersection
14391         instead of ira_class_hard_reg_index for calculating conflicting
14392         hard registers.
14393
14394 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
14395
14396         * cprop.c: Clean up hash table building.
14397         (reg_avail_info): Remove.
14398         (oprs_available_p): Remove.
14399         (record_last_reg_set_info): Remove.
14400         (record_last_set_info): Remove.
14401         (reg_available_p): New function.
14402         (gcse_constant_p): Do not treat unfolded conditions as constants.
14403         (make_set_regs_unavailable): New function.
14404         (hash_scan_set): Simplify with new reg_available_p.
14405         (compute_hash_table_work): Traverse insns stream only once.
14406         Do not compute reg_avail_info. Traverse insns in reverse order.
14407         Record implicit sets after recording explicit sets from the block.
14408
14409 2011-03-31  Michael Matz  <matz@suse.de>
14410
14411         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14412
14413 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
14414
14415         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14416         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14417         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14418         (h8300_mode_dependent_address_p): New function.
14419         (h8300_get_index): Make static.
14420
14421 2011-03-31  Jeff Law  <law@redhat.com>
14422
14423         * reload1.c (elimination_effects): Fix typo in recent change.
14424
14425         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14426         typo potentially leading to null pointer dereference.
14427
14428         * caller-save.c (new_saved_hard_reg): Eliminate return value.
14429         (setup_save_areas): Corresponding changes to avoid useless
14430         assignments.
14431
14432         * jump.c (reversed_comparison_code_parts): Avoid successive return
14433         statements when REVERSE_CONDITION is defined.
14434
14435         * expr.c (expand_assignment): Avoid useless assignments.
14436         (expand_expr_real_1): Likewise.
14437         (expand_expr_real_2): Avoid useless statements.
14438
14439         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14440
14441         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14442
14443         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14444         statements.
14445
14446         * stmt.c (expand_expr_stmt): Avoid useless assignment.
14447
14448 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14449
14450         PR target/47109
14451         * doc/tm.texi.in (TARGET_VERSION): Remove.
14452         * doc/tm.texi: Regenerate.
14453         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14454         * collect2.c (main): Don't use TARGET_VERSION.
14455         * mips-tdump.c (main): Don't use TARGET_VERSION.
14456         * mips-tfile.c (main): Don't use TARGET_VERSION.
14457         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14458         * config/rs6000/vxworksae.h: Remove.
14459         * config/alpha/alpha.h (TARGET_VERSION): Remove.
14460         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14461         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14462         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14463         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14464         * config/arm/arm.h (TARGET_VERSION): Remove.
14465         * config/arm/coff.h (TARGET_VERSION): Remove.
14466         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14467         * config/arm/elf.h (TARGET_VERSION): Remove.
14468         * config/arm/freebsd.h (TARGET_VERSION): Remove.
14469         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14470         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14471         * config/arm/pe.h (TARGET_VERSION): Remove.
14472         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14473         * config/arm/semi.h (TARGET_VERSION): Remove.
14474         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14475         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14476         * config/arm/vxworks.h (TARGET_VERSION): Remove.
14477         * config/avr/avr.h (TARGET_VERSION): Remove.
14478         * config/bfin/bfin.h (TARGET_VERSION): Remove.
14479         * config/fr30/fr30.h (TARGET_VERSION): Remove.
14480         * config/frv/frv.h (TARGET_VERSION): Remove.
14481         * config/h8300/h8300.h (TARGET_VERSION): Remove.
14482         * config/i386/cygwin.h (TARGET_VERSION): Remove.
14483         * config/i386/darwin.h (TARGET_VERSION): Remove.
14484         * config/i386/darwin64.h (TARGET_VERSION): Remove.
14485         * config/i386/djgpp.h (TARGET_VERSION): Remove.
14486         * config/i386/freebsd.h (TARGET_VERSION): Remove.
14487         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14488         * config/i386/gnu.h (TARGET_VERSION): Remove.
14489         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14490         * config/i386/i386elf.h (TARGET_VERSION): Remove.
14491         * config/i386/linux.h (TARGET_VERSION): Remove.
14492         * config/i386/linux64.h (TARGET_VERSION): Remove.
14493         * config/i386/lynx.h (TARGET_VERSION): Remove.
14494         * config/i386/mingw32.h (TARGET_VERSION): Remove.
14495         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14496         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14497         * config/i386/netware.h (TARGET_VERSION): Remove.
14498         * config/i386/nto.h (TARGET_VERSION): Remove.
14499         * config/i386/openbsd.h (TARGET_VERSION): Remove.
14500         * config/i386/vxworks.h (TARGET_VERSION): Remove.
14501         * config/ia64/elf.h (TARGET_VERSION): Remove.
14502         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14503         * config/ia64/hpux.h (TARGET_VERSION): Remove.
14504         * config/ia64/linux.h (TARGET_VERSION): Remove.
14505         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14506         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14507         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14508         * config/lm32/lm32.h (TARGET_VERSION): Remove.
14509         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14510         * config/m32c/m32c.h (TARGET_VERSION): Remove.
14511         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14512         * config/m32r/m32r.h (TARGET_VERSION): Remove.
14513         * config/m68k/linux.h (TARGET_VERSION): Remove.
14514         * config/m68k/m68k.h (TARGET_VERSION): Remove.
14515         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14516         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14517         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14518         * config/mep/mep.h (TARGET_VERSION): Remove.
14519         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14520         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14521         * config/mips/iris6.h (MACHINE_TYPE): Remove.
14522         * config/mips/linux.h (TARGET_VERSION): Remove.
14523         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14524         * config/mips/vxworks.h (TARGET_VERSION): Remove.
14525         * config/mmix/mmix.h (TARGET_VERSION): Remove.
14526         * config/mn10300/linux.h (TARGET_VERSION): Remove.
14527         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14528         * config/pa/pa.h (TARGET_VERSION): Remove.
14529         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14530         * config/picochip/picochip.h (TARGET_VERSION): Remove.
14531         * config/rs6000/aix.h (TARGET_VERSION): Remove.
14532         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14533         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14534         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14535         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14536         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14537         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14538         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14539         * config/rs6000/linux.h (TARGET_VERSION): Remove.
14540         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14541         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14542         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14543         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14544         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14545         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14546         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14547         * config/s390/linux.h (TARGET_VERSION): Remove.
14548         * config/s390/s390.h (TARGET_VERSION): Remove.
14549         * config/s390/tpf.h (TARGET_VERSION): Remove.
14550         * config/score/score.h (TARGET_VERSION): Remove.
14551         * config/sh/linux.h (TARGET_VERSION): Remove.
14552         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14553         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14554         * config/sh/sh.h (TARGET_VERSION): Remove.
14555         * config/sh/sh64.h (TARGET_VERSION): Remove.
14556         * config/sh/superh.h (TARGET_VERSION): Remove.
14557         * config/sh/vxworks.h (TARGET_VERSION): Remove.
14558         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14559         * config/sparc/linux.h (TARGET_VERSION): Remove.
14560         * config/sparc/linux64.h (TARGET_VERSION): Remove.
14561         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14562         TARGET_NAME32, TARGET_NAME): Remove.
14563         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14564         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14565         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14566         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14567         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14568         * config/spu/spu.h (TARGET_VERSION): Remove.
14569         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14570         * config/v850/v850.h (TARGET_VERSION): Remove.
14571         * config/vax/linux.h (TARGET_VERSION): Remove.
14572         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14573         * config/xtensa/elf.h (TARGET_VERSION): Remove.
14574         * config/xtensa/linux.h (TARGET_VERSION): Remove.
14575
14576 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
14577
14578         PR target/48142
14579         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14580         frame-related from frame-unrelated adjustments to the stack pointer.
14581
14582 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
14583
14584         * common.opt (fdebug-types-section): Move earlier.
14585         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14586
14587 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
14588
14589         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14590         var.
14591
14592 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
14593
14594         * tree.h (CASE_CHAIN): Define.
14595         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14596         (gimple_redirect_edge_and_branch): Likewise.
14597
14598 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14599
14600         PR middle-end/48367
14601         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14602         calculation.
14603
14604 2011-03-30  Jeff Law  <law@redhat.com>
14605
14606         * PR bootstrap/48371
14607         * reload1.c (reload): Fix botch in last change.
14608
14609         * reload.h (struct reload): Fix typo introduced in last change.
14610
14611 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
14612
14613         * config/arm/arm.opt (mhard-float, msoft-float): Mark
14614         Undocumented.  Remove help text.
14615         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14616         -mhard-float.
14617
14618 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
14619
14620         * doc/options.texi (NegativeAlias): Document.
14621         (Alias): Mention NegativeAlias.
14622         * opt-functions.awk: Handle NegativeAlias.
14623         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
14624         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14625         * opts.h (CL_NEGATIVE_ALIAS): Define.
14626         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14627         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14628         OPT_mspe_.
14629         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14630         Alias entries.
14631         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14632         mno-spe and mno-isel instead of mspe=no and -misel=no.
14633
14634 2011-03-29  Mark Wielaard  <mjw@redhat.com>
14635
14636         * common.opt (fdebug-types-section): New flag.
14637         * doc/invoke.texi: Document new -fno-debug-types-section flag.
14638         * dwarf2out.c (use_debug_types): New define.
14639         (struct die_struct): Mark die_id with GTY desc use_debug_types.
14640         (print_die): Guard output of type unit signatures using
14641         use_debug_types.
14642         (build_abbrev_table): Replace assert of dwarf_version >= 4
14643         with assert on use_debug_types.
14644         (size_of_die): Likewise.
14645         (unmark_dies): Likewise.
14646         (value_format): Decide AT_ref_external form on use_debug_types.
14647         (output_die): Replace dwarf_version version check guard with
14648         use_debug_types where appropriate.
14649         (modified_type_die): Likewise.
14650         (gen_reference_type_die): Likewise.
14651         (dwarf2out_start_source_file): Likewise.
14652         (dwarf2out_end_source_file): Likewise.
14653         (prune_unused_types_walk_attribs): Likewise.
14654         (dwarf2out_finish): Likewise.
14655
14656 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14657
14658         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14659
14660 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
14661
14662         PR rtl-optimization/48332
14663         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14664         mode of input operand N and modeN to its actual mode.
14665
14666 2011-03-30  Jeff Law  <law@redhat.com>
14667
14668         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14669         define accessor macro.
14670         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14671         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14672         (reg_equiv_init): Likewise.
14673         (reg_equivs_size): New variable.
14674         (reg_equiv_init_size): Remove.
14675         (allocate_initial_values): Move prototype to here from....
14676         * integrate.h (allocate_initial_values): Remove prototype.
14677         * integrate.c: Include reload.h.
14678         (allocate_initial_values): Corresponding changes.
14679         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14680         (fix_reg_equiv_init, no_equiv): Corresponding changes.
14681         (update_equiv_regs): Corresponding changes.
14682         (ira): Corresponding changes.
14683         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14684         (push_secondary_reload): Corresponding changes.
14685         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14686         (make_memloc, find_reloads_address): Corresponding changes.
14687         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14688         (find_reloads_address_1): Corresponding changes.
14689         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14690         (refers_to_regno_for_reload_p): Corresponding changes.
14691         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14692         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14693         * reload1.c: Include ggc.h.
14694         (grow_reg_equivs): New function.
14695         (replace_pseudos_in, reload): Corresponding changes.
14696         (calculate_needs_all_insns, alter_regs): Corresponding changes.
14697         (eliminate_regs_1, elimination_effects): Corresponding changes.
14698         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14699         (delete_output_reload): Likewise.
14700         * caller-save.c (mark_referenced_regs): Corresponding changes.
14701         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14702         * frv/predicates.md (frv_load_operand): Corresponding changes.
14703         * microblaze/microblaze.c (double_memory_operand): Corresponding
14704         changes.
14705         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14706         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
14707         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
14708         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14709         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14710         changes.
14711         * pa/pa.c (emit_move_sequence): Corresponding changes.
14712         * vax/vax.c (nonindexed_address_p): Corresponding changes.
14713
14714 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
14715
14716         PR target/47551
14717         * config/arm/arm.c (coproc_secondary_reload_class): Handle
14718         structure modes.  Don't check neon_vector_mem_operand for
14719         vector or structure modes.
14720
14721 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
14722             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14723
14724         PR target/43590
14725         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14726         operand 1 and reshuffle the operands to match.
14727         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14728
14729 2011-03-30  Christian Schüler  <cschueler@gmx.de>
14730
14731         PR driver/48208
14732         * config/c.opt (F): Added 'Driver' to -F option.
14733
14734         PR driver/48260
14735         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14736           handler function.
14737         * config/darwin.opt: Added '-arch' option.
14738
14739 2011-03-30  Nick Clifton  <nickc@redhat.com>
14740
14741         * config/rx/rx.md: Add peepholes and patterns to combine
14742         extending loads and simple arithmetic instructions.
14743         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
14744         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14745         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
14746         modes to use pre-decrement and post-increment addressing.
14747         (rx_is_restricted_memory_address): Add range checking of REG+INT
14748         addresses.
14749         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
14750         (rx_memory_move_cost): Adjust cost of stores.
14751         (rx_adjust_insn_length): New function.
14752
14753 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
14754
14755         PR c/48305
14756         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14757         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14758         matching arg00/arg01 types.
14759
14760 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
14761
14762         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14763         last_location to UNKNOWN_LOCATION.
14764
14765 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
14766
14767         PR target/48349
14768         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14769         FLOAT_SSE_REGS.
14770
14771 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
14772             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14773
14774         PR bootstrap/48337
14775         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14776         Init(PROCESSOR_V7).
14777         (sparc_cpu): Likewise.
14778         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14779         PROCESSOR_V7.
14780
14781 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
14782
14783         PR target/48336
14784         PR middle-end/48342
14785         PR rtl-optimization/48345
14786         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14787         hard regs for given mode from profitable regs when doing secondary
14788         allocation.
14789
14790 2011-03-29  Jeff Law  <law@redhat.com>
14791
14792         PR bootstrap/48327
14793         * tree-ssa-threadupdate.c (struct redirection_data): Remove
14794         do_not_duplicate field.
14795         (lookup_redirection_data): Corresponding changes.
14796         (create_duplicates): Always create a template block.
14797         (redirect_edges): Remove code which reused the original block
14798         when it was going to become unreachable code.
14799         (thread_block): Don't set do_not_duplicate field.
14800
14801 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
14802
14803         * lto-opts.c (register_user_option_p, lto_register_user_option):
14804         Make type argument unsigned.
14805         * lto-streamer.h (lto_register_user_option): Make type argument
14806         unsigned.
14807         * opth-gen.awk: Make CL_* macros unsigned.
14808         * opts-common.c (find_opt): Make lang_mask argument unsigned.
14809         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14810         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14811         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14812         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14813         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14814         (find_opt): Make lang_mask argument unsigned.
14815
14816 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
14817
14818         PR rtl-optimization/48331
14819         PR rtl-optimization/48334
14820         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14821         for any used algorithm.
14822
14823 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
14824
14825         * ira-conflicts.c (build_object_conflicts): Add unused attribute
14826         to parent_max.
14827
14828 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
14829
14830         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14831         (alpha_option_override): Don't set alpha_sr_alias_set.
14832         (emit_frame_store_1): Use gen_frame_mem rather than calling
14833         set_mem_alias_set.
14834         (alpha_expand_epilogue): Ditto.
14835
14836 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
14837
14838         PR tree-optimization/48290
14839         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
14840         vectorization, check that relevant phis in the basic block after
14841         the inner loop are really inner loop's exit phis.
14842
14843 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
14844
14845         PR debug/48190
14846         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
14847         (cached_dw_loc_list_def): New structure.
14848         (cached_dw_loc_list): New typedef.
14849         (cached_dw_loc_list_table): New variable.
14850         (cached_dw_loc_list_table_hash): New function.
14851         (cached_dw_loc_list_table_eq): Likewise.
14852         (add_location_or_const_value_attribute): Take a bool cache_p.
14853         Cache the list when the parameter is true.
14854         (gen_formal_parameter_die): Update caller.
14855         (gen_variable_die): Likewise.
14856         (dwarf2out_finish): Likewise.
14857         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
14858         while generating debug info for the decl.
14859         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
14860         (dwarf2out_init): Initialize cached_dw_loc_list_table.
14861         (resolve_addr): Cache the result of resolving a chain of
14862         location lists.
14863
14864 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
14865
14866         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
14867         conflict object hard regset nodes have intersecting hard reg sets.
14868
14869         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
14870         after regstat_init_n_sets_and_refs.
14871
14872         * ira.c: Add more comments at the top.
14873         (setup_stack_reg_pressure_class, setup_pressure_classes):
14874         Add comments how we compute the register pressure classes.
14875         (setup_allocno_and_important_classes): Add more comments.
14876         (setup_class_translate_array, reorder_important_classes)
14877         (setup_reg_class_relations): Add comments.
14878
14879         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
14880         start of the file.
14881
14882         * ira-color.c: Add 2011 to the Copyright line.
14883         (assign_hard_reg):  Add more comments.
14884         (improve_allocation): Ditto.
14885
14886         * ira-costs.c: Add 2011 to the Copyright line.
14887         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
14888         comments.
14889         (setup_regno_cost_classes_by_mode): Ditto.
14890
14891         Initial patches from ira-improv branch:
14892
14893         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
14894
14895         * ira-build.c (ira_create_object): Remove initialization of
14896         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
14897         (ira_create_allocno): Remove initialization of
14898         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
14899         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
14900         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14901         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
14902         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
14903         Initialize ALLOCNO_ADD_DATA.
14904         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
14905         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
14906         ALLOCNO_REG.
14907         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
14908         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
14909
14910         * ira.c (ira_reallocate): Remove.
14911         (setup_pressure_classes): Call
14912         ira_init_register_move_cost_if_necessary.  Use
14913         ira_register_move_cost instead of ira_get_register_move_cost.
14914         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
14915         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
14916
14917         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
14918         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14919         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
14920         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
14921         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
14922         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
14923         Fix formatting.
14924         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
14925         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14926         (struct allocno_color_data): New.
14927         (allocno_color_data_t): New typedef.
14928         (allocno_color_data): New definition.
14929         (ALLOCNO_COLOR_DATA): New macro.
14930         (struct object_color_data): New.
14931         (object_color_data_t): New typedef.
14932         (object_color_data): New definition.
14933         (OBJECT_COLOR_DATA): New macro.
14934         (update_copy_costs, calculate_allocno_spill_cost): Call
14935         ira_init_register_move_cost_if_necessary.  Use
14936         ira_register_move_cost instead of ira_get_register_move_cost.
14937         (move_spill_restore, update_curr_costs): Ditto.
14938         (allocno_spill_priority): Make it inline.
14939         (color_pass): Allocate and free allocno_color_dat and object_color_data.
14940         (struct coalesce_data, coalesce_data_t): New.
14941         (allocno_coalesce_data): New definition.
14942         (ALLOCNO_COALESCE_DATA): New macro.
14943         (merge_allocnos, coalesced_allocno_conflict_p): Use
14944         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
14945         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
14946         (coalesce_allocnos): Ditto.
14947         (setup_coalesced_allocno_costs_and_nums): Ditto.
14948         (collect_spilled_coalesced_allocnos): Ditto.
14949         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
14950         (setup_slot_coalesced_allocno_live_ranges): Ditto.
14951         (coalesce_spill_slots): Ditto.
14952         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
14953         free allocno_coalesce_data.
14954
14955         * ira-conflicts.c: Fix formatting.
14956         (process_regs_for_copy): Call
14957         ira_init_register_move_cost_if_necessary.  Use
14958         ira_register_move_cost instead of ira_get_register_move_cost.
14959         (build_object_conflicts): Optimize.
14960
14961         * ira-costs.c (record_reg_classes): Optimize.  Call
14962         ira_init_register_move_cost_if_necessary.  Use
14963         ira_register_move_cost, ira_may_move_in_cost, and
14964         ira_may_move_out_cost instead of ira_get_register_move_cost and
14965         ira_get_may_move_cost.
14966         (record_address_regs): Ditto.
14967         (scan_one_insn): Optimize.
14968         (find_costs_and_classes): Optimize.
14969         (process_bb_node_for_hard_reg_moves): Call
14970         ira_init_register_move_cost_if_necessary.  Use
14971         ira_register_move_cost instead of ira_get_register_move_cost.
14972
14973         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
14974         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
14975         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
14976         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
14977         definitions.
14978         (ira_initiate_emit_data, ira_finish_emit_data)
14979         (create_new_allocno): New functions.
14980         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
14981         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
14982         Use ira_register_move_cost instead of ira_get_register_move_cost.
14983
14984         * ira-int.h: Fix some comments.
14985         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
14986         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14987         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
14988         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
14989         add_data.
14990         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
14991         bitfield after mode.  Make hard_regno a short int.  Make
14992         hard_regno short.  Remove first_coalesced_allocno and
14993         next_coalesced_allocno.  Move mem_optimized_dest_p,
14994         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
14995         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
14996         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
14997         temp, colorable_p.  Add new member add_data.
14998         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
14999         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15000         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15001         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15002         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15003         (ALLOCNO_ADD_DATA): New macro.
15004         (ira_emit_data_t): New typedef.
15005         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
15006         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15007         from struct ira_allocno.
15008         (ALLOCNO_EMIT_DATA): New macro.
15009         (ira_allocno_emit_data, allocno_emit_reg): New.
15010         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15011         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15012         (OBJECT_ADD_DATA): New macro.
15013         (ira_reallocate): Remove.
15014         (ira_initiate_emit_data, ira_finish_emit_data): New.
15015         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15016         (ira_init_register_move_cost_if_necessary): New.
15017         (ira_object_conflict_iter_next): Merge into
15018         ira_object_conflict_iter_cond.
15019         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15020
15021         * ira-live.c (process_single_reg_class_operands): Call
15022         ira_init_register_move_cost_if_necessary.  Use
15023         ira_register_move_cost instead of ira_get_register_move_cost.
15024
15025         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
15026
15027         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15028
15029         * ira-costs.c: Fix formatting.
15030         (cost_classes, cost_classes_num): Remove.
15031         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15032         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15033         (cost_classes_del, cost_classes_htab): New.
15034         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15035         (initiate_regno_cost_classes, setup_cost_classes): New.
15036         (setup_regno_cost_classes_by_aclass): New.
15037         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15038         (record_reg_classes): Use regno_cost_classes instead of
15039         cost_classes.  Move checking opposite operand up.
15040         (record_address_regs): Use regno_cost_classes
15041         instead of cost_classes.
15042         (scan_one_insn): Ditto.  Use always general register.
15043         (print_allocno_costs): Use regno_cost_classes instead of
15044         cost_classes.
15045         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
15046         (find_costs_and_classes): Set up cost classes for each registers.
15047         Use also their mode for this.  Use regno_cost_classes instead of
15048         cost_classes.
15049         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15050         cost_classes.
15051         (free_ira_costs, ira_init_costs): Don't use cost_classes.
15052         (ira_costs, ira_set_pseudo_classes): Call
15053         initiate_regno_cost_classes and finish_regno_cost_classes.
15054
15055         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
15056
15057         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15058
15059         * target.def (ira_cover_classes): Remove.
15060
15061         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15062
15063         * doc/tm.texi.in: Ditto.
15064
15065         * ira-conflicts.c: Remove mentioning cover classes from the file.
15066         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
15067         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
15068
15069         * targhooks.c (default_ira_cover_classes): Remove.
15070
15071         * targhooks.h (default_ira_cover_classes): Ditto.
15072
15073         * haifa-sched.c: Remove mentioning cover classes from the file.
15074         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15075         ira_pressure_classes and ira_pressure_classes_num instead of
15076         ira_reg_class_cover_size and ira_reg_class_cover.  Use
15077         sched_regno_pressure_class instead of sched_regno_cover_class.
15078         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15079         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15080
15081         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
15082         classes from the file.
15083         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15084         (struct object_hard_regs, struct object_hard_regs_node): New.
15085         (struct ira_object): New members profitable_hard_regs,
15086         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15087         (struct ira_allocno): Rename cover_class to aclass.  Rename
15088         cover_class_cost and updated_cover_class_cost to class_cost and
15089         updated_class_cost.  Remove splay_removed_p and
15090         left_conflict_size.  Add new members colorable_p.
15091         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15092         (ALLOCNO_COLORABLE_P): New macro.
15093         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15094         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15095         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15096         (OBJECT_...): Rename parameter C to O.
15097         (OBJECT_PROFITABLE_HARD_REGS): New macro.
15098         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15099         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15100         (struct target_ira_int): New members x_ira_max_memory_move_cost,
15101         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15102         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15103         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15104         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
15105         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
15106         x_ira_reg_class_subunion.
15107         (ira_max_memory_move_cost, ira_max_register_move_cost)
15108         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15109         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15110         (ira_important_class_nums, ira_reg_class_superunion): New macros.
15111         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15112         (ira_reg_class_union): Rename to ira_reg_class_subunion.
15113         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15114         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15115         (ira_tune_allocno_costs_and_cover_classes): Rename to
15116         ira_tune_allocno_costs.
15117         (ira_debug_hard_regs_forest): New.
15118         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15119         (ira_object_conflict_iter_next): Fix comments.
15120         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15121         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15122         cover_class to aclass.
15123         (ira_allocate_and_accumulate_costs): Ditto.
15124         (ira_allocate_and_set_or_copy_costs): Ditto.
15125
15126         * opts.c (decode_options): Remove ira_cover_class check.
15127
15128         * ira-color.c: Remove mentioning cover classes from the file.  Use
15129         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15130         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15131         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15132         (splay-tree.h): Remove include.
15133         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15134         before copy_freq_compare_func.
15135         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15136         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15137         New definitions.
15138         (hard_regs_roots, hard_regs_node_vec): Ditto.
15139         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15140         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15141         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15142         (create_new_object_hard_regs_node): Ditto.
15143         (add_new_object_hard_regs_node_to_forest): Ditto.
15144         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15145         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15146         Ditto.
15147         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15148         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15149         (remove_unused_object_hard_regs_nodes): Ditto.
15150         (enumerate_object_hard_regs_nodes): Ditto.
15151         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15152         (object_hard_regs_subnode_t): Ditto.
15153         (struct object_hard_regs_subnode): Ditto.
15154         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15155         (setup_object_hard_regs_subnode_index): Ditto.
15156         (get_object_hard_regs_subnodes_num): Ditto.
15157         (form_object_hard_regs_nodes_forest): Ditto.
15158         (finish_object_hard_regs_nodes_tree): Ditto.
15159         (finish_object_hard_regs_nodes_forest): Ditto.
15160         (allocnos_have_intersected_live_ranges_p): Rename to
15161         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15162         (pseudos_have_intersected_live_ranges_p): Rename to
15163         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15164         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15165         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15166         (update_copy_costs): Remove assert.  Skip cost update if the hard
15167         reg does not belong the class.
15168         (assign_hard_reg): Process only profitable hard regs.
15169         (uncolorable_allocnos_num): Make it scalar.
15170         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15171         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15172         and ira_reg_class_max_nregs.
15173         (bucket_allocno_compare_func): Check frequency first.
15174         (sort_bucket): Add compare function as a parameter.
15175         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15176         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15177         (push_allocno_to_stack): Rewrite for checking new allocno
15178         colorability.
15179         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
15180         (push_only_colorable): Pass new parameter to sort_bucket.
15181         (push_allocno_to_spill): Remove.
15182         (allocno_spill_priority_compare): Make it inline and rewrite.
15183         (splay_tree_allocate, splay_tree_free): Remove.
15184         (allocno_spill_sort_compare): New function.
15185         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
15186         build and use splay tree.  Choose first allocno in uncolorable
15187         allocno bucket to spill.  Remove setting spill cost.
15188         (all_conflicting_hard_regs): Remove.
15189         (setup_allocno_available_regs_num): Check only profitable hard
15190         regs.  Print info about hard regs nodes.
15191         (setup_allocno_left_conflicts_size): Remove.
15192         (put_allocno_into_bucket): Don't call
15193         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
15194         (improve_allocation): New.
15195         (color_allocnos): Call setup_profitable_hard_regs,
15196         form_object_hard_regs_nodes_forest, improve_allocation,
15197         finish_object_hard_regs_nodes_forest.  Setup spill cost.
15198         (print_loop_title): Use pressure classes.
15199         (color_allocnso): Ditto.
15200         (do_coloring): Remove allocation and freeing splay_tree_node_pool
15201         and allocnos_for_spilling.
15202         (ira_sort_regnos_for_alter_reg): Don't setup members
15203         {first,next}_coalesced_allocno.
15204         (color): Remove allocating and freeing removed_splay_allocno_vec.
15205         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15206         prohibited_class_mode_regs.
15207
15208         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
15209         formatting.
15210         (update_allocno_pressure_excess_length): Use pressure classes.
15211         (inc_register_pressure, dec_register_pressure): Check for pressure
15212         class.
15213         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15214         pressure class.  Use ira_reg_class_nregs instead of
15215         ira_reg_class_max_nregs.
15216         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15217         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15218         (single_reg_class): Use ira_reg_class_nregs instead of
15219         ira_reg_class_max_nregs.
15220         (process_bb_node_lives): Use pressure classes.
15221
15222         * ira-emit.c: Remove mentioning cover classes from the file.  Use
15223         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15224         (change_loop): Use pressure classes.
15225         (modify_move_list): Call ira_set_allocno_class instead of
15226         ira_set_allocno_cover_class.
15227
15228         * ira-build.c: Remove mentioning cover classes from the file.  Use
15229         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15230         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
15231         ALLOCNO_UPDATED_CLASS_COST instead of
15232         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15233         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15234         (ira_create_allocno): Remove initialization of
15235         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
15236         ALLOCNO_COLORABLE_P.
15237         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15238         Update conflict regs for the objects.
15239         (create_cap_allocno): Remove assert.  Don't propagate
15240         ALLOCNO_AVAILABLE_REGS_NUM.
15241         (ira_free_allocno_costs): New function.
15242         (finish_allocno): Change a part of code into call of
15243         ira_free_allocno_costs.
15244         (low_pressure_loop_node_p): Use pressure classes.
15245         (object_range_compare_func): Don't compare classes.
15246         (setup_min_max_conflict_allocno_ids): Ditto.
15247
15248         * loop-invariant.c: Remove mentioning cover classes from the file.
15249         Use ira_pressure_classes and ira_pressure_classes_num instead of
15250         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
15251         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15252         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15253         Use reg_allocno_class instead of reg_cover_class.
15254         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15255         STACK_REG_COVER_CLASS.
15256         (get_regno_cover_class): Rename to get_regno_pressure_class.
15257         (move_loop_invariants): Initialize and finalize regstat.
15258
15259         * ira.c: Remove mentioning cover classes from the file.  Add
15260         comments about coloring without cover classes.  Use ALLOCNO_CLASS
15261         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15262         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15263         setup_class_subset_and_memory_move_costs.
15264         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15265         (setup_cover_and_important_classes): Rename to
15266         setup_allocno_and_important_classes.
15267         (setup_class_translate_array): New.
15268         (setup_class_translate): Call it for allocno and pressure classes.
15269         (cover_class_order): Rename to allocno_class_order.
15270         (comp_reg_classes_func): Use ira_allocno_class_translate instead
15271         of ira_class_translate.
15272         (reorder_important_classes): Set up ira_important_class_nums.
15273         (setup_reg_class_relations): Set up ira_reg_class_superunion.
15274         (print_class_cover): Rename to print_classes.  Add parameter.
15275         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15276         Print pressure classes too.
15277         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
15278         setup_reg_subclasses.
15279         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15280         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15281         (setup_prohibited_class_mode_regs): Use
15282         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15283         (clarify_prohibited_class_mode_regs): New function.
15284         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15285         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15286         (ira_init_once): Initialize them.
15287         (free_register_move_costs): Process them.
15288         (ira_init): Move calls of find_reg_classes and
15289         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15290         Call clarify_prohibited_class_mode_regs.
15291         (ira_no_alloc_reg): Remove.
15292         (too_high_register_pressure_p): Use pressure classes.
15293
15294         * sched-deps.c: Remove mentioning cover classes from the file.
15295         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15296         ira_pressure_classes and ira_pressure_classes_num instead of
15297         ira_reg_class_cover_size and ira_reg_class_cover.
15298         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15299         sched_regno_pressure_class instead of sched_regno_cover_class.
15300         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
15301         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15302
15303         * ira.h: Add 2010 to Copyright.
15304         (ira_no_alloc_reg): Remove external.
15305         (struct target_ira): Rename x_ira_hard_regno_cover_class,
15306         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15307         x_ira_class_translate to x_ira_hard_regno_allocno_class,
15308         x_ira_allocno_classes_num, x_ira_allocno_classes, and
15309         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
15310         x_ira_pressure_classes, x_ira_pressure_class_translate, and
15311         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
15312         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
15313         x_ira_no_alloc_regs.
15314         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15315         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15316         ira_allocno_classes_num and ira_allocno_classes.
15317         (ira_class_translate): Rename to ira_allocno_class_translate.
15318         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15319         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15320         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15321         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15322         (ira_no_alloc_regs): New.
15323
15324         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
15325         classes from the file.  Use ALLOCNO_CLASS instead of
15326         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
15327         ALLOCNO_COVER_CLASS_COST.
15328         (regno_cover_class): Rename to regno_aclass.
15329         (record_reg_classes): Use ira_reg_class_subunion instead of
15330         ira_reg_class_union.
15331         (record_address_regs): Check overflow.
15332         (scan_one_insn): Ditto.
15333         (print_allocno_costs): Print total mem cost fore regional allocation.
15334         (print_pseudo_costs): Use REG_N_REFS.
15335         (find_costs_and_classes): Use classes intersected with them on the
15336         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
15337         ira_reg_class_union.  Use ira_allocno_class_translate and
15338         regno_aclass instead of ira_class_translate and regno_cover_class.
15339         Modify code for finding regno_aclass.  Setup preferred classes for
15340         the next pass.
15341         (setup_allocno_cover_class_and_costs): Rename to
15342         setup_allocno_class_and_costs.  Use regno_aclass instead of
15343         regno_cover_class.  Use ira_set_allocno_class instead of
15344         ira_set_allocno_cover_class.
15345         (init_costs, finish_costs): Use regno_aclass instead of
15346         regno_cover_class.
15347         (ira_costs): Use setup_allocno_class_and_costs instead of
15348         setup_allocno_cover_class_and_costs.
15349         (ira_tune_allocno_costs_and_cover_classes): Rename to
15350         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
15351         by processing objects.  Use ira_reg_class_max_nregs instead of
15352         ira_reg_class_nregs.
15353
15354         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15355
15356         * sched-int.h: Remove mentioning cover classes from the file.
15357         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15358
15359         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
15360         classes from the file.
15361         (struct reg_pref): Rename coverclass into allocnoclass.
15362         (reg_cover_class): Rename to reg_allocno_class.
15363
15364         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15365
15366         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15367
15368         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15369
15370         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15371
15372         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15373
15374         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15375
15376         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15377
15378         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15379
15380         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15381
15382         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15383
15384         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15385         (i386_ira_cover_classes): Ditto.
15386
15387         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15388
15389         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15390
15391         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15392
15393         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15394
15395         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15396
15397         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15398
15399         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15400         (mips_ira_cover_classes): Ditto.
15401
15402         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15403
15404         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15405
15406         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15407
15408         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15409
15410         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15411
15412         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15413         (IRA_COVER_CLASSES_VSX): Ditto.
15414
15415         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15416         (rs6000_ira_cover_classes): Ditto.
15417
15418         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15419
15420         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15421
15422         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15423
15424         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15425
15426         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15427
15428         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15429
15430         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15431
15432         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15433
15434         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15435
15436         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15437
15438 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
15439
15440         PR debug/48253
15441         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15442         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15443         dw_fde_unlikely_section_end_label, cold_in_std_section,
15444         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15445         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15446         fields.
15447         (output_fde): Use dw_fde_second_{begin,end} if second is
15448         true, otherwise dw_fde_{begin,end}.
15449         (output_call_frame_info): Test dw_fde_second_begin != NULL
15450         instead of dw_fde_switched_sections.
15451         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15452         fields, initialize new fields.  Initialize in_std_section
15453         unconditionally from the first partition.
15454         (dwarf2out_end_epilogue): Don't override dw_fde_end when
15455         dw_fde_second_begin is non-NULL.
15456         (dwarf2out_switch_text_section): Stop initializing removed
15457         dw_fde_struct fields, initialize new fields, initialize
15458         also dw_fde_end here.  Set dw_fde_switch_cfi even when
15459         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
15460         (struct var_loc_list_def): Add last_before_switch field.
15461         (arange_table, arange_table_allocated, arange_table_in_use,
15462         ARANGE_TABLE_INCREMENT, add_arange): Removed.
15463         (size_of_aranges): Count !in_std_section and !second_in_std_section
15464         hunks in fdes, instead of looking at arange_table_in_use.
15465         (output_aranges): Add aranges_length argument, don't call
15466         size_of_aranges here.  Instead of using aranges_table*
15467         emit ranges for fdes when !in_std_section resp.
15468         !second_in_std_section.
15469         (dw_loc_list): Break ranges crossing section switch.
15470         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
15471         use dw_fde_second_end instead of dw_fde_end as end of last range.
15472         (gen_subprogram_die): Don't call add_arange.  Use
15473         dw_fde_{begin,end} for first partition and if switched
15474         section dw_fde_second_{begin,end} for the second.
15475         (var_location_switch_text_section_1,
15476         var_location_switch_text_section): New functions.
15477         (dwarf2out_begin_function): Initialize cold_text_section even
15478         when function_section () isn't text_section.
15479         (prune_unused_types): Don't walk arange_table.
15480         (dwarf2out_finish): Don't needlessly test
15481         flag_reorder_blocks_and_partition when testing cold_text_section_used.
15482         If info_section_emitted, call size_of_aranges and if it indicates
15483         non-empty .debug_aranges, call output_aranges with the computed
15484         size.  Stop using removed dw_fde_struct fields, use
15485         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15486         for second.
15487
15488         PR debug/48203
15489         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15490         create ENTRY_VALUE if incoming or address of incoming's MEM
15491         is a hard REG.
15492         * dwarf2out.c (mem_loc_descriptor): Don't emit
15493         DW_OP_GNU_entry_value of DW_OP_fbreg.
15494         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15495         on ENTRY_VALUE is able to find the canonical parameter VALUE.
15496         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15497         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15498         ENTRY_VALUE_EXPs.
15499         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15500         is a REG_P or MEM_P with REG_P address, compute hash directly
15501         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15502         (preserve_only_constants): Don't clear VALUES forwaring
15503         ENTRY_VALUE to some other VALUE.
15504
15505 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
15506
15507         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15508         instead of GEN_INT.
15509
15510 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
15511
15512         * cfgexpand.c (expand_gimple_cond): Always set the source location and
15513         block before expanding the statement.
15514         (expand_gimple_stmt_1): Likewise.  Set them here...
15515         (expand_gimple_stmt): ...and not here.  Tidy.
15516         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15517         unknown.
15518
15519 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
15520
15521         * Makefile.in: New rule for cprop.o.
15522         * gcse.c: Move constant/copy propagation to cprop.c.
15523         (compute_local_properties): Only handle expression tables.
15524         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15525         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15526         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15527         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15528         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15529         compute_cprop_data, find_used_regs, try_replace_reg,
15530         find_avail_set, cprop_jump, constprop_register, cprop_insn,
15531         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15532         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15533         find_bypass_set, reg_killed_on_edge, bypass_block,
15534         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15535         execute_rtl_cprop, pass_rtl_cprop): Move to...
15536         * cprop.c: ...here.  New file, constant/copy propagation for RTL
15537         moved from gcse.c to here with minor cleanups in duplicated code.
15538
15539 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
15540
15541         * config/i386/i386.c (flag_opts): Fix a typo in
15542         -mavx256-split-unaligned-store.
15543
15544 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
15545
15546         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15547         LIBCALL_VALUE): Remove macros.
15548         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15549         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15550         (h8300_function_value, h8300_libcall_value,
15551         h8300_function_value_regno_p): New functions.
15552
15553 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
15554
15555         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15556
15557 2011-03-28  Jeff Law  <law@redhat.com>
15558
15559         * tree-ssa-threadupdate.c (redirect_edges): Call
15560         create_edge_and_update_destination_phis as needed.
15561         (create_edge_and_update_destination_phis): Accept new BB argument.
15562         All callers updated.
15563         (thread_block): Do not update the profile when threading around
15564         intermediate blocks.
15565         (thread_single_edge): Likewise.
15566         (determine_bb_domination_status): If BB is not a successor of the
15567         loop header, return NONDOMINATING.
15568         (register_jump_thread): Note when we register a jump thread around
15569         an intermediate block.
15570         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15571         (thread_across_edge): Use it.
15572
15573 2011-03-28  Tristan Gingold  <gingold@adacore.com>
15574
15575         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15576         when for_return is 2.
15577
15578 2011-03-28  Jeff Law  <law@redhat.com>
15579
15580         * var-tracking.c (canonicalize_values_mark): Delete unused
15581         lhs assignment.
15582         (canonicalize_values_star, set_variable_part): Likewise.
15583         (clobber_variable_part, delete_variable_part): Likewise.
15584
15585 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
15586
15587         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15588
15589 2011-03-28  Martin Jambor  <mjambor@suse.cz>
15590
15591         * tree-inline.c (expand_call_inline): Do not check that destination
15592         node is analyzed.
15593         (optimize_inline_calls): Assert that destination node is analyzed.
15594         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15595         not call tree_lowering_passes.
15596         * cgraph.h (cgraph_analyze_function): Declare.
15597         * cgraphunit.c (cgraph_analyze_function): Make public.
15598
15599 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
15600
15601         * config/sparc/sparc-opts.h: New.
15602         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15603         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15604         (sparc_option_override): Store processor_type enumeration rather
15605         than string in cpu_default.  Remove name and enumeration from
15606         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
15607         without using sparc_select.  Use target_flags_explicit instead of
15608         fpu_option_set.
15609         * config/sparc/sparc.h (enum processor_type): Move to
15610         sparc-opts.h.
15611         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15612         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15613         HeaderInclude entry.
15614         (mcpu=, mtune=): Use Var and Enum.
15615         (sparc_processor_type): New Enum and EnumValue entries.
15616
15617 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15618             Iain Sandoe  <iains@gcc.gnu.org>
15619
15620         PR target/48245
15621         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15622
15623 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
15624
15625         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15626         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15627         Insert new statements at it in lieu of STMT.
15628         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15629         * tree-vect-stmts.c (vectorizable_store): Likewise.
15630         (vectorizable_load): Likewise.
15631
15632 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
15633
15634         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15635         (divtf3): Ditto.
15636         (multf3): Ditto.
15637         (subtf3): Ditto.
15638
15639 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15640
15641         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15642         unaligned 256bit load/store.
15643         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15644         (*avx_movdqu<avxmodesuffix>): Likewise.
15645
15646 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15647
15648         PR target/48288
15649         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15650         * config/pa/pa.md (iordi3): Use new predicate in expander.
15651         (iorsi3): Likewise.
15652
15653 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
15654
15655         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
15656         FUNCTION_VALUE_REGNO_P): Remove macros.
15657         * config/mips/mips-protos.h (mips_function_value): Remove.
15658         * config/mips/mips.c (mips_function_value): Rename to...
15659         (mips_function_value_1): ... this. Make static.  Handle receiving
15660         the function type in 'fn_decl_or_type' argument.
15661         (mips_function_value, mips_libcall_value,
15662         mips_function_value_regno_p): New function.
15663         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15664         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15665
15666 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15667
15668         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15669         and -mavx256-split-unaligned-store.
15670         (ix86_option_override_internal): Split 32-byte AVX unaligned
15671         load/store by default.
15672         (ix86_avx256_split_vector_move_misalign): New.
15673         (ix86_expand_vector_move_misalign): Use it.
15674
15675         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15676         -mavx256-split-unaligned-store.
15677
15678         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15679         256bit load/store.  Generate unaligned store on misaligned memory
15680         operand.
15681         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15682         256bit load/store.
15683         (*avx_movdqu<avxmodesuffix>): Likewise.
15684
15685         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15686         -mavx256-split-unaligned-store.
15687
15688 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
15689
15690         PR target/38598
15691         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15692         Update commentary.
15693
15694 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
15695
15696         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15697         opno arguments with an expand_operand.  Use create_input_operand.
15698         (mips_prepare_builtin_target): Delete.
15699         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15700         functions.
15701         (mips_expand_builtin_direct): Use create_output_operand and
15702         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
15703         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
15704         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15705
15706 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
15707
15708         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15709         function.
15710         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15711
15712 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
15713
15714         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15715         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
15716         basic blocks and call commit_edge_insertions directly.
15717         (fixup_abnormal_edges): Move from here to...
15718         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
15719         on the edges and return whether some have actually been inserted.
15720         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15721         compensation code.
15722
15723 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
15724
15725         PR rtl-optimization/48144
15726         * sel-sched-ir.c (merge_history_vect): Factor out from ...
15727         (merge_expr_data): ... here.
15728         (av_set_intersect): Rename to av_set_code_motion_filter.
15729         Update all callers.  Call merge_history_vect when an expression
15730         is found in both sets.
15731         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15732
15733 2011-03-26  Alan Modra  <amodra@gmail.com>
15734
15735         * config/rs6000/predicates.md (word_offset_memref_op): Handle
15736         cmodel medium addresses.
15737         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15738         64-bit gpr loads and stores.
15739         (rs6000_secondary_reload_ppc64): New function.
15740         * config/rs6000/rs6000-protos.h: Declare it.
15741         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15742
15743 2011-03-26  Alan Modra  <amodra@gmail.com>
15744
15745         PR target/47487
15746         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15747         GNU Go in traceback table.
15748
15749 2011-03-25  Richard Henderson  <rth@redhat.com>
15750
15751         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15752         if there are exactly 6 operands.
15753         (set_storage_via_setmem): Similarly.
15754
15755 2011-03-25  Kai Tietz  <ktietz@redhat.com>
15756
15757         * collect2.c (write_c_file_stat): Handle backslash
15758         as right-hand directory separator.
15759         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15760         checking just for slash.
15761         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15762         instead of checking for trailing slash.
15763         * gcc.c (record_temp_file): Use filename_cmp instead
15764         of strcmp.
15765         (do_spec_1): Likewise.
15766         (replace_outfile_spec_function): Likewise.
15767         (is_directory): Use filename_ncmp instead of strncmp.
15768         (print_multilib_info): Likewise.
15769         * gcov.c (find_source): Use filename_cmp instead
15770         instead of strcmp.
15771         (make_gcov_file_name): Fix order of slash/backslash
15772         checks.
15773         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15774         (add_standard_paths): Likewise.
15775         * mips-tfile.c (saber_stop): Handle backslash.
15776         * prefix.c (update_path): Use filename_ncmp instead of
15777         strncmp.
15778         * profile.c (output_location): Use filename_cmp instead
15779         of strcmp.
15780         * read-md.c (handle_toplevel_file): Handle backslash.
15781         * tlink.c (frob_extension):  Likewise.
15782         * tree-cfg.c (same_line_p): Use filename_cmp instead of
15783         strcmp.
15784         * tree-dump.c (dequeue_and_dump): Handle backslash.
15785         * tree.c (get_file_function_name): Likewise.
15786         * gengtype.c (read_input_list): Likewise.
15787         (get_file_realbasename): Likewise.
15788         (get_output_file_with_visibility): Use filename_cmp
15789         instead of strcmp.
15790
15791 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
15792
15793         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15794         case to VFPv1.
15795
15796 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
15797
15798         * fold-const.c (expr_location_or): New function.
15799         (fold_truth_not_expr): Call it.
15800
15801 2011-03-25  Jeff Law  <law@redhat.com>
15802
15803         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15804         va_end.
15805         * c-family/c-common.c (def_fn_type): Likewise.
15806         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15807         * emit-rtl.c (gen_rtvec): Likewise.
15808         * lto/lto-lang.c (def_fn_type): Likewise.
15809
15810 2011-03-25  Richard Guenther  <rguenther@suse.de>
15811
15812         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15813         also generate copies.
15814         (fini_copy_prop): Handle constant values properly.
15815
15816 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
15817
15818         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15819         mode size instead of bitsize with DWARF2_ADDR_SIZE.
15820         (hash_loc_operands, compare_loc_operands): Handle
15821         DW_OP_GNU_entry_value.
15822
15823 2011-03-25  Kai Tietz  <ktietz@redhat.com>
15824
15825         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15826         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15827         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15828         comment and use macro TARGET_64BIT_MS_ABI instead.
15829         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15830         and change default behavior for 32-bit MS_ABI.
15831         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15832         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15833         32-bit, too.
15834         (ix86_cfun_abi): Likewise.
15835         (ix86_maybe_switch_abi): Adjust comment.
15836         (init_cumulative_args): Check for bit-ness in MS_ABI case.
15837         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15838         instead of checking for SYSV_ABI.
15839         (ix86_nsaved_sseregs): Likewise.
15840         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
15841         to 16 bytes.
15842         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
15843         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
15844         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
15845         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
15846         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
15847
15848 2011-03-25  Richard Guenther  <rguenther@suse.de>
15849
15850         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
15851         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15852         (verify_gimple): Remove.
15853         * tree-cfg.c (verify_gimple_call): Merge verification
15854         from verify_stmts.
15855         (verify_gimple_phi): Merge verification from verify_stmts.
15856         (verify_gimple_label): New function.
15857         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
15858         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15859         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
15860         (verify_stmts): Rename to verify_gimple_in_cfg.
15861         (verify_gimple_in_cfg): New function.
15862         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
15863         * tree-ssa.c (verify_ssa): Likewise.
15864         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
15865
15866 2011-03-25  Richard Guenther  <rguenther@suse.de>
15867
15868         * passes.c (init_optimization_passes): Add FRE pass after
15869         early SRA.
15870
15871 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
15872             Andrew Stubbs  <ams@codesourcery.com>
15873
15874         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
15875         for Cortex-A8.
15876         (arm_movdi_vfp_cortexa8): New pattern.
15877         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
15878         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
15879         instructions when tuning for Cortex-A8.  Set attribute "arch".
15880         * config/arm/arm.md: Move include arm-tune.md up a bit.
15881         (define_attr "arch"): Add "onlya8" and "nota8" values.
15882         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
15883
15884 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
15885
15886         PR bootstrap/48282
15887         Revert:
15888         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
15889
15890         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15891         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
15892         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15893         * passes.c (init_optimization_passes): Move
15894         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15895
15896 2011-03-25  Kai Tietz  <ktietz@redhat.com>
15897
15898         * c-typeck.c (comptypes_internal): Replace target
15899         hook call of comp_type_attributes by version in tree.c file.
15900         * gimple.c (gimple_types_compatible_p_1): Likewise.
15901         * tree-ssa.c (useless_type_conversion_p): Likewise.
15902         * tree.c (build_type_attribute_qual_variant): Likewise.
15903         (attribute_value_equal): New static helper function.
15904         (comp_type_attributes): New function.
15905         (merge_attributes): Use attribute_value_equal for comparison.
15906         (attribute_list_contained): Likewise.
15907         * tree.h (comp_type_attributes): New prototype.
15908
15909 2011-03-25  Richard Guenther  <rguenther@suse.de>
15910
15911         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
15912         of complex types at -O0.
15913         (verify_gimple_assign_binary): Likewise.
15914         (verify_gimple_assign_ternary): Likewise.
15915
15916 2011-03-24  Mark Wielaard  <mjw@redhat.com>
15917
15918         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
15919         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
15920
15921 2011-03-24  Mark Wielaard  <mjw@redhat.com>
15922
15923         PR debug/48041
15924         * dwarf2out.c (output_abbrev_section): Only write table when
15925         abbrev_die_table_in_use > 1.
15926
15927 2011-02-24  Richard Henderson  <rth@redhat.com>
15928
15929         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
15930         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
15931         (alpha_expand_unaligned_load_words): Use extql.
15932         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
15933         (emit_insxl): Handle all modes for consistency.
15934
15935 2011-02-24  Richard Henderson  <rth@redhat.com>
15936
15937         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
15938         (alpha_expand_unaligned_load): Likewise.
15939         (alpha_expand_unaligned_store): Likewise.
15940         (alpha_expand_unaligned_load_words): Likewise.
15941         (alpha_expand_unaligned_store_words): Likewise.
15942         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
15943         (alpha_split_lock_test_and_set_12): Likewise.
15944         (print_operand, alpha_fold_builtin_extxx): Likewise.
15945         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
15946         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
15947         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
15948         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
15949         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
15950         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
15951         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
15952         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
15953         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
15954         (extwl, extll, extql): Similarly.
15955         (inswh, inslh, insqh): Similarly.
15956         (mskbl, mskwl, mskll, mskql): Similarly.
15957         (mskwh, msklh, mskqh): Similarly.
15958
15959 2011-02-24  Richard Henderson  <rth@redhat.com>
15960
15961         * config/alpha/alpha.md (attribute isa): Add er, ner.
15962         (attribute enabled): Handle them.
15963         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
15964
15965 2011-02-24  Richard Henderson  <rth@redhat.com>
15966
15967         * config/alpha/alpha.md (attribute isa): Add vms.
15968         (attribute enabled): Handle it.
15969         (*movsf): Merge *movsf_{nofix,fix,nofp}.
15970         (*movdf): Merge *movdf_{nofix,fix,nofp}.
15971         (*movtf): Rename from *movtf_internal for consistency.
15972         (*movsi): Merge with *movsi_nt_vms.
15973         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
15974         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
15975         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
15976         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
15977
15978 2011-02-24  Richard Henderson  <rth@redhat.com>
15979
15980         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
15981         (extendqisi2, extendhisi2): Likewise.
15982         (extendqidi2): Simplify BWX/non-BWX expansions.
15983         (extendhidi2): Similarly.
15984
15985 2011-02-24  Richard Henderson  <rth@redhat.com>
15986
15987         * config/alpha/alpha.md (attribute isa): New.
15988         (attribute enabled): New.
15989         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
15990         (zero_extendqisi2, zero_extendqidi2): Similarly.
15991         (zero_extendhisi2, zero_extendhidi2): Similarly.
15992         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
15993
15994 2011-02-24  Richard Henderson  <rth@redhat.com>
15995
15996         * config/alpha/predicates.md (input_operand): Revert last change;
15997         update comment to mention 32-bit VMS rather than Windows.
15998
15999 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16000
16001         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16002         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
16003         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16004         * passes.c (init_optimization_passes): Move
16005         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16006
16007 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16008
16009         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16010
16011 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16012
16013         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16014         correctly.
16015
16016 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
16017
16018         PR debug/48204
16019         * simplify-rtx.c (simplify_const_unary_operation): Call
16020         real_convert when changing mode class with FLOAT_EXTEND.
16021
16022 2011-03-24  Nick Clifton  <nickc@redhat.com>
16023
16024         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16025         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16026         * config/rx/rx.c (rx_option_override): Set align_jumps,
16027         align_loops and align_labels if not set by the user.
16028         (rx_align_for_label): New function.
16029         (rx_max_skip_for_label): New function.
16030         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16031         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16032         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16033         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16034         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16035
16036 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16037
16038         PR rtl-optimization/48263
16039         * optabs.c (expand_binop_directly): Reinstate convert_modes code
16040         and original commutative_p handling.  Use maybe_gen_insn.
16041
16042 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16043
16044         * reload.c (find_reloads_subreg_address): Add address_reloaded
16045         parameter and return true there if the full address has been
16046         reloaded.
16047         (find_reloads_toplev): Pass address_reloaded flag.
16048         (find_reloads_address_1): Don't use address_reloaded parameter.
16049
16050 2011-03-24  Jeff Law  <law@redhat.com>
16051
16052         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16053         unused variable "ann".
16054         (remove_unused_locals): Likewise.
16055
16056         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16057         statement.
16058
16059         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16060         after it is freed.
16061
16062 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16063
16064         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16065         for invalid symbolic addresses.
16066         (s390_secondary_reload): Don't use s390_check_symref_alignment for
16067         larl operands.
16068
16069 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16070
16071         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16072         the argument in calls to fold_truth_not_expr.
16073
16074 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16075
16076         * tree.c (record_node_allocation_statistics): New function.
16077         (make_node_stat, copy_node_stat, build_string): Call it.
16078         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16079         (build1_stat, build_omp_clause): Likewise.
16080
16081 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16082
16083         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16084         last commit.
16085
16086 2011-03-24  Richard Guenther  <rguenther@suse.de>
16087
16088         PR tree-optimization/48271
16089         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16090         blocks that still exist.
16091
16092 2011-03-24  Richard Guenther  <rguenther@suse.de>
16093
16094         PR tree-optimization/48270
16095         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16096         not free datarefs before ddrs.
16097
16098 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16099
16100         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16101         from the address built for a reference with variable offset.
16102
16103 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16104
16105         PR target/48237
16106         * config/i386/i386.md (*movdf_internal_rex64): Do not split
16107         alternatives that can be handled with movq or movabsq insn.
16108         (*movdf_internal): Disable for !TARGET_64BIT.
16109         (*movdf_internal_nointeger): Ditto.
16110         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16111
16112 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16113
16114         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16115         (FUNCTION_ARG_ADVANCE): Likewise.
16116         * tm.texi.in: Change references to them to hook references.
16117         * tm.texi: Regenerate.
16118         * targhooks.c (default_function_arg): Eliminate check for target macro.
16119         (default_function_incoming_arg): Likewise.
16120         (default_function_arg_advance): Likewise.
16121         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16122         (function_arg_advance): Likewise.
16123         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16124
16125 2011-03-24  Richard Guenther  <rguenther@suse.de>
16126
16127         PR middle-end/48269
16128         * tree-object-size.c (addr_object_size): Do not double-account
16129         for MEM_REF offsets.
16130
16131 2011-03-24  Diego Novillo  <dnovillo@google.com>
16132
16133         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16134         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16135         (lto_input_data_block): Move from lto-opts.c.  Make extern.
16136         Update all users.
16137         (lto_input_string): Rename from input_string.  Make extern.
16138         Update all users.
16139         * lto-streamer-out.c (lto_output_string_with_length): Rename from
16140         output_string_with_length.
16141         Output 0 to indicate a non-NULL string.  Update all callers to
16142         not emit 0.
16143         (lto_output_string): Rename from output_string.  Make extern.
16144         Update all users.
16145         (lto_output_decl_state_streams): Make extern.
16146         (lto_output_decl_state_refs): Make extern.
16147         * lto-streamer.h (lto_input_string): Declare.
16148         (lto_input_data_block): Declare.
16149         (lto_output_string): Declare.
16150         (lto_output_string_with_length): Declare.
16151         (lto_output_decl_state_streams): Declare.
16152         (lto_output_decl_state_refs): Declare.
16153
16154 2011-03-24  Richard Guenther  <rguenther@suse.de>
16155
16156         PR tree-optimization/46562
16157         * tree.c (build_invariant_address): New function.
16158         * tree.h (build_invariant_address): Declare.
16159         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16160         a renamed function moved ...
16161         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16162         Take valueization callback parameter.
16163         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16164         * gimple-fold.h: New file.
16165         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16166         (ccp_fold, fold_const_aggregate_ref,
16167         fold_ctor_reference, fold_nonarray_ctor_reference,
16168         fold_array_ctor_reference, fold_string_cst_ctor_reference,
16169         get_base_constructor): Move ...
16170         * gimple-fold.c: ... here.
16171         (gimple_fold_stmt_to_constant_1): New function
16172         split out from ccp_fold.  Take a valueization callback parameter.
16173         Valueize all operands.
16174         (gimple_fold_stmt_to_constant): New wrapper function.
16175         (fold_const_aggregate_ref_1): New function split out from
16176         fold_const_aggregate_ref.  Take a valueization callback parameter.
16177         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16178         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16179         invariant POINTER_PLUS_EXPRs to invariant form.
16180         (vn_valueize): New function.
16181         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16182         * tree-vrp.c (vrp_valueize): New function.
16183         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16184         to fold statements to constants.
16185         * tree-ssa-pre.c (eliminate): Properly guard propagation of
16186         function declarations.
16187         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16188         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16189
16190 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16191
16192         * config/h8300/predicates.md (jump_address_operand): Fix register
16193         mode check.
16194
16195 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
16196
16197         * doc/invoke.texi (max-stores-to-sink): Document.
16198         * params.h (MAX_STORES_TO_SINK): Define.
16199         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16200         if either vectorization or if-conversion is disabled.
16201         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16202         tree-vect-data-refs.c vect_equal_offsets.
16203         (dr_equal_offsets_p): New function.
16204         (find_data_references_in_bb): Remove static.
16205         * tree-data-ref.h (find_data_references_in_bb): Declare.
16206         (dr_equal_offsets_p): Likewise.
16207         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16208         (vect_drs_dependent_in_basic_block): Update calls to
16209         vect_equal_offsets.
16210         (vect_check_interleaving): Likewise.
16211         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16212         (cond_if_else_store_replacement): Rename to...
16213         (cond_if_else_store_replacement_1): ... this.  Change arguments and
16214         documentation.
16215         (cond_if_else_store_replacement): New function.
16216         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16217         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16218
16219 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
16220
16221         PR target/46934
16222         * config/arm/arm.md (casesi): Use the gen_int_mode() function
16223         to subtract lower bound instead of GEN_INT().
16224
16225 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
16226
16227         PR other/48179
16228         PR other/48221
16229         PR other/48234
16230         * doc/extend.texi (Alignment): Move section to match order in TOC.
16231         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16232         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16233
16234 2011-03-23  Jeff Law  <law@redhat.com>
16235
16236         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16237         before removing the edge.
16238
16239         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16240         it may have been freed by redirect_branch_edge or
16241         redirect_edge_succ_nodup.
16242
16243 2011-03-23  Richard Guenther  <rguenther@suse.de>
16244
16245         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16246         (check_va_list_escapes): Likewise.
16247         (check_all_va_list_escapes): Likewise.
16248
16249 2011-03-23  Richard Guenther  <rguenther@suse.de>
16250
16251         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16252         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16253         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16254         (alias.o): Likewise.
16255         (ipa-type-escape.o): Remove.
16256         (ipa-struct-reorg.o): Likewise.
16257         (GTFILES): Remove ipa-struct-reorg.c.
16258         * alias.c: Do not include ipa-type-escape.h.
16259         * tree-ssa-alias.c: Likewise.
16260         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16261         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16262         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16263         and ipa-type-escape passes.
16264         * tree-pass.h (pass_ipa_type_escape): Remove.
16265         (pass_ipa_struct_reorg): Likewise.
16266         * ipa-struct-reorg.h: Remove.
16267         * ipa-struct-reorg.c: Likewise.
16268         * ipa-type-escape.h: Likewise.
16269         * ipa-type-escape.c: Likewise.
16270         * doc/invoke.texi (-fipa-struct-reorg): Remove.
16271         (--param struct-reorg-cold-struct-ratio): Likewise.
16272         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16273         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16274         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16275
16276 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16277
16278         * config/s390/2084.md: Enable all insn reservations also for z9_ec
16279         cpu attribute value.
16280         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16281         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16282         * config/s390/s390.c (processor_flags_table): New constant array.
16283         (s390_handle_arch_option): Remove.
16284         (s390_handle_option): Remove s390_handle_arch_option invocations
16285         and OPT_mwarn_framesize_ handling.
16286         (s390_option_override): Remove s390_handle_arch_option invocation.
16287         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16288         warnings.
16289         * config/s390/s390.md (cpu attribute): Add z9_ec value.
16290         * config/s390/s390.opt (s390_tune, s390_arch)
16291         (march=): Replace s390_arch_option enum and values with
16292         processor_type.  Set variable name to s390_arch.  Set
16293         initialization value.
16294         (mtune=): Replace s390_arch_option with processor_type.  Set
16295         variable name to s390_tune.  Set initialization value.
16296
16297 2011-03-23  Julian Brown  <julian@codesourcery.com>
16298
16299         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16300         accesses which are not naturally aligned.
16301
16302 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16303
16304         PR target/47553
16305         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16306
16307 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16308
16309         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16310         parameter from "int" to "enum insn_code".
16311         (expand_operand_type): New enum.
16312         (expand_operand): New structure.
16313         (create_expand_operand): New function.
16314         (create_fixed_operand, create_output_operand): Likewise
16315         (create_input_operand, create_convert_operand_to): Likewise.
16316         (create_convert_operand_from, create_address_operand): Likewise.
16317         (create_integer_operand): Likewise.
16318         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16319         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16320         (expand_insn, expand_jump_insn): Likewise.
16321         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16322         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16323         (expand_movstr, expand_builtin___clear_cache): Likewise.
16324         (expand_builtin_lock_release): Likewise.
16325         * explow.c (allocate_dynamic_stack_space): Likewise.
16326         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
16327         and use the default handling in that case.
16328         * expmed.c (check_predicate_volatile_ok): Delete.
16329         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16330         (emit_cstore): Likewise.
16331         * expr.c (emit_block_move_via_movmem): Likewise.
16332         (set_storage_via_setmem, expand_assignment): Likewise.
16333         (emit_storent_insn, try_casesi): Likewise.
16334         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
16335         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16336         (expand_vec_shift_expr, expand_binop_directly): Likewise.
16337         (expand_twoval_unop, expand_twoval_binop): Likewise.
16338         (expand_unop_direct, emit_indirect_jump): Likewise.
16339         (emit_conditional_move, vector_compare_rtx): Likewise.
16340         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16341         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16342         (expand_sync_lock_test_and_set): Likewise.
16343         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
16344         (emit_unop_insn): Likewise.
16345         (expand_copysign_absneg): Change icode to an insn_code.
16346         (create_convert_operand_from_type): New function.
16347         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16348         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16349         (expand_insn, expand_jump_insn): Likewise.
16350         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16351         than const_int_operand for operand 2.
16352
16353 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16354
16355         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16356         if possible.
16357
16358 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16359
16360         * emit-rtl.c (emit_pattern_before_noloc): New function.
16361         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16362         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16363         (emit_pattern_after_noloc): New function.
16364         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16365         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16366
16367 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16368
16369         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16370         (__ffsDI2): Likewise.
16371
16372 2011-03-22  Richard Henderson  <rth@redhat.com>
16373
16374         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16375         of !TARGET_ABI_OPEN_VMS.
16376         (alpha_trampoline_init, alpha_start_function): Likewise.
16377         (alpha_expand_epilogue, alpha_file_start): Likewise.
16378         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16379         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16380         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16381         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16382         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16383
16384 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16385
16386         * config/s390/s390-opts.h: New.
16387         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16388         s390_arch_flags, s390_warn_framesize, s390_stack_size,
16389         s390_stack_guard): Remove.
16390         (s390_handle_arch_option): Return void.  Take enum
16391         s390_arch_option value instead of string and searching array.
16392         (s390_handle_option): Don't assert that global structures are in
16393         use.  Access variables via opts pointer.  Use error_at.  Don't use
16394         sscanf for -mstack-guard= or -mstack-size=.  Update call to
16395         s390_handle_arch_option.
16396         (s390_option_override): Update call to s390_handle_arch_option.
16397         (s390_emit_prologue): Use %d format for s390_stack_size in
16398         diagnostic.  Use %wd for HOST_WIDE_INT.
16399         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16400         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16401         * config/s390/s390.opt (config/s390/s390-opts.h): New
16402         HeaderInclude entry.
16403         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16404         s390_arch_flags, s390_warn_framesize): New Variable entries.
16405         (s390_arch_option): New Enum and EnumValue entries.
16406         (march=): Use Enum instead of Var.
16407         (mstack-guard=, mstack-size=): Use UInteger and Var.
16408         (mtune=): Use Enum.
16409
16410 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16411
16412         * config/score/score.c (score_handle_option): Don't assert that
16413         global structures are in use.  Access target_flags via opts
16414         pointer.  Use value of -march= option to determine target_flags
16415         settings.
16416         * config/score/score.opt (march=): Use Enum.
16417         (score_arch): New Enum and EnumValue entries.
16418
16419 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16420
16421         * config/mep/mep.c (option_mtiny_specified): Remove.
16422         (mep_option_override): Move register handling for -mivc2 from
16423         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
16424         instead of option_mtiny_specified.
16425         (mep_handle_option): Access target_flags via opts pointer.  Don't
16426         assert that global structures are in use.  Defer part of -mivc2
16427         handling and move it to mep_option_override.
16428         * config/mep/mep.opt (IVC2): New Mask entry.
16429         (mivc2): Use Var and Defer instead of Mask.
16430
16431 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16432
16433         * config/v850/v850-opts.h: New.
16434         * config/v850/v850.c (small_memory): Replace with
16435         small_memory_physical_max array.  Make that array static const.
16436         (v850_handle_memory_option): Take integer value of argument.  Take
16437         gcc_options pointer, option text and location.  Return void.
16438         Update for changes to small memory structures.
16439         (v850_handle_option): Access target_flags via opts pointer.  Don't
16440         assert that global structures are in use.  Update calls to
16441         v850_handle_memory_option.
16442         (v850_encode_data_area): Update references to small memory settings.
16443         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16444         (enum small_memory_type): Move to v850-opts.h.
16445         * config/v850/v850.opt (config/v850/v850-opts.h): New
16446         HeaderInclude entry.
16447         (small_memory_max): New Variable entry.
16448         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
16449         (mtda, mzda): Likewise.
16450
16451 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16452
16453         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16454         pointer.  Don't assert that global structures are in use.
16455
16456 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16457
16458         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16459         via opts pointer.  Don't assert that global structures are in use.
16460
16461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16462
16463         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16464         (munix=93): Use Var.
16465         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16466         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16467         * config/pa/pa-opts.h: New.
16468         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16469         (pa_handle_option): Don't assert that global structures are in
16470         use.  Access target_flags via opts pointer.  Don't handle
16471         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16472         OPT_munix_98 here.
16473         (pa_option_override): Handle deferred OPT_mfixed_range_.
16474
16475 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16476
16477         * config/mn10300/mn10300-opts.h: New.
16478         * config/mn10300/mn10300.c (mn10300_processor,
16479         mn10300_tune_string): Remove.
16480         (mn10300_handle_option): Don't assert that global structures are
16481         in use.  Access mn10300_processor via opts pointer.  Don't handle
16482         OPT_mtune_ here.
16483         * config/mn10300/mn10300.h (enum processor_type): Move to
16484         mn10300-opts.h.
16485         (mn10300_processor): Remove.
16486         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16487         HeaderInclude entry.
16488         (mn10300_processor): New Variable entry.
16489         (mtune=): Use Var.
16490
16491 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16492
16493         * config/microblaze/microblaze.c: Don't include opts.h.
16494         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16495         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16496         (mno-clearbss): Use Var and Warn.
16497
16498 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16499
16500         * config/m32r/m32r-opts.h: New.
16501         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16502         (m32r_handle_option): Don't assert that global structures are in
16503         use.  Access target_flags and m32r_cache_flush_func via opts
16504         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
16505         OPT_mno_flush_trap here.
16506         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16507         include of m32r-opts.h.
16508         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16509         HeaderInclude entry.
16510         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16511         (mmodel=): Use Enum and Var.
16512         (m32r_model): New Enum and EnumValue entries.
16513         (mno-flush-trap): Use Var.
16514         (msdata=): Use Enum and Var.
16515         (m32r_sdata): New Enum and EnumValue entries.
16516
16517 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16518
16519         * config/m32c/m32c.c: Don't include opts.h.
16520         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16521         m32c_handle_option): Remove.
16522         (m32c_option_override): Check global_options_set.x_target_memregs
16523         instead of target_memregs_set.
16524         * config/m32c/m32c.h (target_memregs): Remove.
16525         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16526         variable.
16527
16528 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16529
16530         * config/iq2000/iq2000-opts.h: New.
16531         * config/iq2000/iq2000.c: Don't include opts.h.
16532         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16533         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16534         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16535         HeaderInclude entry.
16536         (iq2000_tune): New Variable entry.
16537         (march=): Add comment.  Use Enum.
16538         (iq2000_arch): New Enum and EnumValue entries.
16539         (mcpu=): Use Enum and Var.
16540         (iq2000_tune): New Enum and EnumValue entries.
16541
16542 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16543
16544         * config/ia64/ia64-opts.h: New.
16545         * config/ia64/ia64.c (ia64_tune): Remove.
16546         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16547         here.  Use error_at.
16548         (ia64_option_override): Handle deferred OPT_mfixed_range_.
16549         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16550         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16551         HeaderInclude entry.
16552         (ia64_tune): New Variable entry.
16553         (mfixed-range=): Use Defer and Var.
16554         (mtune=): Use Enum and Var.
16555         (ia64_tune): New Enum and EnumValue entries.
16556
16557 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16558
16559         * config/frv/frv-opts.h: New.
16560         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16561         frv-opts.h.
16562         (frv_cpu_type): Remove.
16563         * config/frv/frv.c: Don't include opts.h.
16564         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16565         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16566         (frv_cpu_type): New Variable entry.
16567         (frv_cpu): New Enum and EnumValue entries.
16568
16569 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16570
16571         * config/cris/cris.c (cris_handle_option): Access target_flags via
16572         opts pointer.  Don't assert that global structures are in use.
16573         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16574         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16575
16576 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16577
16578         * config/bfin/bfin-opts.h: New.
16579         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16580         bfin_si_revision, bfin_workarounds): Remove.
16581         (bfin_cpus): Make static const.
16582         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16583         not bfin_lib_id_given.
16584         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
16585         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16586         pointer. Use error_at.  Don't assert that global structures are in use.
16587         * config/bfin/bfin.h: Include bfin-opts.h.
16588         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16589         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16590         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16591         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16592         entries.
16593
16594 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16595
16596         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16597         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16598         or -msoft-float here.
16599         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16600         -msoft-float and -mhard-float.
16601         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
16602         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16603         msoft-float.
16604         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16605         -msoft-float.
16606         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16607         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16608         not mhard-float.
16609         (LIBGCC_SPEC): Don't handle -msoft-float.
16610         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16611         -mhard-float.
16612         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16613         msoft-float.
16614         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16615         -mfloat-abi=*, not -msoft-float and -mhard-float.
16616         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16617         -msoft-float.
16618         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16619         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16620         mhard-float and msoft-float.
16621         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16622         mfloat-abi=soft in comments, not mhard-float and msoft-float.
16623         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16624         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16625         mhard-float.
16626         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16627         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16628         msoft-float.
16629         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16630         not mhard-float.
16631         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16632         not msoft-float.
16633
16634 2011-03-22  Richard Henderson  <rth@redhat.com>
16635
16636         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16637         TARGET_ABI_WINDOWS_NT.
16638         (alpha_output_function_end_prologue): Likewise.
16639         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16640         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16641         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16642         (trap, *movsi_nt_vms): Likewise.
16643         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16644         (*tablejump_osf_nt_internal): Remove.
16645         * config/alpha/predicates.md (input_operand): Only test Pmode.
16646
16647 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16648
16649         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16650         via opts pointer.  Use error_at.  Don't assert that global
16651         structures are in use.
16652
16653 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16654
16655         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16656         (ix86_handle_option): Access ix86_isa_flags and
16657         ix86_isa_flags_explicit via opts pointer.  Don't assert that
16658         global structures are in use.
16659         (ix86_function_specific_save, ix86_function_specific_restore):
16660         Update ix86_isa_flags_explicit field name.
16661         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
16662         (ix86_isa_flags_explicit): Rename TargetSave entry to
16663         x_ix86_isa_flags_explicit.
16664
16665 2011-03-22  Richard Henderson  <rth@redhat.com>
16666
16667         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16668         (alpha_option_override, direct_return): Likewise.
16669         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16670         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16671         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16672         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16673         (alpha_expand_epilogue, alpha_end_function): Likewise.
16674         (alpha_init_libfuncs): Likewise.
16675         (struct machine_function): Remove unicosmk members.
16676         (print_operand) ['t']: Remove.
16677         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16678         unicosmk_output_module_name, unicosmk_output_common,
16679         current_section_align, unicosmk_output_text_section_asm_op,
16680         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16681         unicosmk_section_type_flags, unicosmk_unique_section,
16682         unicosmk_asm_named_section, unicosmk_insert_attributes,
16683         unicosmk_output_align, unicosmk_defer_case_vector,
16684         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16685         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16686         unicosmk_output_ssib, unicosmk_add_call_info_word,
16687         unicosmk_extern_head, unicosmk_output_default_externs,
16688         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16689         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16690         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16691         * config/alpha/alpha-protos.h: Update.
16692         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16693         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16694         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16695         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16696         (*mulsi_se, mulvsi3): Likewise.
16697         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16698         (*divmodsi_internal, call, call_value, realign): Likewise.
16699         (moddi3, umoddi3): Likewise; remove duplicate expander.
16700         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16701         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16702         (*movdi_nofix): Remove r/U alternative.
16703         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16704         * config/alpha/constraints.md ("U"): Remove.
16705         * config/alpha/predicates.md (call_operand"): Don't test
16706         TARGET_ABI_UNICOSMK.
16707
16708 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16709
16710         * target.def (handle_option): Take gcc_options and
16711         cl_decoded_option pointers and location_t.
16712         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16713         * doc/tm.texi: Regenerate.
16714         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16715         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16716         * lto-opts.c (lto_reissue_options): Generate option structure for
16717         targetm.handle_option call.
16718         * opts.c (target_handle_option): Update call to
16719         targetm.handle_option.  Remove assertions about values now passed
16720         down to hook.
16721         * targhooks.c (default_target_handle_option): New.
16722         * targhooks.h (default_target_handle_option): Declare.
16723         * config/alpha/alpha.c: Include opts.h.
16724         (alpha_handle_option): Update to new hook interface.
16725         * config/arm/arm.c: Include opts.h.
16726         (arm_handle_option): Update to new hook interface.
16727         * config/arm/t-arm (arm.o): Update dependencies.
16728         * config/bfin/bfin.c: Include opts.h.
16729         (bfin_handle_option): Update to new hook interface.
16730         * config/cris/cris.c: Include opts.h.
16731         (cris_handle_option): Update to new hook interface.
16732         * config/frv/frv.c: Include opts.h.
16733         (frv_handle_option): Update to new hook interface.
16734         * config/i386/i386.c: Include opts.h.
16735         (ix86_handle_option): Update to new hook interface.
16736         (ix86_valid_target_attribute_inner_p): Generate option structure
16737         for call to ix86_handle_option.
16738         * config/i386/t-i386 (i386.o): Update dependencies.
16739         * config/ia64/ia64.c: Include opts.h.
16740         (ia64_handle_option): Update to new hook interface.
16741         * config/ia64/t-ia64 (ia64.o): Update dependencies.
16742         * config/iq2000/iq2000.c: Include opts.h.
16743         (iq2000_handle_option): Update to new hook interface.
16744         * config/m32c/m32c.c: Include opts.h.
16745         (m32c_handle_option): Update to new hook interface.
16746         * config/m32r/m32r.c: Include opts.h.
16747         (m32r_handle_option): Update to new hook interface.
16748         * config/m68k/m68k.c: Include opts.h.
16749         (m68k_handle_option): Update to new hook interface.
16750         * config/mep/mep.c: Include opts.h.
16751         (mep_handle_option): Update to new hook interface.
16752         * config/microblaze/microblaze.c: Include opts.h.
16753         (microblaze_handle_option): Update to new hook interface.
16754         * config/mips/mips.c: Include opts.h.
16755         (mips_handle_option): Update to new hook interface.
16756         * config/mn10300/mn10300.c: Include opts.h.
16757         (mn10300_handle_option): Update to new hook interface.
16758         * config/pa/pa.c: Include opts.h.
16759         (pa_handle_option): Update to new hook interface.
16760         * config/pdp11/pdp11.c: Include opts.h.
16761         (pdp11_handle_option): Update to new hook interface.
16762         * config/rs6000/rs6000.c: Include opts.h.
16763         (rs6000_handle_option): Update to new hook interface.
16764         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16765         * config/rx/rx.c: Include opts.h.
16766         (rx_handle_option): Update to new hook interface.
16767         * config/s390/s390.c: Include opts.h.
16768         (s390_handle_option): Update to new hook interface.
16769         * config/score/score.c: Include opts.h.
16770         (score_handle_option): Update to new hook interface.
16771         * config/sh/sh.c: Include opts.h.
16772         (sh_handle_option): Update to new hook interface.
16773         * config/sparc/sparc.c: Include opts.h.
16774         (sparc_handle_option): Update to new hook interface.
16775         * config/v850/v850.c: Include opts.h.
16776         (v850_handle_option): Update to new hook interface.
16777
16778 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16779
16780         * gcc.c (driver_unknown_option_callback): Only permit and save
16781         unknown -Wno- options.
16782         (driver_wrong_lang_callback): Save options directly instead of via
16783         driver_unknown_option_callback.
16784
16785 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
16786
16787         * combine.c (simplify_set): Try harder to find the best CC mode when
16788         simplifying a nested COMPARE on the RHS.
16789
16790 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16791
16792         * config/alpha/gnu.h: Remove.
16793         * config/arc: Remove directory.
16794         * config/arm/netbsd.h: Remove.
16795         * config/arm/t-pe: Remove.
16796         * config/crx: Remove directory.
16797         * config/i386/netbsd.h: Remove.
16798         * config/m68hc11: Remove directory.
16799         * config/m68k/uclinux-oldabi.h: Remove.
16800         * config/mcore/mcore-pe.h: Remove.
16801         * config/mcore/t-mcore-pe: Remove.
16802         * config/netbsd-aout.h: Remove.
16803         * config/rs6000/gnu.h: Remove.
16804         * config/sh/sh-symbian.h: Remove.
16805         * config/sh/symbian-base.c: Remove.
16806         * config/sh/symbian-c.c: Remove.
16807         * config/sh/symbian-cxx.c: Remove.
16808         * config/sh/symbian-post.h: Remove.
16809         * config/sh/symbian-pre.h: Remove.
16810         * config/sh/t-symbian: Remove.
16811         * config/svr3.h: Remove.
16812         * config/vax/netbsd.h: Remove.
16813         * config.build: Don't handle i[34567]86-*-pe.
16814         * config.gcc: Remove handling of deprecations for most deprecated
16815         targets.
16816         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16817         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16818         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16819         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16820         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16821         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16822         Remove cases.
16823         * config.host: Don't handle i[34567]86-*-pe.
16824         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16825         (ASM_SPEC32): Don't handle -mcall-gnu.
16826         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16827         -mcall-gnu.
16828         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16829         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16830         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16831         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16832         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16833         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16834         conditional on SYMBIAN.
16835         * configure.ac: Don't handle powerpc*-*-gnu*.
16836         * configure: Regenerate.
16837         * doc/extend.texi (interrupt attribute): Don't mention CRX.
16838         * doc/install-old.texi (m6811, m6812): Don't mention.
16839         * doc/install.texi (arc-*-elf*): Don't document multilib option.
16840         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
16841         (m68k-uclinuxoldabi): Don't mention.
16842         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
16843         Remove.
16844         (-mcall-gnu): Remove.
16845         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
16846         families): Remove constraint documentation.
16847
16848 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
16849
16850         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
16851         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
16852         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
16853
16854 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16855
16856         PR target/48226
16857         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
16858         vector when peeking at the next token for vector, don't expand the
16859         keywords.
16860
16861 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
16862
16863         * config/avr/avr-protos.h (expand_epilogue): Change prototype
16864         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
16865         * config/avr/avr.c (init_cumulative_args)
16866         (avr_function_arg_advance): Use it.
16867         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
16868         sibcall epilogues.
16869         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
16870         (avr_function_ok_for_sibcall): ...this new function.
16871         (avr_lookup_function_attribute1): New static Function.
16872         (avr_naked_function_p, interrupt_function_p)
16873         (signal_function_p, avr_OS_task_function_p)
16874         (avr_OS_main_function_p): Use it.
16875         * config/avr/avr.md ("sibcall", "sibcall_value")
16876         ("sibcall_epilogue"): New expander.
16877         ("*call_insn", "*call_value_insn"): New insn.
16878         ("call_insn", "call_value_insn"): Remove
16879         ("call", "call_value", "epilogue"): Change expander to handle
16880         sibling calls.
16881
16882 2011-03-21  Nick Clifton  <nickc@redhat.com>
16883
16884         * doc/invoke.texi (Overall Options): Move closing brace to end of
16885         options list.
16886         (Optimization Options): Add missing @gol.
16887         (Directory Options): Likewise.
16888         (i386 and x86-64 Options): Likewise.
16889         (RS6000 and PowerPC Options): Likewise.
16890         (i386 and x86-64 Windows Options): Likewise.
16891         (V850 Options): Add text missing from descriptions.
16892
16893 2011-03-22  Richard Henderson  <rth@redhat.com>
16894
16895         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
16896         (avr_incoming_return_addr_rtx): New.
16897         (emit_push_byte): New.
16898         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
16899         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
16900         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
16901         (emit_pop_byte): New.
16902         (expand_epilogue): Use it.  Pop frame pointer by bytes.
16903         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
16904         (INCOMING_RETURN_ADDR_RTX): New.
16905         (INCOMING_FRAME_SP_OFFSET): New.
16906         (ARG_POINTER_CFA_OFFSET): New.
16907         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
16908         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
16909         (pophi): Remove.
16910
16911         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
16912
16913 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16914
16915         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16916         (FUNCTION_ARG_ADVANCE): Likewise.
16917         * tm.texi.in: Change references to them to hook references.
16918         * tm.texi: Regenerate.
16919         * targhooks.c (default_function_arg): Eliminate check for target
16920         macro.
16921         (default_function_incoming_arg): Likewise.
16922         (default_function_arg_advance): Likewise.
16923         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16924         (function_arg_advance): Likewise.
16925         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16926
16927 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16928
16929         * tree.c (build_call_1): New function.
16930         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
16931
16932 2011-03-22  Richard Guenther  <rguenther@suse.de>
16933
16934         PR tree-optimization/48228
16935         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
16936         for single-arg PHIs.
16937
16938 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
16939
16940         PR rtl-optimization/48143
16941         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
16942         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
16943         sse2_cvtps2pd): Likewise.
16944
16945 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16946
16947         * recog.c (canonicalize_change_group): Use validate_unshare_change.
16948
16949 2011-03-22  Richard Guenther  <rguenther@suse.de>
16950
16951         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
16952         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
16953         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
16954         and REALIGN_LOAD_EXPR.
16955         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
16956         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
16957         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
16958         DOT_PROD_EXPR case ...
16959         (expand_expr_real_2): ... here.
16960         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
16961         and REALIGN_LOAD_EXPR.
16962         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
16963         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
16964         (vect_create_epilog_for_reduction): Likewise.
16965         (vectorizable_reduction): Likewise.
16966         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
16967         * tree-vect-stmts.c (vectorizable_load): Likewise.
16968
16969 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
16970
16971         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
16972
16973 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16974
16975         * config/s390/s390.c (s390_delegitimize_address): Fix offset
16976         handling for PLTOFF/GOTOFF.
16977
16978 2011-03-22  Nick Clifton  <nickc@redhat.com>
16979
16980         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
16981         trailing backslash from the end of the macro definition.
16982
16983 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16984
16985         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
16986         and PLT unspecs.
16987
16988 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
16989
16990         * expr.h (prepare_operand): Move to...
16991         * optabs.h (prepare_operand): ...here and change the insn code
16992         parameter from "int" to "enum insn_code".
16993         (insn_operand_matches): Declare.
16994         * expr.c (init_expr_target): Use insn_operand_matches.
16995         (compress_float_constant): Likewise.
16996         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
16997         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
16998         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
16999         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17000         Likewise.
17001         (gen_cond_trap): Likewise.
17002         (prepare_operand): Likewise.  Change icode to an insn_code.
17003         (insn_operand_matches): New function.
17004         * reload.c (find_reloads_address_1): Use insn_operand_matches.
17005         * reload1.c (gen_reload): Likewise.
17006         * targhooks.c (default_secondary_reload): Likewise.
17007
17008 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17009
17010         * config/alpha/alpha.md (unspec): New define_c_enum.
17011         (unspecv): Ditto.
17012
17013 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17014
17015         PR debug/48214
17016         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17017         between a call and its CALL_ARG_LOCATION note.
17018
17019 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
17020
17021         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17022
17023 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17024
17025         PR c/42544
17026         PR c/48197
17027         * c-common.c (shorten_compare): If primopN is first sign-extended
17028         to opN and then zero-extended to result type, set primopN to opN.
17029
17030 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
17031
17032         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17033         for barrier handlers.
17034
17035 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17036
17037         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17038         UNSPEC constants to be in the unspec enumeration, and redefine
17039         all UNSPECV constants to be in the unspecv enumeration, so that
17040         dumps print which unspec/unspec_volatile this is.
17041         * config/rs6000/vector.md (UNSPEC_*): Ditto.
17042         * config/rs6000/paired.md (UNSPEC_*): Ditto.
17043         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17044         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17045         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17046
17047         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17048         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17049         UNSPECV_LWSYNC, since these are used as unspec_volatile.
17050         * config/rs6000/sync.md (isync, lwsync): Ditto.
17051
17052 2011-03-21  Richard Guenther  <rguenther@suse.de>
17053
17054         * params.def (lto-min-partition): Fix typo.
17055
17056 2011-03-21  Richard Guenther  <rguenther@suse.de>
17057
17058         PR c/47939
17059         * c-decl.c (grokdeclarator): Drop to the main variant only
17060         for array types.  Drop flag_gen_aux_info check.
17061
17062 2011-03-21  Richard Guenther  <rguenther@suse.de>
17063
17064         PR translation/47911
17065         * params.def (lto-partitions): Fix typo.
17066         (lto-min-partition): Fix wording.
17067
17068 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
17069
17070         * config/rs6000/t-freebsd: Remove duplication from file.
17071
17072 2011-03-21  Richard Guenther  <rguenther@suse.de>
17073
17074         PR middle-end/47661
17075         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17076
17077 2011-03-21  Richard Guenther  <rguenther@suse.de>
17078
17079         PR lto/48210
17080         * params.def (lto-partitions): Require at least 1 partition.
17081
17082 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17083
17084         * gthr-solaris.h: Remove.
17085         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17086         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17087         (LIB_SPEC): Likewise.
17088         * config/sol2.opt (threads): Remove.
17089         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17090         (sparc*-*-solaris2*): Likewise.
17091         * configure.ac (enable_threads): Enable solaris support.
17092         * configure: Regenerate.
17093         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17094         * doc/install.texi (Configuration, --enable-threads=lib): Remove
17095         solaris.
17096
17097 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17098
17099         * config.gcc: Obsolete *-*-solaris2.8*.
17100         * doc/install.texi (Specific, *-*-solaris2*): Document it.
17101
17102 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17103
17104         PR bootstrap/48135
17105         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17106         reference.  Solaris 8 perl works.
17107
17108 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17109
17110         PR bootstrap/48135
17111         * doc/install.texi (Prerequisites): Move jar etc. up.
17112         Explain support library version requirements.
17113
17114 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17115
17116         PR bootstrap/48135
17117         * doc/install.texi (Prerequisites): Move Perl to build
17118         requirements.  Always necessary on Solaris 2 with Sun ld.
17119
17120 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17121
17122         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17123         binutils 2.21.
17124         (Specific, i?86-*-solaris2.[89]): Likewise.
17125         (Specific, i?86-*-solaris2.10): Likewise.
17126         (Specific, mips-sgi-irix6): Likewise.
17127         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17128         Update for binutils 2.21.
17129
17130 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17131
17132         * configure.ac (gcc_cv_lto_plugin): Fix typo.
17133         Allow -fuse-linker-plugin for non-default plugin linker.
17134         * configure: Regenerate.
17135
17136 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17137
17138         PR bootstrap/48167
17139         * gengtype.c (files_rules): Added rule for cp/parser.h.
17140
17141 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17142
17143         PR target/48213
17144         * config/s390/s390.c (s390_delegitimize_address): Don't call
17145         lowpart_subreg if orig_x has BLKmode.
17146
17147 2011-03-21  Kai Tietz  <ktietz@redhat.com>
17148
17149         PR target/12171
17150         * doc/plugins.texi: Adjust documentation for plugin register_callback.
17151         * tree.h (attribute_spec): Add new member affects_type_identity.
17152         * attribs.c (empty_attribute_table): Adjust attribute_spec
17153         initializers.
17154         * config/alpha/alpha.c: Likewise.
17155         * config/arc/arc.c: Likewise.
17156         * config/arm/arm.c: Likewise.
17157         * config/avr/avr.c: Likewise.
17158         * config/bfin/bfin.c: Likewise.
17159         * config/crx/crx.c: Likewise.
17160         * config/darwin.h: Likewise.
17161         * config/h8300/h8300.c: Likewise.
17162         * config/i386/cygming.h: Likewise.
17163         * config/i386/i386.c: Likewise.
17164         * config/ia64/ia64.c: Likewise.
17165         * config/m32c/m32c.c: Likewise.
17166         * config/m32r/m32r.c: Likewise.
17167         * config/m68hc11/m68hc11.c: Likewise.
17168         * config/m68k/m68k.c: Likewise.
17169         * config/mcore/mcore.c: Likewise.
17170         * config/mep/mep.c: Likewise.
17171         * config/microblaze/microblaze.c: Likewise.
17172         * config/mips/mips.c: Likewise.
17173         * config/rs6000/rs6000.c: Likewise.
17174         * config/rx/rx.c: Likewise.
17175         * config/sh/sh.c: Likewise.
17176         * config/sol2.h: Likewise.
17177         * config/sparc/sparc.c: Likewise.
17178         * config/spu/spu.c: Likewise.
17179         * config/stormy16/stormy16.c: Likewise.
17180         * config/v850/v850.c: Likewise.
17181
17182 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17183
17184         * simplify-rtx.c (simplify_binary_operation_1): Handle
17185         (xor (and A B) C) case when B and C are both constants.
17186
17187 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
17188
17189         * tree-dfa.c (add_referenced_var): Fix typo in comment.
17190
17191 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
17192
17193         PR bootstrap/48168
17194         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17195
17196 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
17197
17198         PR rtl-optimization/48156
17199         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17200         assume df and df_lr are not NULL.
17201
17202 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17203
17204         PR debug/48023
17205         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17206         between a call and its CALL_ARG_LOCATION note.
17207
17208 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
17209
17210         PR debug/48178
17211         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17212         between a call and its corresponding CALL_ARG_LOCATION note.
17213
17214 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
17215
17216         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17217         instead of loop. Use HARD_REGISTER_NUM_P predicate.
17218         * haifa-sched.c (setup_ref_regs): Ditto.
17219         * caller-save.c (add_used_regs_1): Ditto.
17220         * dse.c (look_for_hardregs): Ditto.
17221         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17222         * sched-rgn.c (check_live_1): Ditto.
17223
17224 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17225
17226         * c-decl.c (diagnose_mismatched_decls): Give an error for
17227         redefining a typedef with variably modified type.
17228
17229 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17230
17231         * c-decl.c (grokfield): Don't allow typedefs for structures or
17232         unions with no tag by default.
17233         * doc/extend.texi (Unnamed Fields): Update.
17234
17235 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
17236
17237         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17238         Rewrite using indirect functions.
17239         (lwp_slwpcb): Ditto.
17240         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17241         (avx_vinsertf128<mode>): Ditto.
17242
17243 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17244
17245         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17246         unspecs.
17247
17248 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17249
17250         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17251         splitting between a call and its corresponding CALL_ARG_LOCATION note.
17252
17253 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17254
17255         PR rtl-optimization/48170
17256         * gcse.c (hoist_code): Remove bogus asserts.
17257
17258 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
17259
17260         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17261         computation for prologue/epilogue.
17262
17263 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17264
17265         * Makefile.in (check-consistency): Remove.
17266
17267 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
17268
17269         PR debug/48176
17270         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17271         arange_table_in_use is 0, but either text_section_used or
17272         cold_text_section_used is true.  Don't call it if
17273         !info_section_emitted.
17274
17275 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
17276
17277         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17278         FUNCTION_VALUE_REGNO_P): Remove.
17279         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17280         Remove.
17281         * config/avr/avr.c (avr_ret_register): Make static inline.
17282         (avr_function_value_regno_p): New function.
17283         (avr_libcall_value): Make static. Add 'func' argument.
17284         (avr_function_value): Make static. Rename 'func' argument to
17285         'fn_decl_or_type', forward it to avr_libcall_value. Call
17286         avr_ret_register function instead of RET_REGISTER macro.
17287         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17288
17289 2011-03-18  Jason Merrill  <jason@redhat.com>
17290
17291         PR c++/23372
17292         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17293
17294 2011-03-18  Richard Guenther  <rguenther@suse.de>
17295
17296         * doc/install.texi (--enable-gold): Remove.
17297         (--with-plugin-ld): Document.
17298         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17299
17300 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
17301
17302         PR middle-end/47790
17303         * expr.c (optimize_bitfield_assignment_op): Revamp to work
17304         again after expansion changes.
17305
17306 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
17307
17308         * combine.c (try_combine): Do simplification only call of
17309         subst() on i2 even when i1 is present. Update comments.
17310
17311 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17312
17313         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17314         and UNSPEC_PCREL_SYMOFF.
17315
17316 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17317
17318         * config/s390/s390.md: Use define_c_enum for the unspec constant
17319         definitions.
17320
17321 2011-03-18  Richard Henderson  <rth@redhat.com>
17322             Jakub Jelinek  <jakub@redhat.com>
17323
17324         PR bootstrap/48161
17325         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17326         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17327
17328 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17329
17330         PR middle-end/47725
17331         * combine.c (cant_combine_insn_p): Don't check zero/sign
17332         extended hard registers.
17333
17334 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17335
17336         PR middle-end/47725
17337         * combine.c (cant_combine_insn_p): Check zero/sign extended
17338         hard registers.
17339
17340 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
17341
17342         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17343         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17344         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17345         Change return type to bool.
17346         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17347
17348 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17349
17350         PR debug/48163
17351         * var-tracking.c (prepare_call_arguments): If CALL target
17352         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17353         pc instead of looking it up using cselib_lookup and use
17354         Pmode for it if x has VOIDmode.
17355         * dwarf2out.c (gen_subprogram_die): If also both first and
17356         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17357
17358         PR debug/48163
17359         * function.c (assign_parms): For data.passed_pointer parms
17360         use MEM of data.entry_parm instead of data.entry_parm itself
17361         as DECL_INCOMING_RTL.
17362         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17363         also when passed and declared mode is the same, DECL_RTL
17364         is a MEM with pseudo as address and DECL_INCOMING_RTL is
17365         a MEM too.
17366
17367 2011-03-16  Jeff Law  <law@redhat.com>
17368
17369         PR rtl-optimization/37273
17370         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17371         handle them like argument loads from stack slots.  Do not double
17372         count memory for memory constants and argument loads from stack slots.
17373
17374 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17375
17376         PR debug/48160
17377         * var-tracking.c (prepare_call_arguments): Check SUBREG.
17378
17379 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17380
17381         PR target/48171
17382         * config/i386/i386.opt: Add Save to -mavx and -mfma.
17383
17384 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17385
17386         PR bootstrap/48153
17387         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17388         if dwarf_strict.
17389         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17390         Clear call_arg_locations and call_arg_loc_last always.
17391
17392         PR middle-end/48152
17393         * var-tracking.c (prepare_call_arguments): If argument needs to be
17394         passed by reference, adjust argtype and mode.
17395
17396 2011-03-17  Richard Guenther  <rguenther@suse.de>
17397
17398         PR middle-end/48134
17399         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17400         a value make sure to fold the statement.
17401
17402 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
17403
17404         PR target/43872
17405         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17406         return condition with !cfun->calls_alloca.
17407
17408 2011-03-17  Richard Guenther  <rguenther@suse.de>
17409
17410         PR bootstrap/48148
17411         * lto-cgraph.c (input_overwrite_node): Clear the abstract
17412         origin for decls in other ltrans units.
17413         (input_varpool_node): Likewise.
17414
17415 2011-03-17  Richard Guenther  <rguenther@suse.de>
17416
17417         PR middle-end/48165
17418         * tree-object-size.c (compute_object_offset): Properly return
17419         the offset operand of MEM_REFs as sizetype.
17420
17421 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17422
17423         PR rtl-optimization/48141
17424         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17425         * dse.c: Include params.h.
17426         (active_local_stores_len): New variable.
17427         (add_wild_read, dse_step1): Clear it when setting active_local_stores
17428         to NULL.
17429         (record_store, check_mem_read_rtx): Decrease it when removing
17430         from the chain.
17431         (scan_insn): Likewise.  Increase it when adding to chain, if it
17432         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17433         set active_local_stores to NULL before the addition.
17434         * Makefile.in (dse.o): Depend on $(PARAMS_H).
17435
17436         PR rtl-optimization/48141
17437         * dse.c (record_store): If no positions are needed in an insn
17438         that cannot be deleted, at least unchain it from active_local_stores.
17439
17440 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
17441
17442         PR debug/47510
17443         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17444         (lookup_type_die_strip_naming_typedef): ... here.
17445         (get_context_die): Use it.
17446         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17447         the anonymous struct named by the naming typedef.
17448
17449 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17450
17451         PR target/48154
17452         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17453         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17454
17455 2011-03-16  Jeff Law  <law@redhat.com>
17456
17457         * tree-vrp.c (identify_jump_threads): Slightly simplify type
17458         check for operands of conditional.  Allow type to be a pointer.
17459
17460 2011-03-16  Richard Guenther  <rguenther@suse.de>
17461
17462         PR tree-optimization/48149
17463         * fold-const.c (fold_binary_loc): Fold
17464         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17465
17466 2011-03-16  Richard Guenther  <rguenther@suse.de>
17467
17468         PR tree-optimization/26134
17469         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17470         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17471         (non_rewritable_mem_ref_base): Handle complex type component
17472         accesses, constrain offsets for vector and complex extracts
17473         more properly.
17474
17475 2011-03-16  Richard Guenther  <rguenther@suse.de>
17476
17477         PR tree-optimization/48146
17478         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17479         operands avoiding the need for renaming.
17480
17481 2011-03-16  Richard Guenther  <rguenther@suse.de>
17482
17483         * gimple-fold.c (maybe_fold_reference): Open-code relevant
17484         constant folding.  Move MEM_REF canonicalization first.
17485         Rely on fold_const_aggregate_ref for initializer folding.
17486         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17487
17488 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
17489
17490         PR middle-end/48136
17491         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17492         arg0/arg1 or their arguments are always fold converted to matching
17493         types.
17494
17495         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17496         to nargs.
17497
17498 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17499
17500         PR lto/46944
17501         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17502         Handle in-tree gold.
17503         (ld_vers): Extract binutils version for gold.
17504         (gcc_cv_ld_hidden): Handle gold here.
17505         (gcc_cv_lto_plugin): Determine level of linker plugin support.
17506         * configure: Regenerate.
17507         * config.in: Regenerate.
17508         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17509         -fuse-linker-plugin otherwise.
17510         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
17511         (LINK_COMMAND_SPEC): Use it.
17512         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17513
17514 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
17515
17516         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17517         * calls.c: Remove debug.h include.
17518         (emit_call_1): Don't call virtual_call_token debug hook.
17519         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17520         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17521         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17522         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17523         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17524         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17525         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17526         dwarf2out_virtual_call): Remove.
17527         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17528         copy_call_info and virtual_call hooks.
17529         (dwarf2out_init): Don't initialize vcall_insn_table,
17530         debug_dcall_section and debug_vcall_section.
17531         (prune_unused_types): Don't mark nodes from dcall_table.
17532         (dwarf2out_finish): Don't output dcall or vcall tables.
17533         * final.c (final_scan_insn): Don't call direct_call or
17534         virtual_call debug hooks.
17535         * debug.h (struct gcc_debug_hooks): Remove direct_call,
17536         virtual_call_token, copy_call_info and virtual_call hooks.
17537         (debug_nothing_uid): Remove prototype.
17538         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17539         copy_call_info and virtual_call hooks.
17540         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17541         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17542         * debug.c (do_nothing_debug_hooks): Likewise.
17543         (debug_nothing_uid): Remove.
17544         * doc/invoke.texi (-fenable-icf-debug): Remove.
17545         * common.opt (-fenable-icf-debug): Likewise.
17546
17547         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17548         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17549         call's MEM.  Handle functions returning aggregate through a hidden
17550         first pointer.  For virtual calls add clobbered pc to call arguments
17551         chain.
17552         * dwarf2out.c (gen_subprogram_die): Emit
17553         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17554         can't be emitted.
17555
17556         PR debug/45882
17557         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17558         * rtl.h (ENTRY_VALUE_EXP): Define.
17559         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17560         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17561         * print-rtl.c (print_rtx): Likewise.
17562         * gengtype.c (adjust_field_rtx_def): Likewise.
17563         * var-tracking.c (vt_add_function_parameter): Adjust
17564         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17565         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17566         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17567         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17568         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17569
17570         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17571         Call var_location debug hook even on CALL_INSNs.
17572         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17573         * rtl.def (ENTRY_VALUE): New.
17574         * dwarf2out.c: Include cfglayout.h.
17575         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17576         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17577         (struct call_arg_loc_node): New type.
17578         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17579         tail_call_site_count): New variables.
17580         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17581         DW_TAG_GNU_call_site_parameter.
17582         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17583         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17584         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17585         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17586         and DW_AT_GNU_all_source_call_sites.
17587         (mem_loc_descriptor): Handle ENTRY_VALUE.
17588         (add_src_coords_attributes): Don't add enything if
17589         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17590         (dwarf2out_abstract_function): Save and clear call_arg_location,
17591         call_site_count and tail_call_site_count around dwarf2out_decl call.
17592         (gen_call_site_die): New function.
17593         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17594         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17595         (dwarf2out_function_decl): Clear call_arg_locations,
17596         call_arg_loc_last, set call_site_count and tail_call_site_count
17597         to -1 and free block_map.
17598         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17599         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
17600         followed by any real instructions.
17601         (dwarf2out_begin_function): Set call_site_count and
17602         tail_call_site_count to 0.
17603         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17604         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17605         attempt to force a DIE for it and worst case remove the attribute.
17606         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17607         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17608         the decl itself.
17609         * var-tracking.c: Include tm_p.h.
17610         (vt_stack_adjustments): For calls call note_register_arguments.
17611         (argument_reg_set): New variable.
17612         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17613         ensure the VALUE is resolved.
17614         (call_arguments): New variable.
17615         (prepare_call_arguments): New function.
17616         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17617         (struct expand_loc_callback_data): Add ignore_cur_loc field.
17618         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17619         always use the best expression.
17620         (vt_expand_loc): Add ignore_cur_loc argument.
17621         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17622         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17623         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17624         note for all calls.
17625         (vt_add_function_parameter): Use cselib_lookup_from_insn.
17626         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17627         argument.  Don't call cselib_preserve_only_values and
17628         cselib_reset_table.
17629         (note_register_arguments): New function.
17630         (vt_initialize): Compute argument_reg_set.  Call
17631         vt_add_function_parameters before processing basic blocks instead of
17632         afterwards.  For calls call prepare_call_arguments before calling
17633         cselib_process_insn.
17634         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17635         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17636         (var-tracking.o): Depend on $(TM_P_H).
17637         * cfglayout.h (insn_scope): New prototype.
17638         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17639         * cfglayout.c (insn_scope): No longer static.
17640         * insn-notes.def (CALL_ARG_LOCATION): New.
17641         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17642         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17643         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17644         nothing for DECL_EXTERNAL BLOCK_VARS.
17645
17646 2011-03-16  Alan Modra  <amodra@gmail.com>
17647
17648         PR target/45844
17649         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17650         create invalid offset address for vsx splat insn.
17651         * config/rs6000/predicates.md (splat_input_operand): New.
17652         * config/rs6000/vsx.md (vsx_splat_*): Use it.
17653
17654 2011-03-15  Xinliang David Li  <davidxl@google.com>
17655
17656         PR c/47837
17657         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17658         (normalize_preds): New function.
17659         (is_use_properly_guarded): Normalize def predicates.
17660
17661 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17662
17663         PR target/46788
17664         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17665         in the output template.
17666
17667 2011-03-15  Richard Guenther  <rguenther@suse.de>
17668
17669         PR middle-end/47650
17670         * tree-pretty-print.c (dump_function_declaration): Properly
17671         dump unprototyped and varargs function types.
17672
17673 2011-03-15  Richard Guenther  <rguenther@suse.de>
17674
17675         PR tree-optimization/13954
17676         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17677         and friends.
17678
17679 2011-03-15  Richard Guenther  <rguenther@suse.de>
17680
17681         PR tree-optimization/48037
17682         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17683         selects into BIT_FIELD_REFs.
17684         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17685         vector select.
17686
17687 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
17688
17689         PR tree-optimization/48129
17690         * builtins.c (fold_builtin_snprintf): Convert to type of
17691         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17692         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17693
17694 2011-03-15  Richard Guenther  <rguenther@suse.de>
17695
17696         PR tree-optimization/41490
17697         * tree-ssa-dce.c (propagate_necessity): Handle returns without
17698         value but with VUSE.
17699         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17700         return statements.
17701         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17702         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17703         * tree-tailcall.c (find_tail_calls): Ignore returns.
17704
17705 2011-03-15  Richard Guenther  <rguenther@suse.de>
17706
17707         PR middle-end/48031
17708         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17709         or variable-indexed array accesses when in gimple form.
17710
17711 2011-03-15  Richard Guenther  <rguenther@suse.de>
17712
17713         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
17714
17715 2011-03-15  Alan Modra  <amodra@gmail.com>
17716
17717         PR target/48032
17718         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17719         presume symbol_refs without a symbol_ref_decl are suitably
17720         aligned, nor other trees we may see here.  Handle anchor symbols.
17721         (legitimate_constant_pool_address_p): Comment.  Add mode param.
17722         Check cmodel=medium addresses.  Adjust all calls.
17723         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17724         creating cmodel=medium optimized access to locals.
17725         * config/rs6000/constraints.md (R): Pass QImode to
17726         legitimate_constant_pool_address_p.
17727         * config/rs6000/predicates.md (input_operand): Pass mode to
17728         legitimate_constant_pool_address_p.
17729         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17730         Update prototype.
17731
17732 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17733
17734         PR target/48053
17735         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17736         64-bit constants being loaded into registers other than GPRs such
17737         as loading 0 into a VSX register.
17738
17739 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17740
17741         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
17742
17743 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
17744
17745         PR middle-end/47917
17746         * builtins.c (fold_builtin_snprintf): New function.
17747         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17748         (fold_builtin_4): Likewise.
17749
17750         PR middle-end/38878
17751         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17752         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
17753         and C - X == X also strip nops from +/-/p+ operand.
17754         When optimizing -X == C, fold C to arg0's type.
17755
17756         PR debug/47946
17757         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17758         emit it as add_AT_int instead of add_AT_unsigned.
17759
17760 2011-03-14  Tom Tromey  <tromey@redhat.com>
17761
17762         * unwind-dw2.c: Include sys/sdt.h if it exists.
17763         (_Unwind_DebugHook): Use STAP_PROBE2.
17764         * config.in, configure: Rebuild.
17765         * configure.ac: Check for sys/sdt.h.
17766
17767 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
17768
17769         * config/i386/i386.md (ROUND_FLOOR): New constant.
17770         (ROUND_CEIL): Ditto.
17771         (ROUND_TRUNC): Ditto.
17772         (ROUND_MXCSR): Ditto.
17773         (ROUND_NO_EXC): Ditto.
17774         (rint<mode>2): Use new defines instead of numerical constants.
17775         (floor<mode>2): Ditto.
17776         (ceil<mode>2): Ditto.
17777         (btrunc<mode>2): Ditto.
17778         * config/i386/i386-builtin-types.def: Define ROUND function type
17779         aliases.
17780         * config/i386/i386.c (enum ix86_builtins): Add
17781         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17782         (struct builtin_description): Add
17783         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17784         (ix86_expand_sse_round): New static function.
17785         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17786         function types.
17787         (ix86_builtin_vectorized_function): Handle
17788         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17789
17790 2011-03-14  Tom Tromey  <tromey@redhat.com>
17791
17792         * c-parser.c (c_parser_asm_string_literal): Clear
17793         warn_overlength_strings.
17794
17795 2011-03-14  Tom Tromey  <tromey@redhat.com>
17796
17797         * c-parser.c (disable_extension_diagnostics): Save
17798         warn_overlength_strings.
17799         (restore_extension_diagnostics): Restore warn_overlength_strings.
17800
17801 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
17802
17803         * BASE-VER: Change to 4.7.0.
17804
17805 2011-03-14  Richard Guenther  <rguenther@suse.de>
17806
17807         PR middle-end/48098
17808         * tree.c (build_vector_from_val): Adjust assert to requirements
17809         and reality.
17810
17811 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
17812
17813         PR bootstrap/48102
17814         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
17815
17816 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
17817
17818         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
17819         terms of target_flags_explicit. Adjust copyright year.
17820
17821         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17822         * config/rs6000/t-freebsd: New file. Add override for
17823         LIB2FUNCS_EXTRA.
17824
17825 2011-03-13  Chris Demetriou  <cgd@google.com>
17826
17827         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17828         (-fno-diagnostics-show-option): this, to reflect current default.
17829         (-Werror=): Update text about -fno-diagnostics-show-option.
17830
17831 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
17832
17833         PR target/48053
17834         * config/rs6000/predicates.md (easy_vector_constant_add_self,
17835         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17836         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17837         mode is not V2DImode or V2DFmode.
17838         (vspltis_constant): Do not handle V2DImode and V2DFmode.
17839         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
17840         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17841         registers to 0.
17842         (movdi_internal64): Likewise.
17843
17844 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
17845
17846         PR tree-optimization/47127
17847         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
17848         parameter.
17849         (set_cloog_options): Same.
17850         (scop_to_clast): Same.
17851         (print_clast_stmt): Do not call cloog_state_malloc and
17852         cloog_state_free.
17853         (print_generated_program): Same.
17854         (gloog): Same.
17855         * graphite-clast-to-gimple.h (cloog_state): Declared.
17856         (scop_to_clast): Adjust declaration.
17857         * graphite.c (cloog_state): Defined here.
17858         (graphite_initialize): Call cloog_state_malloc.
17859         (graphite_finalize): Call cloog_state_free.
17860
17861 2011-03-11  Jason Merrill  <jason@redhat.com>
17862
17863         * attribs.c (lookup_attribute_spec): Take const_tree.
17864         * tree.h: Adjust.
17865
17866 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
17867
17868         * config/sparc/sparc.c (sparc_option_override): Use
17869         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
17870
17871 2011-03-11  Richard Guenther  <rguenther@suse.de>
17872
17873         PR tree-optimization/48067
17874         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
17875         multiplication result will be only used once on the target
17876         stmt.
17877
17878 2011-03-11  Richard Guenther  <rguenther@suse.de>
17879
17880         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
17881
17882 2011-03-11  Richard Guenther  <rguenther@suse.de>
17883
17884         PR lto/48073
17885         * tree.c (find_decls_types_r): Do not walk types only reachable
17886         from IDENTIFIER_NODEs.
17887
17888 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
17889
17890         PR middle-end/48044
17891         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
17892         all vnode->force_output nodes as needed.
17893
17894 2011-03-11  Jason Merrill  <jason@redhat.com>
17895
17896         PR c++/48069
17897         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
17898         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
17899
17900 2011-03-11  Martin Jambor  <mjambor@suse.cz>
17901
17902         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
17903         cgraph_node.
17904
17905 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
17906
17907         PR tree-optimization/48063
17908         * ipa-inline.c (cgraph_decide_inlining): Don't try to
17909         inline functions called once if !tree_can_inline_p (node->callers).
17910
17911 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
17912
17913         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
17914         extra_objs.
17915         * config/score/score3.c: Delete.
17916         * config/score/score3.h: Delete.
17917         * config/score/mul-div.S: Delete.
17918         * config/score/sfp-machine.h: Add new file.
17919         * config/score/constraints.md: Add new file.
17920         * config/score/t-score-softfp: Add new file.
17921         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
17922         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
17923         (score7_extra_constraint): Delete.
17924         (score7_option_override): Remove unused code.
17925         * config/score/score.c: Remove score3 and score5 define and code.
17926         * config/score/score.h: Remove score3 and score5 define and code.
17927         * config/score/score.md: Remove score3 template and unusual insn.
17928         * config/score/score.opt: Remove score3 and score5 options.
17929
17930 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17931
17932         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
17933         when _HPUX_SOURCE is defined.
17934         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
17935
17936 2011-03-10  Jason Merrill  <jason@redhat.com>
17937
17938         PR c++/48029
17939         * stor-layout.c (layout_type): Don't set structural equality
17940         on arrays of incomplete type.
17941         * tree.c (type_hash_eq): Handle comparing them properly.
17942
17943 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17944
17945         PR debug/48043
17946         * config/s390/s390.c (s390_delegitimize_address): Make sure the
17947         result mode matches original rtl mode.
17948
17949 2011-03-10  Nick Clifton  <nickc@redhat.com>
17950
17951         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
17952         (andsi3, andsi3_flags): Fix timings for three operand alternative.
17953
17954 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
17955
17956         PR rtl-optimization/47866
17957         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
17958         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
17959         if target wasn't scalar.
17960         * function.c (assign_stack_temp_for_type): Assert that neither
17961         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
17962         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
17963         macro.
17964         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
17965
17966 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17967
17968         * config/s390/s390-protos.h (s390_label_align): New prototype.
17969         * config/s390/s390.c (s390_label_align): New function.
17970         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
17971
17972 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
17973
17974         PR target/47755
17975         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
17976         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
17977         (output_vec_const_move): Ditto.
17978
17979 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
17980
17981         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
17982         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
17983         * config/mips/mips.c (mips_preferred_reload_class): Make static.
17984         Change 'rclass' argument and result type to reg_class_t.
17985         (TARGET_PREFERRED_RELOAD_CLASS): Define.
17986
17987 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
17988
17989         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17990         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
17991         (TARGET_MEMORY_MOVE_COST): Define.
17992         (avr_register_move_cost, avr_memory_move_cost): New Functions.
17993
17994 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
17995
17996         PR debug/47881
17997         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
17998         removed anything.
17999
18000         PR tree-optimization/48022
18001         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18002         for EQ/NE_EXPR.
18003
18004 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
18005
18006         PR debug/47991
18007         * var-tracking.c (find_use_val): Return NULL for
18008         cui->sets && cui->store_p BLKmode MEMs.
18009
18010 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
18011
18012         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18013         Remove.
18014         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18015         xstormy16_print_operand_address): Remove.
18016         * config/stormy16/stormy16.c (xstormy16_print_operand,
18017         xstormy16_print_operand_address): Make static.
18018         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18019
18020 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
18021
18022         PR target/47862
18023         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18024         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18025         before definition.
18026
18027 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
18028
18029         PR bootstrap/48000
18030         * cfgloopmanip.c (fix_bb_placements): Return immediately
18031         if FROM is BASE_LOOP's header.
18032
18033 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
18034
18035         * gimplify.c (gimplify_function_tree): Fix building calls
18036         to __builtin_return_address.
18037
18038 2011-03-07  Alan Modra  <amodra@gmail.com>
18039
18040         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18041         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18042         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18043         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18044         return_mode args.
18045         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18046         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18047         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18048         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18049         * config/rs6000/rs6000.c
18050         (rs6000_elf_end_indicate_exec_stack): Rename to..
18051         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
18052         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
18053         (rs6000_file_start): ..here.
18054         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18055         file scope variables.
18056         (call_ABI_of_interest): New function.
18057         (init_cumulative_args): Set above vars when function return value
18058         is a float, vector, or small struct.
18059         (rs6000_function_arg_advance_1): Likewise for function args.
18060         (rs6000_va_start): Set rs6000_passes_float if variable arg function
18061         references float args.
18062
18063 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
18064
18065         * doc/cfg.texi: Remove "See" before @ref.
18066         * doc/invoke.texi: Likewise.
18067
18068 2011-03-05  Jason Merrill  <jason@redhat.com>
18069
18070         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18071
18072 2011-03-05  Anthony Green  <green@moxielogic.com>
18073
18074         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18075
18076 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
18077
18078         PR rtl-optimization/47899
18079         * cfgloopmanip.c (fix_bb_placements): Fix first argument
18080         to flow_loop_nested_p when moving the loop upward.
18081
18082 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
18083
18084         PR target/47719
18085         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
18086
18087 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
18088
18089         PR tree-optimization/47967
18090         * ipa-cp.c (build_const_val): Return NULL instead of creating
18091         VIEW_CONVERT_EXPR for mismatching sizes.
18092         (ipcp_create_replace_map): Return NULL if build_const_val failed.
18093         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18094         give up on versioning.
18095
18096 2011-03-05  Alan Modra  <amodra@gmail.com>
18097
18098         PR target/47986
18099         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18100         full cmodel medium/large lo_sum + high addresses.
18101
18102 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18103
18104         * config/s390/s390.c (s390_decompose_address): Reject non-literal
18105         pool references in UNSPEC_LTREL_OFFSET.
18106
18107 2011-03-04  Jan Hubicka  <jh@suse.cz>
18108
18109         PR lto/47497
18110         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18111         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18112         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18113         Add node pointers.
18114         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18115         cgraph_add_thunk): Add node pointers.
18116         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18117         associated to right node.
18118         (input_node): Update use of cgraph_same_body_alias
18119         and cgraph_add_thunk.
18120
18121 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18122
18123         * config/i386/i386.opt (mprefer-avx128): New flag.
18124         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18125         modes when the flag -mprefer-avx128 is on.
18126
18127 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
18128
18129         * dwarf2out.c (compare_loc_operands): Fix address handling.
18130
18131 2011-03-04  Alan Modra  <amodra@gmail.com>
18132
18133         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18134
18135 2011-03-04  Richard Guenther  <rguenther@suse.de>
18136
18137         PR middle-end/47968
18138         * expmed.c (extract_bit_field_1): Prefer vector modes that
18139         vec_extract patterns can handle.
18140
18141 2011-03-04  Richard Guenther  <rguenther@suse.de>
18142
18143         PR middle-end/47975
18144         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18145
18146 2011-03-04  Richard Henderson  <rth@redhat.com>
18147
18148         * explow.c (emit_stack_save): Remove 'after' parameter.
18149         (emit_stack_restore): Likewise.
18150         * expr.h: Update to match.
18151         * builtins.c, calls.c, stmt.c: Likewise.
18152         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18153         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18154         * function.c (expand_function_end): Insert the emit_stack_save
18155         sequence before parm_birth_insn instead of after.
18156
18157 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
18158
18159         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18160         (ssse3_pmaddubsw128): Ditto.
18161         (ssse3_pmaddubsw): Ditto.
18162
18163 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
18164
18165         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18166
18167 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
18168
18169         PR c/47963
18170         * gimplify.c (omp_add_variable): Only call omp_notice_variable
18171         on TYPE_SIZE_UNIT if it is a DECL.
18172
18173         PR debug/47283
18174         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18175         first operand is not is_gimple_mem_ref_addr, try to fold it.
18176         If the operand still isn't is_gimple_mem_ref_addr, clear
18177         MEM_EXPR on op0.
18178
18179 2011-03-03  Richard Guenther  <rguenther@suse.de>
18180
18181         PR middle-end/47283
18182         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18183         match comment.
18184         (refs_may_alias_p_1): For release branches return true if
18185         we are confused by our input.
18186
18187 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18188
18189         * config/s390/s390.c (s390_function_value): Rename to ...
18190         (s390_function_and_libcall_value): ... this.
18191         (s390_function_value): New function.
18192         (s390_libcall_value): New function.
18193         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18194         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18195         target macro definitions.
18196         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18197
18198 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
18199
18200         * config/i386/freebsd64.h (CC1_SPEC): Define.
18201         * config/i386/linux64.h (CC1_SPEC): Define.
18202         * config/i386/x86-64.h (CC1_SPEC): Don't define.
18203
18204 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
18205
18206         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18207         Remove.
18208         * config/stormy16/stormy16.c: Include reload.h.
18209         (xstormy16_memory_move_cost): New function.
18210         (TARGET_MEMORY_MOVE_COST): Define.
18211
18212 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
18213
18214         PR rtl-optimization/47925
18215         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18216         with side effects.  Remove the more-specific check for volatile asms.
18217
18218 2011-03-02  Alan Modra  <amodra@gmail.com>
18219
18220         PR target/47935
18221         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18222         toc relative addresses for valid offsets.
18223
18224 2011-03-01  Richard Guenther  <rguenther@suse.de>
18225
18226         PR tree-optimization/47890
18227         * tree-vect-loop.c (get_initial_def_for_induction): Set
18228         related stmt properly.
18229
18230 2011-03-01  Richard Guenther  <rguenther@suse.de>
18231
18232         PR lto/47924
18233         * lto-streamer.c (lto_record_common_node): Also register
18234         the canonical type.
18235
18236 2011-03-01  Richard Guenther  <rguenther@suse.de>
18237
18238         PR lto/46911
18239         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18240         Do not stream DECL_ABSTRACT_ORIGIN.
18241         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18242         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18243         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18244         Do not stream DECL_ABSTRACT_ORIGIN.
18245         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18246         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18247
18248 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
18249
18250         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18251         FUNCTION_VALUE_REGNO_P): Remove.
18252         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18253         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18254         Add 'outgoing' argument.
18255         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18256         function.
18257         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18258         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18259
18260 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
18261
18262         PR debug/28047
18263         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18264         (lookup_filename): Likewise.
18265         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18266
18267 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
18268             Jakub Jelinek  <jakub@redhat.com>
18269
18270         PR middle-end/47893
18271         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18272         (assign_stack_local_1): Change last argument type to int.
18273         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18274         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
18275         don't record padding space into frame_space_list nor use those areas.
18276         (assign_stack_local): Adjust caller.
18277         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18278         of assign_stack_local, pass 0 as last argument.
18279         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18280         callers.
18281
18282 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
18283
18284         PR debug/47283
18285         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18286         Use target address_mode and pointer_mode hooks instead of hardcoded
18287         Pmode and ptr_mode.  Handle some simple cases of extending if
18288         POINTERS_EXTEND_UNSIGNED < 0.
18289         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18290         Call convert_debug_memory_address.
18291         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18292         convert_debug_memory_address.
18293
18294         PR middle-end/46790
18295         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18296         * configure: Regenerated.
18297         * config.in: Regenerated.
18298         * varasm.c (default_function_section): Return NULL
18299         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18300
18301 2011-02-28  Martin Jambor  <mjambor@suse.cz>
18302
18303         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18304         the description to match the printed values.
18305
18306 2011-02-28  Richard Guenther  <rguenther@suse.de>
18307
18308         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18309         of the copied scope tree.
18310
18311 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18312
18313         * doc/extend.texi (Function Attributes): Avoid deeply (and
18314         wrongly) nested tables.
18315
18316 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18317
18318         PR middle-end/47903
18319         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18320         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18321         r isn't op0 nor op1.
18322
18323 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18324
18325         * config/avr/avr.md: Remove magic comment for emacs.
18326
18327 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18328
18329         PR target/45261
18330         * config/avr/avr.c (avr_option_override): Use error on bad options.
18331         (avr_help): New function.
18332         (TARGET_HELP): Define.
18333
18334 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
18335
18336         PR target/42240
18337         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18338         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18339
18340 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
18341
18342         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18343         (ARM Options): Ditto.
18344         (i386 and x86-64 Options): Ditto.
18345         (RX Options): Ditto.
18346         (SPARC Options): Ditto.
18347
18348 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
18349
18350         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18351         FreeBSD 6 and later.  Generally use cpu generic.
18352
18353 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
18354
18355         * doc/cpp.texi: Update copyright years.
18356
18357 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
18358
18359         PR target/46898
18360         * config/lm32/lm32.md (ashrsi3): Added needed variable.
18361
18362 2011-02-25  Jon Beniston  <jon@beniston.com>
18363
18364         PR target/46898
18365         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18366         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18367         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18368         (lm32_block_move_inline): Add type cast to remove warning.
18369         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18370         (gen_int_relational): Move declarations to start of function.
18371
18372 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
18373
18374         PR tree-optimization/45470
18375         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18376         can throw internally only.
18377         * tree-vect-stmts.c (vectorizable_call): Likewise.
18378
18379 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
18380
18381         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18382         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18383         * config/stormy16/stormy16-protos.h
18384         (xstormy16_preferred_reload_class): Remove.
18385         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18386         static. Change 'rclass' argument and return type to reg_class_t.
18387         (TARGET_PREFERRED_RELOAD_CLASS,
18388         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18389
18390 2011-02-24  Richard Guenther  <rguenther@suse.de>
18391
18392         * lto-streamer-in.c (input_bb): Do not find referenced vars
18393         in debug statements.
18394
18395 2011-02-23  Jason Merrill  <jason@redhat.com>
18396
18397         * common.opt (fabi-version): Document v5 and v6.
18398
18399 2011-02-23  Richard Guenther  <rguenther@suse.de>
18400
18401         PR tree-optimization/47849
18402         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18403
18404 2011-02-23  Jie Zhang  <jie@codesourcery.com>
18405
18406         * opts-common.c (decode_cmdline_option): Print empty string
18407         argument as "" in decoded->orig_option_with_args_text.
18408         * gcc.c (execute): Print empty string argument as ""
18409         in the verbose output.
18410         (do_spec_1): Keep empty string argument.
18411
18412 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
18413
18414         * config.gcc: Declare score-* and crx-* obsolete.
18415
18416 2011-02-23  Jie Zhang  <jie@codesourcery.com>
18417
18418         PR rtl-optimization/47763
18419         * web.c (web_main): Ignore naked clobber when replacing register.
18420
18421 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
18422
18423         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18424         Remove.
18425
18426 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18427
18428         PR doc/47848
18429         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18430
18431 2011-02-22  Mike Stump  <mikestump@comcast.net>
18432
18433         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18434         assembler.
18435         * configure: Regenerate.
18436
18437 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
18438
18439         PR rtl-optimization/46002
18440         * ira-color.c (update_copy_costs): Change class intersection
18441         test to reg_class_contents[] test of 'hard_regno'.
18442
18443 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
18444
18445         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18446         than Driver option.
18447         * config/hpux11.opt (mt): Likewise.
18448         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18449         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18450         * config/vax/elf.opt (mno-asm-pic): Likewise.
18451         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18452
18453 2011-02-21  Mike Stump  <mikestump@comcast.net>
18454
18455         PR target/47822
18456         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18457         tree so we can get save the type.
18458         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18459         for CFString instead of trying to use past the end of the builtins.
18460         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18461         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18462         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18463         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18464         Rename to darwin_builtin_cfstring.
18465         (darwin_init_cfstring_builtins): Return the built type.
18466
18467 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
18468
18469         PR target/47840
18470         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18471         (_mm256_insert_epi64): Use _mm_insert_epi64.
18472
18473 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
18474
18475         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18476         * config/stormy16/stormy16-protos.h
18477         (xstormy16_mode_dependent_address_p): Remove.
18478         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18479         Make static. Change return type to bool. Change argument type to
18480         const_rtx. Remove dead code.
18481         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18482
18483 2011-02-21  Richard Guenther  <rguenther@suse.de>
18484
18485         PR lto/47820
18486         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18487         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18488         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18489         TUs context.
18490         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18491         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18492
18493 2011-02-20  Richard Guenther  <rguenther@suse.de>
18494
18495         PR lto/47822
18496         * tree.c (free_lang_data_in_decl): Clean builtins from
18497         the TU decl BLOCK_VARS.
18498
18499 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
18500
18501         PR debug/47620
18502         PR debug/47630
18503         * haifa-sched.c (fix_tick_ready): Skip tick computation
18504         for debug insns.
18505
18506 2011-02-19  Richard Guenther  <rguenther@suse.de>
18507
18508         PR lto/47647
18509         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18510         Remove lazy BLOCK_VARS streaming.
18511         (lto_input_ts_block_tree_pointers): Likewise.
18512         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18513
18514 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
18515
18516         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18517
18518 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
18519
18520         * config/i386/biarch32.h, config/i386/mach.h,
18521         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18522
18523 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
18524
18525         PR target/47800
18526         * config/i386/i386.md (peephole2 for shift and plus): Use
18527         operands[1] original mode in the first insn.
18528
18529 2011-02-18  Mike Stump  <mikestump@comcast.net>
18530
18531         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18532
18533 2011-02-18  Jan Hubicka  <jh@suse.cz>
18534
18535         PR middle-end/47788
18536         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18537         to zero when the function is not inlinable at all.
18538
18539 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18540
18541         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18542         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18543         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18544         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18545         * config/pa/t-pa64: Likewise.
18546         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18547
18548 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18549
18550         PR driver/47787
18551         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18552
18553 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18554
18555         PR target/47792
18556         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18557
18558 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
18559
18560         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18561         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18562         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18563         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18564         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18565         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18566         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18567         m32r_load_postinc_p, m32r_store_preinc_predec_p,
18568         m32r_legitimate_address_p): New functions.
18569         * config/m32r/constraints.md (constraint "S"): Don't use
18570         STORE_PREINC_PREDEC_P.
18571         (constraint "U"): Don't use LOAD_POSTINC_P.
18572
18573 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
18574
18575         PR rtl-optimization/46178
18576         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18577         compute ira_hard_regno_cover_class[].
18578
18579 2011-02-18  Richard Guenther  <rguenther@suse.de>
18580
18581         PR lto/47798
18582         * lto-streamer.h (lto_global_var_decls): Declare.
18583         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18584         statics for global var processing.
18585
18586 2011-02-18  Richard Guenther  <rguenther@suse.de>
18587
18588         PR tree-optimization/47737
18589         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18590         edge dominance check.
18591
18592 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18593
18594         PR debug/47780
18595         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18596         avoid invalid rtx sharing.
18597
18598 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
18599
18600         * doc/cpp.texi (Obsolete Features): Add background on the
18601         origin of assertions.
18602
18603 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
18604
18605         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
18606         objc_abi == 2.
18607         * config/darwin.c (output_objc_section_asm_op): Added support for
18608         ABI v1 and v2.
18609         (is_objc_metadata): New.
18610         (darwin_objc2_section): New.
18611         (darwin_objc1_section): New.
18612         (machopic_select_section): Added support for ABI v1 and v2.
18613         (darwin_emit_objc_zeroed): New.
18614         (darwin_output_aligned_bss): Detect objc metadata and treat it
18615         appropriately.
18616         (darwin_asm_output_aligned_decl_common): Same.
18617         (darwin_asm_output_aligned_decl_local): Same.
18618         * config/darwin-sections.def: Updated for ABI v1 and v2.
18619         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18620         compiling Objective-C code for the NeXT runtime, default to using
18621         ABI version 0 for 32-bit, and version 2 for 64-bit.
18622
18623 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18624
18625         * common.opt (optimize_fast): New Variable.
18626         * opts.c (default_options_optimization): Use opts->x_optimize_fast
18627         instead of local variable ofast.
18628
18629 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
18630
18631         * doc/invoke.texi (fobjc-abi-version): Documented.
18632         (fobjc-nilcheck): Documented.
18633         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18634         version.
18635
18636 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18637
18638         PR driver/47390
18639         * common.opt (export-dynamic): New Driver option.
18640         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18641
18642 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18643
18644         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18645
18646 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
18647             Jan Hubicka  <jh@suse.cz>
18648
18649         PR debug/47106
18650         PR debug/47402
18651         * cfgexpand.c (account_used_vars_for_block): Remove.
18652         (estimated_stack_frame_size): Use referenced vars.
18653         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18654         that were referenced in the original function.  Test src_fn
18655         rather than cfun.  Drop redundant get_var_ann.
18656         (setup_one_parameter): Drop redundant get_var_ann.
18657         (declare_return_variable): Likewise.
18658         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18659         (copy_arguments_for_versioning): Drop redundant get_var_ann.
18660         * ipa-inline.c (compute_inline_parameters): Do not compute
18661         disregard_inline_limits here.
18662         (compute_inlinable_for_current, pass_inlinable): New.
18663         (pass_inline_parameters): Require PROP_referenced_vars.
18664         * cgraphunit.c (cgraph_process_new_functions): Don't run
18665         compute_inline_parameters explicitly unless function is in SSA form.
18666         (cgraph_analyze_function): Set .disregard_inline_limits.
18667         * tree-sra.c (convert_callers): Compute inliner parameters
18668         only for functions already in SSA form.
18669
18670 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18671
18672         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18673         -mlittle-endian-data.
18674
18675 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18676
18677         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18678         -mno-fpu, not -fpu and -no-fpu.
18679         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18680         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18681
18682 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
18683
18684         PR target/43653
18685         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18686         input reload with PLUS RTX.
18687
18688 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18689
18690         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18691         of InverseVar(MDMX).
18692
18693 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18694
18695         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18696         --m4-340.
18697
18698 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18699
18700         * config/mn10300/mn10300.opt (mno-crt0): New.
18701
18702 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18703
18704         * config/m68k/uclinux.opt (static-libc): New Driver option.
18705
18706 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18707
18708         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18709
18710 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18711
18712         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18713         %{muser-extend-enabled}.
18714
18715 2011-02-16  Richard Guenther  <rguenther@suse.de>
18716
18717         PR tree-optimization/47738
18718         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18719         the TODO from tree_predictive_commoning.
18720
18721 2011-02-15  Jeff Law  <law@redhat.com>
18722
18723         Revert
18724         2011-01-25  Jeff Law  <law@redhat.com>
18725
18726         PR rtl-optimization/37273
18727         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18728         handle them like argument loads from stack slots.  Do not double
18729         count memory for memory constants and argument loads from stack slots.
18730
18731 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18732
18733         PR middle-end/47725
18734         * combine.c (cant_combine_insn_p): Revert the last change.
18735
18736 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
18737
18738         PR target/47755
18739         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18740         mode for vector constants.  Remove code that checks for TImode.
18741
18742 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18743
18744         PR debug/47106
18745         PR debug/47402
18746         * cgraph.h (compute_inline_parameters): Return void.
18747         * ipa-inline.c (compute_inline_parameters): Adjust.
18748
18749 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18750
18751         PR debug/47106
18752         PR debug/47402
18753         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18754         rather than decl.
18755         * cfgexpand.c (estimated_stack_frame_size): Likewise.
18756         * ipa-inline.c (compute_inline_parameters): Adjust.
18757
18758 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18759
18760         PR debug/47106
18761         PR debug/47402
18762         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18763         Adjust all users.  Pass FN to...
18764         * tree-flow-inline.h (first_referenced_var): ... this.  Add
18765         fn argument.
18766         * ipa-struct-reorg.c: Adjust.
18767         * tree-dfa.c: Adjust.
18768         * tree-into-ssa.c: Adjust.
18769         * tree-sra.c: Adjust.
18770         * tree-ssa-alias.c: Adjust.
18771         * tree-ssa-live.c: Adjust.
18772         * tree-ssa.c: Adjust.
18773         * tree-ssanames.c: Adjust.
18774         * tree-tailcall.c: Adjust.
18775
18776 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18777
18778         PR debug/47106
18779         PR debug/47402
18780         * tree-flow.h (referenced_var_lookup): Add fn parameter.
18781         Adjust all callers.
18782         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18783         * tree-flow-inline.h: Adjust.
18784         * gimple-pretty-print.c: Adjust.
18785         * tree-into-ssa.c: Adjust.
18786         * tree-ssa.c: Adjust.
18787         * cfgexpand.c: Adjust.
18788
18789 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
18790
18791         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18792         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18793         (EXTRA_CONSTRAINT): Delete.
18794         * config/iq2000/constraints.md: New file.
18795         * config/iq2000/iq2000.md: Include it.
18796         (define_insn ""): Delete.
18797         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18798         unsupported constraint letters from patterns.
18799         (call_value, call_value_internal1): Likewise.
18800         (call_value_multiple_internal1): Likewise.
18801
18802 2011-02-15  Nick Clifton  <nickc@redhat.com>
18803
18804         * config/mn10300/mn10300.c: Include tm-constrs.h.
18805         (struct liw_data): New data structure describing an LIW candidate
18806         instruction.
18807         (extract_bundle): Use struct liw_data.  Allow small integer
18808         operands for some instructions.
18809         (check_liw_constraints): Use struct liw_data.  Remove swapped
18810         parameter.  Add comments describing the checks.  Fix bug when
18811         assigning the source of liw1 to the source of liw2.
18812         (liw_candidate): Delete.  Code moved into extract_bundle.
18813         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
18814         before swapping.
18815         * config/mn10300/predicates.md (liw_operand): New predicate.
18816         Allows registers and small integer constants.
18817         * config/mn10300/constraints.md (O): New constraint.  Accetps
18818         integers in the range -8 to +7 inclusive.
18819         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18820         for moving a small integer into a register.  Give this alternative
18821         LIW attributes.
18822         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18823         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18824         using the J,K,L and M constraints,
18825         (liw): Remove SI mode on second operands to allow for HI and QI
18826         mode values.
18827         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
18828         instruction.
18829
18830 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18831
18832         PR middle-end/47725
18833         * combine.c (cant_combine_insn_p): Check zero/sign extended
18834         hard registers.
18835
18836 2011-02-15  Richard Guenther  <rguenther@suse.de>
18837
18838         PR tree-optimization/47743
18839         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
18840         for a non-type-compatible VN lookup bail out.
18841
18842 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
18843
18844         * config/fr30/constraints.md: New file.
18845         * config/fr30/fr30.md: Include it.
18846         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
18847         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18848         (EXTRA_CONSTRAINT): Delete.
18849
18850 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
18851
18852         * config/frv/constraints.md: New file.
18853         * config/frv/predicates.md: Include it.
18854         * config/frv/frv.c (reg_class_from_letter): Delete.
18855         (frv_option_override): Don't initialize it.
18856         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
18857         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
18858         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
18859         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18860         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
18861         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18862         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
18863         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
18864         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
18865         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
18866         (REG_CLASS_FROM_CONSTRAINT): Delete.
18867
18868 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
18869
18870         PR middle-end/47581
18871         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
18872         if frame size is 0 in a leaf function.
18873
18874 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18875
18876         PR pch/14940
18877         * config/alpha/host-osf.c: New file.
18878         * config/alpha/x-osf: New file.
18879         * config.host (alpha*-dec-osf*): Use it.
18880
18881 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
18882
18883         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18884         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
18885         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
18886         (rx_mode_dependent_address_p): ...this. Make static. Change argument
18887         type to const_rtx.
18888         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18889
18890 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
18891
18892         * config/stormy16/constraints.md: New file.
18893         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
18894         Use satisfies_constraint_Q and satisfies_constraint_R.
18895         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
18896         Delete.
18897         (xstormy16_legitiamte_address_p): Declare.
18898         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
18899         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18900         (EXTRA_CONSTRAINT): Delete.
18901         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18902         Un-staticize.
18903         (xstormy16_extra_constraint_p): Delete.
18904
18905 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
18906
18907         PR tree-optimization/46494
18908         * loop-unroll.c (split_edge_and_insert): Adjust comment.
18909         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
18910         (pass_rtl_loop_done): Add TODO_verify_flow.
18911         * fwprop.c (pass_rtl_fwprop): Likewise.
18912         * modulo-sched.c (pass_sms): Likewise.
18913         * tree-ssa-dom.c (pass_dominator): Likewise.
18914         * tree-ssa-loop-ch.c (pass_ch): Likewise.
18915         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
18916         (pass_tree_loop_done): Likewise.
18917         * tree-ssa-pre.c (execute_pre): Likewise.
18918         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18919         * tree-ssa-sink.c (pass_sink_code): Likewise.
18920         * tree-vrp.c (pass_vrp): Likewise.
18921
18922 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
18923
18924         * config/v850/constraints.md: New file.
18925         * config/v850/v850.md: Include it.
18926         * config/v850/predicates.md (reg_or_0_operand): Use
18927         satisfies_constraint_G.
18928         (special_symbolref_operand): Use satisfies_constraint_K.
18929         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
18930         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
18931         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
18932         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18933         (EXTRA_CONSTRAINT): Delete.
18934         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
18935         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
18936         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
18937
18938 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
18939
18940         PR target/47696
18941         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
18942         description.
18943
18944 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
18945
18946         * config/mcore/constraints.md: New file.
18947         * config/mcore/mcore.md: Include it.
18948         * config/mcore/mcore.c (reg_class_from_letter): Delete.
18949         * config/mcore/mcore.h (reg_class_from_letter): Delete.
18950         (REG_CLASS_FROM_LETTER): Delete.
18951         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
18952         insn_const_int_ok_for_constraint.
18953         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
18954         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
18955         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18956         (EXTRA_CONSTRAINT): Delete.
18957
18958 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18959
18960         PR ada/41929
18961         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
18962         (IS_SIGHANDLER): Define.
18963         (sparc64_is_sighandler): New function, split off from
18964         sparc64_fallback_frame_state.
18965         (sparc_is_sighandler): New function, split off from
18966         sparc_fallback_frame_state.
18967         (sparc64_fallback_frame_state): Merge with ...
18968         (sparc_fallback_frame_state): ... this into ...
18969         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
18970         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
18971         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
18972         stack instead of hardcoded offsets.
18973
18974 2011-02-14  Andriy Gapon  <avg@freebsd.org>
18975
18976         PR target/45808
18977         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
18978
18979 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18980
18981         * configure: Regenerate.
18982
18983 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
18984
18985         PR driver/45731
18986         * gcc.c (asm_options): Correct spec matching --target-help.
18987
18988 2011-02-12  Martin Jambor  <mjambor@suse.cz>
18989
18990         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
18991         to gimple call error.
18992
18993 2011-02-12  Mike Stump  <mikestump@comcast.net>
18994
18995         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
18996         comments in backslash regions.
18997
18998 2011-02-12  Mike Stump  <mikestump@comcast.net>
18999             Jakub Jelinek  <jakub@redhat.com>
19000             Iain Sandoe  <iains@gcc.gnu.org>
19001
19002         PR target/47324
19003         * dwarf2out.c (output_cfa_loc): When required, apply the
19004         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19005         (output_loc_sequence): Likewise.
19006         (output_loc_operands_raw): Likewise.
19007         (output_loc_sequence_raw): Likewise.
19008         (output_cfa_loc): Likewise.
19009         (output_loc_list): Suppress register number adjustment when
19010         calling output_loc_sequence()
19011         (output_die): Likewise.
19012
19013 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
19014
19015         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19016         Remove macros.
19017         * config/xtensa/xtensa.c (xtensa_register_move_cost,
19018         xtensa_memory_move_cost): New functions.
19019         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19020
19021 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
19022
19023         PR lto/47225
19024         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19025         in the current directory.
19026         * configure: Rebuilt.
19027
19028 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19029
19030         * config/darwin.c (darwin_override_options): Add a hunk missed
19031         from the commit of r168571.  Trim comment line lengths and
19032         correct indents of the preceding block.
19033
19034 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19035
19036         * gcc.c (driver_handle_option): Concatenate the argument to -F with
19037         the switch.
19038
19039 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19040
19041         * common.opt (nostartfiles): New Driver option.
19042
19043 2011-02-11  Xinliang David Li  <davidxl@google.com>
19044
19045         PR tree-optimization/47707
19046         * tree-chrec.c (convert_affine_scev): Keep type precision.
19047
19048 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
19049
19050         PR tree-optimization/47420
19051         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19052
19053 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
19054
19055         PR rtl-optimization/47614
19056         * rtl.h (check_for_inc_dec): Declare.
19057         * dse.c (check_for_inc_dec): Externalize...
19058         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19059         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19060
19061 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19062
19063         PR driver/47678
19064         * gcc.c (main): Do not compile inputs if there were errors in
19065         option handling.
19066         * opts-common.c (read_cmdline_option): Check for wrong language
19067         after other error checks.
19068
19069 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
19070
19071         * cgraph.c: Fix comment typos.
19072         * cgraph.h: Likewise.
19073         * cgraphunit.c: Likewise.
19074         * ipa-cp.c: Likewise.
19075         * ipa-inline.c: Likewise.
19076         * ipa-prop.c: Likewise.
19077         * ipa-pure-const.c: Likewise.
19078         * ipa-ref.c: Likewise.
19079         * ipa-reference.c: Likewise.
19080
19081 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19082
19083         PR debug/47684
19084         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19085
19086 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19087
19088         PR testsuite/47400
19089         * doc/sourcebuild.texi (Require Support): Document
19090         dg-require-ascii-locale.
19091
19092 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
19093
19094         * doc/lto.texi (Write summary): Fix missing parentheses.
19095
19096 2011-02-10  DJ Delorie  <dj@redhat.com>
19097
19098         * config/m32c/m32c.c (m32c_option_override): Disable
19099         -fcombine-stack-adjustments until flag value tracking and compare
19100         optimization can be rewritten.
19101
19102 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
19103
19104         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19105         PROCESSOR_POWER7.
19106         (PROCESSOR_DEFAULT64): Likewise.
19107
19108 2011-02-10  Richard Henderson  <rth@redhat.com>
19109
19110         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19111         change from 2011-02-03.
19112         * config/rx/rx.c (flags_from_code): Likewise.
19113         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19114         is valid, n/pz otherwise.
19115         (rx_select_cc_mode): Return CCmode if Y is not zero.
19116
19117 2011-02-10  Richard Guenther  <rguenther@suse.de>
19118
19119         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19120
19121 2011-02-10  Richard Guenther  <rguenther@suse.de>
19122
19123         PR tree-optimization/47677
19124         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19125
19126 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
19127
19128         PR target/47665
19129         * combine.c (make_compound_operation): Only change shifts into
19130         multiplication for SCALAR_INT_MODE_P.
19131
19132 2011-02-10  Jie Zhang  <jie@codesourcery.com>
19133
19134         PR testsuite/47622
19135         Revert
19136         2011-02-05  Jie Zhang  <jie@codesourcery.com>
19137         PR debug/42631
19138         * web.c (entry_register): Don't clobber the number of the
19139         first uninitialized reference in used[].
19140
19141 2011-02-09  Richard Guenther  <rguenther@suse.de>
19142
19143         PR tree-optimization/47664
19144         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19145         all edges again.
19146
19147 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
19148
19149         PR target/46481
19150         PR target/47032
19151         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19152         PROCESSOR_POWER7.
19153         (PROCESSOR_DEFAULT64): Same.
19154         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19155
19156 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19157
19158         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19159
19160 2011-02-09  Martin Jambor  <mjambor@suse.cz>
19161
19162         PR middle-end/45505
19163         * tree-sra.c (struct access): New flags grp_scalar_read and
19164         grp_scalar_write.  Changed description of assignment read and write
19165         flags.
19166         (dump_access): Dump new flags, reorder all of them.
19167         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19168         to detect multiple scalar reads.
19169         (analyze_access_subtree): Use the new scalar read write flags instead
19170         of the old flags.  Adjusted comments.
19171
19172 2011-02-08  DJ Delorie  <dj@redhat.com>
19173
19174         PR target/47548
19175         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19176         patterns.
19177
19178 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19179
19180         * config/m68k/uclinux.opt: New.
19181         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19182
19183 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19184
19185         * config/cris/elf.opt (sim): New Driver option.
19186
19187 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19188
19189         * config/xtensa/elf.opt: New.
19190         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19191
19192 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19193
19194         * config/vax/elf.opt: New.
19195         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19196
19197 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19198
19199         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19200
19201 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19202
19203         * config/gnu-user.opt: New.
19204         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19205         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19206         *-*-uclinux*): Use gnu-user.opt.
19207
19208 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
19209
19210         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19211         * config/i386/gnu.h (CPP_SPEC): Likewise.
19212
19213 2011-02-08  Ian Lance Taylor  <iant@google.com>
19214
19215         * common.opt (fcx-limited-range): Add SetByCombined flag.
19216         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19217         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19218         (fassociative-math, freciprocal-math): Likewise.
19219         (funsafe-math-optimizations): Likewise.
19220         * opth-gen.awk: Handle SetByCombined.
19221         * optc-gen.awk: Likewise.
19222         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19223         (set_unsafe_math_optimizations_flags): Likewise.
19224         * doc/options.texi (Option properties): Document SetByCombined.
19225
19226 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19227
19228         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19229         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19230         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19231         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19232         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19233
19234 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
19235
19236         PR tree-optimization/46834
19237         PR tree-optimization/46994
19238         PR tree-optimization/46995
19239         * graphite-sese-to-poly.c (used_outside_reduction): New.
19240         (detect_commutative_reduction): Call used_outside_reduction.
19241         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19242         translate_scalar_reduction_to_array only when at least one
19243         loop-phi/close-phi tuple has been detected.
19244
19245 2011-02-08  Richard Guenther  <rguenther@suse.de>
19246
19247         PR middle-end/47639
19248         * tree-vect-generic.c (expand_vector_operations_1): Update
19249         stmts here ...
19250         (expand_vector_operations): ... not here.  Cleanup EH info
19251         and the CFG if required.
19252
19253 2011-02-08  Richard Guenther  <rguenther@suse.de>
19254
19255         PR tree-optimization/47641
19256         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19257         require type compatibility.
19258
19259 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19260
19261         * gimple-low.c (lower_function_body): Don't remove the location of
19262         the return statement here.
19263         (lower_gimple_return): Do it here instead but only if the return
19264         statement is actually used twice.
19265
19266 2011-02-08  Richard Guenther  <rguenther@suse.de>
19267
19268         PR tree-optimization/47632
19269         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19270         unused up_to_stmt parameter, return whether cfg-cleanup is
19271         necessary, remove EH info properly.
19272         (forward_propagate_into_gimple_cond): Adjust caller.
19273         (forward_propagate_into_cond): Likewise.
19274         (forward_propagate_comparison): Likewise.
19275         (tree_ssa_forward_propagate_single_use_vars): Make
19276         forward_propagate_comparison case similar to the two others.
19277
19278 2011-02-08  Nick Clifton  <nickc@redhat.com>
19279
19280         * config/mn10300/mn10300.opt (mliw): New command line option.
19281         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19282         (liw_bundling): New automaton.
19283         (liw): New attribute.
19284         (liw_op): New attribute.
19285         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19286         (movsi_internal): Add LIW attributes.
19287         (andsi3): Likewise.
19288         (iorsi3): Likewise.
19289         (xorsi3): Likewise.
19290         (addsi3): Separate register and immediate alternatives.
19291         Add LIW attributes.
19292         (subsi3): Likewise.
19293         (cmpsi): Likewise.
19294         (aslsi3): Likewise.
19295         (lshrsi3): Likewise.
19296         (ashrsi3): Likewise.
19297         (liw): New pattern.
19298         * config/mn10300/mn10300.c (liw_op_names): New
19299         (mn10300_print_operand): Handle 'W' operand descriptor.
19300         (extract_bundle): New function.
19301         (check_liw_constraints): New function.
19302         (liw_candidate): New function.
19303         (mn10300_bundle_liw): New function.
19304         (mn10300_reorg): New function.
19305         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19306         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19307         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19308         __LIW__ or __NO_LIW__.
19309         * doc/invoke.texi: Describe the -mliw command line option.
19310
19311 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19312
19313         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19314         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19315         pthread_mutex_unlock): Remove.
19316         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19317         * config/pa/t-pa64: Likewise.
19318         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19319         shared libc if not linking against libpthread.
19320         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19321
19322 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
19323
19324         PR target/47558
19325         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19326         on 10.6 and later to ensure that we always use the unwinder from
19327         the system.  Only add -no_compact_unwind when tarteting darwin
19328         10.6 or later.
19329
19330 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
19331
19332         PR target/46997
19333         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19334         (vec_interleave_lowv2sf): Ditto.
19335         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19336         (vec_extract_oddv2sf): Ditto.
19337
19338 2011-02-07  Mike Stump  <mikestump@comcast.net>
19339
19340         PR target/42333
19341         Add __ieee_divdc3 entry point.
19342         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19343         entry point.
19344         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19345         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19346         * config/darwin.c (darwin_rename_builtins): Add.
19347         * config/darwin-protos.h (darwin_rename_builtins): Add.
19348
19349 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
19350
19351         PR target/47636
19352         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19353         for the condition.
19354
19355 2011-02-07  Mike Stump  <mikestump@comcast.net>
19356
19357         * config/darwin.opt (mmacosx-version-min): Update default OS version.
19358
19359 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
19360
19361         PR target/47534
19362         * config/avr/libgcc.S (exit): Move .endfunc
19363
19364 2011-02-07  Richard Guenther  <rguenther@suse.de>
19365
19366         PR tree-optimization/47615
19367         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19368         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19369         (run_scc_vn): Initialize it.
19370         (visit_reference_op_load): Use it.
19371         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19372
19373 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19374
19375         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19376         DImode trapping arithmetic libfuncs.
19377
19378 2011-02-07  Richard Guenther  <rguenther@suse.de>
19379
19380         PR tree-optimization/47621
19381         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19382         two duplicates ...
19383         (execute_update_addresses_taken): ... here.  Make it more
19384         conservative in what we accept.
19385
19386 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
19387
19388         * config/sparc/freebsd.h (ASM_SPEC): Define.
19389         * config/sparc/vxworks.h (ASM_SPEC): Define.
19390
19391 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
19392
19393         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19394
19395 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
19396
19397         * doc/invoke.texi: Remove reference to compiler internals from
19398         user documentation.
19399
19400         * reg-notes.def: Remove REG_VALUE_PROFILE.
19401         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19402
19403 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
19404
19405         PR middle-end/47610
19406         * varasm.c (default_section_type_flags): If decl is NULL,
19407         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19408
19409 2011-02-05  Jie Zhang  <jie@codesourcery.com>
19410
19411         PR debug/42631
19412         * web.c (entry_register): Don't clobber the number of the
19413         first uninitialized reference in used[].
19414
19415 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
19416
19417         PR tree-optimization/46194
19418         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19419         (build_classic_dist_vector_1): Do not represent classic distance
19420         vectors when the access functions are variating in different loops.
19421
19422 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19423
19424         * config/mips/iris6.opt: New.
19425         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19426
19427 2011-02-04  Richard Henderson  <rth@redhat.com>
19428             Steve Ellcey  <sje@cup.hp.com>
19429
19430         PR target/46997
19431         * config/ia64/predicates.md (mux1_brcst_element): New.
19432         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19433         * config/ia64/ia64.c (ia64_unpack_assemble): New.
19434         (ia64_unpack_sign): New.
19435         (ia64_expand_unpack): Rewrite using new routines.
19436         (ia64_expand_widen_sum): Ditto.
19437         (ia64_expand_dot_prod_v8qi): Ditto.
19438         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19439         routines, add endian check.
19440         (pmpy2_even): Rename from pmpy2_r, add endian check.
19441         (pmpy2_odd): Rename from pmpy2_l, add endian check.
19442         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19443         (vec_widen_smult_hi_v4hi): Ditto.
19444         (vec_widen_umult_lo_v4hi): Ditto.
19445         (vec_widen_umult_hi_v4hi): Ditto.
19446         (mulv2si3): Change endian checks.
19447         (sdot_prodv4hi): Rewrite with new calls.
19448         (udot_prodv4hi): New.
19449         (vec_pack_ssat_v4hi): Add endian check.
19450         (vec_pack_usat_v4hi): Ditto.
19451         (vec_pack_ssat_v2si): Ditto.
19452         (max1_even): Rename from max1_r, add endian check.
19453         (max1_odd): Rename from max1_l, add endian check.
19454         (*mux1_rev): Format change.
19455         (*mux1_mix): Ditto.
19456         (*mux1_shuf): Ditto.
19457         (*mux1_alt): Ditto.
19458         (*mux1_brcst_v8qi): Use new predicate.
19459         (vec_extract_evenv8qi): Remove endian check.
19460         (vec_extract_oddv8qi): Ditto.
19461         (vec_interleave_lowv4hi): Format change.
19462         (vec_interleave_highv4hi): Ditto.
19463         (mix2_even): Rename from mix2_r, add endian check.
19464         (mix2_odd): Rename from mux2_l, add endian check.
19465         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19466         (vec_extract_evenodd_helper): Format change.
19467         (vec_extract_evenv4hi): Remove endian check.
19468         (vec_extract_oddv4hi): Remove endian check.
19469         (vec_interleave_lowv2si): Format change.
19470         (vec_interleave_highv2si): Format change.
19471         (vec_initv2si): Remove endian check.
19472         (vecinit_v2si): Add endian check.
19473         (reduc_splus_v2sf): Add endian check.
19474         (reduc_smax_v2sf): Ditto.
19475         (reduc_smin_v2sf): Ditto.
19476         (vec_initv2sf): Remove endian check.
19477         (fpack): Add endian check.
19478         (fswap): Add endian check.
19479         (vec_interleave_highv2sf): Add endian check.
19480         (vec_interleave_lowv2sf): Add endian check.
19481         (fmix_lr): Add endian check.
19482         (vec_setv2sf): Format change.
19483         (*vec_extractv2sf_0_be): Use shift to extract operand.
19484         (*vec_extractv2sf_1_be): New.
19485         (vec_pack_trunc_v4hi): Add endian check.
19486         (vec_pack_trunc_v2si): Format change.
19487
19488 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
19489
19490         PR inline-asm/23200
19491         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
19492         do bb, locus and block comparison and disallow loads if it is not set.
19493         (stmt_is_replaceable_p): New function.
19494         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19495         callers.
19496         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19497         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19498         SSA_NAME_DEF_STMT.
19499         * tree-flow.h (stmt_is_replaceable_p): New prototype.
19500
19501 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19502
19503         * config/rs6000/xilinx.opt: New.
19504         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19505
19506 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19507
19508         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19509
19510 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
19511
19512         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19513         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19514         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19515         secondary_reload_info, xtensa_secondary_reload): Remove.
19516         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19517         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19518         (xtensa_preferred_reload_class): Make static. Change return and
19519         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19520         Use CONST_DOUBLE_P predicate.
19521         (xtensa_preferred_output_reload_class): New function.
19522         (xtensa_secondary_reload): Make static.
19523
19524 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
19525
19526         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19527         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19528         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19529
19530 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19531
19532         PR middle-end/31490
19533         * output.h (SECTION_RELRO): Define.
19534         (SECTION_MACH_DEP): Adjust.
19535         (get_variable_section): New prototype.
19536         * varpool.c (varpool_finalize_named_section_flags): New function.
19537         (varpool_assemble_pending_decls): Call it.
19538         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19539         * cgraphunit.c (cgraph_output_in_order): Call
19540         varpool_finalize_named_section_flags.
19541         * varasm.c (get_section): Allow section flags conflicts between
19542         relro and read-only sections if the section hasn't been declared yet.
19543         Set SECTION_OVERRIDE after diagnosing section type conflict.
19544         (get_variable_section): No longer static.
19545         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19546         readonly sections that need relocations.
19547         (decl_readonly_section_1): New function.
19548         (decl_readonly_section): Use it.
19549
19550         Revert:
19551         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
19552                     Steve Ellcey  <sje@cup.hp.com>
19553
19554         PR middle-end/31490
19555         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19556         if section attribute used.
19557
19558 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19559
19560         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19561         * config/darwin.c (SECTION_NO_ANCHOR): Define.
19562         (darwin_init_sections): Remove assertion.
19563
19564 2011-02-03  Nick Clifton  <nickc@redhat.com>
19565
19566         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19567         lt and ge.
19568         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19569         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19570         instead of "n" and "pz".
19571         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19572         CC_FLAG_S.
19573
19574 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19575
19576         PR target/47312
19577         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19578         fma, expand FMA_EXPR as fma{,f,l} call.
19579
19580         PR lto/47274
19581         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19582         copy them into a unsigned char variable and pass address of it to
19583         lto_output_data_stream.
19584
19585         PR target/47564
19586         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19587         around backend_init_target and lang_dependent_init_target calls.
19588         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19589         (verify_cgraph_node): Don't call set_cfun here.  Use
19590         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19591         Set error_found for incorrectly represented calls to thunks.
19592
19593 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
19594
19595         PR debug/43092
19596         PR rtl-optimization/43494
19597         * rtl.h (for_each_inc_dec_fn): New type.
19598         (for_each_inc_dec): Declare.
19599         * rtlanal.c (struct for_each_inc_dec_ops): New type.
19600         (for_each_inc_dec_find_inc_dec): New fn.
19601         (for_each_inc_dec_find_mem): New fn.
19602         (for_each_inc_dec): New fn.
19603         * dse.c (struct insn_size): Remove.
19604         (replace_inc_dec, replace_inc_dec_mem): Remove.
19605         (emit_inc_dec_insn_before): New fn.
19606         (check_for_inc_dec): Use it, along with for_each_inc_dec.
19607         (canon_address): Pass mem modes to cselib_lookup.
19608         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
19609         (cselib_lookup_from_insn): Likewise.
19610         (cselib_subst_to_values): Likewise.
19611         * cselib.c (find_slot_memmode): New var.
19612         (cselib_find_slot): New fn.  Use it instead of
19613         htab_find_slot_with_hash everywhere.
19614         (entry_and_rtx_equal_p): Use find_slot_memmode.
19615         (autoinc_split): New fn.
19616         (rtx_equal_for_cselib_p): Rename and implement in terms of...
19617         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
19618         Deal with autoinc.  Special-case recursion into MEMs.
19619         (cselib_hash_rtx): Likewise.
19620         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
19621         address and MEM modes.
19622         (cselib_subst_to_values): Add memmode, pass it on.
19623         Deal with autoinc.
19624         (cselib_lookup): Add memmode argument, pass it on.
19625         (cselib_lookup_from_insn): Add memmode.
19626         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19627         (struct cselib_record_autoinc_data): New.
19628         (cselib_record_autoinc_cb): New fn.
19629         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
19630         mode to cselib_lookup.  Reset autoinced REGs here instead of...
19631         (cselib_process_insn): ... here.
19632         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19633         to cselib_lookup.
19634         (add_uses): Likewise, also to cselib_subst_to_values.
19635         (add_stores): Likewise.
19636         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
19637         cselib_subst_to_values.
19638         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
19639         * gcse.c (do_local_cprop): Adjusted.
19640         * postreload.c (reload_cse_simplify_set): Adjusted.
19641         (reload_cse_simplify_operands): Adjusted.
19642         * sel-sched-dump (debug_mem_addr_value): Pass mode.
19643
19644 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
19645
19646         PR tree-optimization/45122
19647         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19648         unsafe assumptions when there's more than one loop exit.
19649
19650 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19651
19652         PR target/47272
19653         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19654         Document using vector double with the load/store builtins, and
19655         that the load/store builtins always use Altivec instructions.
19656
19657         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19658         to use altivec memory instructions, even on VSX.
19659         (vector_altivec_store_<mode>): Ditto.
19660
19661         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19662         function.
19663
19664         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19665         V2DF, V2DI support to load/store overloaded builtins.
19666
19667         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19668         altivec load/store builtins for V2DF/V2DI types.
19669
19670         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19671         set avoid indexed addresses on power6 if -maltivec.
19672         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19673         vector_altivec_load/vector_altivec_store builtins.
19674         (altivec_expand_st_builtin): Ditto.
19675         (altivec_expand_builtin): Add VSX memory builtins.
19676         (rs6000_init_builtins): Add V2DI types to internal types.
19677         (altivec_init_builtins): Add support for V2DF/V2DI altivec
19678         load/store builtins.
19679         (rs6000_address_for_altivec): Insure memory address is appropriate
19680         for Altivec.
19681
19682         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19683         vec_vsx_ld and vec_vsx_st.
19684         (vsx_store_<mode>): Ditto.
19685
19686         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19687         variables to hold long long types for VSX vector memory builtins.
19688         (RS6000_BTI_unsigned_long_long): Ditto.
19689         (long_long_integer_type_internal_node): Ditti.
19690         (long_long_unsigned_type_internal_node): Ditti.
19691
19692         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19693         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19694         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19695
19696         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19697         short cuts.
19698         (vec_vsx_st): Ditto.
19699
19700 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
19701
19702         * config/pa/pa-hpux10.opt: New.
19703         * config/hpux11.opt (pthread): New Driver option.
19704         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19705         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19706
19707 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
19708
19709         * config/ia64/vms.opt: New.
19710         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19711
19712 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
19713
19714         PR target/47580
19715         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19716         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19717         generator functions.
19718         (vsx_floatuns<VSi><mode>2): Ditto.
19719         (vsx_fix_trunc<mode><VSi>2): Ditto.
19720         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19721
19722 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
19723
19724         * config/i386/djgpp.opt (posix): New Driver option.
19725
19726 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
19727
19728         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19729         Move to the unsupported targets list.
19730
19731 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
19732
19733         PR rtl-optimization/47525
19734         * df-scan.c: Update copyright years.
19735         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19736         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19737
19738 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19739
19740         * config/i386/sysv4.h (TARGET_VERSION): Remove.
19741         (SUBTARGET_RETURN_IN_MEMORY): Remove.
19742         (ASM_OUTPUT_ASCII): Remove.
19743         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19744
19745 2011-02-02  Jeff Law  <law@redhat.com>
19746
19747         PR middle-end/47543
19748         * reload.c (find_reloads_address): Handle reg+d address where both
19749         components are invalid by reloading the entire address.
19750
19751 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
19752             Richard Guenther  <rguenther@suse.de>
19753
19754         PR tree-optimization/40979
19755         PR bootstrap/47044
19756         * passes.c (init_optimization_passes): After LIM call copy_prop
19757         and DCE to clean up.
19758         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19759
19760 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
19761
19762         PR tree-optimization/47576
19763         PR tree-optimization/47555
19764         * doc/invoke.texi (scev-max-expr-complexity): Documented.
19765         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19766         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19767         * tree-scalar-evolution.c (follow_ssa_edge): Use
19768         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19769
19770 2011-02-02  Richard Guenther  <rguenther@suse.de>
19771
19772         PR tree-optimization/47566
19773         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19774
19775 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
19776
19777         PR debug/47106
19778         PR debug/47402
19779         * tree-inline.c (declare_return_variable): Remove unused caller
19780         variable.
19781
19782         PR debug/47106
19783         PR debug/47402
19784         * tree-flow-inline.h (clear_is_used, is_used_p): New.
19785         * cfgexpand.c (account_used_vars_for_block): Use them.
19786         * tree-nrv.c (tree_nrv): Likewise.
19787         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19788         (dump_scope_block): Likewise.
19789         (remove_unused_locals): Likewise.
19790
19791         PR debug/47106
19792         PR debug/47402
19793         * tree-inline.c (declare_return_variable): Add result decl to
19794         local decls only once.
19795         * gimple-low.c (record_vars_into): Mark newly-created variables
19796         as referenced.
19797
19798 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
19799
19800         PR debug/47498
19801         PR debug/47501
19802         PR debug/45136
19803         PR debug/45130
19804         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19805         debug insns.
19806         (no_real_insns_p, schedule_block, set_priorities): Drop special
19807         treatment of boundary debug insns.
19808         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19809         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19810         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19811         (BOUNDARY_DEBUG_INSN_P): Likewise.
19812         (SCHEDULE_DEBUG_INSN_P): Likewise.
19813         * sched-rgn.c (init_ready_list): Drop special treatment of
19814         boundary debug insns.
19815         * final.c (rest_of_clean_state): Clear notes' BB.
19816
19817 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19818
19819         * config/openbsd.opt (assert=): New Driver option.
19820
19821 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19822
19823         * config/i386/nto.opt: New.
19824         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19825
19826 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19827
19828         * config/i386/netware.opt: New.
19829         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19830
19831 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19832
19833         * config/interix.opt (posix): New Driver option.
19834
19835 2011-02-01  DJ Delorie  <dj@redhat.com>
19836
19837         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19838
19839         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
19840         class for A0/A1.
19841
19842 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
19843
19844         PR tree-optimization/47561
19845         * toplev.c (process_options): Print the Graphite flags.  Add
19846         flag_loop_flatten to the list of options requiring Graphite.
19847
19848 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19849
19850         * config/i386/cygming.opt (posix): New Driver option.
19851
19852 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19853
19854         * config/arm/vxworks.opt: New.
19855         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
19856
19857 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19858
19859         * config/alpha/elf.opt: New.
19860         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
19861         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
19862
19863 2011-02-01  Richard Guenther  <rguenther@suse.de>
19864
19865         PR tree-optimization/47559
19866         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
19867         store-motion on references that can throw.
19868
19869 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
19870
19871         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
19872         * tree-pass.h (TDF_CSELIB): New macro.
19873         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
19874         cselib_lookup): Check for it rather than for TDF_DETAILS.
19875
19876 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
19877
19878         PR driver/47547
19879         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
19880         is HOST_BIT_BUCKET.
19881
19882         * opts.c (finish_options): Don't add x_aux_base_name if it is
19883         HOST_BIT_BUCKET.
19884
19885 2011-02-01  Richard Guenther  <rguenther@suse.de>
19886
19887         PR tree-optimization/47555
19888         Revert
19889         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
19890
19891         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19892
19893 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
19894
19895         PR gcc/46692
19896         * config/lm32/t-lm32: Add multilib for all CPU options.
19897
19898 2011-02-01  Richard Guenther  <rguenther@suse.de>
19899
19900         PR tree-optimization/47541
19901         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19902         sure to have a field at offset zero.
19903
19904 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
19905
19906         * config/arc/arc.opt (EB, EL): New Driver options.
19907
19908 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
19909
19910         * config/alpha/osf5.opt: New.
19911         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
19912
19913 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
19914
19915         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
19916
19917 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
19918
19919         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
19920         -floop-interchange.
19921         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
19922         is an alias of -floop-interchange and that it requires the
19923         Graphite infrastructure.
19924         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
19925         flag_loop_interchange based on the value of flag_tree_loop_linear.
19926
19927 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
19928             Richard Guenther  <rguenther@suse.de>
19929
19930         PR tree-optimization/47538
19931         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
19932         type instead of r1type, except for comparisons.  For right
19933         shifts and comparisons punt if there are mismatches in
19934         sizetype vs. non-sizetype types.
19935
19936 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19937
19938         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19939         avx_runtime.
19940
19941 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19942
19943         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
19944         version number.
19945         * configure: Regenerate.
19946
19947 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19948
19949         * configure.ac (gcc_cv_ld_static_option): Define.
19950         (gcc_cv_ld_dynamic_option): Define.
19951         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
19952         instead.
19953         (HAVE_LD_STATIC_DYNAMIC): Update message.
19954         (LD_STATIC_OPTION): Define.
19955         (LD_DYNAMIC_OPTION): Define.
19956         * configure: Regenerate.
19957         * config.in: Regenerate.
19958         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
19959         HAVE_LD_STATIC_DYNAMIC]: Use them.
19960
19961 2011-01-31  Nick Clifton  <nickc@redhat.com>
19962
19963         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
19964         registers inside interrupt handlers if the handler is not a leaf
19965         function.
19966
19967 2011-01-31  Nick Clifton  <nickc@redhat.com>
19968
19969         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
19970         reg_renumber returning an INVALID_REGNUM.
19971
19972 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
19973
19974         PR libgcj/44341
19975         * doc/install.texi: Document host options discarded when cross
19976         configuring target libraries.
19977
19978 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
19979
19980         Reverted:
19981         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
19982         PR debug/45136
19983         PR debug/45130
19984         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19985         debug insns.
19986         (no_real_insns_p, schedule_block, set_priorities): Drop special
19987         treatment of boundary debug insns.
19988         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19989         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19990         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19991         (BOUNDARY_DEBUG_INSN_P): Likewise.
19992         (SCHEDULE_DEBUG_INSN_P): Likewise.
19993         * sched-rgn.c (init_ready_list): Drop special treatment of
19994         boundary debug insns.
19995         * final.c (rest_of_clean-state): Clear notes' BB.
19996
19997 2011-01-31  Alan Modra  <amodra@gmail.com>
19998
19999         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20000         toc relative expressions as we do in print_operand_address.
20001
20002 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
20003
20004         * doc/extend.texi: Follow spelling conventions.
20005         * doc/invoke.texi: Fix a typo.
20006
20007 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
20008
20009         * config/hpux11.opt: New.
20010         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20011         ia64*-*-hpux*): Use hpux11.opt.
20012
20013 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
20014
20015         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20016         to tmake_file.
20017
20018 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20019
20020         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20021         support sites.
20022
20023 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20024
20025         * doc/install.texi (Binaries): Remove outdated reference for
20026         Motorola 68HC11/68HC12 downloads.
20027
20028 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20029
20030         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20031         Drepper's paper.
20032
20033 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
20034
20035         PR bootstrap/47147
20036         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20037         used by NetBSD.
20038
20039 2011-01-28  Ahmad Sharif  <asharif@google.com>
20040
20041         * value-prof.c (check_counter): Corrected error message.
20042
20043 2011-01-29  Jie Zhang  <jie@codesourcery.com>
20044
20045         * config/arm/arm.c (arm_legitimize_reload_address): New.
20046         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20047         arm_legitimize_reload_address.
20048         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20049
20050 2011-01-28  Ian Lance Taylor  <iant@google.com>
20051
20052         * godump.c (go_define): Ignore macros whose definitions include
20053         two adjacent operands.
20054
20055 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
20056
20057         PR target/42894
20058         * varasm.c (force_const_mem): Store copy of x in desc->constant
20059         instead of x itself.
20060         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20061         itself into REG_EQUAL note.
20062
20063 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
20064
20065         * config/freebsd.opt (posix, rdynamic): New Driver options.
20066
20067 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20068
20069         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20070         -Bstatic/-Bdynamic.
20071         * configure: Regenerate.
20072
20073 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
20074
20075         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20076         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20077
20078 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
20079
20080         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20081         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20082         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20083         (s390_preferred_reload_class): Make static. Change return and
20084         'rclass' argument type to reg_class_t.
20085
20086 2011-01-27  Jan Hubicka  <jh@suse.cz>
20087
20088         PR middle-end/46949
20089         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20090         (process_function_and_variable_attributes): Check defined weakrefs.
20091
20092 2011-01-27  Martin Jambor  <mjambor@suse.cz>
20093
20094         PR tree-optimization/47228
20095         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20096         build_ref_for_offset.
20097
20098 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20099
20100         * config/spu/spu-elf.h (ASM_SPEC): Remove.
20101
20102 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
20103
20104         PR rtl-optimization/46856
20105         * postreload.c (reload_combine_recognize_const_pattern): Do not
20106         separate cc0 setter and user on cc0 targets.
20107
20108 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
20109
20110         PR c/43082
20111         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20112         passed a VOID_TYPE expression, immediately emit an error and
20113         return error_mark_node.
20114
20115 2011-01-26  Jeff Law  <law@redhat.com>
20116
20117         PR rtl-optimization/47464
20118         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20119         rather than may_trap_p as needed.
20120
20121 2011-01-26  DJ Delorie  <dj@redhat.com>
20122
20123         PR rtl-optimization/46878
20124         * combine.c (insn_a_feeds_b): Check for the implicit cc0
20125         setter/user dependency as well.
20126
20127 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
20128
20129         PR rtl-optimization/44469
20130         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20131         after removing trivially dead basic blocks.
20132
20133 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20134
20135         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20136         * config/frv/frv.h (LINK_SPEC): Likewise.
20137         * config/i386/netware.h (LINK_SPEC): Likewise.
20138         * config/m68k/linux.h (ASM_SPEC): Likewise.
20139         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20140         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20141         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20142         * config/sparc/linux.h (ASM_SPEC): Likewise.
20143         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20144         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20145
20146 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20147
20148         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20149         * config/frv/frv.h (ASM_SPEC): Likewise.
20150         * config/m68k/linux.h (ASM_SPEC): Likewise.
20151         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20152         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20153         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20154         * config/sparc/linux.h (ASM_SPEC): Likewise.
20155         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20156         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20157
20158 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20159
20160         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20161         * config/frv/frv.h (LINK_SPEC): Likewise.
20162         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20163
20164 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20165
20166         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20167         * config/frv/frv.h (ASM_SPEC): Likewise.
20168         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20169         * config/m68k/linux.h (ASM_SPEC): Likewise.
20170         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20171         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20172         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20173         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20174         * config/sparc/linux.h (ASM_SPEC): Likewise.
20175         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20176         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20177         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20178
20179 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
20180
20181         PR target/46997
20182         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20183         (*mux2): Ditto.
20184         (vec_extract_evenodd_help): Ditto.
20185         (vec_extract_evenv4hi): Ditto.
20186         (vec_extract_oddv4hi): Ditto.
20187         (vec_interleave_lowv2si): Ditto.
20188         (vec_interleave_highv2si): Ditto.
20189         (vec_extract_evenv2si): Ditto.
20190         (vec_extract_oddv2si: Ditto.
20191         (vec_pack_trunc_v2si): Ditto.
20192
20193 2011-01-22  Jan Hubicka  <jh@suse.cz>
20194
20195         PR target/47237
20196         * cgraph.h (cgraph_local_info): New field can_change_signature.
20197         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20198         signature can change.
20199         (ipcp_estimate_growth): Call sequence simplify only if calle signature
20200         can change.
20201         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20202         (cgraph_function_versioning): We can not change signature of functions
20203         that don't allow that.
20204         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20205         (lto_input_node): Likewise.
20206         * ipa-inline.c (compute_inline_parameters): Compute
20207         local.can_change_signature.
20208         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20209         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20210         functions that can not change signature.
20211         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20212         init_cumulative_args): Do not use local calling conventions
20213         for functions that can not change signature.
20214
20215 2011-01-22  Jan Hubicka  <jh@suse.cz>
20216
20217         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20218
20219 2011-01-26  Richard Guenther  <rguenther@suse.de>
20220
20221         PR tree-optimization/47190
20222         * cgraphunit.c (process_common_attributes): New function.
20223         (process_function_and_variable_attributes): Use it.
20224
20225 2011-01-26  Richard Guenther  <rguenther@suse.de>
20226
20227         PR lto/47423
20228         * cgraphbuild.c (record_eh_tables): Record reference to personality
20229         function.
20230
20231 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
20232
20233         PR debug/45454
20234         * sel-sched.c (moveup_expr): Don't let debug insns prevent
20235         non-debug insns from moving up.
20236
20237 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20238
20239         PR target/40125
20240         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20241         t-dlldir{,-x} fragment for build and add it to tmake_file.
20242         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20243         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20244         * config/i386/t-dlldir: New file.
20245         (SHLIB_DLLDIR): Define.
20246         * config/i386/t-dlldir-x: New file.
20247         (SHLIB_DLLDIR): Define.
20248         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20249         (SHLIB_INSTALL): Use it.
20250
20251 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
20252
20253         PR target/47246
20254         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20255         lower bound of the allowed Thumb-2 coprocessor load/store
20256         index range to -256. Add explaining comment.
20257
20258 2011-01-25  Ian Lance Taylor  <iant@google.com>
20259
20260         * godump.c (go_define): Improve lexing of macro expansion to only
20261         accept expressions which match Go spec.
20262
20263 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20264
20265         PR c++/43601
20266         * tree.c (handle_dll_attribute): Handle it.
20267         * doc/extend.texi (@item dllexport): Mention it.
20268         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20269
20270 2011-01-25  Ian Lance Taylor  <iant@google.com>
20271
20272         PR tree-optimization/26854
20273         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20274         (decl_jump_unsafe): Move higher in file, with no other change.
20275         (bind): Set has_jump_unsafe_decl if appropriate.
20276         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20277         (check_earlier_gotos): Likewise.
20278         (c_check_switch_jump_warnings): Likewise.
20279
20280 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
20281
20282         * doc/invoke.texi (Warning Options): Add missing hyphen.
20283         (-fprofile-dir): Minor grammatical fixes.
20284         (-fbranch-probabilities): Likewise.
20285
20286 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20287
20288         PR debug/45136
20289         PR debug/45130
20290         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20291         debug insns.
20292         (no_real_insns_p, schedule_block, set_priorities): Drop special
20293         treatment of boundary debug insns.
20294         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20295         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20296         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20297         (BOUNDARY_DEBUG_INSN_P): Likewise.
20298         (SCHEDULE_DEBUG_INSN_P): Likewise.
20299         * sched-rgn.c (init_ready_list): Drop special treatment of
20300         boundary debug insns.
20301         * final.c (rest_of_clean-state): Clear notes' BB.
20302
20303 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20304
20305         * Makefile.in (LAMBDA_H): Removed.
20306         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20307         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20308         lambda-trans.o, and tree-loop-linear.o.
20309         (lto-symtab.o): Remove dependence on LAMBDA_H.
20310         (tree-loop-linear.o): Remove rule.
20311         (lambda-mat.o): Same.
20312         (lambda-trans.o): Same.
20313         (lambda-code.o): Same.
20314         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20315         (tree-vect-slp.o): Same.
20316         * hwint.h (gcd): Moved here.
20317         (least_common_multiple): Same.
20318         * lambda-code.c: Removed.
20319         * lambda-mat.c: Removed.
20320         * lambda-trans.c: Removed.
20321         * lambda.h: Removed.
20322         * tree-loop-linear.c: Removed.
20323         * lto-symtab.c: Do not include lambda.h.
20324         * omega.c (gcd): Removed.
20325         * passes.c (init_optimization_passes): Remove pass_linear_transform.
20326         * tree-data-ref.c (print_lambda_vector): Moved here.
20327         (lambda_vector_copy): Same.
20328         (lambda_matrix_copy): Same.
20329         (lambda_matrix_id): Same.
20330         (lambda_vector_first_nz): Same.
20331         (lambda_matrix_row_add): Same.
20332         (lambda_matrix_row_exchange): Same.
20333         (lambda_vector_mult_const): Same.
20334         (lambda_vector_negate): Same.
20335         (lambda_matrix_row_negate): Same.
20336         (lambda_vector_equal): Same.
20337         (lambda_matrix_right_hermite): Same.
20338         * tree-data-ref.h: Do not include lambda.h.
20339         (lambda_vector): Moved here.
20340         (lambda_matrix): Same.
20341         (dependence_level): Same.
20342         (lambda_transform_legal_p): Removed declaration.
20343         (lambda_collect_parameters): Same.
20344         (lambda_compute_access_matrices): Same.
20345         (lambda_vector_gcd): Same.
20346         (lambda_vector_new): Same.
20347         (lambda_vector_clear): Same.
20348         (lambda_vector_lexico_pos): Same.
20349         (lambda_vector_zerop): Same.
20350         (lambda_matrix_new): Same.
20351         * tree-flow.h (least_common_multiple): Removed declaration.
20352         * tree-parloops.c (lambda_trans_matrix): Moved here.
20353         (LTM_MATRIX): Same.
20354         (LTM_ROWSIZE): Same.
20355         (LTM_COLSIZE): Same.
20356         (LTM_DENOMINATOR): Same.
20357         (lambda_trans_matrix_new): Same.
20358         (lambda_matrix_vector_mult): Same.
20359         (lambda_transform_legal_p): Same.
20360         * tree-pass.h (pass_linear_transform): Removed declaration.
20361         * tree-ssa-loop.c (tree_linear_transform): Removed.
20362         (gate_tree_linear_transform): Removed.
20363         (pass_linear_transform): Removed.
20364         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20365         flag_loop_interchange.
20366
20367 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20368
20369         PR tree-optimization/47265
20370         PR tree-optimization/47443
20371         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20372         if name still has some uses.
20373
20374 2011-01-25  Martin Jambor  <mjambor@suse.cz>
20375
20376         PR tree-optimization/47382
20377         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20378         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20379
20380 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
20381
20382         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20383         sjlj_except_unwind_info.
20384
20385 2011-01-25  Richard Guenther  <rguenther@suse.de>
20386
20387         PR tree-optimization/47426
20388         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20389         visible functions results escape.
20390
20391 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20392
20393         PR target/45701
20394         * config/arm/arm.c (any_sibcall_uses_r3): New function.
20395         (arm_get_frame_offsets): Use it.
20396
20397 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20398             Jakub Jelinek  <jakub@redhat.com>
20399
20400         PR tree-optimization/47271
20401         * tree-if-conv.c (bb_postdominates_preds): New.
20402         (if_convertible_bb_p): Call bb_postdominates_preds.
20403         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20404         (predicate_scalar_phi): Call bb_postdominates_preds.
20405
20406 2011-01-25  Nick Clifton  <nickc@redhat.com>
20407
20408         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20409         * config/rx/rx.c (rx_function_value): Likewise.
20410         (rx_promote_function_mode): Likewise.
20411         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20412         in order to make it legitimate.
20413         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20414         make sure that the first operand is the same as the result register.
20415         (addsi3_unspec): Delete.
20416         (subdi3): Do not accept immediate operands.
20417         (subdi3_internal): Likewise.
20418
20419 2011-01-25  Jeff Law  <law@redhat.com>
20420
20421         PR rtl-optimization/37273
20422         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20423         handle them like argument loads from stack slots.  Do not double
20424         count memory for memory constants and argument loads from stack slots.
20425
20426 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20427
20428         PR tree-optimization/47427
20429         PR tree-optimization/47428
20430         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20431         coalesce if the new root var would be TREE_READONLY.
20432
20433 2011-01-25  Richard Guenther  <rguenther@suse.de>
20434
20435         PR middle-end/47414
20436         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20437         correct type for TBAA.
20438
20439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20440
20441         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20442         (close_phi_written_to_memory): Call for_each_index with
20443         dr_indices_valid_in_loop.
20444
20445 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20446
20447         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20448         when it is initialized.
20449
20450 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20451
20452         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20453         call to graphite_find_data_references_in_stmt.
20454         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20455         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
20456         call to graphite_find_data_references_in_stmt.
20457         (analyze_drs_in_stmts): Same.
20458         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20459         in which the scalar analysis of indices is performed.
20460         (create_data_ref): Same.  Update call to dr_analyze_indices.
20461         (find_data_references_in_stmt): Update call to create_data_ref.
20462         (graphite_find_data_references_in_stmt): Same.
20463         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20464         declaration.
20465         (create_data_ref): Same.
20466         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20467         call to create_data_ref.
20468
20469 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20470
20471         * graphite-sese-to-poly.c (build_poly_scop): Move
20472         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20473
20474 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20475
20476         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20477         VAR_DECL, PARM_DECL, and RESULT_DECL.
20478
20479 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20480
20481         * graphite-dependences.c (reduction_dr_1): Allow several reductions
20482         in a reduction PBB.
20483         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20484         that have already been marked as PBB_IS_REDUCTION.
20485
20486 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20487
20488         * graphite-scop-detection.c (same_close_phi_node): New.
20489         (remove_duplicate_close_phi): New.
20490         (make_close_phi_nodes_unique): New.
20491         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20492
20493 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20494
20495         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20496         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20497         of both data references to be the same.
20498
20499 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20500
20501         * graphite-dependences.c (build_lexicographical_constraint): Remove
20502         the gdim parameter.
20503         (build_lexicographical_constraint): Adjust call to
20504         ppl_powerset_is_empty.
20505         (dependence_polyhedron): Same.
20506         (graphite_legal_transform_dr): Same.
20507         (graphite_carried_dependence_level_k): Same.
20508         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20509         parameter.
20510         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20511
20512 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20513
20514         * graphite-sese-to-poly.c
20515         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20516         (close_phi_written_to_memory): New.
20517         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20518         and unshare_expr.
20519
20520 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20521
20522         * doc/install.texi: Update the expected version number of PPL to 0.11.
20523         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20524         #if PPL_VERSION_MINOR < 11.
20525
20526 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20527
20528         * graphite-dependences.c: Include graphite-cloog-util.h.
20529         (new_poly_ddr): Inlined into dependence_polyhedron.
20530         (free_poly_ddr): Moved close by new_poly_ddr.
20531         (dependence_polyhedron_1): Renamed dependence_polyhedron.
20532         Early return NULL when ppl_powerset_is_empty returns true.
20533         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
20534         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
20535         (graphite_legal_transform_dr): Call new_poly_ddr.
20536         (graphite_carried_dependence_level_k): Same.
20537         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
20538         (dot_transformed_deps_stmt_1): Removed.
20539         (dot_deps_stmt_1): Call dot_deps_stmt_2.
20540         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
20541         (dot_deps_1): Call dot_deps_2.
20542         * Makefile.in (graphite-dependences.o): Add missing dependence on
20543         graphite-cloog-util.h.
20544
20545 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20546
20547         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20548         (build_lexicographical_constraint): Same.
20549         (dependence_polyhedron_1): Same.
20550         (graphite_legal_transform_dr): Same.
20551         (graphite_carried_dependence_level_k): Same.
20552         * graphite-ppl.c (ppl_powerset_is_empty): New.
20553         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20554         * tree-data-ref.c (dump_data_reference): Print the basic block index.
20555
20556 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20557
20558         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20559         the "a followed by b" relation and document it.
20560
20561 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20562
20563         * graphite-dependences.c (build_lexicographical_constraint): Stop the
20564         iteration when the bag of constraints is empty.
20565
20566 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20567
20568         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20569
20570 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20571
20572         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20573         nest and two loop depths as parameters.
20574         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20575         lst_perfect_nestify.
20576
20577 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20578
20579         * graphite-dependences.c (print_pddr): Call
20580         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20581
20582 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20583
20584         * graphite-ppl.c (debug_gmp_value): New.
20585         * graphite-ppl.h (debug_gmp_value): Declared.
20586
20587 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
20588
20589         * doc/install.texi: Document availability of cloog-0.16.
20590
20591 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
20592
20593         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20594         invalid postdominance info.
20595
20596 2011-01-24  Jan Hubicka  <jh@suse.cz>
20597
20598         PR c/21659
20599         * doc/extend.texi (weak pragma): Drop claim that it must
20600         appear before definition.
20601         * varasm.c (merge_weak, declare_weak): Only sanity check
20602         that DECL is not output at a time it is declared weak.
20603
20604 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
20605
20606         * machmode.def: Fixed comments.
20607
20608 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
20609
20610         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20611
20612 2011-01-24  Paul Koning  <ni1d@arrl.net>
20613
20614         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
20615         WORDS_BIG_ENDIAN.
20616
20617 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
20618
20619         PR target/46519
20620         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20621         (block_info): Add scanned and prev.
20622         (move_or_delete_vzeroupper_2): Return if the basic block
20623         has been scanned and the upper 128bit state is unchanged
20624         from the last scan.
20625         (move_or_delete_vzeroupper_1): Return true if the exit
20626         state is changed.
20627         (move_or_delete_vzeroupper): Visit basic blocks using the
20628         work-list based algorithm based on vt_find_locations in
20629         var-tracking.c.
20630
20631         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20632
20633 2011-01-24  Nick Clifton  <nickc@redhat.com>
20634
20635         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20636         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20637         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
20638         then define __v850e1__.
20639         * doc/invoke.texi: Document -mv850es.
20640
20641 2011-01-24  Richard Henderson  <rth@redhat.com>
20642
20643         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20644         compound unordered comparisons.
20645         * config/rx/rx.c (rx_split_fp_compare): Remove.
20646         * config/rx/rx-protos.h: Update.
20647         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20648         (cbranchsf4): Don't call rx_split_fp_compare.
20649         (*cbranchsf4): Use rx_split_cbranch.
20650         (*cmpsf): Don't accept "i" constraint.
20651         (*conditional_branch): Only valid after reload.
20652         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
20653
20654 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20655
20656         PR target/47385
20657         * config/rs6000/altivec.md (vector constant splitters): Add
20658         support for creating vector single precision constants if -mvsx is
20659         used and we would create the constant using Altivec primitives.
20660
20661 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
20662             Richard Sandiford  <rdsandiford@googlemail.com>
20663
20664         PR rtl-optimization/47166
20665         * reload1.c (emit_reload_insns): Disable the spill_reg_store
20666         mechanism for PRE_MODIFY and POST_MODIFY.
20667         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20668         reloadreg.
20669
20670 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
20671
20672         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
20673
20674 2011-01-22  Jan Hubicka  <jh@suse.cz>
20675
20676         PR lto/47333
20677         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20678
20679 2011-01-22  Jan Hubicka  <jh@suse.cz>
20680
20681         PR tree-optimization/43884
20682         PR lto/44334
20683         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
20684         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20685
20686 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
20687
20688         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20689         * config/s390/s390.c (s390_register_move_cost,
20690         s390_memory_move_cost): New.
20691         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20692
20693 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20694
20695         PR middle-end/47401
20696         * except.c (sjlj_assign_call_site_values): Move setting the
20697         crtl->uses_eh_lsda flag to ...
20698         (sjlj_mark_call_sites): ... here.
20699         (sjlj_emit_function_enter): Support NULL dispatch label.
20700         (sjlj_build_landing_pads): In a function with no landing pads
20701         that still has must-not-throw regions, generate code to register
20702         a personality function with empty LSDA.
20703
20704 2011-01-21  Richard Henderson  <rth@redhat.com>
20705
20706         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20707
20708         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20709
20710         * compare-elim.c: New file.
20711         * Makefile.in (OBJS-common): Add it.
20712         (compare-elim.o): New.
20713         * common.opt (fcompare-elim): New.
20714         * opts.c (default_options_table): Add OPT_fcompare_elim.
20715         * tree-pass.h (pass_compare_elim_after_reload): New.
20716         * passes.c (init_optimization_passes): Add it.
20717         * recog.h: Protect against re-inclusion.
20718         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20719         * doc/invoke.texi (-fcompare-elim): Document it.
20720         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20721         * doc/tm.texi: Rebuild.
20722
20723 2011-01-22  Nick Clifton  <nickc@redhat.com>
20724
20725         * config/rx/rx.md (cstoresf4): Pass comparison operator to
20726         rx_split_fp_compare.
20727
20728 2011-01-22  Nick Clifton  <nickc@redhat.com>
20729
20730         * config/rx/rx.md (UNSPEC_CONST): New.
20731         (deallocate_and_return): Wrap the amount popped off the stack in
20732         an UNSPEC_CONST in order to stop it being rejected by
20733         -mmax-constant-size.
20734         (pop_and_return): Add a "(return)" rtx.
20735         (call): Drop the immediate operand.
20736         (call_internal): Likewise.
20737         (call_value): Likewise.
20738         (call_value_internal): Likewise.
20739         (sibcall_internal): Likewise.
20740         (sibcall_value_internal): Likewise.
20741         (sibcall): Likewise.  Generate an explicit call using
20742         sibcall_internal.
20743         (sibcall_value): Likewise.
20744         (mov<>): FAIL if a constant operand is not legitimate.
20745         (addsi3_unpsec): New pattern.
20746
20747         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
20748         (ok_for_max_constant): New function.
20749         (gen_safe_add): New function.
20750         (rx_expand_prologue): Use gen_safe_add.
20751         (rx_expand_epilogue): Likewise.
20752         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
20753         UNSPEC CONSTs.
20754
20755 2011-01-21  Jeff Law  <law@redhat.com>
20756
20757         PR tree-optimization/47053
20758         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20759         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20760         statements are deleted.
20761         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
20762         is nonempty, then purge dead edges and cleanup the CFG.
20763
20764 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
20765
20766         PR debug/47402
20767         Temporarily revert:
20768         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
20769         PR debug/47106
20770         * tree-dfa.c (create_var_ann): Mark variable as used.
20771
20772 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
20773
20774         PR middle-end/45566
20775         * except.c (convert_to_eh_region_ranges): Emit queued no-region
20776         notes from other section in hot/cold partitioning even if
20777         last_action is -3.  Increment call_site_base.
20778
20779         PR rtl-optimization/47366
20780         * fwprop.c (forward_propagate_into): Return bool.  If
20781         any changes are made, -fnon-call-exceptions is used and
20782         REG_EH_REGION note is present, call purge_dead_edges
20783         and return true if it purged anything.
20784         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20785         any EH edges were purged.
20786
20787 2011-01-21  Jeff Law  <law@redhat.com>
20788
20789         PR rtl-optimization/41619
20790         * caller-save.c (setup_save_areas): Break out code to determine
20791         which hard regs are live across calls by examining the reload chains
20792         so that it is always used.
20793         Eliminate code which checked REG_N_CALLS_CROSSED.
20794
20795 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
20796
20797         PR tree-optimization/47355
20798         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20799         NOP has non-debug uses beyond PHIs in new_bb.
20800
20801 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
20802
20803         PR debug/47106
20804         * cfgexpand.c (account_used_vars_for_block): Only account vars
20805         that are annotated as used.
20806         (estimated_stack_frame_size): Don't set TREE_USED.
20807         * tree-dfa.c (create_var_ann): Mark variable as used.
20808
20809 2011-01-21  Richard Guenther  <rguenther@suse.de>
20810
20811         PR middle-end/47395
20812         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20813
20814 2011-01-21  Richard Guenther  <rguenther@suse.de>
20815
20816         PR tree-optimization/47365
20817         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20818         (vn_reference_lookup_pieces): Adjust.
20819         (vn_reference_lookup): Likewise.
20820         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20821         (vn_reference_lookup_3): Only look through kills if in
20822         VN_WALKREWRITE mode.
20823         (vn_reference_lookup_pieces): Adjust.
20824         (vn_reference_lookup): Likewise.
20825         (visit_reference_op_load): Likewise.
20826         (visit_reference_op_store): Likewise.
20827         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20828         (compute_avail): Likewise.
20829         (eliminate): Likewise.
20830
20831 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
20832
20833         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20834         DECL_IGNORED_P non-reg vars if they are used.
20835
20836         PR tree-optimization/47391
20837         * varpool.c (const_value_known_p): Return false if
20838         decl is volatile.
20839
20840 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
20841
20842         PR bootstrap/47215
20843         * config/i386/i386.c (ix86_local_alignment): Handle
20844         case for va_list_type_node is nil.
20845         (ix86_canonical_va_list_type): Likewise.
20846
20847 2011-01-21  Alan Modra  <amodra@gmail.com>
20848
20849         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
20850         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
20851
20852 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20853
20854         * config/arm/arm.md (define_attr type): Rename f_load
20855         and f_store to f_fpa_load and f_fpa_store. Update.
20856         (write_conflict): Deal with rename fallout.
20857         (*push_fp_multi): Likewise.
20858         * config/arm/fpa.md (f_load): Use f_fpa_load.
20859         (f_store): Use f_fpa_store.
20860         (*movsf_fpa): Likewise.
20861         (*movdf_fpa): Likewise.
20862         (*movxf_fpa): Likewise.
20863         (*thumb2_movsf_fpa): Likewise.
20864         (*thumb2_movdf_fpa): Likewise.
20865         (*thumb2_movxf_fpa): Likewise.
20866         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
20867         f_loadd and f_stored.
20868         (*thumb2_movdi_vfp): Likewise.
20869         (*thumb2_movsf_vfp): Fix attribute to f_loads.
20870         (*thumb2_movsi_vfp): Likewise.
20871         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
20872         Use f_loads instead of f_load.
20873         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
20874
20875 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
20876
20877         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20878         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
20879         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20880         (xtensa_mode_dependent_address_p): New function.
20881         (constantpool_address_p): Make static. Change return type to bool.
20882         Change argument type to const_rtx. Use CONST_INT_P predicate.
20883
20884 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
20885
20886         PR debug/46583
20887         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
20888
20889 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
20890
20891         PR debug/47283
20892         * cfgexpand.c (expand_debug_expr): Instead of generating
20893         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
20894         etc. handling.
20895
20896 2011-01-20  Richard Guenther  <rguenther@suse.de>
20897
20898         PR middle-end/47370
20899         * tree-inline.c (remap_gimple_op_r): Recurse manually for
20900         the pointer operand of MEM_REFs.
20901
20902 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
20903
20904         PR tree-optimization/46130
20905         * ipa-split.c (consider_split): If return_bb contains non-virtual
20906         PHIs other than for retval or if split_function would not adjust it,
20907         refuse to split.
20908
20909 2011-01-20  Richard Guenther  <rguenther@suse.de>
20910
20911         PR tree-optimization/47167
20912         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
20913         Revert previous change, only avoid enumeral type changes.
20914
20915 2011-01-19  Mike Stump  <mikestump@comcast.net>
20916
20917         * doc/tm.texi.in (BRANCH_COST): Englishify.
20918         * doc/tm.texi (BRANCH_COST): Likewise.
20919
20920 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
20921
20922         PR c++/47291
20923         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
20924         (gen_scheduled_generic_parms_dies): New functions.
20925         (gen_struct_or_union_type_die): Schedule template parameters DIEs
20926         generation for the end of CU compilation.
20927         (dwarf2out_finish): Generate template parameters DIEs here.
20928
20929 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
20930
20931         PR debug/46240
20932         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
20933         debug bind stmt on merge edges.
20934
20935 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
20936
20937         PR debug/47079
20938         PR debug/46724
20939         * function.c (instantiate_expr): Instantiate incoming rtl of
20940         implicit arguments, and recurse on VALUE_EXPRs.
20941         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
20942         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
20943
20944 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
20945
20946         * c-parser.c (c_parser_for_statement): Initialize
20947         collection_expression.
20948
20949 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20950
20951         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
20952
20953 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20954
20955         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
20956         (LINK_SHLIB_SPEC): Don't use %(link_path).
20957         (SUBTARGET_EXTRA_SPECS): Remove link_path.
20958
20959 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20960
20961         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
20962         (NO_SHARED_LIB_SUPPORT): Remove.
20963         (LINK_SHLIB_SPEC): Remove one conditional definition.
20964
20965 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20966
20967         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
20968         %{call_shared}.
20969         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
20970         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
20971         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
20972         %{call_shared} and conditionals on these options not being passed.
20973         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
20974         %{call_shared}.
20975
20976 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
20977
20978         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
20979         simplify.
20980
20981         * ipa-split.c: Spelling fixes.
20982
20983 2011-01-19  Richard Henderson  <rth@redhat.com>
20984
20985         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
20986         (*mulsi3): Likewise.
20987
20988         * longlong.h [__mn10300__] (count_leading_zeros): New.
20989         [__mn10300__] (umul_ppmm, smul_ppmm): New.
20990         [__mn10300__] (add_ssaaaa, subddmmss): New.
20991         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
20992         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
20993
20994 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20995
20996         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
20997
20998 2011-01-19  Richard Henderson  <rth@redhat.com>
20999
21000         * config/mn10300/mn10300.md (addsi3_flags): New.
21001         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21002         (subsi3_flags, subc_internal, subdi3): New.
21003         (subdi3_internal, *subdi3_degenerate): New.
21004         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21005
21006         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21007         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21008         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
21009         * config/mn10300/mn10300-protos.h: Update.
21010         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21011         (return_ret): Likewise.  Rename from return_internal_regs.
21012         (return_internal): Remove.
21013
21014         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21015         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21016         (mn10300_legitimate_constant_p): Likewise.
21017         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21018         (mn10300_frame_size): New.
21019         (mn10300_expand_prologue): Use it.
21020         (mn10300_expand_epilogue): Likewise.
21021         (mn10300_initial_offset): Likewise.
21022         * config/mn10300/mn10300-protos.h: Update.
21023         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21024         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21025         (prologue, epilogue, return_internal): Tidy output code.
21026         (mn10300_store_multiple_operation, return): Likewise.
21027         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21028         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21029         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21030         (load_pic, am33_load_pic): New.
21031         (mn10300_load_pic0, mn10300_load_pic1): New.
21032
21033         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21034         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21035         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21036         (cc_flags_for_mode, cc_flags_for_code): New.
21037         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21038         overflow flag is not valid.  Validate that the flags we need
21039         for the comparison are valid.
21040         (mn10300_output_cmp): Remove.
21041         (mn10300_output_add): New.
21042         (mn10300_select_cc_mode): Use cc_flags_for_code.
21043         (mn10300_split_cbranch): New.
21044         (mn10300_match_ccmode): New.
21045         (mn10300_split_and_operand_count): New.
21046         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21047         to the function.
21048         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21049         (addsi3): ... here.  Use mn10300_output_add.
21050         (*addsi3_flags): New.
21051         (*am33_subsi3, *mn10300_subsi3): Merge...
21052         (subsi3): ... here.  Use attribute isa.
21053         (*subsi3_flags): New.
21054         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
21055         when possible.
21056         (*am33_andsi3, *mn10300_andsi3): Merge...
21057         (andsi3): ... here.
21058         (*andsi3_flags): New.
21059         (andsi3 splitters): New.
21060         (*am33_iorsi3, *mn10300_iorsi3): Merge...
21061         (iorsi3): ... here.
21062         (*iorsi3_flags): New.
21063         (*am33_xorsi3, *mn10300_xorsi3): Merge...
21064         (xorsi3): ... here.
21065         (*xorsi3_flags): New.
21066         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21067         (one_cmplsi2): ... here.
21068         (*one_cmplsi2_flags): New.
21069         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
21070         instead of "dax" in constraints.  Use mn10300_split_cbranch.
21071         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
21072         use matching constraints to eliminate a self-comparison.
21073         (*integer_conditional_branch): Rename from integer_conditional_branch.
21074         Use int_mode_flags to match CC_REG.
21075         (*cbranchsi4_btst, *btstsi): New.
21076         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
21077         mn10300_split_cbranch.
21078         (*am33_cmpsf): Rename from am33_cmpsf.
21079         (*float_conditional_branch): Rename from float_conditional_branch.
21080         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21081         (zero_extendqisi2): ... here.
21082         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21083         (zero_extendhisi2): ... here.
21084         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21085         (extendqisi2): ... here.
21086         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21087         (extendhisi2): ... here.
21088         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21089         (ashlsi3): ... here.
21090         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21091         (lshrsi3): ... here.
21092         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21093         (ashrsi3): ... here.
21094         (consecutive add peephole): Remove.
21095         * config/mn10300/predicates.md (label_ref_operand): New.
21096         (int_mode_flags): New.
21097         (CCZN_comparison_operator): New.
21098
21099         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21100         (throughput_42_latency_43): New reservation.
21101         (mulsidi3, umulsidi3): New expanders.
21102         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
21103         the MDR register to allocation; separately allocate the low and
21104         high parts of the DImode result.
21105         (umulsidi3_internal): Similarly.
21106         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21107         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
21108         (udivsi3, umodsi3): Remove.
21109         (udivmodsi4, divmodsi4): New expanders.
21110         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
21111         (*divmodsi4): Simiarly.
21112         (ext_internal): New.
21113
21114         * config/mn10300/constraints.md ("z"): New constraint.
21115         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21116         (FIXED_REGISTERS): Don't fix MDR.
21117         (CALL_USED_REGSITERS): Reformat nicely.
21118         (REG_ALLOC_ORDER): Add MDR.
21119         (enum regclass): Add MDR_REGS.
21120         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21121         (IRA_COVER_CLASSES): Add MDR_REGS.
21122         (REGNO_REG_CLASS): Handle MDR_REG.
21123         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21124         (mn10300_register_move_cost): Likewise.
21125         * config/mn10300/mn10300.md (MDR_REG): New.
21126         (*movsi_internal): Handle moves to/from MDR_REGS.
21127
21128         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21129         POST_MODIFY.
21130         (mn10300_secondary_reload): Tidy combination reload classes.
21131         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21132         addresses for AM33.  Allow symbolic offsets for reg+imm.
21133         (mn10300_regno_in_class_p): New.
21134         (mn10300_legitimize_reload_address): New.
21135         * config/mn10300/mn10300.h (enum reg_class): Remove
21136         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21137         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
21138         SP_OR_GENERAL_REGS.
21139         (REG_CLASS_NAMES): Update to match.
21140         (REG_CLASS_CONTENTS): Likewise.
21141         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21142         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21143         (REGNO_IN_RANGE_P): Remove.
21144         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21145         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21146         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21147         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21148         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21149         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21150         (REGNO_GENERAL_P): New.
21151         (HAVE_POST_MODIFY_DISP): New.
21152         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21153         (LEGITIMIZE_RELOAD_ADDRESS): New.
21154         * config/mn10300/mn10300-protos.h: Update.
21155
21156         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21157         DATA_REGS for AM33 stack-pointer destination.
21158         (mn10300_preferred_output_reload_class): Likewise.
21159         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21160         into a form appropriate for ...
21161         (TARGET_SECONDARY_RELOAD): New.
21162         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21163         * config/mn10300/mn10300-protos.h: Update.
21164         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21165         reload_insi; use the "A" constraint for the scratch; handle AM33
21166         moves of sp to non-address registers.
21167
21168         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21169         (*movqi_internal): ... here.
21170         (*am33_movhi, *mn10300_movhi): Merge into...
21171         (*movhi_internal): ... here.
21172         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
21173         as the source/destination of moves from/to SP.
21174         (movsf): Only allow for AM33-2.
21175         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21176         any integer constant constraint.  Only allow for AM33-2.  Tidy
21177         all of the alternative outputs.
21178         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21179         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
21180         for MN103.
21181         (udivsi3, umodsi3): New patterns for MN103 only.
21182
21183 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
21184
21185         * doc/tm.texi.in: Spell out that a lack of register class unions
21186         can lead to ICEs.
21187         * doc/tm.texi: Regenerate.
21188
21189 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21190
21191         PR rtl-optimization/47337
21192         * dce.c (check_argument_store): New function.
21193         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
21194
21195         PR tree-optimization/47290
21196         * tree-eh.c (infinite_empty_loop_p): New function.
21197         (cleanup_empty_eh): Use it.
21198
21199 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
21200
21201         PR target/46997
21202         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21203         (a64_expand_widen_sum): Ditto.
21204         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21205         (vec_extract_evenodd_help): Ditto.
21206         (vec_extract_evenv4hi): Ditto.
21207         (vec_extract_oddv4hi): Ditto.
21208         (vec_extract_evenv2si): Ditto.
21209         (vec_extract_oddv2si): Ditto.
21210         (vec_extract_evenv2sf): Ditto.
21211         (vec_extract_oddv2sf): Ditto.
21212         (vec_pack_trunc_v4hi: Ditto.
21213         (vec_pack_trunc_v2si): Ditto.
21214         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21215         (vec_interleave_highv8qi): Ditto.
21216         (mix1_r): Ditto.
21217         (vec_extract_oddv8qi): Ditto.
21218         (vec_interleave_lowv4hi): Ditto.
21219         (vec_interleave_highv4hi): Ditto.
21220         (vec_interleave_lowv2si): Ditto.
21221         (vec_interleave_highv2si): Ditto.
21222
21223 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21224
21225         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21226         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21227         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
21228         (pa_c_mode_for_suffix): New.
21229         (TARGET_EXPAND_BUILTIN): Define.
21230         (TARGET_C_MODE_FOR_SUFFIX): Define.
21231         (pa_builtins): Define.
21232         (pa_init_builtins): Register __float128 type and init new support
21233         builtins.
21234         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21235         * config/pa/quadlib.c (_U_Qfcopysign): New.
21236
21237 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
21238
21239         PR middle-end/46894
21240         * explow.c (allocate_dynamic_stack_space): Do not assume more than
21241         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21242         are defined.
21243
21244 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21245
21246         PR tree-optimization/47179
21247         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21248         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21249
21250 2011-01-18  Richard Guenther  <rguenther@suse.de>
21251
21252         PR rtl-optimization/47216
21253         * emit-rtl.c: Include tree-flow.h.
21254         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21255         of replicating it with different semantics.
21256         * Makefile.in (emit-rtl.o): Adjust.
21257
21258 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21259
21260         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21261         (cortex_a9_dp): Handle neon types correctly.
21262
21263 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
21264
21265         PR rtl-optimization/47299
21266         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21267         subtarget.  Use normal multiplication if both operands are constants.
21268         * expmed.c (expand_widening_mult): Don't try to optimize constant
21269         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
21270         before using it.
21271
21272 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21273
21274         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
21275         spacing after 'e.g.', typos, comma, hyphenation.
21276
21277 2011-01-17  Richard Henderson  <rth@redhat.com>
21278
21279         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21280         (rx_restricted_mem_operand): New.
21281         (rx_shift_operand): Use register_operand.
21282         (rx_source_operand, rx_compare_operand): Likewise.
21283         * config/rx/rx.md (addsi3_flags): New expander.
21284         (adddi3): Rewrite as expander.
21285         (adc_internal, *adc_flags, adddi3_internal): New patterns.
21286         (subsi3_flags): New expander.
21287         (subdi3): Rewrite as expander.
21288         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21289
21290         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21291         (rx_init_builtins): Remove sat builtin.
21292         (rx_expand_builtin): Likewise.
21293         * config/rx/rx.md (ssaddsi3): New.
21294         (*sat): Rename from sat.  Represent the CC_REG input.
21295
21296         * config/rx/predicates.md (rshift_operator): New.
21297         * config/rx/rx.c (rx_expand_insv): Remove.
21298         * config/rx/rx-protos.h: Update.
21299         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
21300         operand to the canonical position.
21301         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21302         (*bitclr, *bitclr_in_memory): Similarly.
21303         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21304         (insv): Retain the zero_extract in the expansion.
21305
21306         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21307         (bswaphi2, bitinvert, revw): Likewise.
21308
21309         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21310         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21311         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21312         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21313         (bitset, bitset_in_memory): Likewise.
21314         (bitinvert, bitinvert_in_memory): Likewise.
21315         (bitclr, bitclr_in_memory): Likewise.
21316         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21317         (rx_strend, rx_cmpstrn): Likewise.
21318         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
21319         (bitop peep2 patterns): Remove.
21320
21321         * config/rx/rx.c (rx_match_ccmode): New.
21322         * config/rx/rx-protos.h: Update.
21323         * config/rx/rx.md (abssi2): Clobber, don't set flags.
21324         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21325         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21326         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21327         (fix_truncsfsi2, floatsisf2): Likewise.
21328         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21329         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21330         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21331         (*subsi3_flags, *xorsi3_flags): New.
21332
21333         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21334
21335         * config/rx/rx.c (rx_print_operand): Remove workaround for
21336         unsplit comparison operations.
21337
21338         * config/rx/rx.md (movsicc): Split after reload.
21339         (*movsicc): Merge *movsieq and *movsine via match_operator.
21340         (*stcc): New pattern.
21341
21342         * config/rx/rx.c (rx_float_compare_mode): Remove.
21343         * config/rx/rx.h (rx_float_compare_mode): Remove.
21344         * config/rx/rx.md (cstoresi4): Split after reload.
21345         (*sccc): New pattern.
21346
21347         * config/rx/predicates.md (label_ref_operand): New.
21348         (rx_z_comparison_operator): New.
21349         (rx_zs_comparison_operator): New.
21350         (rx_fp_comparison_operator): New.
21351         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21352         Validate that the flags are set properly for the comparison.
21353         (rx_gen_cond_branch_template): Remove.
21354         (rx_cc_modes_compatible): Remove.
21355         (mode_from_flags): New.
21356         (flags_from_code): Rename from flags_needed_for_conditional.
21357         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21358         (rx_select_cc_mode): Likewise.
21359         (rx_split_fp_compare): New.
21360         (rx_split_cbranch): New.
21361         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21362         (*cbranchsi4): Use match_operator and rx_split_cbranch.
21363         (*cbranchsf4): Similarly.
21364         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
21365         match_operator and rx_split_cbranch.
21366         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21367         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
21368         (*cmpsi): Rename from cmpsi.
21369         (*tstsi): Rename from tstsi.
21370         (*cmpsf): Rename from cmpsf; use CC_Fmode.
21371         (*conditional_branch): Rename from conditional_branch.
21372         (*reveresed_conditional_branch): Remove.
21373         (b<code>): Remove expander.
21374         * config/rx/rx-protos.h: Update.
21375
21376         * config/rx/rx.c (rx_compare_redundant): Remove.
21377         * config/rx/rx.md (cmpsi): Don't use it.
21378         * config/rx/rx-protos.h: Update.
21379
21380         * config/rx/rx-modes.def (CC_F): New mode.
21381         * config/rx/rx.c (rx_select_cc_mode): New.
21382         * config/rx/rx.h (SELECT_CC_MODE): Use it.
21383         * config/rx/rx-protos.h: Update.
21384
21385 2011-01-17  Richard Henderson  <rth@redhat.com>
21386
21387         * except.c (dump_eh_tree): Fix stray ; after for statement.
21388
21389 2011-01-17  Richard Guenther  <rguenther@suse.de>
21390
21391         PR tree-optimization/47313
21392         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21393         handling before copying the body.  Properly deal with
21394         by-reference result in SSA form.
21395
21396 2011-01-17  Ian Lance Taylor  <iant@google.com>
21397
21398         PR target/47219
21399         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21400         (struct_value_alias_set): Don't define.
21401         (sparc_option_override): Don't set sparc_sr_alias_set and
21402         struct_value_alias_set.
21403         (save_or_restore_regs): Use gen_frame_mem rather than calling
21404         set_mem_alias_set.
21405         (sparc_struct_value_rtx): Likewise.
21406
21407 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
21408
21409         PR target/47318
21410         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21411         (_mm_maskstore_pd): Likewise.
21412         (_mm_maskload_ps): Likewise.
21413         (_mm_maskstore_ps): Likewise.
21414         (_mm256_maskload_pd): Change mask to __m256i.
21415         (_mm256_maskstore_pd): Likewise.
21416         (_mm256_maskload_ps): Likewise.
21417         (_mm256_maskstore_ps): Likewise.
21418
21419         * config/i386/i386-builtin-types.def: Updated.
21420         (ix86_expand_special_args_builtin): Likewise.
21421
21422         * config/i386/i386.c (bdesc_special_args): Update
21423         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21424         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21425         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21426         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21427
21428         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21429         Use <avxpermvecmode> on mask register.
21430         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21431
21432 2011-01-17  Olivier Hainque  <hainque@adacore.com>
21433             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21434             Eric Botcazou  <ebotcazou@adacore.com>
21435
21436         PR target/46655
21437         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21438         if <= USHRT_MAX in 32-bit mode.
21439
21440 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21441
21442         * doc/install.texi (Configuration, Specific): Wrap long
21443         lines in examples.  Allow line wrapping in long options
21444         and URLs where beneficial for PDF output.
21445
21446 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
21447
21448         * config/mips/mips.c (mips_classify_symbol): Don't return
21449         SYMBOL_PC_RELATIVE for nonlocal labels.
21450
21451 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21452
21453         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21454
21455 2011-01-15  Jan Hubicka  <jh@suse.cz>
21456
21457         PR tree-optimization/47276
21458         * ipa.c (function_and_variable_visibility): Do not try to mark alias
21459         declarations as needed.
21460
21461 2011-01-15  Martin Jambor  <mjambor@suse.cz>
21462
21463         * common.opt (fdevirtualize): New flag.
21464         * doc/invoke.texi (Option Summary): Document it.
21465         * opts.c (default_options_table): Add devirtualize flag.
21466         * ipa-prop.c (detect_type_change): Return immediately if
21467         devirtualize flag is not set.
21468         (detect_type_change_ssa): Likewise.
21469         (compute_known_type_jump_func): Likewise.
21470         (ipa_analyze_virtual_call_uses): Likewise.
21471
21472 2011-01-14  Martin Jambor  <mjambor@suse.cz>
21473
21474         PR tree-optimization/45934
21475         PR tree-optimization/46302
21476         * ipa-prop.c (type_change_info): New type.
21477         (stmt_may_be_vtbl_ptr_store): New function.
21478         (check_stmt_for_type_change): Likewise.
21479         (detect_type_change): Likewise.
21480         (detect_type_change_ssa): Likewise.
21481         (compute_complex_assign_jump_func): Check for dynamic type change.
21482         (compute_complex_ancestor_jump_func): Likewise.
21483         (compute_known_type_jump_func): Likewise.
21484         (compute_scalar_jump_functions): Likewise.
21485         (ipa_analyze_virtual_call_uses): Likewise.
21486         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21487
21488 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21489
21490         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21491         * config/i386/i386.opt (msse5): New Alias.
21492
21493 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21494
21495         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21496         * config/sparc/linux64.h (CC1_SPEC): Likewise.
21497         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21498         * config/sparc/sparc.h (CC1_SPEC): Likewise.
21499
21500 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21501
21502         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21503         -mcpu options.
21504         * config/sparc/linux64.h (CC1_SPEC): Likewise.
21505         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21506         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21507         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21508         Likewise.
21509         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21510
21511 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21512
21513         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21514
21515 2011-01-14  Mike Stump  <mikestump@comcast.net>
21516
21517         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21518         * config/fr30/fr30.md: Likweise
21519         (movsi_push): Likewise.
21520         (movsi_pop): Likewise.
21521         (enter_func): Likewise.
21522         * config/moxie/moxie.md (movsi_push): Likewise.
21523         (movsi_pop): Likewise.
21524
21525 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21526
21527         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21528         %{no_archive} %{exact_version}.
21529         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21530         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21531         %{no_archive} %{exact_version}.
21532         * config/mips/openbsd.h (LINK_SPEC): Likewise.
21533         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21534         * config/mips/vxworks.h: Likewise.
21535
21536 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21537
21538         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21539
21540 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21541
21542         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21543         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21544
21545 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21546
21547         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21548         -nodefaultlib.
21549
21550 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21551
21552         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21553         for mcpu not cpu.
21554         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21555         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21556         not cpu.
21557         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21558         Don't handle -shlib.
21559
21560 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21561
21562         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21563         (CC1_SPEC): Don't handle -profile.
21564
21565 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21566
21567         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21568         * config/mips/mips.h (CC1_SPEC): Likewise.
21569
21570 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21571
21572         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21573         * config/mips/mips.h (CC1_SPEC): Likewise.
21574
21575 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21576
21577         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21578         * config/m32r/linux.h (LINK_SPEC): Likewise.
21579         * config/mips/linux.h (LINK_SPEC): Likewise.
21580         * config/mips/linux64.h (LINK_SPEC): Likewise.
21581         * config/sparc/linux.h (LINK_SPEC): Likewise.
21582         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21583         LINK_SPEC): Likewise.
21584         * config/xtensa/linux.h (LINK_SPEC): Likewise.
21585
21586 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21587
21588         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21589         %{version:-v}.
21590         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21591
21592 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21593
21594         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21595         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21596
21597 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21598
21599         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21600
21601 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21602
21603         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21604         supports -Bstatic/-Bdynamic.
21605         * configure: Regenerate.
21606
21607 2011-01-14  Jan Hubicka  <jh@suse.cz>
21608             Jack Howarth  <howarth@bromo.med.uc.edu>
21609
21610         PR target/46037
21611         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21612         when checking debug_info_level. Test write_symbols instead of
21613         debug_hooks->var_location when setting flag_var_tracking_uninit.
21614
21615 2011-01-14  Richard Guenther  <rguenther@suse.de>
21616
21617         PR tree-optimization/47179
21618         * target.def (ref_may_alias_errno): New target hook.
21619         * targhooks.h (default_ref_may_alias_errno): Declare.
21620         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21621         (default_ref_may_alias_errno): New function.
21622         * target.h (struct ao_ref_s): Declare.
21623         * tree-ssa-alias.c: Include target.h.
21624         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21625         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21626         (targhooks.o): Likewise.
21627         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21628         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21629
21630 2011-01-14  Richard Guenther  <rguenther@suse.de>
21631
21632         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
21633
21634 2011-01-14  Richard Guenther  <rguenther@suse.de>
21635
21636         PR tree-optimization/47280
21637         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21638         return CFG changes.
21639         (tree_ssa_forward_propagate_single_use_vars): Deal with
21640         CFG changes from associate_plusminus.
21641
21642 2011-01-14  Richard Guenther  <rguenther@suse.de>
21643
21644         PR middle-end/47281
21645         Revert
21646         2011-01-11  Richard Guenther  <rguenther@suse.de>
21647
21648         PR tree-optimization/46076
21649         * tree-ssa.c (useless_type_conversion_p): Conversions from
21650         unprototyped to empty argument list function types are useless.
21651
21652 2011-01-14  Richard Guenther  <rguenther@suse.de>
21653
21654         PR tree-optimization/47286
21655         * tree-ssa-structalias.c (new_var_info): Register variables are global.
21656
21657 2011-01-14  Martin Jambor  <mjambor@suse.cz>
21658
21659         PR middle-end/46823
21660         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21661
21662 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
21663
21664         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21665         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21666         * config/xtensa/xtensa.c (xtensa_libcall_value,
21667         xtensa_function_value_regno_p): New functions.
21668         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21669
21670 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
21671
21672         PR c++/47213
21673         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21674         PE specific hook.
21675         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21676         New function prototype.
21677         * config/i386/winnt.c (i386_pe_assemble_visibility):
21678         Warn only if attribute was specified by user.
21679
21680 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
21681
21682         PR target/47251
21683         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21684         floating point.
21685         (floatunsdidf2_fcfidu): Ditto.
21686
21687 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21688
21689         * config/s390/s390.c (print_operand_address): Replace 'error' with
21690         'output_operand_lossage'.
21691         (print_operand): Likewise.
21692
21693 2011-01-13  Jeff Law  <law@redhat.com>
21694
21695         PR rtl-optimization/39077
21696         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21697         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21698         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21699         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21700         * gcse.c (prune_insertions_deletions): New function.
21701         (compute_pre_data): Use it.
21702
21703 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
21704
21705         PR debug/PR46973
21706         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21707         static function.
21708         (prune_unused_types_mark): Use it.
21709
21710 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
21711
21712         PR rtl-optimization/45352
21713         * sel-sched.c: Update copyright years.
21714         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
21715         in the advancing loop when we have issued issue_rate insns.
21716
21717 2011-01-12  Richard Henderson  <rth@redhat.com>
21718
21719         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21720         (TARGET_MD_ASM_CLOBBERS): New.
21721
21722         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21723         (TARGET_DELEGITIMIZE_ADDRESS): New.
21724
21725         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21726         (clzsi2, *bsch): New patterns.
21727
21728         * config/mn10300/mn10300.md (INT): New mode iterator.
21729         (*mov<INT>_clr): New pattern, and peep2 to generate it.
21730
21731         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21732         flag_split_wide_types.
21733
21734         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21735         (mn10300_trampoline_init): Rewrite without a template, an immediate
21736         load and a direct branch.
21737         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21738
21739 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
21740
21741         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21742         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21743         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21744         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21745
21746 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
21747
21748         PR debug/47209
21749         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21750         of type.
21751
21752 2011-01-12  Jan Hubicka  <jh@suse.cz>
21753
21754         PR driver/47244
21755         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21756         (PLUGIN_COND_CLOSE): New macro.
21757         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21758
21759 2011-01-12  Richard Guenther  <rguenther@suse.de>
21760
21761         PR lto/47259
21762         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21763         register variables in a MEM_REF.
21764
21765 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
21766
21767         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21768         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21769         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21770         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21771         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21772         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21773         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21774         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21775         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21776         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21777         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21778         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21779         * config/gnu-user.h: New.  Copied from linux.h.
21780         (LINUX_TARGET_STARTFILE_SPEC): Rename to
21781         GNU_USER_TARGET_STARTFILE_SPEC.
21782         (LINUX_TARGET_ENDFILE_SPEC): Rename to
21783         GNU_USER_TARGET_ENDFILE_SPEC.
21784         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21785         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21786         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21787         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21788         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21789         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21790         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21791         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21792         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21793         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21794         * config/arm/linux-eabi.h (CC1_SPEC): Use
21795         GNU_USER_TARGET_CC1_SPEC.
21796         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21797         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21798         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21799         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21800         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21801         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21802         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21803         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21804
21805 2011-01-12  Richard Guenther  <rguenther@suse.de>
21806
21807         PR other/46946
21808         * doc/invoke.texi (ffast-math): Document it is turned on
21809         with -Ofast.
21810
21811 2011-01-12  Jan Hubicka  <jh@suse.cz>
21812
21813         PR tree-optimization/47233
21814         * opts.c (common_handle_option): Disable ipa-reference with profile
21815         feedback.
21816
21817 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21818
21819         * c-parser.c (c_parser_objc_at_property_declaration): Improved
21820         error message.
21821
21822 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21823
21824         * c-parser.c (c_lex_one_token): Updated and reindented some
21825         comments.  No changes in code.
21826
21827 2011-01-11  Ian Lance Taylor  <iant@google.com>
21828
21829         * godump.c (go_output_var): Don't output the variable if there is
21830         already a type with the same name.
21831
21832 2011-01-11  Ian Lance Taylor  <iant@google.com>
21833
21834         * godump.c (go_format_type): Don't generate float80.
21835
21836 2011-01-11  Richard Henderson  <rth@redhat.com>
21837
21838         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21839         declaration.  Rewrite for both speed and size.
21840         (mn10300_address_cost_1): Remove.
21841         (mn10300_register_move_cost): New.
21842         (mn10300_memory_move_cost): New.
21843         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
21844         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
21845         extensions, shifts, BSWAP, CLZ.
21846         (mn10300_wide_const_load_uses_clr): Remove.
21847         (TARGET_REGISTER_MOVE_COST): New.
21848         (TARGET_MEMORY_MOVE_COST): New.
21849         * config/mn10300/mn10300-protos.h: Update.
21850         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
21851
21852         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
21853         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
21854         * config/mn10300/mn10300-protos.h: Update.
21855         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
21856         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
21857         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
21858         (*test_int_bitfield, *test_byte_bitfield): Remove.
21859         (*bit_test, *subreg_bit_test): Remove.
21860         * config/mn10300/predicates.md (const_8bit_operand): Remove.
21861
21862         * config/mn10300/constraints.md ("c"): Rename from "A".
21863         ("A", "D"): New constraint letters.
21864         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
21865         (fmssf4, fnmasf4, fnmssf4): Likewise.
21866
21867         * config/mn10300/mn10300.md (isa): New attribute.
21868         (enabled): New attribute.
21869
21870         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
21871         (abssf2, negsf2): Define only for hardware fp.
21872         (sqrtsf2): Reformat.
21873         (addsf3, subsf3, mulsf3): Merge expander and insn.
21874
21875         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
21876         (DEBUGGER_AUTO_OFFSET): Remove.
21877         (DEBUGGER_ARG_OFFSET): Remove.
21878
21879         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
21880         Emit register stores with the same offsets as the hardware.
21881         (mn10300_store_multiple_operation): Don't check that the register
21882         save offsets are monotonic.
21883         * config/mn10300/mn10300-protos.h: Update.
21884
21885         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
21886
21887         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
21888         in terms of the value on the stack, not the MDR register.
21889
21890 2011-01-11  Jan Hubicka  <jh@suse.cz>
21891
21892         PR lto/45721
21893         PR lto/45375
21894         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
21895         (symbol_alias_set_destroy, symbol_alias_set_contains,
21896         propagate_aliases_backward): Declare.
21897         * lto-streamer-out.c (struct sets): New sturcture.
21898         (trivally_defined_alias): New function.
21899         (output_alias_pair_p): Rewrite.
21900         (output_unreferenced_globals): Fix output of alias pairs.
21901         (produce_symtab): Likewise.
21902         * ipa.c (function_and_variable_visibility): Set weak alias destination
21903         as needed in lto.
21904         * varasm.c (symbol_alias_set_t): Remove.
21905         (symbol_alias_set_destroy): Export.
21906         (propagate_aliases_forward, propagate_aliases_backward): New functions
21907         based on ...
21908         (compute_visible_aliases): ... this one; remove.
21909         (trivially_visible_alias): New
21910         (trivially_defined_alias): New.
21911         (remove_unreachable_alias_pairs): Rewrite.
21912         (finish_aliases_1): Reorganize code checking if alias is defined.
21913         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
21914         in LTO mode.
21915
21916 2011-01-11  Richard Guenther  <rguenther@suse.de>
21917
21918         PR tree-optimization/46076
21919         * tree-ssa.c (useless_type_conversion_p): Conversions from
21920         unprototyped to empty argument list function types are useless.
21921
21922 2011-01-11  Richard Guenther  <rguenther@suse.de>
21923
21924         PR middle-end/45235
21925         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
21926         volatile MEMs as MEM_READONLY_P.
21927
21928 2011-01-11  Richard Guenther  <rguenther@suse.de>
21929
21930         PR tree-optimization/47239
21931         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
21932
21933 2011-01-11  Jeff Law  <law@redhat.com>
21934
21935         PR tree-optimization/47086
21936         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
21937         IVs from statements that might throw.
21938
21939 2011-01-10  Jan Hubicka  <jh@suse.cz>
21940
21941         PR lto/45375
21942         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
21943
21944 2011-01-10  Jan Hubicka  <jh@suse.cz>
21945
21946         PR lto/45375
21947         * profile.c (read_profile_edge_counts): Ignore profile inconistency
21948         when correcting profile.
21949
21950 2011-01-10  Jan Hubicka  <jh@suse.cz>
21951
21952         PR lto/46083
21953         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
21954         DECL_FINI_PRIORITY.
21955         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
21956         Restore DECL_FINI_PRIORITY.
21957
21958 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21959
21960         * doc/gimple.texi: Fix quoting of multi-word return values in
21961         @deftypefn statements.  Ensure presence of return value.  Wrap
21962         overlong @deftypefn lines.
21963         (is_gimple_operand, is_gimple_min_invariant_address): Remove
21964         descriptions of removed functions.
21965         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
21966         of multi-word return value in @deftypefn statement.
21967
21968 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21969
21970         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
21971         (Conditional Expressions, Logical Operators)
21972         (Statement and operand traversals): Do not indent smallexample
21973         code.  Fix duplicate function argument in example.
21974
21975 2011-01-10  Jeff Law  <law@redhat.com>
21976
21977         PR tree-optimization/47141
21978         * ipa-split.c (split_function): Handle case where we are
21979         returning a value and the return block has a virtual operand phi.
21980
21981 2011-01-10  Jan Hubicka  <jh@suse.cz>
21982
21983         PR tree-optimization/47234
21984         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
21985         (pass_feedback_split_functions): Declare.
21986         * passes.c (init_optimization_passes): Add ipa-split as subpass of
21987         tree-profile.
21988         * ipa-split.c (gate_split_functions): Update comments; disable
21989         split-functions for profile_arc_flag and branch_probabilities.
21990         (gate_feedback_split_functions): New function.
21991         (execute_feedback_split_functions): New function.
21992         (pass_feedback_split_functions): New global var.
21993
21994 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
21995
21996         PR lto/46760
21997         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
21998         calling gimple_call_set_cannot_inline.
21999
22000 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
22001
22002         * config/darwin-sections.def: Remove unused section.
22003
22004 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
22005
22006         PR c++/47218
22007         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22008
22009 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
22010
22011         PR objc/47232
22012         * c-parser.c (c_parser_declaration_or_fndef): Improved
22013         error message.
22014
22015 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
22016
22017         * config/i386/winnt.c (i386_pe_start_function): Make sure
22018         to switch back to function's section.
22019
22020 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
22021
22022         PR gcc/46902
22023         PR testsuite/46912
22024         * plugin.c: Move include of dlfcn.h from here...
22025         * system.h: ... to here.
22026
22027 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22028
22029         * doc/cpp.texi (C++ Named Operators): Fix markup for header
22030         file name.
22031         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22032         two extra empty pages in PDF output.
22033
22034 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
22035
22036         PR objc/47078
22037         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22038         for error recovery purposes behave as if it was not specified so
22039         that the default type is usd.
22040
22041 2011-01-07  Jan Hubicka  <jh@suse.cz>
22042
22043         PR tree-optmization/46469
22044         * ipa.c (function_and_variable_visibility): Clear needed flags on
22045         nodes with external decls; handle weakrefs merging correctly.
22046
22047 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
22048
22049         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22050         not false.
22051
22052 2011-01-07  Jan Hubicka  <jh@suse.cz>
22053
22054         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22055         and no longer claim that gold is required for linker plugin.
22056         * configure: Regenerate.
22057         * gcc.c (PLUGIN_COND): New macro.
22058         (LINK_COMMAND_SPEC): Use it.
22059         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22060         * config.in (HAVE_LTO_PLUGIN): New.
22061         * configure.ac (--with-lto-plugin): New parameter; autodetect
22062         HAVE_LTO_PLUGIN.
22063
22064 2011-01-07  Jan Hubicka  <jh@suse.cz>
22065
22066         PR tree-optimization/46367
22067         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22068         when we can update original.
22069         (cgraph_mark_inline_edge): Sanity check.
22070         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22071
22072 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22073
22074         * config/spu/spu.h (ASM_COMMENT_START): Define.
22075
22076 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
22077
22078         PR driver/42445
22079         * gcc.c (%>S): New.
22080         (SWITCH_KEEP_FOR_GCC): Likewise.
22081         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22082         (do_spec_1): Handle "%>".
22083
22084         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22085
22086 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
22087
22088         PR target/47201
22089         * config/i386/i386.c (ix86_delegitimize_address): If
22090         simplify_gen_subreg fails, return orig_x.
22091
22092         PR bootstrap/47187
22093         * value-prof.c (gimple_stringop_fixed_value): Handle
22094         lhs of the call properly.
22095
22096 2011-01-07  Jan Hubicka  <jh@suse.cz>
22097
22098         PR lto/45375
22099         * lto-opt.c (lto_reissue_options): Set flag_shlib.
22100
22101 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22102
22103         * target.def (function_switched_text_sections): New hook.
22104         * doc/tm.texi: Regenerated.
22105         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22106         * final.c (default_function_switched_text_sections): New.
22107         (final_scan_insn): Call function_switched_text_sections when a
22108         mid-function section change occurs.
22109         * output.h (default_function_switched_text_sections): Declare.
22110         * config/darwin-protos.h (darwin_function_switched_text_sections):
22111         Likewise.
22112         * config/darwin.c (darwin_function_switched_text_sections): New.
22113         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22114
22115 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22116
22117         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
22118         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
22119         the secondary code fragment when outputting for DWARF == 2.
22120
22121 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
22122
22123         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22124         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22125         Remove.
22126         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22127         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22128
22129 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22130
22131         PR debug/46704
22132         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22133         when it is not empty.
22134
22135 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
22136
22137         Bobcat Enablement
22138         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22139         (case ${target}): Add btver1.
22140         * config/i386/driver-i386.c (host_detect_local_cpu): Let
22141         -march=native recognize btver1 processors.
22142         * config/i386/i386-c.c (ix86_target_macros_internal): Add
22143         btver1 def_and_undef
22144         * config/i386/i386.c (struct processor_costs btver1_cost): New
22145         btver1 cost table.
22146         (m_BTVER1): New definition.
22147         (m_AMD_MULTIPLE): Includes m_BTVER1.
22148         (initial_ix86_tune_features): Add btver1 tune.
22149         (processor_target_table): Add btver1 entry.
22150         (static const char *const cpu_names): Add btver1 entry.
22151         (software_prefetching_beneficial_p): Add btver1.
22152         (ix86_option_override_internal): Add btver1 instruction sets.
22153         (ix86_issue_rate): Add btver1.
22154         (ix86_adjust_cost): Add btver1.
22155         * config/i386/i386.h (TARGET_BTVER1): New definition.
22156         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22157         (enum processor_type): Add PROCESSOR_BTVER1.
22158         * config/i386/i386.md (define_attr "cpu"): Add btver1.
22159
22160 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22161
22162         PR target/43309
22163         * config/i386/i386.c (legitimize_tls_address)
22164         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22165         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22166         (tls_initial_exec_64_sun): New pattern.
22167
22168 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
22169
22170         * doc/invoke.texi (Overall Options): Improve wording and markup
22171         of the description of -wrapper.
22172
22173 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22174
22175         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22176         rdynamic, threads): New Driver options.
22177
22178 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22179
22180         PR target/38118
22181         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22182         if coming from .tdata.
22183         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22184
22185 2011-01-06  Jan Hubicka  <jh@suse.cz>
22186
22187         PR lto/47188
22188         * collect2.c (main): Do not enable LTOmode when plugin is active.
22189
22190 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22191
22192         PR other/45915
22193         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22194         --version output if supported.
22195         * configure: Regenerate.
22196
22197 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22198
22199         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22200         Driver options.
22201
22202 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
22203
22204         PR c/47150
22205         * c-convert.c (convert): When converting a complex expression
22206         other than COMPLEX_EXPR to a different complex type, ensure
22207         c_save_expr is called instead of save_expr, unless in_late_binary_op.
22208         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22209         when converting COMPLEX_TYPE.
22210
22211 2011-01-06  Ira Rosen  <irar@il.ibm.com>
22212
22213         PR tree-optimization/47139
22214         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22215         only the last reduction value is used outside the loop.  Update
22216         documentation.
22217
22218 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
22219
22220         * config/rtems.opt: New.
22221         * config.gcc (*-*-rtems*): Use rtems.opt.
22222
22223 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
22224
22225         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22226         processors do not support 3DNow instructions.
22227
22228 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22229
22230         * config/spu/spu.c (spu_option_override): Set parameter
22231         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22232
22233 2011-01-05  Jan Hubicka  <jh@suse.cz>
22234
22235         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22236         at the command line.
22237
22238 2011-01-05  Martin Jambor  <mjambor@suse.cz>
22239
22240         PR lto/47162
22241         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22242         deltas on streamed outgoing edges.
22243         (output_node_opt_summary): Output info for outgoing edges only when
22244         the node is in new parameter set.
22245         (output_cgraph_opt_summary): New parameter set, passed to the two
22246         aforementioned functions.  Update its forward declaration and its
22247         callee too.
22248
22249 2011-01-05  Tom Tromey  <tromey@redhat.com>
22250
22251         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22252         operator to c_finish_omp_atomic.
22253         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22254         (build_unary_op): Update.
22255         (build_modify_expr): Update.
22256         (build_asm_expr): Update.
22257
22258 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22259
22260         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22261         newly inserted insns.
22262         (pad_bb): Likewise.
22263         (spu_emit_branch_hint): Likewise.
22264         (insert_hbrp_for_ilb_runout): Likewise.
22265         (spu_machine_dependent_reorg): Call df_finish_pass after
22266         schedule_insns returns.
22267
22268 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22269
22270         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22271
22272 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22273
22274         PR tree-optimization/47005
22275         * tree-sra.c (struct access): Add 'non_addressable' bit.
22276         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22277         (decide_one_param_reduction): Return 0 if the parameter is passed by
22278         reference and one of the accesses in the group is non_addressable.
22279
22280 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22281
22282         PR tree-optimization/47056
22283         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22284         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
22285         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
22286
22287 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22288
22289         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22290         initializer.  Skip view conversions from aggregate types.
22291
22292 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
22293
22294         PR bootstrap/47055
22295         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22296
22297 2011-01-04  Philipp Thomas  <pth@suse.de>
22298
22299         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22300         obvious typo.
22301
22302 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22303
22304         * function.c (thread_prologue_and_epilogue_insns): Do not crash
22305         on empty epilogue sequences.
22306
22307 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
22308
22309         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22310         non-static): New Driver options.
22311
22312 2011-01-04  Jie Zhang  <jie@codesourcery.com>
22313
22314         PR driver/47137
22315         * gcc.c (default_compilers[]): Set combinable field to 0
22316         for all assembly languages.
22317
22318 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
22319
22320         * config/mips/loongson3a.md: New file.
22321         * config/mips/mips.md: Include loongson3a.md.
22322         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22323         TUNE_LOONGSON_3A.
22324
22325 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22326
22327         PR middle-end/47017
22328         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22329         instead of convert_memory_address_addr_space on the base expression.
22330
22331 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22332
22333         * config/spu/spu.c (spu_option_override): Update error text
22334         for bad -march= / -mtune= values.
22335
22336 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22337
22338         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22339         if branch-hint optimization will be performed.
22340
22341 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22342
22343         PR tree-optimization/47148
22344         * ipa-split.c (split_function): Convert arguments to
22345         DECL_ARG_TYPE if possible.
22346
22347         PR tree-optimization/47155
22348         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22349         when computing uns.
22350
22351         PR rtl-optimization/47157
22352         * combine.c (try_combine): If undobuf.other_insn becomes
22353         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22354         and set *new_direct_jump_p too.
22355
22356 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22357
22358         PR tree-optimization/47021
22359         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22360
22361 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22362
22363         * gcc.c (process_command): Update copyright notice dates.
22364         * gcov.c (print_version): Likewise.
22365         * gcov-dump.c (print_version): Likewise.
22366         * mips-tfile.c (main): Likewise.
22367         * mips-tdump.c (main): Likewise.
22368
22369 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22370
22371         PR tree-optimization/46801
22372         * tree-sra.c (type_internals_preclude_sra_p): Check whether
22373         aggregate fields start at byte boundary instead of the bit-field flag.
22374
22375 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22376
22377         PR driver/47137
22378         * gcc.c (main): Revert revision 168407.
22379
22380 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22381
22382         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22383
22384 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22385
22386         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22387         vector optab to expand vector/scalar shift, update gimple to vector.
22388
22389 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22390
22391         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22392         a thunk.
22393
22394 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22395
22396         PR tree-optimization/46984
22397         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22398         HOST_WIDE_INT.
22399         (cgraph_create_indirect_edge): Fixed line length.
22400         (cgraph_indirect_call_info): Declare.
22401         (cgraph_make_edge_direct) Update declaration.
22402         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22403         (cgraph_create_indirect_edge): Use it.
22404         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
22405         callees.
22406         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22407         the new thunk_delta representation.
22408         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22409         HOST_WIDE_INT.
22410         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22411         (ipa_read_indirect_edge_info): Likewise.
22412         * lto-cgraph.c (output_edge_opt_summary): New function.
22413         (output_node_opt_summary): Call it on all outgoing edges.
22414         (input_edge_opt_summary): New function.
22415         (input_node_opt_summary): Call it on all outgoing edges.
22416
22417 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
22418
22419         PR driver/47137
22420         * gcc.c (main): Don't check have_o when settting combine_inputs.
22421
22422 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
22423
22424         * regrename.c: Add general comment describing the pass.
22425         (struct du_head): Remove 'length' field.
22426         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22427         (regrename_optimize): Do not sort chains.  Rework comments, add others.
22428         Force renaming to the preferred class (if any) in the first pass and do
22429         not consider registers that belong to it in the second pass.
22430         (create_new_chain): Do not set 'length' field.
22431         (scan_rtx_reg): Likewise.
22432
22433 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
22434
22435         PR tree-optimization/47140
22436         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22437         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22438         to bit_value_binop.
22439
22440         PR rtl-optimization/47028
22441         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22442         parm_birth_insn instead of at the beginning of first bb.
22443
22444 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
22445
22446         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22447         Remove the word "see" before "@pxref".
22448         * doc/rtl.texi: Remove the word "see" before "@pxref".
22449
22450 2011-01-01  Jan Hubicka  <jh@suse.cz>
22451
22452         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22453         memory.
22454
22455 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
22456
22457         PR target/38662
22458         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22459
22460 \f
22461 Copyright (C) 2011 Free Software Foundation, Inc.
22462
22463 Copying and distribution of this file, with or without modification,
22464 are permitted in any medium without royalty provided the copyright
22465 notice and this notice are preserved.