OSDN Git Service

* ChangeLog: Fix description of my last commit.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.c (ix86_decompose_address): Reject all but
4         register operands and subregs of DImode hard registers in index.
5
6 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7
8         * fold-const.c (fold_unary_loc): Preserve indirect
9         comparison cast to none-boolean type.
10         * tree-ssa.c (useless_type_conversion_p): Preserve cast
11         from/to boolean-type.
12         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
13         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
14         * tree-cfg.c (verify_gimple_comparison): Check result
15         type of comparison expression.
16         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
17         of condition result and disallow type-cast sinking into comparison.
18
19 2011-07-21  Richard Guenther  <rguenther@suse.de>
20
21         * tree-ssa-forwprop.c (combine_conversions): Return whether
22         we have to run cfg-cleanup.  Properly remove dead stmts.
23         (ssa_forward_propagate_and_combine): Adjust.
24
25 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
26
27         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
28
29 2011-07-21  Kai Tietz  <ktietz@redhat.com>
30
31         * tree-ssa-propagate.c (substitute_and_fold): Use
32         do_dce flag to deside, if BB's statements are scanned
33         in last to first, or first to last order.
34
35 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
36
37         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
38
39 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
40             Uros Bizjak  <ubizjak@gmail.com>
41             Richard Henderson  <rth@redhat.com>
42
43         * config/i386/constraints.md (w): New.
44
45         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
46         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
47
48         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
49         instead of TARGET_64BIT.
50
51         * config/i386/i386.md (indirect_jump): Replace
52         nonimmediate_operand with indirect_branch_operand.
53         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
54         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
55         Convert operand 0 to Pmode for x32 if not PIC.
56         (*tablejump_1): Replace nonimmediate_operand with
57         indirect_branch_operand.  Replace constraint "m" with "w".
58         (*call_vzeroupper): Replace constraint "m" with "w".
59         (*call): Likewise.
60         (*call_rex64_ms_sysv_vzeroupper): Likewise.
61         (*call_rex64_ms_sysv): Likewise.
62         (*call_value_vzeroupper): Likewise.
63         (*call_value): Likewise.
64         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
65         (*call_value_rex64_ms_sysv): Likewise.
66         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
67
68         * config/i386/predicates.md (indirect_branch_operand): New.
69         (call_insn_operand): Support x32.
70
71 2011-07-20  Michael Eager  <eager@eagercon.com>
72
73         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
74
75 2011-07-20  Richard Henderson  <rth@redhat.com>
76
77         * cfg.c (dump_bb_info): Dump basic_block->flags.
78         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
79
80 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
81
82         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
83         of DImode hard registers in index.
84         (ix86_legitimate_address_p): Allow subregs of base and index to span
85         more than a word.  Assert that subregs of base and index satisfy
86         register_no_elim_operand predicates.  Reject addresses where
87         base and index have different modes.
88
89 2011-07-20  Robert Millan  <rmh@gnu.org>
90
91         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
92
93 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
94
95         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
96         removing now-unnecessary assignment.
97
98 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
99
100         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
101         memory address space to the type's address space.
102
103 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
104
105         PR target/36467
106         PR target/49687
107         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
108         and expand appropriately if there is a CONST_INT in operand2.
109         (usmulqihi3): New insn.
110         (*sumulqihi3): New insn.
111         (*osmulqihi3): New insn.
112         (*oumulqihi3): New insn.
113         (*muluqihi3.uconst): New insn_and_split.
114         (*muluqihi3.sconst): New insn_and_split.
115         (*mulsqihi3.sconst): New insn_and_split.
116         (*mulsqihi3.uconst): New insn_and_split.
117         (*mulsqihi3.oconst): New insn_and_split.
118         (*ashifthi3.signx.const): New insn_and_split.
119         (*ashifthi3.signx.const7): New insn_and_split.
120         (*ashifthi3.zerox.const): New insn_and_split.
121         (mulsqihi3): New insn.
122         (muluqihi3): New insn.
123         (muloqihi3): New insn.
124         * config/avr/predicates.md (const_2_to_7_operand): New.
125         (const_2_to_6_operand): New.
126         (u8_operand): New.
127         (s8_operand): New.
128         (o8_operand): New.
129         (s9_operand): New.
130         (register_or_s9_operand): New.
131
132 2011-07-20  Kai Tietz  <ktietz@redhat.com>
133
134         * builtins.c (fold_builtin_expect): See through the cast
135         from truthvalue_type_node to long.
136
137 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
138
139         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
140         where we can use them from the standard and altivec instruction
141         sets, instead of always using the 3 operand VSX forms that require
142         the destination to overlap one of the inputs.
143         (vsx_fms*): Ditto.
144         (vsx_fnma*): Ditto.
145         (vsx_fnms*): Ditto.
146
147         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
148         for DF types.
149         (fmsdf4_fpr): Ditto.
150         (nfmadf4_fpr): Ditto.
151         (nfmsdf4_fpr): Ditto.
152
153 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
154
155         * genrecog.c (make_insn_sequence): Correct position numbering
156         when filtering out match_scratch and match_dup.
157
158 2011-07-20  Richard Guenther  <rguenther@suse.de>
159
160         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
161         against already removed statements.
162         (forward_propagate_into_comparison): Remove dead defining stmts.
163         (forward_propagate_into_gimple_cond): Likewise.
164         (forward_propagate_into_cond): Simplify.
165         (ssa_forward_propagate_and_combine): Handle changed cfg from
166         forward_propagate_into_comparison.
167         * tree-ssa-phiopt.c (conditional_replacement): Use proper
168         locations for newly built statements.
169
170 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
171
172         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
173
174 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
175
176         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
177         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
178
179 2011-07-20  Richard Guenther  <rguenther@suse.de>
180
181         PR middle-end/18908
182         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
183         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
184         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
185
186 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
187
188         * config/frv/frv.c (frv_register_move_cost): Define explicitly
189         costs for subclasses of GR_REGS.
190
191 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
192
193         PR target/49780
194         * config/i386/predicates.md (no_seg_addres_operand): No more special.
195         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
196         of DImode hard registers in base.
197         (ix86_legitimate_address_p): Allow SImode and DImode base and index
198         registers.
199
200 2011-07-20  Richard Guenther  <rguenther@suse.de>
201
202         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
203         (unify_nodes): Deal with that.
204         (solve_graph): Likewise.
205
206 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
207
208         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
209         canonicalize left operand from ZERO_EXTEND to AND.
210
211 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
212
213         * target.def (class_max_nregs): New hook.
214         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
215         * doc/tm.texi: Regenerate.
216         * targhooks.c (default_class_max_nregs): New function.
217         * targhooks.h (default_class_max_nregs): Declare.
218         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
219         x_ira_reg_class_min_nregs arrays to unsigned char.
220         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
221         hook instead of CLASS_MAX_NREGS macro.
222         * reginfo.c (restore_register_info): Ditto.
223         * ira-conflicts.c (process_regs_for_copy): Use
224         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
225         Change type rclass and aclass vars to reg_class_t.
226         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
227         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
228         reg_class_t.
229         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
230         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
231
232         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
233         * config/i386/i386.c (ix86_class_max_nregs): New function.
234         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
235         instead of CLASS_MAX_NREGS macro.
236         (TARGET_CLASS_MAX_NREGS): Define.
237         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
238         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
239         * config/avr/avr.c (class_max_nregs): Remove function.
240         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
241         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
242         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
243         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
244         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
245         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
246         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
247         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
248         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
249         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
250         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
251         * config/score/score.h (CLASS_MAX_NREGS): Remove.
252         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
253         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
254         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
255
256 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
257
258         * cif-code.def (OVERWRITABLE): Fix typo and move around.
259         (TARGET_OPTIMIZATION_MISMATCH): Delete.
260         (EH_PERSONALITY): Fix typo.
261         (NON_CALL_EXCEPTIONS): Fix message.
262         (OPTIMIZATION_MISMATCH): Adjust message.
263         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
264
265 2011-07-19  Ian Lance Taylor  <iant@google.com>
266
267         * doc/install.texi (Configuration): Document
268         --enable-build-poststage1-with-cxx.
269
270 2011-07-19  Robert Millan  <rmh@gnu.org>
271
272         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
273         (GLIBC_DYNAMIC_LINKER): Remove.
274
275         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
276         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
277         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
278         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
279         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
280         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
281
282         * config/mips/linux.h: Remove everything except for ...
283         (GLIBC_DYNAMIC_LINKER): ... this macro.
284
285         * config/mips/linux64.h: Remove everything except for ...
286         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
287         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
288         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
289         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
290         (GNU_USER_LINK_EMULATIONN32): New macros.
291
292         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
293         Use the new headers.
294
295 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
296
297         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
298         Add offset_known_p and size_known_p fields.
299         (MEM_OFFSET_KNOWN_P): Update accordingly.
300         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
301         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
302         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
303         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
304         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
305         (init_emit_regs): Likewise.
306
307 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
308
309         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
310         (MEM_OFFSET): Change from returning an rtx to returning a
311         HOST_WIDE_INT.
312         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
313         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
314         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
315         (clear_mem_offset): Declare.
316         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
317         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
318         MEM_OFFSET to get a HOST_WIDE_INT offset.
319         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
320         (adjust_offset_for_component_ref): Take a bool "known_p"
321         parameter and a HOST_WIDE_INT "offset" parameter.
322         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
323         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
324         than an rtx.  Use clear_mem_offset to clear the offset.
325         * cfgcleanup.c (merge_memattrs): Likewise.
326         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
327         * function.c (assign_parm_find_stack_rtl): Likewise.
328         (assign_parm_setup_stack): Likewise.
329         * print-rtl.c (print_rtx): Likewise.
330         * reload.c (find_reloads_subreg_address): Likewise.
331         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
332         * var-tracking.c (INT_MEM_OFFSET): Likewise.
333         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
334         (get_mem_align_offset): Likewise.
335         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
336         (clear_mem_offset): New function.
337         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
338         offset rather than an rtx.  Assume both the expressio and offset
339         are available.
340         (r10k_needs_protection_p_1): Update accordingly, checking the
341         expression and offset availability here instead.
342
343 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
344
345         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
346         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
347         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
348         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
349         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
350         (clear_mem_size): Declare.
351         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
352         (clear_mem_size): New function.
353         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
354         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
355         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
356         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
357         to clear the size.
358         (nonoverlapping_memrefs_p): Likewise.
359         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
360         (expand_builtin_init_trampoline): Likewise.
361         * calls.c (compute_argument_addresses): Likewise.
362         * cfgcleanup.c (merge_memattrs): Likewise.
363         * dce.c (find_call_stack_args): Likewise.
364         * dse.c (record_store, scan_insn): Likewise.
365         * dwarf2out.c (dw_sra_loc_expr): Likewise.
366         * expr.c (emit_block_move_hints): Likewise.
367         * function.c (assign_parm_find_stack_rtl): Likewise.
368         * print-rtl.c (print_rtx): Likewise.
369         * reload.c (find_reloads_subreg_address): Likewise.
370         * rtlanal.c (may_trap_p_1): Likewise.
371         * var-tracking.c (track_expr_p): Likewise.
372         * varasm.c (assemble_trampoline_template): Likewise.
373         * config/arm/arm.c (arm_print_operand): Likewise.
374         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
375         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
376         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
377         (expand_constant_setmem_prologue): Likewise.
378         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
379         * config/rs6000/rs6000.c (expand_block_move): Likewise.
380         (adjacent_mem_locations): Likewise.
381         * config/s390/s390.c (s390_expand_setmem): Likewise.
382         (s390_expand_insv): Likewise.
383         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
384         (*extendqi<mode>2_short_displ): Likewise.
385         * config/sh/sh.c (expand_block_move): Likewise.
386         * config/sh/sh.md (extv, extzv): Likewise.
387
388 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
389
390         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
391         (mem_attrs_htab_eq): ...here.
392         (find_mem_attrs): Replace with...
393         (set_mem_attrs): ...this function.  Take a mem_attrs structure
394         rather than individual fields.
395         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
396         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
397         (set_mem_size, change_address, adjust_address_1, offset_address)
398         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
399         Update accordingly.
400
401 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
402
403         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
404         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
405         Provide a dummy definition of MEM_ADDR_SPACE for generators.
406         (target_rtl): Add x_mode_mem_attrs.
407         (mode_mem_attrs): New macro.
408         (get_mem_attrs): New function.
409         * emit-rtl.c (get_mem_attrs): Rename to...
410         (find_mem_attrs): ...this.
411         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
412         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
413         (set_mem_size, change_address, adjust_address_1, offset_address)
414         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
415         Update accordingly.
416         (init_emit_regs): Initialize mode_mem_attrs.
417
418 2011-07-19  Richard Guenther  <rguenther@suse.de>
419
420         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
421         TRUTH_*_EXPR handling.
422         * tree-ssa-operands.c (get_expr_operands): Likewise.
423         * tree-ssa-pre.c (fully_constant_expression): Likewise.
424         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
425         Likewise.
426         (is_and_or_or): Likewise.
427         (is_norm_cond_subset_of): Likewise.
428
429 2011-07-19  Richard Guenther  <rguenther@suse.de>
430
431         * tree.h (fold_build_pointer_plus_loc): New helper function.
432         (fold_build_pointer_plus_hwi_loc): Likewise.
433         (fold_build_pointer_plus): Define.
434         (fold_build_pointer_plus_hwi): Likewise.
435         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
436         (fold_builtin_memory_op): Likewise.
437         (fold_builtin_stpcpy): Likewise.
438         (fold_builtin_memchr): Likewise.
439         (fold_builtin_strstr): Likewise.
440         (fold_builtin_strchr): Likewise.
441         (fold_builtin_strrchr): Likewise.
442         (fold_builtin_strpbrk): Likewise.
443         (fold_builtin_strcat): Likewise.
444         (expand_builtin_memory_chk): Likewise.
445         (fold_builtin_memory_chk): Likewise.
446         * c-typeck.c (build_unary_op): Likewise.
447         * cgraphunit.c (thunk_adjust): Likewise.
448         * fold-const.c (build_range_check): Likewise.
449         (fold_binary_loc): Likewise.
450         * omp-low.c (extract_omp_for_data): Likewise.
451         (expand_omp_for_generic): Likewise.
452         (expand_omp_for_static_nochunk): Likewise.
453         (expand_omp_for_static_chunk): Likewise.
454         * tree-affine.c (add_elt_to_tree): Likewise.
455         * tree-data-ref.c (split_constant_offset_1): Likewise.
456         * tree-loop-distribution.c (generate_memset_zero): Likewise.
457         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
458         * tree-predcom.c (ref_at_iteration): Likewise.
459         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
460         (add_to_parts): Likewise.
461         (create_mem_ref): Likewise.
462         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
463         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
464         (number_of_iterations_le): Likewise.
465         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
466         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
467         (vect_create_addr_base_for_vector_ref): Likewise.
468         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
469         (vect_create_cond_for_alias_checks): Likewise.
470         * tree-vrp.c (extract_range_from_assert): Likewise.
471         * config/alpha/alpha.c (alpha_va_start): Likewise.
472         (alpha_gimplify_va_arg_1): Likewise.
473         * config/i386/i386.c (ix86_va_start): Likewise.
474         (ix86_gimplify_va_arg): Likewise.
475         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
476         * config/mep/mep.c (mep_expand_va_start): Likewise.
477         (mep_gimplify_va_arg_expr): Likewise.
478         * config/mips/mips.c (mips_va_start): Likewise.
479         (mips_gimplify_va_arg_expr): Likewise.
480         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
481         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
482         (rs6000_gimplify_va_arg): Likewise.
483         * config/s390/s390.c (s390_va_start): Likewise.
484         (s390_gimplify_va_arg): Likewise.
485         * config/sh/sh.c (sh_va_start): Likewise.
486         (sh_gimplify_va_arg_expr): Likewise.
487         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
488         * config/spu/spu.c (spu_va_start): Likewise.
489         (spu_gimplify_va_arg_expr): Likewise.
490         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
491         Likewise.
492         (xstormy16_gimplify_va_arg_expr): Likewise.
493         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
494         (xtensa_gimplify_va_arg_expr): Likewise.
495
496 2011-07-19  Richard Guenther  <rguenther@suse.de>
497
498         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
499         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
500         handling.
501
502         PR middle-end/18908
503         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
504         result of BIT_*_EXPR to bitfield precision.
505
506 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
507
508         PR tree-optimization/49742
509         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
510         as a potential write.
511
512 2011-07-19  Richard Guenther  <rguenther@suse.de>
513
514         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
515         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
516         (forward_propagate_comparison): Simplify, remove obsolete code.
517
518 2011-07-19  Richard Guenther  <rguenther@suse.de>
519
520         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
521         BIT_XOR_EXPR, same as the RTL expander does.
522         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
523         (verify_gimple_assign_unary): Likewise.
524         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
525         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
526         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
527
528 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
529
530         PR tree-optimization/49768
531         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
532         if offset is smaller than bitoffset, but offset+size is bigger
533         than bitoffset.
534
535 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
536
537         PR tree-optimization/49771
538         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
539         zero step, set segment length to the size of the data-ref's type.
540
541 2011-07-18  Martin Jambor  <mjambor@suse.cz>
542
543         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
544         comments.
545         (ipcp_values_pool): Declare.
546         (ipcp_sources_pool): Likewise.
547         (ipcp_lattice): Changed to forward declaration.
548         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
549         cannot_devirtualize.
550         (ipa_node_params): New fields descriptors, lattices, known_vals,
551         clone_for_all_contexts and node dead, removed fields params and
552         count_scale.
553         (ipa_set_param_count): Removed.
554         (ipa_get_param_count): Made to work with descriptors vector.
555         (ipa_get_param): Updated.
556         (ipa_param_cannot_devirtualize_p): Removed.
557         (ipa_param_types_vec_empty): Likewise.
558         (ipa_set_param_used): New function.
559         (ipa_get_param_used): Updated to use descriptors vector.
560         (ipa_func_list): Removed.
561         (ipa_init_func_list): Removed declaration.
562         (ipa_push_func_to_list_1): Likewise.
563         (ipa_pop_func_from_list): Likewise.
564         (ipa_push_func_to_list): Removed.
565         (ipa_lattice_from_jfunc): Remove declaration.
566         (ipa_get_jf_pass_through_result): Declare.
567         (ipa_get_jf_ancestor_result): Likewise.
568         (ipa_value_from_jfunc): Likewise.
569         (ipa_get_lattice): Update.
570         (ipa_lat_is_single_const): New function.
571         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
572         (ipa_init_func_list): Likewise.
573         (ipa_pop_func_from_list): Likewise.
574         (ipa_get_param_decl_index): Fix coding style.
575         (count_formal_params): Removed.
576         (count_formal_params_1): Renamed to count_formal_params.
577         (ipa_populate_param_decls): Update to use descriptors vector.
578         (ipa_initialize_node_params): Likewise.
579         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
580         (ipa_analyze_params_uses): Likewise.
581         (ipa_free_node_params_substructures): Likewise and free also lattices
582         and known values.
583         (duplicate_array): Removed.
584         (ipa_edge_duplication_hook): Add the new edge to the list of edge
585         clones.
586         (ipa_node_duplication_hook): Update to use new lattices.
587         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
588         (ipa_free_all_structures_after_iinln): Likewise.
589         (ipa_write_node_info): Update to use new lattices.
590         (ipa_read_node_info): Likewise.
591         (ipa_get_jf_pass_through_result): New function.
592         (ipa_get_jf_ancestor_result): Likewise.
593         (ipa_value_from_jfunc): Likewise.
594         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
595         * ipa-cp.c: Reimplemented.
596         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
597         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
598         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
599         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
600         * doc/invoke.texi (devirt-type-list-size): Removed description.
601         (ipa-cp-value-list-size): Added description.
602
603 2011-07-18  Richard Henderson  <rth@redhat.com>
604
605         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
606         before calling create_basic_block.
607
608 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
609
610         PR middle-end/49675
611         * tree.c (build_common_builtin_nodes): Register
612         __builtin_return_address, __cyg_profile_func_enter
613         and __cyg_profile_func_exit.
614
615 2011-07-18  Richard Henderson  <rth@redhat.com>
616
617         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
618         (add_labels_and_missing_jumps): ... here.
619         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
620
621 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
622
623         PR target/47744
624         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
625         of DImode hard registers in PLUS address chains.
626
627 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
628
629         PR bootstrap/49769
630         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
631         (alpha*-*-freebsd*): Likewise.
632         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
633         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
634         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
635         crtprec80.o, crtfastmath.o to extra_parts for all targets.
636         (ia64*-*-elf*): Remove extra_parts.
637         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
638         (sparc64-*-linux*): Likewise.
639         (sparc64-*-freebsd*): Likewise.
640
641         Revert:
642         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
643         (ia64*-*-linux*): Likewise.
644         (mips64*-*-linux*): Likewise.
645         (mips*-*-linux*): Likewise.
646
647 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
648
649         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
650
651 2011-07-18  Richard Guenther  <rguenther@suse.de>
652
653         * gimplify.c (gimplify_expr): Use input_location, not saved_location
654         when building new trees.
655
656 2011-07-18  Richard Guenther  <rguenther@suse.de>
657
658         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
659         expansion result to bitfield precision if required.
660
661 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
662
663         * config.gcc (i[3456x]86-*-netware*): Remove.
664
665         * gthr-nks.h: Remove.
666         * configure.ac (enable_threads): Remove nks.
667         * configure: Regenerate.
668
669         * config/i386/i386.c (ix86_encode_section_info): Remove netware
670         reference.
671         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
672         <netware.h> reference.
673
674         * config/i386/netware-libgcc.c,
675         gcc/config/i386/netware-libgcc.def,
676         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
677         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
678         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
679         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
680
681         * doc/extend.texi (Function Attributes,
682         callee_pop_aggregate_return): Remove i?86-netware reference.
683         * doc/install.texi (Configuration, --enable-threads): Remove nks.
684
685 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
686
687         PR target/49746
688         Revert:
689         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
690
691         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
692         patterns.
693
694 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
695
696         PR middle-end/49732
697         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
698
699 2011-07-16  Matthias Klose  <doko@ubuntu.com>
700
701         * doc/install.texi: Document --enable-static-libjava.
702
703 2011-07-15  Richard Henderson  <rth@redhat.com>
704
705         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
706         Replace all three arguments by returning a VEC of edges.
707         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
708         pointers and counts.
709         (fix_edges_for_rarely_executed_code): Merge ...
710         (rest_of_handle_partition_blocks): ... into...
711         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
712         any work was performed.
713         (pass_partition_blocks): Clear todo_flags_finish.
714
715 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
716             Jakub Jelinek  <jakub@redhat.com>
717             Jonathan Wakely  <jwakely.gcc@gmail.com>
718
719         PR libstdc++/49745
720         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
721         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
722
723 2011-07-15  Jason Merrill  <jason@redhat.com>
724
725         PR testsuite/49741
726         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
727         rather than --tool_opts.
728
729 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
730
731         * doc/plugins.texi (Building GCC plugins): gengtype needs its
732         corresponding gtype.state.
733
734 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
735
736         PR target/49723
737         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
738
739 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
740
741         PR target/48220
742         * doc/md.texi (Standard Names): Document window_save.
743         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
744         expand_debug_expr and expand_debug_source_expr.  If the target has
745         a window_save instruction, adjust the ENTRY_VALUE_EXP.
746         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
747         SSA_NAME_VAR is a parameter.
748         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
749         * var-tracking.c (parm_reg_t): New type and associated vector type.
750         (windowed_parm_regs): New variable.
751         (adjust_insn): If the target has a window_save instruction and this
752         is the instruction, make its effect on parameter registers explicit.
753         (next_non_note_insn_var_location): New function.
754         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
755         (vt_add_function_parameter): If the target has a window_save insn,
756         adjust the incoming RTL and record that in windowed_parm_regs.
757         (vt_finalize): Free windowed_parm_regs.
758
759 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
760
761         * doc/invoke.texi (C6X Options): New section.
762         * doc/md.texi (TI C6X family): New section.
763         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
764         tic6x-*-uclinux.
765         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
766         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
767         Provide C6X definitions.
768         * config/c6x/c6x.md: New file.
769         * config/c6x/constraints.md: New file.
770         * config/c6x/predicates.md: New file.
771         * config/c6x/c6x-sched.md.in: New file.
772         * config/c6x/c6x-sched.md: New file.
773         * config/c6x/gensched.sh: New file.
774         * config/c6x/c6x-mult.md.in: New file.
775         * config/c6x/genmult.sh: New file.
776         * config/c6x/c6x-mult.md: New file.
777         * config/c6x/sync.md: New file.
778         * config/c6x/c6x-protos.h: New file.
779         * config/c6x/sfp-machine.h: New file.
780         * config/c6x/c6x.c: New file.
781         * config/c6x/c6x.h: New file.
782         * config/c6x/crti.s: New file.
783         * config/c6x/crtn.s: New file.
784         * config/c6x/lib1funcs.asm: New file.
785         * config/c6x/c6x-modes.def: New file.
786         * config/c6x/genopt.sh: New file.
787         * config/c6x/c6x.opt: New file.
788         * config/c6x/c6x-tables.opt: New file.
789         * config/c6x/c6x-opts.h: New file.
790         * config/c6x/c6x-isas.def: New file.
791         * config/c6x/elf.h: New file.
792         * config/c6x/elf-common.h: New file.
793         * config/c6x/uclinux-elf.h: New file.
794         * config/c6x/t-c6x: New file.
795         * config/c6x/t-c6x-elf: New file.
796         * config/c6x/t-c6x-uclinux: New file.
797         * config/c6x/t-c6x-softfp: New file.
798         * config/c6x/gtd.c: New file.
799         * config/c6x/gtf.c: New file.
800         * config/c6x/ltd.c: New file.
801         * config/c6x/ltf.c: New file.
802         * config/c6x/ged.c: New file.
803         * config/c6x/gef.c: New file.
804         * config/c6x/led.c: New file.
805         * config/c6x/lef.c: New file.
806         * config/c6x/eqd.c: New file.
807         * config/c6x/eqf.c: New file.
808         * config/c6x/libgcc-c6xeabi.ver: New file.
809
810         Revert
811         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
812         PR rtl-optimization/11320
813         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
814         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
815         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
816         current_sched_info->compute_jump_reg_dependencies. Record which
817         registers are used and which registers are set by the jump.
818         Clear deps->reg_conditional_sets after a barrier.
819         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
820         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
821         (init_deps): Initialize reg_conditional_sets.
822         (free_deps): Clear reg_conditional_sets.
823         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
824         Mark registers live on entry of the fallthrough block and conditionally
825         set as set by the jump. Mark registers live on entry of non-fallthrough
826         blocks as used by the jump.
827         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
828         Mark new parameters as unused.
829
830 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
831
832         PR tree-opt/49309
833         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
834         Use fold_build2_loc instead of build2.
835         Use the correct type for the new tree.
836
837 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
838
839         PR rtl-optimization/11320
840         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
841         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
842
843 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
844
845         PR target/49487
846         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
847         of REG.
848         (*rotw<mode>): Use const_int_operand for operand2.
849         Use match_scatch for operand3.
850         (*rotb<mode>): Ditto
851         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
852
853 2011-07-14  Richard Guenther  <rguenther@suse.de>
854
855         PR tree-optimization/49651
856         * tree-ssa-structalias.c (get_constraint_for_1): Properly
857         handle dereferences with subvariables.
858
859 2011-07-14  Richard Guenther  <rguenther@suse.de>
860
861         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
862         (fold_stmt_1): Do it here directly on gimple and as a first thing.
863
864 2011-07-14  Richard Guenther  <rguenther@suse.de>
865
866         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
867         not bool_var when folding bool_var != 1 or bool_var == 0.
868
869 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
870
871         * haifa-sched.c (schedule_insns): Remove outdated comment.
872         (schedule_block): When computing a known value for TODO_SPEC,
873         just set it rather than using logical operations.
874         (try_ready): Likewise.  Use a local variable rather than a
875         pointer to TODO_SPEC.  Reorder an if statement to move the
876         easy case to the then block.
877         * sched-deps.c (dep_spec_p): New static function.
878         (update_dep): Use it to decide whether to call
879         change_spec_dep_to_hard.
880         (get_back_and_forw_lists): Use it.
881         (sd_resolve_dep): Likewise.
882         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
883         (haifa_note_mem_dep): Likewise.
884         (check_dep): Likewise.
885         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
886         (sched_free_deps): Free in two passes.
887
888 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
889
890         PR middle-end/49736
891         * expr.c (all_zeros_p): Undo bogus part of last change.
892
893 2011-07-14  Matthias Klose <doko@ubuntu.com>
894
895         * doc/extend.texi (optimize attribute): Fix typo.
896
897 2011-07-14  Richard Guenther  <rguenther@suse.de>
898
899         * gimplify.c (gimplify_expr): Only do required conversions.
900
901 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
902
903         PR target/43746
904         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
905         i.e. use default_elf_select_section.
906         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
907         (READONLY_DATA_SECTION_ASM_OP): Remove.
908         (TARGET_ASM_NAMED_SECTION): Move from here...
909         * config/avr/avr.c: ...to here.
910         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
911         (avr_asm_named_section): Make static.
912
913 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
914
915         PR bootstrap/49739
916         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
917         and crtfastmath.o for Linux/x86.
918
919 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
920
921         * haifa-sched.c: Include "hashtab.h"
922         (sched_no_dce): New global variable.
923         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
924         SHADOW_P): New macros.
925         (last_clock_var, cycle_issued_insns): Move declarations.
926         (must_backtrack): New static variable.
927         (struct delay_pair): New structure.
928         (delay_htab, delay_htab_i2): New static variables.
929         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
930         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
931         functions.
932         (dep_cost_1): If delay pairs exist, try to look up the insns and
933         use the correct pair delay if we find them.
934         (rank-for_schedule): Tweak priority for insns that must be scheduled
935         soon to avoid backtracking.
936         (queue_insn): Detect conditions which force backtracking.
937         (ready_add): Likewise.
938         (struct sched_block_state): Add member shadows_only_p.
939         (struct haifa_save_data): New structure.
940         (backtrack_queue): New static variable.
941         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
942         unschedule_insns_until, restore_last_backtrack_point,
943         free_topmost_backtrack_point, free_backtrack_queue,
944         estimate_insn_tick, estimate_shadow_tick): New functions.
945         (prune_ready_list): New arg shadows_only_p.  All callers changed.
946         If true, remove everything that isn't SHADOW_P.  Look up delay
947         pairs and estimate ticks to avoid scheduling the first insn too early.
948         (verify_shadows): New function.
949         (schedule_block): Add machinery to enable backtracking.
950         (sched_init): Take sched_no_dce into account when setting
951         DF_LR_RUN_DCE.
952         (free_delay_pairs): New function.
953         (init_h_i_d): Initialize INSN_EXACT_TICK.
954         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
955         * sched-deps.c (sd_unresolve_dep): New function.
956         * sched-int. (struct haifa_sched_info): New fields save_state
957         and restore_state.
958         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
959         feeds_backtrack_insn and shadow_p.
960         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
961         (sched_no_dce): Declare variable.
962         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
963         sd_unresolve_dep): Declare functions.
964         * modulo-sched.c (sms_sched_info): Clear the two new fields.
965         * sched-rgn.c (rgn_const_sched_info): Likewise.
966         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
967         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
968         (ebb_sched_info): Add them for the two new fields.
969         (add_deps_for_risky_insns): Call add_delay_dependencies.
970
971 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
972
973         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
974         Rename -mr11.
975         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
976         (rs6000_call_indirect_aix): Ditto.
977         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
978         (call_indirect_aix<ptrsize>_internal): Ditto.
979         (call_indirect_aix<ptrsize>_nor11): Ditto.
980         (call_indirect_aix<ptrsize>_internal2): Ditto.
981         (call_value_indirect_aix<ptrsize>): Ditto.
982         (call_value_indirect_aix<ptrsize>_internal): Ditto.
983         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
984         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
985         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
986
987 2011-07-13  Jason Merrill  <jason@redhat.com>
988
989         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
990
991 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
992
993         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
994         * config/spu/spu.md ("clrsb<mode>2"): New expander.
995
996 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
997
998         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
999         * configure: Regenerate.
1000
1001 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1002
1003         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1004         (asm_file_start): Remove.
1005         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1006         free_bb_for_insn around code that modifies insns before
1007         restarting df analysis.
1008
1009 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1010
1011         PR target/49541
1012         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
1013         (LINK_SPEC): ... here.
1014
1015 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1016
1017         * haifa-sched.c (struct sched_block_state): New.
1018         (schedule_block): Move some local variables into such a structure.
1019
1020 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1021
1022         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1023         * config/i386/t-crtpc: Remove.
1024         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1025         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1026         tmake_file.
1027         (x86_64-*-darwin*): Likewise.
1028         (i[34567]86-*-linux*): Likewise.
1029         (x86_64-*-linux*): Likewise.
1030
1031         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1032         Handle -mpc32, -mpc64, -mpc80.
1033
1034 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1035
1036         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1037         * config/alpha/t-crtfm: Remove.
1038         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1039         * config/i386/t-crtfm: Remove.
1040         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1041         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1042         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1043         * config/sparc/t-crtfm: Remove.
1044
1045         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1046         (alpha*-*-freebsd*): Likewise.
1047         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1048         (x86_64-*-darwin*): Likewise.
1049         (i[34567]86-*-linux*): Likewise.
1050         (x86_64-*-linux*): Likewise.
1051         (x86_64-*-mingw*): Likewise.
1052         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1053         (ia64*-*-freebsd*): Likewise.
1054         (ia64*-*-linux*): Likewise.
1055         (mips64*-*-linux*): Likewise.
1056         (mips*-*-linux*): Likewise.
1057         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1058         (sparc64-*-linux*): Likewise.
1059         (sparc64-*-freebsd*): Likewise.
1060
1061 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1062
1063         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1064         * config/darwin-crt3.c: Move to ../libgcc/config.
1065         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1066         ($(T)crt3$(objext)): Remove.
1067         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1068         ($(T)crt2$(objext)): Remove.
1069         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1070         (powerpc64-*-darwin*): Likewise.
1071
1072 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1073
1074         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1075
1076         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1077         (addsi_1_zext): This.
1078
1079 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1080
1081         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1082         * doc/tm.texi: Regenerate.
1083         * target.def (mergeable_rodata_prefix): New defhookpod.
1084         * varasm.c (mergeable_string_section, mergeable_constant_section):
1085         Use it. Allocate name with alloca.
1086
1087 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1088
1089         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1090
1091 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1092
1093         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1094         overlap check.
1095
1096 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1097
1098         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
1099         (count_type_elements): Delete.
1100         (complete_ctor_at_level_p): Declare.
1101         * expr.c (flexible_array_member_p): New function, split out from...
1102         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
1103         parameter with for_ctor_p.  When for_ctor_p is true, return the
1104         number of elements that should appear in the top-level constructor,
1105         otherwise return an estimate of the number of scalars.
1106         (categorize_ctor_elements): Replace p_must_clear with p_complete.
1107         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
1108         (complete_ctor_at_level_p): New function, borrowing union logic
1109         from old categorize_ctor_elements_1.
1110         (mostly_zeros_p): Return true if the constructor is not complete.
1111         (all_zeros_p): Update call to categorize_ctor_elements.
1112         * gimplify.c (gimplify_init_constructor): Update call to
1113         categorize_ctor_elements.  Don't call count_type_elements.
1114         Unconditionally prevent clearing for variable-sized types,
1115         otherwise rely on categorize_ctor_elements to detect
1116         incomplete initializers.
1117
1118 2011-07-13  Richard Guenther  <rguenther@suse.de>
1119
1120         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1121         the final type is integral.
1122
1123 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1124
1125         * sched-int.h (struct _dep): Add member cost.
1126         (DEP_COST, UNKNOWN_DEP_COST): New macros.
1127         * sched-deps.c (init_dep_1): Initialize DEP_COST.
1128         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1129         (sched_change_pattern): Reset it for dependent insns.
1130
1131 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1132
1133         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1134         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1135         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1136         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1137         (CRT0_S, MCRT0_S): Remove.
1138         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1139         Remove.
1140         (s-crt0): Remove.
1141         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1142
1143 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1144
1145         * cse.c (insert_with_costs): Put semi-colon after empty loop body
1146         on the next line.
1147         * emit-rtl.c (push_to_sequence): Likewise.
1148         * haifa-sched.c (max_issue): Likewise.
1149         * matrix-reorg.c (add_allocation_site): Likewise.
1150         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1151         * reload.c (alternative_allows_const_pool_ref): Likewise.
1152         * sched-rgn.c (rgn_add_block): Likewise.
1153         (rgn_fix_recovery_cfg): Likewise.
1154         * tree.c (attribute_list_contained): Likewise.
1155
1156 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
1157
1158         * config/i386/i386.c: Tidy processor feature bitmasks.
1159         (m_P4_NOCONA): New.
1160
1161 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
1162
1163         PR rtl-opt/49474
1164         * cprop.c (find_implicit_sets): Correct the condition.
1165
1166 2011-07-12  Richard Henderson  <rth@redhat.com>
1167
1168         PR target/49713
1169         * dwarf2out.h (dwarf_frame_regnum): Remove.
1170         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
1171         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
1172         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1173         (execute_dwarf2_frame): Initialize them.
1174         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1175         users of the macros with the variables.
1176         (expand_builtin_dwarf_sp_column): Revert last change.
1177         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
1178         result of DWARF_FRAME_REGNUM into a local variable.
1179
1180 2011-07-12  Richard Henderson  <rth@redhat.com>
1181
1182         PR target/49714
1183         * config/i386/i386.c (x86_output_mi_thunk): Use
1184         machopic_indirect_call_target instead of machopic_indirection_name
1185         directly.
1186
1187 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
1188             Eric Botcazou  <ebotcazou@adacore.com>
1189
1190         * prefix.h: Wrap up in extern "C" block.
1191
1192 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
1193
1194         AMD bdver2 Enablement
1195         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1196         (case ${target}): Add bdver2.
1197         * config/i386/driver-i386.c (host_detect_local_cpu): Let
1198         -march=native recognize bdver2 processors.
1199         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1200         bdver2 def_and_undef
1201         * config/i386/i386.c (struct processor_costs bdver2_cost): New
1202         bdver2 cost table.
1203         (m_BDVER2): New definition.
1204         (m_AMD_MULTIPLE): Includes m_BDVER2.
1205         (initial_ix86_tune_features): Add bdver2 tuning.
1206         (processor_target_table): Add bdver2 entry.
1207         (static const char *const cpu_names): Add bdver2 entry.
1208         (ix86_option_override_internal): Add bdver2 instruction sets.
1209         (ix86_issue_rate): Add bdver2.
1210         (ix86_adjust_cost): Add bdver2.
1211         (has_dispatch): Add bdver2.
1212         * config/i386/i386.h (TARGET_BDVER2): New definition.
1213         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1214         (enum processor_type): Add PROCESSOR_BDVER2.
1215         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1216         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1217         description.
1218
1219 2011-07-12  Richard Henderson  <rth@redhat.com>
1220
1221         PR target/49714
1222         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1223         destination address in memory on some paths.
1224
1225 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
1226
1227         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1228         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1229         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1230         * function.c (locate_and_pad_parm): Take it into account.
1231         * target.def (function_arg_round_boundary): New hook.
1232         * targhooks.c (default_function_arg_round_boundary): New function.
1233         * targhooks.h (default_function_arg_round_boundary): Declare.
1234         * doc/tm.texi: Regenerate.
1235
1236 2011-07-12  Richard Guenther  <rguenther@suse.de>
1237
1238         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1239         Do not perform no-op changes.
1240
1241 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
1242
1243         * config/arm/predicates.md (neon_struct_operand): Make a normal
1244         predicate.
1245         (neon_struct_or_register_operand): New predicate.
1246         * config/arm/neon.md (movmisalign<mode>): Replace predicates
1247         with neon_struct_or_register_operand.
1248         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1249         neon_struct_operand instead of memory_operand.
1250
1251 2011-07-12  Martin Jambor  <mjambor@suse.cz>
1252
1253         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1254         * cgraph.c (cgraph_get_node_or_alias): Removed.
1255         (change_decl_assembler_name): Changed all calls to
1256         cgraph_get_node_or_alias to a call to cgraph_get_node.
1257         (cgraph_make_decl_local): Likewise.
1258         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1259         * varasm.c (default_binds_local_p_1): Likewise.
1260         (decl_binds_to_current_def_p): Likewise.
1261
1262 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
1263
1264         PR tree-optimization/49712
1265         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1266
1267 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
1268
1269         * genautomata.c (add_arc): Return void.  All callers changed.
1270         (make_automaton): Remove dead code.
1271
1272 2011-07-11  Richard Henderson  <rth@redhat.com>
1273
1274         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1275         (DW_FRAME_POINTER_REGNUM): New.
1276         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1277         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1278         (dwf_regno): New.
1279         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1280         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1281         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1282         Use it.
1283         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1284         * dwarf2out.h (dwarf_frame_regnum): New.
1285         (struct cfa_loc): Document the domain of the reg member.
1286
1287 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
1288
1289         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1290         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
1291
1292 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
1293
1294         PR debug/49676
1295         * dwarf2out.c (int_shift_loc_descriptor): New function.
1296         (int_loc_descriptor): If shorter, emit i as
1297         (i >> shift), shift, DW_OP_shl for suitable shift value.
1298         Similarly, try to optimize large negative values using
1299         DW_OP_neg of a positive value if shorter.
1300         (size_of_int_shift_loc_descriptor): New function.
1301         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1302         changes.
1303         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1304         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1305         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1306         is shorter.
1307         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1308         addend as added DW_OP_plus if it is shorter.
1309
1310 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1311
1312         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1313         (DTORS_SECTION_ASM_OP): Define.
1314
1315 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1316
1317         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1318         * config/t-dfprules: Move to ../libgcc/config.
1319         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1320         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1321         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1322         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1323         Likewise.
1324         (i[34567]86-*-cygwin*): Likewise.
1325         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
1326         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1327         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1328         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1329         D64PBIT_FUNCS, D128PBIT_FUNCS.
1330
1331 2011-07-11  Richard Guenther  <rguenther@suse.de>
1332
1333         * tree-vrp.c (simplify_conversion_using_ranges): Manually
1334         translate the source value-range through the conversion chain.
1335
1336 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
1337
1338         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1339
1340 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1341
1342         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1343         a bi-arch compiler defaulting to 31-bit. In this case:
1344         (tmake_file): Add s390/t-linux64.
1345         * doc/install.texi: Add s390-linux to the list of targets supporting
1346         --enable-targets=all.
1347
1348 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1349             Matthias Klose <doko@debian.org>
1350
1351         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1352         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1353         (tm_file): Add mips/linux64.h.
1354         (tmake_file): Add mips/t-linux64.
1355         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1356         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1357         instead of hardcoded mabi=n32.
1358         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1359         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1360         convention.
1361
1362 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1363
1364         * passes.c (init_optimization_passes): Add invariant motion pass
1365         after induction variable optimization.
1366
1367 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
1368
1369         PR target/39633
1370         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1371         offsets 1..5 set cc0 in a usable way.
1372
1373 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
1374
1375         * tree.h (call_expr_arg): Remove.
1376         (call_expr_argp): Likewise.
1377
1378 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
1379
1380         * config/sparc/sparc.md (save_register_window_1): Rename to...
1381         (window_save): ...this.
1382         * config/sparc/sparc.c (emit_save_register_window): Rename to...
1383         (emit_window_save): ...this.
1384         (sparc_expand_prologue): Adjust to above renaming.
1385
1386 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1387
1388         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1389         of movabs for x32.
1390
1391 2011-07-10  Richard Henderson  <rth@redhat.com>
1392
1393         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1394         run final, instead of emitting text directly.
1395
1396 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1397
1398         * config/i386/i386.c (ix86_option_override_internal): Turn on
1399         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
1400         small PIC models for TARGET_X32.
1401
1402 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
1403
1404         PR target/49684
1405         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1406         $(LIBGCC2_CFLAGS).
1407
1408         PR bootstrap/49680
1409         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1410         stray notes and debug insns by using prev_nonnote_nondebug_insn
1411         instead of PREV_INSN.
1412
1413 2011-07-09  Richard Henderson  <rth@redhat.com>
1414
1415         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1416         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1417         * dwarf2out.c: ... here.
1418         (output_all_cfis): Remove.
1419         (dwarf2out_switch_text_section): Use output_cfis directly.
1420         (size_of_locs): Export.
1421         (output_loc_sequence, output_loc_sequence_raw): Export.
1422         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1423         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1424         output_cfa_loc_raw): Move to ...
1425         * dwarfcfi.c: ... here.
1426         * dwarf2out.h: Update decls.
1427
1428 2011-07-09  Richard Henderson  <rth@redhat.com>
1429
1430         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1431         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1432         * dwarf2cfi.c: ... here.
1433         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1434         (DWARF_ROUND, DWARF_CIE_ID): Remove.
1435         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1436         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1437         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1438
1439 2011-07-09  Richard Henderson  <rth@redhat.com>
1440
1441         * dwarf2cfi.c (cie_return_save): New.
1442         (queue_reg_save): Use compare_reg_or_pc.
1443         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1444         (dwarf2out_frame_debug_expr): Likewise.
1445         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1446         (initial_return_save): Likewise.
1447         (execute_dwarf2_frame): Save and restore initial return save from
1448         the cie to the fde.
1449         * config/mips/mips.c (mips_frame_set): Remove special case for
1450         DWARF_FRAME_RETURN_COLUMN.
1451
1452 2011-07-09  Richard Henderson  <rth@redhat.com>
1453
1454         * dwarf2cfi.c (lookup_cfa): Remove.
1455         (execute_dwarf2_frame): Assert queues are empty on entry.
1456         Setup initial cfa directly, not via lookup_cfa.
1457         Don't clear args_size state here.
1458
1459 2011-07-09  Richard Henderson  <rth@redhat.com>
1460
1461         * dwarf2cfi.c (add_cfi_vec): New.
1462         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
1463         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
1464         (execute_dwarf2_frame): Set add_cfi_vec.
1465
1466 2011-07-09  Richard Henderson  <rth@redhat.com>
1467
1468         * defaults.h (ASM_COMMENT_START): Move here...
1469         * dwarf2asm.c: ... from here.
1470         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1471         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1472         * varasm.c: Likewise.
1473
1474 2011-07-09  Richard Henderson  <rth@redhat.com>
1475
1476         PR debug/49686
1477         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1478         (create_cfi_notes): ... do it here instead.
1479
1480 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
1481
1482         PR debug/49676
1483         * dwarf2out.c (size_of_int_loc_descriptor): New function.
1484         (address_of_int_loc_descriptor): Use it.
1485         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1486
1487 2011-07-09  Richard Henderson  <rth@redhat.com>
1488
1489         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1490         (prologue, epilogue): New.
1491         (return, *rts): New.
1492         (blockage, setd, seti): New.
1493         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1494         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1495         (pdp11_saved_regno): New.
1496         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1497         generate rtl instead of text.
1498         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1499         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
1500         * config/pdp11/pdp11-protos.h: Update.
1501
1502 2011-07-09  Richard Henderson  <rth@redhat.com>
1503
1504         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1505         try to insert an rtl prologue here.
1506         (rs6000_output_function_epilogue): Similarly.
1507         * config/rs6000/rs6000.md (prologue): Emit a barrier to
1508         satisfy !TARGET_SCHED_PROLOG.
1509         (epilogue, sibcall_epilogue): Likewise.
1510
1511 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
1512
1513         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1514         (FP_REG_P): Delete.
1515         (IN_OR_GLOBAL_P): Likewise.
1516
1517 2011-07-08  Jason Merrill  <jason@redhat.com>
1518
1519         PR c++/45437
1520         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1521         compound assignment.
1522
1523         * cgraph.c (cgraph_add_to_same_comdat_group): New.
1524         * cgraph.h: Declare it.
1525         * ipa.c (function_and_variable_visibility): Make sure thunks
1526         have the right visibility.
1527
1528 2011-07-08  Richard Henderson  <rth@redhat.com>
1529
1530         PR bootstrap/49680
1531         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1532         any tablejump vector.
1533
1534         PR bootstrap/49680
1535         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1536         end of the prologue.
1537
1538 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
1539
1540         PR target/49621
1541         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1542         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1543         * config/rs6000/vector.md (vector_select_<mode>,
1544         vector_select_<mode>_uns): Change second operand of NE to
1545         CONST0_RTX (<MODE>mode) instead of const0_rtx.
1546         * config/rs6000/altivec.md (*altivec_vsel<mode>,
1547         *altivec_vsel<mode>_uns): Expect second operand of NE to be
1548         zero_constant of the corresponding vector mode.
1549         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1550         Likewise.
1551
1552 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1553
1554         * graphite-dependences.c (build_alias_set_powerset): Remove
1555         continue from loop, add one more assert.
1556
1557 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1558
1559         PR target/46779
1560         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1561         In particular, allow 8-bit values in r28 and r29.
1562         (avr_hard_regno_scratch_ok): Disallow any register that might be
1563         part of the frame pointer.
1564         (avr_hard_regno_rename_ok): Same.
1565         (avr_legitimate_address_p): Don't allow SUBREGs.
1566
1567 2011-07-08  Julian Brown  <julian@codesourcery.com>
1568
1569         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1570         big-endian mode.
1571         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1572         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1573         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1574         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1575         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1576         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1577         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1578         registers in big-endian mode.
1579
1580 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
1581
1582         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1583         in terms of another.
1584         (write_attr_value): Write a cast if necessary.
1585
1586         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1587         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1588         (REG_WORDS_BIG_ENDIAN): Document.
1589         * doc/tm.texi: Regenerate.
1590         * reload.c (operands_match_p): Take it into account.
1591         (reload_adjust_reg_for_mode): Likewise.
1592         * rtlanal.c (subreg_get_info): Likewise.
1593
1594 2011-07-08  Richard Guenther  <rguenther@suse.de>
1595
1596         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1597         folding.
1598
1599 2011-07-08  Kai Tietz  <ktietz@redhat.com>
1600
1601         * fold-const.c (fold_truth_andor): Factored out truth_andor
1602         label from fold_binary as function.
1603         (fold_binary_loc): Replace truth_andor lable
1604         by function fold_truth_andor.
1605
1606 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
1607
1608         PR middle-end/49519
1609         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1610         check if address is stored in register. If so - give up.
1611         (check_sibcall_argument_overlap_1): Do not perform check of
1612         overlapping when it is call to address.
1613
1614 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1615
1616         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1617         of magic '31'.
1618
1619 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
1620
1621         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1622         GET_MODE_BITSIZE where appropriate.
1623         (widen_leading, expand_parity, expand_ctz, expand_ffs,
1624         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1625         expand_float, expand_fix): Likewise.
1626         * expr.c (convert_move, convert_modes, expand_expr_real_2,
1627         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1628         * stor-layout.c (get_mode_bounds): Likewise.
1629         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1630         Likewise.
1631         * convert.c (convert_to_integer): Likewise.
1632         * expmed.c (expand_shift_1): Likewise.
1633
1634         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1635         a bitsize.
1636
1637         * optabs.c (expand_binop): Tighten conditions for doubleword
1638         expansions.
1639         (widen_bswap): Assert that mode bitsize and precision are the same.
1640         * stor-layout.c (get_best_mode): Skip modes that have lower
1641         precision than bitsize.
1642         * recog.c (simplify_while_replacing): Assert that bitsize and
1643         precision are the same.
1644
1645 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1646
1647         * Makefile.in (LIBGCOV): Remove.
1648         (libgcc.mvars): Remove LIBGCOV.
1649         * libgov.c: Move to ../libgcc.
1650
1651 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1652
1653         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1654
1655 2011-07-08  Martin Jambor  <mjambor@suse.cz>
1656
1657         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1658         is too big for total scalarization.
1659
1660 2011-07-07  Richard Henderson  <rth@redhat.com>
1661
1662         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1663         (DBX_DEBUGGING_INFO): Undef.
1664
1665 2011-07-07  Richard Henderson  <rth@redhat.com>
1666
1667         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
1668         Handle some opcodes specially for debugging.
1669         * print-rtl.c: Include dwarf2out.h
1670         (print_rtx): Handle NOTE_INSN_CFI.
1671         * Makefile.in (print-rtl.o): Update.
1672
1673 2011-07-07  Richard Henderson  <rth@redhat.com>
1674
1675         * tree-pass.h (pass_dwarf2_frame): Declare.
1676         * passes.c (init_optimization_passes): Add it.
1677         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1678         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1679         make static, do not call add_cfis_to_fde.
1680         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1681         dwarf2out_frame_init): Merge into...
1682         (execute_dwarf2_frame): ... here.  New function.
1683         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
1684         saved_do_cfi_asm to a tri-state variable.
1685         (gate_dwarf2_frame, pass_dwarf2_frame): New.
1686         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1687         if it has yet to be done.  Don't call dwarf2cfi_function_init.
1688         * dwarf2out.h, debug.h: Update decls.
1689         * final.c (final_start_function): Don't call
1690         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1691         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1692         * toplev.c (lang_dependent_init): Likewise.
1693
1694 2011-07-07  Richard Henderson  <rth@redhat.com>
1695
1696         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1697         FDE_TABLE_INCREMENT): Replace with...
1698         (fde_vec): ... this, a new vector.
1699         (current_fde): Remove.  Replace all users with cfun->fde.
1700         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1701         (size_of_aranges, dwarf2out_finish): Likewise.
1702         (dwarf2out_alloc_current_fde): Break out from ...
1703         (dwarf2out_begin_prologue): ... here.
1704         (dwarf2out_frame_init): Remove.
1705         * dwarf2cfi.c: Update all users of current_fde.
1706         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1707         * dwarf2out.h: Update decls.
1708         (dw_fde_node): Add fde_index member.
1709         * function.h (struct function): Add fde member.
1710
1711 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1712             Richard Henderson  <rth@redhat.com>
1713
1714         * dwarf2cfi.c (add_cfi): Remove.
1715         (dwarf2out_cfi_label): Remove force argument.  Only generate the
1716         label name.
1717         (add_fde_cfi): Simplify the different code paths.
1718         (add_cie_cfi): New.
1719         (old_cfa, old_cfa_remember): New.
1720         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1721         (last_reg_save_label): Remove.
1722         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1723         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1724         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1725         dwarf2out_frame_debug_cfa_expression,
1726         dwarf2out_frame_debug_cfa_restore,
1727         dwarf2out_frame_debug_cfa_window_save,
1728         dwarf2out_frame_debug_expr): Remove label parameter.
1729         (cfi_label_required_p, add_cfis_to_fde): New.
1730         (dwarf2out_frame_debug_after_prologue): New.
1731         (dwarf2cfi_frame_init): Initialize old_cfa.
1732         (dwarf2out_frame_debug_restore_state): Likewise.
1733         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1734         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1735         * final.c (final_start_function): Call
1736         dwarf2out_frame_debug_after_prologue.
1737
1738 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1739             Richard Henderson  <rth@redhat.com>
1740
1741         * dwarf2cfi.c (cfi_insn): New.
1742         (dwarf2out_cfi_label): Don't emit cfi label here.
1743         (add_fde_cfi): Create a NOTE_INSN_CFI.
1744         (dwarf2out_frame_debug): Setup cfi_insn.
1745         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1746         (dwarf2out_cfi_begin_epilogue): Make static.
1747         (dwarf2out_frame_debug_restore_state): Make static.
1748         * dwarf2out.c (output_cfi_directive): Make static.
1749         (dwarf2out_emit_cfi): New.
1750         * dwarf2out.h: Update.
1751         * final.c (final): Remove CFI notes.
1752         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1753         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1754         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1755         * insn-notes.def (NOTE_INSN_CFI): New.
1756         (NOTE_INSN_CFI_LABEL): New.
1757         * rtl.h (union rtunion_def): Add rt_cfi member.
1758         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1759
1760 2011-07-07  Richard Henderson  <rth@redhat.com>
1761
1762         * dwarf2cfi.c: New file.
1763         * Makefile.in (OBJS): Add it.
1764         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1765         * gengtype.c (open_base_files): Include dwarf2out.h.
1766         * coretypes.h (enum var_init_status): Move from ...
1767         * rtl.h: ... here.
1768         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1769         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1770         expand_builtin_dwarf_sp_column, init_return_column_size,
1771         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1772         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1773         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1774         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1775         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1776         compute_barrier_args_size, dwarf2out_args_size,
1777         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1778         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1779         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1780         queue_reg_save, dwarf2out_flush_queued_reg_saves,
1781         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1782         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1783         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1784         dwarf2out_frame_debug_cfa_expression,
1785         dwarf2out_frame_debug_cfa_restore,
1786         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1787         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1788         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1789         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1790         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1791         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1792         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1793         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1794         dw_loc_descr_node): Move to dwarf2out.h.
1795         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1796         mem_loc_descriptor): Export.
1797         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
1798         (dwarf2out_frame_init): Extract CIE generation code to
1799         dwarf2cfi_frame_init.
1800
1801 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
1802
1803         PR target/49660
1804         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1805         MASK_V8PLUS, remove commented out flag and reorder.
1806
1807 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1808
1809         PR c/49644
1810         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1811         one non-complex and one complex argument, call c_save_expr on both
1812         operands.
1813
1814 2011-07-07  Martin Jambor  <mjambor@suse.cz>
1815
1816         PR middle-end/49495
1817         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1818         (verify_cgraph_node): Some functinality moved to
1819         verify_edge_corresponds_to_fndecl, call it.
1820
1821 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1822
1823         * config.gcc (*local*): Remove.
1824         * doc/install-old.texi: Don't mention local configurations.
1825
1826 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1827
1828         PR debug/49522
1829         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1830         referencing debug insns that have been reset.
1831         (dead_debug_insert_before): Don't assert reg is non-NULL,
1832         instead return immediately if it is NULL.
1833
1834 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1835
1836         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
1837
1838 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1839
1840         * hw-doloop.c: New file.
1841         * hw-doloop.h: New file.
1842         * Makefile.in (OBJS): Add hw-doloop.o.
1843         (hw-doloop.o): New rule.
1844         ($(obj_out_file)): Add hw-doloop.h dependency.
1845         * config/bfin/bfin.c: Include "hw-doloop.h".
1846         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1847         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1848         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
1849         type changed to hwloop_info.  Return bool, true if the loop was
1850         successfully optimized.  Remove code that was moved to
1851         hw-doloop.c, and adjust other parts.
1852         (hwloop_fail): New static function, containing parts that used
1853         to be in bfin_optimize_loop.
1854         (bfin_discover_loop, bfin_discover_loops, free_loops,
1855         bfin_reorder_loops): Remove.
1856         (hwloop_pattern_reg): New static function.
1857         (bfin_doloop_hooks): New variable.
1858         (bfin_reorg_loops): Remove most code, call reorg_loops.
1859         * config/bfin/bfin.md (doloop_end splitter): Also enable if
1860         loop counter is a memory_operand.
1861
1862 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1863
1864         * config.gcc: Support --with-multilib-list for x86 Linux targets.
1865
1866         * configure.ac: Mention x86-64 for --with-multilib-list.
1867         * configure: Regenerated.
1868
1869         * config/i386/gnu-user64.h (SPEC_64): Support x32.
1870         (SPEC_32): Likewise.
1871         (ASM_SPEC): Likewise.
1872         (LINK_SPEC): Likewise.
1873         (TARGET_THREAD_SSP_OFFSET): Likewise.
1874         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
1875         (SPEC_X32): New.
1876
1877         * config/i386/i386.h (TARGET_X32): New.
1878         (TARGET_LP64): New.
1879         (LONG_TYPE_SIZE): Likewise.
1880         (POINTER_SIZE): Likewise.
1881         (POINTERS_EXTEND_UNSIGNED): Likewise.
1882         (OPT_ARCH64): Support x32.
1883         (OPT_ARCH32): Likewise.
1884
1885         * config/i386/i386.opt (mx32): New.
1886
1887         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
1888         (GLIBC_DYNAMIC_LINKERX32): Likewise.
1889         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
1890         (GLIBC_DYNAMIC_LINKERX32): Likewise.
1891
1892         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
1893         (BIONIC_DYNAMIC_LINKERX32): Likewise.
1894         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
1895
1896         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
1897
1898         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
1899
1900         * doc/invoke.texi: Document -mx32.
1901
1902 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
1903
1904         * doc/invoke.texi (mwords-little-endian): Deprecate.
1905         * config/arm/arm.opt (mwords-little-endian): Likewise.
1906         * config/arm/arm.c (arm_option_override): Warn about the deprecation
1907         of -mwords-little-endian.
1908
1909 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
1910
1911         * reload1.c (choose_reload_regs): Use mode sizes to check whether
1912         an old reload register completely defines the required value.
1913
1914 2011-07-07  Richard Guenther  <rguenther@suse.de>
1915
1916         * fold-const.c (fold_unary_loc): Do not strip sign-changes
1917         for NEGATE_EXPR.
1918
1919 2011-07-07  Richard Guenther  <rguenther@suse.de>
1920
1921         * tree-vrp.c (simplify_conversion_using_ranges): New function.
1922         (simplify_stmt_using_ranges): Call it.
1923
1924 2011-07-07  Kai Tietz  <ktietz@redhat.com>
1925
1926         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
1927         (lookup_logical_inverted_value): Likewise.
1928         (simplify_bitwise_binary_1): Likewise.
1929         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
1930
1931 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1932
1933         * gcc.c (%[Spec]): Don't document.
1934         (struct spec_list): Update comment.
1935         (do_spec_1): Don't handle %[Spec].
1936         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
1937
1938 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
1941         default based on TARGET_ASM_NAMED_SECTION.
1942         * common/common-target.def (have_named_sections): Default to true.
1943         * common/config/default-common.c: Don't include tm.h.
1944         * common/config/picochip/picochip-common.c
1945         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
1946         * common/config/m32c/m32c-common.c: Remove.
1947         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
1948         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1949         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1950         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1951         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1952         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1953         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1954
1955 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1956
1957         PR middle-end/49640
1958         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
1959         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
1960
1961 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1962
1963         PR libmudflap/49550
1964         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
1965
1966 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1967
1968         PR target/39150
1969         * configure.ac (gcc_cv_as_hidden): Also accept
1970         x86_64-*-solaris2.1[0-9]*.
1971         (gcc_cv_as_cfi_directive): Likewise.
1972         (gcc_cv_as_comdat_group_group): Likewise.
1973         (set_have_as_tls): Likewise.
1974         * configure: Regenerate.
1975         * config.gcc (i[34567]86-*-solaris2*): Also handle
1976         x86_64-*-solaris2.1[0-9]*.
1977         * config.host (i[34567]86-*-solaris2*): Likewise.
1978         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
1979         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
1980         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
1981         (TARGET_LD_EMULATION): Use it.
1982         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
1983         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
1984         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
1985         (ASM_CPU64_DEFAULT_SPEC): Define.
1986         (ASM_CPU_SPEC): Use %(asm_cpu_default).
1987         (ASM_SPEC): Redefine.
1988         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
1989         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
1990         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
1991         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
1992         configuration.
1993         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
1994
1995 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1996
1997         * config/sol2.h (ASM_SPEC): Split into ...
1998         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
1999         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2000         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2001         (ASM_SPEC): Use ASM_SPEC_BASE.
2002         * config/sparc/sol2.h (ASM_SPEC): Redefine.
2003
2004 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
2005
2006         * config/avr/avr.md (*reload_insi): Change predicate #1 to
2007         const_int_operand.  Ditto for peep2 producing this insn.
2008         Add argument to output_reload_insisf call.
2009         (*movsi,*movsf): Add argument to output_movsisf call.
2010         (*reload_insf): New insn and new peep2 to produce it.
2011         * config/avr/avr-protos.h (output_movsisf): Change prototype.
2012         (output_reload_insisf): Change prototype.
2013         * config/avr/avr.c (avr_asm_len): New function.
2014         (output_reload_insisf): Rewrite.
2015         (output_movsisf): Change prototype.  output_reload_insisf for
2016         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
2017         (adjust_insn_length): Add argument to output_movsisf and
2018         output_reload_insisf call.
2019
2020 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2021
2022         * emit-rtl.c (paradoxical_subreg_p): New function.
2023         * rtl.h (paradoxical_subreg_p): Declare.
2024         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2025         apply_distributive_law, simplify_comparison, simplify_set): Use it.
2026         * cse.c (record_jump_cond, cse_insn): Likewise.
2027         * expr.c (force_operand): Likewise.
2028         * rtlanal.c (num_sign_bit_copies1): Likewise.
2029         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2030         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2031         (push_reload): Use precision to check for paradoxical subregs.
2032         * expmed.c (extract_bit_field_1): Likewise.
2033
2034         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2035         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2036         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2037         simplify_set, simplify_logical, expand_compound_operation,
2038         make_extraction, force_to_mode, if_then_else_cond, extended_count,
2039         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2040         record_value_for_reg): Likewise.
2041         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2042         * simplify-rtx. c (simplify_unary_operation_1,
2043         simplify_binary_operation_1, simplify_const_relational_operation):
2044         Likewise.
2045
2046         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2047         instead of GET_MODE_BITSIZE where appropriate.
2048         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2049         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2050         init_num_sign_bit_copies_in_rep): Likewise.
2051         * cse.c (fold_rtx, cse_insn): Likewise.
2052         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2053         * simplify-rtx.c (simplify_unary_operation_1,
2054         simplify_const_unary_operation, simplify_binary_operation_1,
2055         simplify_const_binary_operation, simplify_ternary_operation,
2056         simplify_const_relational_operation, simplify_subreg): Likewise.
2057         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2058         simplify_if_then_else, simplify_set, expand_compound_operation,
2059         expand_field_assignment, make_extraction, if_then_else_cond,
2060         make_compound_operation, force_to_mode, make_field_assignment,
2061         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2062         extended_count, try_widen_shift_mode, simplify_shift_const_1,
2063         simplify_comparison, record_promoted_value, simplify_compare_const,
2064         record_dead_and_set_regs_1): Likewise.
2065
2066         Revert:
2067         * simplify-rtx.c (simplify_const_binary_operation): Use the
2068         shift_truncation_mask hook instead of performing modulo by width.
2069         Compare against mode precision, not bitsize.
2070         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2071         Use shift_truncation_mask instead of constructing the value manually.
2072
2073 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2074
2075         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2076         declaration.
2077         (rs6000_save_toc_in_prologue_p): Ditto.
2078
2079         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2080         up the static chain (r11) during indirect function calls.
2081         (-msave-toc-indirect): New undocumented debug switch.
2082
2083         * config/rs6000/rs6000.c (struct machine_function): Add
2084         save_toc_in_prologue field to note whether the prologue needs to
2085         save the TOC value in the reserved stack location.
2086         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
2087         to save the TOC in the prologue, do so.
2088         (rs6000_trampoline_init): Don't allow creating AIX style
2089         trampolines if -mno-r11 is in effect.
2090         (rs6000_call_indirect_aix): New function to create AIX style
2091         indirect calls, adding support for -mno-r11 to suppress loading
2092         the static chain, and saving the TOC in the prologue instead of
2093         the call body.
2094         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2095         TOC in the prologue.
2096
2097         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2098         register numbers.
2099         (TOC_REGNUM): Ditto.
2100         (STATIC_CHAIN_REGNUM): Ditto.
2101         (ARG_POINTER_REGNUM): Ditto.
2102         (SFP_REGNO): Delete, unused.
2103         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2104         function descriptor offsets.
2105         (TOC_SAVE_OFFSET_64BIT): Ditto.
2106         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2107         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2108         (AIX_FUNC_DESC_SC_32BIT): Ditto.
2109         (AIX_FUNC_DESC_SC_64BIT): Ditto.
2110         (ptrload): New mode attribute for the appropriate load of a pointer.
2111         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2112         (call_indirect_aix64): Ditto.
2113         (call_value_indirect_aix32): Ditto.
2114         (call_value_indirect_aix64): Ditto.
2115         (call_indirect_nonlocal_aix32_internal): Ditto.
2116         (call_indirect_nonlocal_aix32): Ditto.
2117         (call_indirect_nonlocal_aix64_internal): Ditto.
2118         (call_indirect_nonlocal_aix64): Ditto.
2119         (call): Rewrite AIX indirect function calls.  Add support for
2120         eliminating the static chain, and for moving the save of the TOC
2121         to the function prologue.
2122         (call_value): Ditto.
2123         (call_indirect_aix<ptrsize>): Ditto.
2124         (call_indirect_aix<ptrsize>_internal): Ditto.
2125         (call_indirect_aix<ptrsize>_internal2): Ditto.
2126         (call_indirect_aix<ptrsize>_nor11): Ditto.
2127         (call_value_indirect_aix<ptrsize>): Ditto.
2128         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2129         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2130         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2131         (call_nonlocal_aix32): Relocate in the rs6000.md file.
2132         (call_nonlocal_aix64): Ditto.
2133
2134         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2135         -mno-r11 documentation.
2136
2137 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2138
2139         PR other/49658
2140         * doc/extend.texi (Compound Literals): Fix typo.
2141
2142 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
2143
2144         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2145
2146 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
2147
2148         * configure.ac (plugin-version.h): Generate
2149         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2150         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2151         macros.
2152
2153         * configure: Regenerate.
2154
2155         * doc/plugins.texi (Building GCC plugins): Mention
2156         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2157
2158 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2159
2160         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2161         * combine.c (make_extraction, gen_lowpart_or_truncate,
2162         apply_distributive_law, simplify_comparison,
2163         reg_truncated_to_mode, record_truncated_value): Use it.
2164         * cse.c (notreg_cost): Likewise.
2165         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2166         * expr.c (convert_move, convert_modes): Likewise.
2167         * optabs.c (expand_binop, expand_unop): Likewise.
2168         * postreload.c (move2add_last_label): Likewise.
2169         * regmove.c (optimize_reg_copy_3): Likewise.
2170         * rtlhooks.c (gen_lowpart_general): Likewise.
2171         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2172
2173 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
2174
2175         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2176
2177 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2178
2179         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2180         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2181         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2182         (simplify_const_unary_operation, simplify_binary_operation_1,
2183         simplify_const_binary_operation, simplify_const_relational_operation):
2184         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
2185         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2186         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2187         simplify_shift_const_1, simplify_comparison): Likewise.
2188         * expr.c (convert_modes): Likewise.
2189         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2190         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2191         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2192
2193         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2194
2195 2011-07-06  Richard Guenther  <rguenther@suse.de>
2196
2197         PR tree-optimization/49645
2198         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2199         register variables.
2200         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2201         in type qualification here ...
2202         (copy_reference_ops_from_ref): ... not here.
2203         (vn_reference_lookup_3): ... or here.
2204         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2205         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2206
2207 2011-07-06  Ian Lance Taylor  <iant@google.com>
2208
2209         * doc/install.texi (Configuration): It's
2210         --enable-gnu-indirect-function, not --enable-indirect-function.
2211
2212 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2213
2214         * simplify-rtx.c (simplify_const_binary_operation): Use the
2215         shift_truncation_mask hook instead of performing modulo by width.
2216         Compare against mode precision, not bitsize.
2217         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2218         Use shift_truncation_mask instead of constructing the value manually.
2219
2220 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2221
2222         PR middle-end/47383
2223         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2224         address computation and convert to address_mode if needed.
2225
2226 2011-07-06  Richard Guenther  <rguenther@suse.de>
2227
2228         * tree.c (build_common_tree_nodes_2): Merge with
2229         build_common_tree_nodes.
2230         * tree.h (build_common_tree_nodes): Adjust prototype.
2231         (build_common_tree_nodes_2): Remove.
2232         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2233         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2234
2235 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
2236
2237         PR tree-optimization/49618
2238         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2239         t recurse on the decl.
2240         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2241         return true if expr isn't known to be defined in current
2242         TU or some other LTO partition.
2243
2244 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2245
2246         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2247         override CASE_VALUES_THRESHOLD.
2248
2249         * stmt.c (toplevel): Include params.h.
2250         (case_values_threshold): Use the --param case-values-threshold
2251         value if non-zero, otherwise use machine dependent value.
2252         (expand_case): Use case_values_threshold.
2253
2254         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2255
2256         * doc/invoke.texi (--param case-values-threshold): Document.
2257
2258 2011-07-05  Richard Henderson  <rth@redhat.com>
2259
2260         * dwarf2out.c (dwarf2out_cfi_label): Make static.
2261         (dwarf2out_flush_queued_reg_saves): Make static.
2262         (dwarf2out_reg_save): Remove.
2263         (dwarf2out_return_save): Remove.
2264         (dwarf2out_return_reg): Remove.
2265         (dwarf2out_reg_save_reg): Remove.
2266         (dwarf2out_def_cfa): Merge into ...
2267         (dwarf2out_frame_init): ... here.
2268         * dwarf2out.h, tree.h: Remove declarations as necessary.
2269
2270 2011-07-05  Richard Henderson  <rth@redhat.com>
2271
2272         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2273         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2274         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2275         the alloc insn.
2276
2277         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2278         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2279         (process_epilogue): Don't call dwarf2out_def_cfa.
2280
2281         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2282         indicate the return address save.
2283         (process_cfa_register): Likewise.
2284
2285         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2286         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2287
2288         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2289         for ar.pfs save at alloc insn.
2290
2291 2011-07-05  Richard Henderson  <rth@redhat.com>
2292
2293         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2294         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2295         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2296         stack pointer save.
2297         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2298         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
2299         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2300         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2301
2302 2011-07-05  Richard Henderson  <rth@redhat.com>
2303
2304         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
2305         VUNSPEC_* constants here instead of via define_constants.
2306         (VUNSPEC_PEM): New constant.
2307         (procedure_entry_mask): New insn.
2308         (prologue): New expander.
2309         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2310         (vax_expand_prologue): Rename from vax_output_function_prologue;
2311         emit rtl instead of text.
2312         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2313         (print_operand): Add 'x' prefix.
2314
2315 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2316
2317         PR middle-end/47715
2318         * calls.c (precompute_register_parameters): Promote the function
2319         argument before checking non-legitimate constant.
2320
2321 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2322
2323         PR tree-optimization/47654
2324         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2325         (lst_do_strip_mine_loop): Return an int.
2326         (lst_do_strip_mine): Same.
2327         (scop_do_strip_mine): Same.
2328         (scop_do_block): Loop blocking should strip-mine at least two loops.
2329         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2330         (scop_do_interchange): Same.
2331         * graphite-poly.h (scop_do_interchange): Update declaration.
2332         (scop_do_strip_mine): Same.
2333
2334 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2335
2336         * graphite-clast-to-gimple.c (precision_for_value): Removed.
2337         (precision_for_interval): Removed.
2338         (gcc_type_for_interval): Use mpz_sizeinbase.
2339
2340 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2341
2342         * graphite-ppl.h (value_max): Correct computation of max.
2343
2344 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2345
2346         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2347
2348 2011-07-05  Richard Guenther  <rguenther@suse.de>
2349
2350         * c-decl.c (c_init_decl_processing): Defer building common
2351         tree nodes to c_common_nodes_and_builtins.
2352
2353 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
2354
2355         PR tree-optimization/49580
2356         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2357         the loop's number of iterations.
2358         * tree-parloops.c (transform_to_exit_first_loop): Add the
2359         handling of the loop's number of iterations before the call
2360         to gimple_duplicate_sese_tail.
2361         Insert the stmt caclculating the new rhs of the loop's
2362         condition stmt to the preheader instead of iters_bb.
2363
2364 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2365
2366         PR rtl-optimization/47449
2367         * fwprop.c (forward_propagate_subreg): Don't propagate hard
2368         register nor zero/sign extended hard register.
2369
2370 2011-07-05  Richard Guenther  <rguenther@suse.de>
2371
2372         PR tree-optimization/49518
2373         PR tree-optimization/49628
2374         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2375         irrelevant and invariant data-references.
2376         (vect_analyze_data_ref_access): For invariant loads clear the
2377         group association.
2378
2379 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
2380
2381         PR rtl-optimization/49619
2382         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2383         pass VOIDmode as op0_mode to recursive call, and return temp even
2384         when different from tor, just if it is not IOR of the original
2385         PLUS arguments.
2386
2387         PR rtl-optimization/49472
2388         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2389         negating MULT, negate the second operand instead of first.
2390         (simplify_binary_operation_1) <case MULT>: If one operand is
2391         a NEG and the other is MULT, don't attempt to optimize by negation
2392         of the MULT operand if it only moves the NEG operation around.
2393
2394         PR debug/49602
2395         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2396         get_current_def return value if it can't be trusted to be
2397         the current value of the variable in the current bb.
2398
2399 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
2400
2401         PR target/49600
2402         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2403         general register to memory for !TARGET_INTER_UNIT_MOVES.
2404
2405 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2406
2407         PR target/44643
2408         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2409         instead of TREE_READONLY.
2410
2411 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2412
2413         * doc/extend.texi (AVR Built-in Functions): Update documentation
2414         of __builtin_avr_fmul*.
2415         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2416         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2417         * config/avr/avr.md (fmul): Rename to fmul_insn.
2418         (fmuls): Rename to fmuls_insn.
2419         (fmulsu): Rename to fmulsu_insn.
2420         (fmul,fmuls,fmulsu): New expander.
2421         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2422         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2423         * config/avr/libgcc.S (__fmul): New function.
2424         (__fmuls): New function.
2425         (__fmulsu,__fmulsu_exit): New function.
2426
2427 2011-07-04  Richard Guenther  <rguenther@suse.de>
2428
2429         PR tree-optimization/49615
2430         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2431         basic-block index check.
2432
2433 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2434
2435         * longlong.h (count_leading_zeros, count_trailing_zeros,
2436         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2437         resp. 64.
2438
2439 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
2440
2441         PR tree-optimization/49610
2442         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2443         a basic block.
2444
2445 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2446             Olivier Hainque  <hainque@adacore.com>
2447             Nicolas Setton  <setton@adacore.com>
2448
2449         * tree.h (TYPE_ARTIFICIAL): New flag.
2450         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2451         the DIE of the type if it is artificial.
2452         (gen_array_type_die): Likewise.
2453         (gen_enumeration_type_die): Likewise.
2454         (gen_struct_or_union_type_die): Likewise.
2455         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2456         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2457
2458 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
2459
2460         * tree-object-size.c (pass_through_call): Handle
2461         BUILT_IN_ASSUME_ALIGNED.
2462
2463 2011-07-01  Martin Jambor  <mjambor@suse.cz>
2464
2465         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2466
2467 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2468
2469         PR middle-end/48016
2470         * explow.c (update_nonlocal_goto_save_area): Use proper mode
2471         for stack save area.
2472         * function.c (expand_function_start): Likewise.
2473
2474 2011-07-01  Richard Guenther  <rguenther@suse.de>
2475
2476         PR middle-end/49596
2477         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2478         may have unknown refs.
2479
2480 2011-07-01  Kai Tietz  <ktietz@redhat.com>
2481
2482         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2483
2484 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2485
2486         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2487         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2488         (Specific, mips-sgi-irix6): Likewise.
2489
2490 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2491
2492         PR libmudflap/49549
2493         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2494
2495 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
2496
2497         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2498         [idx]= and [idx1 ... idx2]= before initializers if needed for
2499         array initializers.
2500
2501 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
2502
2503         * config.gcc (score-*-elf): Remove score7.o.
2504         * config/score/t-score-elf: Likewise.
2505         * config/score/score.c: Merge score7 to score.c and
2506         remove forwarding functions.
2507         * config/score/score7.c: Deleted.
2508         * config/score/score7.h: Deleted.
2509
2510 2011-07-01  Richard Guenther  <rguenther@suse.de>
2511
2512         PR tree-optimization/49603
2513         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2514
2515 2011-06-30  Martin Jambor  <mjambor@suse.cz>
2516
2517         * tree-sra.c (struct access): Rename total_scalarization to
2518         grp_total_scalarization
2519         (completely_scalarize_var): New function.
2520         (sort_and_splice_var_accesses): Set total_scalarization in the
2521         representative access.
2522         (analyze_access_subtree): Propagate total scalarization accross the
2523         tree, no holes in totally scalarized trees, simplify coverage
2524         computation.
2525         (analyze_all_variable_accesses): Call completely_scalarize_var instead
2526         of completely_scalarize_record.
2527
2528 2011-06-30  Richard Henderson  <rth@redhat.com>
2529
2530         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2531         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2532         * config/i386/i386.c: Don't include dwarf2out.h.
2533         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2534         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2535         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
2536         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2537         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2538
2539 2011-06-30  Richard Henderson  <rth@redhat.com>
2540
2541         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2542         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2543         * final.c (final_scan_insn): Look for it, and invoke
2544         dwarf2out_frame_debug before the insn if found.
2545
2546 2011-06-30  Richard Henderson  <rth@redhat.com>
2547
2548         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2549         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2550
2551 2011-06-30  Richard Henderson  <rth@redhat.com>
2552
2553         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2554         Define a vector of this type.
2555         (regs_saved_in_regs): Use a VEC.
2556         (num_regs_saved_in_regs): Remove.
2557         (compare_reg_or_pc): New.
2558         (record_reg_saved_in_reg): Split out from...
2559         (dwarf2out_flush_queued_reg_saves): ... here.
2560         (clobbers_queued_reg_save): Update for VEC.
2561         (reg_saved_in): Likewise.
2562         (dwarf2out_frame_debug_init): Likewise.
2563         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2564         (dwarf2out_frame_debug_cfa_register): Likewise.
2565
2566 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2567
2568         PR tree-optimization/49572
2569         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2570         type of the RHS instead of that of the LHS for the expression type.
2571
2572 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2573
2574         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2575         unconditionally.
2576
2577 2011-06-30  Richard Guenther  <rguenther@suse.de>
2578
2579         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2580         * tree-ssa-structalias.c (create_variable_info_for): Do not
2581         add initial constraints for non-var-decls.  Properly handle
2582         globals in other ltrans partitions.
2583         (intra_create_variable_infos): Manually create constraints for
2584         the fake no-alias parameter.
2585         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2586         and assert there are no clones.
2587
2588 2011-06-30  Richard Guenther  <rguenther@suse.de>
2589
2590         PR tree-optimization/46787
2591         * tree-data-ref.c (dr_address_invariant_p): Remove.
2592         (find_data_references_in_stmt): Invariant accesses are ok now.
2593         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2594         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2595         invariant loads.
2596
2597 2011-06-30  Martin Jambor  <mjambor@suse.cz>
2598
2599         PR tree-optimization/49094
2600         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2601         (build_accesses_from_assign): Use it.
2602
2603 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
2604
2605         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2606         handling of BUILT_IN_ASSUME_ALIGNED.
2607
2608         PR debug/49364
2609         * dwarf2out.c (output_abbrev_section): Don't return early
2610         if abbrev_die_table_in_use is 1.
2611         (dwarf2out_finish): Instead don't call output_abbrev_section
2612         nor emit abbrev_section_label in that case.
2613
2614 2011-06-30  Nick Clifton  <nickc@redhat.com>
2615
2616         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2617         for the V850E.
2618
2619 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
2620
2621         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2622         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2623
2624 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
2625
2626         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2627         both pattern and original statements if necessary.
2628         (vect_transform_loop): Likewise.
2629         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2630         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2631         Mark the pattern statement only if the original statement doesn't
2632         have its own uses.
2633         (process_use): Call vect_mark_relevant with additional parameter.
2634         (vect_mark_stmts_to_be_vectorized): Likewise.
2635         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2636         (vect_analyze_stmt): Handle both pattern and original statements
2637         if necessary.
2638         (vect_transform_stmt): Don't store vectorized pattern statement
2639         in the original statement.
2640         (vect_is_simple_use_1): Use related pattern statement only if the
2641         original statement is irrelevant.
2642         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2643
2644 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
2645
2646         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2647         option.
2648         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2649         entry.
2650         (TARGET_AVX128_OPTIMAL): New definition.
2651         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2652         X86_TUNE_AVX128_OPTIMAL entry.
2653         (ix86_option_override_internal): Enable the generation
2654         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2655         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2656         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2657
2658 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2659
2660         PR tree-optimization/49539
2661         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2662         names by means of stmt_references_abnormal_ssa_name.
2663         (associate_plusminus): Call can_propagate_from before propagating
2664         from definition statements.
2665         (ssa_forward_propagate_and_combine): Remove superfluous newline.
2666
2667 2011-06-29  Richard Guenther  <rguenther@suse.de>
2668
2669         * doc/invoke.texi: Document -scev dump modifier.
2670         * tree-pass.h (TDF_SCEV): New dump flag.
2671         * tree-dump.c (dump_option_value_in): Add scev.
2672         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2673         * tree-scalar-evolution.c: Likewise.
2674
2675 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
2676
2677         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2678         (cxa_type_match): Correct declaration.
2679         (__gnu_unwind_pr_common): Reconstruct additional indirection
2680         when __cxa_type_match returns succeeded_with_ptr_to_base.
2681
2682 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2683
2684         PR rtl-optimization/49114
2685         * reload.c (struct replacement): Remove SUBREG_LOC member.
2686         (push_reload): Do not set it.
2687         (push_replacement): Likewise.
2688         (subst_reload): Remove dead code.
2689         (copy_replacements): Remove assertion.
2690         (copy_replacements_1): Do not handle SUBREG_LOC.
2691         (move_replacements): Likewise.
2692         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
2693         Detect subregs via recursive descent instead of via SUBREG_LOC.
2694
2695 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
2696
2697         * config/avr/avr.c (avr_encode_section_info): Dispatch to
2698         default_encode_section_info.
2699
2700 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
2701
2702         PR tree-optimization/49545
2703         * builtins.c (get_object_alignment_1): Update function comment.
2704         Do not use DECL_ALIGN for functions, but test
2705         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2706         * fold-const.c (get_pointer_modulus_and_residue): Don't check
2707         for functions here.
2708         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2709
2710 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
2711
2712         PR debug/49567
2713         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2714         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
2715
2716 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
2717
2718         PR target/34734
2719         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
2720         about uninitialized data attributed 'progmem' from here...
2721         (avr_encode_section_info): ...to this new function.
2722         (TARGET_ENCODE_SECTION_INFO): New define.
2723         (avr_section_type_flags): For data in ".progmem.data", remove
2724         section flag SECTION_WRITE.
2725
2726 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
2727
2728         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2729         _xmulhisi3_exit.
2730         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2731         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
2732         (__umulhisi3): Ditto.
2733         * config/avr/avr.md (mulhisi3): New insn expender.
2734         (umulhisi3): New insn expender.
2735         (*mulhisi3_call): New insn.
2736         (*umulhisi3_call): New insn.
2737
2738 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2739
2740         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2741
2742 2011-06-28  Richard Henderson  <rth@redhat.com>
2743
2744         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
2745         all code and arguments that handled pushes.  Update all callers.
2746
2747 2011-06-28  Richard Henderson  <rth@redhat.com>
2748
2749         * config/arm/arm.c (arm_output_function_prologue): Don't call
2750         thumb1_output_function_prologue.
2751         (arm_expand_prologue): Avoid dead store.
2752         (number_of_first_bit_set): Use ctz_hwi.
2753         (thumb1_emit_multi_reg_push): New.
2754         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2755         to emit the entire prologue as rtl.
2756         (thumb1_output_interwork): Split out from
2757         thumb1_output_function_prologue.
2758         (thumb1_output_function_prologue): Remove.
2759         (arm_attr_length_push_multi): Handle thumb1.
2760         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2761         (prologue_thumb1_interwork): New.
2762         (*push_multi): Allow thumb1; use push_mult_memory_operand.
2763         * config/arm/predicates.md (push_mult_memory_operand): New.
2764
2765 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2766
2767         * config/sparc/sync.md (*stbar): Delete.
2768         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2769
2770 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2771
2772         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2773
2774 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2775
2776         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2777         (TARGET_64BIT_DEFAULT): Define.
2778         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2779         of tm_file.
2780         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2781
2782 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2783
2784         * common.opt (in_lto_p): New Variable entry.
2785         * flags.h (in_lto_p): Move to common.opt.
2786         * gcc.c: Include params.h.
2787         (set_option_handlers): Also use common_handle_option and
2788         target_handle_option.
2789         (main): Call global_init_params, finish_params and init_options_struct.
2790         * opts.c (debug_type_names): Move from toplev.c.
2791         (print_filtered_help): Access quiet_flag through opts pointer.
2792         (common_handle_option): Return early in the driver for some options.
2793         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2794         opts pointer.
2795         * toplev.c (in_lto_p): Move to common.opt.
2796         (debug_type_names): Move to opts.c.
2797         * Makefile.in (OBJS): Remove opts.o.
2798         (OBJS-libcommon-target): Add opts.o.
2799         (gcc.o): Update dependencies.
2800
2801 2011-06-28  Kai Tietz  <ktietz@redhat.com>
2802
2803         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
2804
2805 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2806
2807         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2808         with '=' constraint modifier.
2809         (*divdf3_vfp): Likewise.
2810         ("*mulsf3_vfp"): Likewise.
2811         ("*muldf3_vfp"): Likewise.
2812         ("*mulsf3negsf_vfp"): Likewise.
2813         ("*muldf3negdf_vfp"): Likewise.
2814
2815 2011-06-28  Nick Clifton  <nickc@redhat.com>
2816
2817         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2818         relaxation when performing an incremental link.
2819
2820 2011-06-28  Kai Tietz  <ktietz@redhat.com>
2821
2822         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2823         within BB from last to first.
2824
2825 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
2826
2827         * genattr-common.c: New.  Based on genattr.c.
2828         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2829         (MOSTLYCLEANFILES): Add insn-attr-common.h.
2830         (opts.o): Update dependencies.
2831         (.PRECIOUS): Add insn-attr-common.h.
2832         (simple_rtl_generated_h): Add insn-attr-common.h.
2833         (build/genattr-common.o): New.
2834         (genprogrtl): Add attr-common.
2835         * genattr.c (main): Include insn-attr-common.h.  Don't generate
2836         definitions of DELAY_SLOTS or INSN_SCHEDULING.
2837         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
2838
2839 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
2840
2841         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
2842         avr-*-* and avr-*-rtems* targets.
2843
2844         * config/avr/elf.h: New file.
2845         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2846         (TARGET_ASM_SELECT_SECTION): Define.
2847         (INIT_SECTION_ASM_OP): Undefine.
2848         (FINI_SECTION_ASM_OP): Undefine.
2849         (READONLY_DATA_SECTION_ASM_OP): Undefine.
2850         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2851         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2852         * config/avr/avr.h:
2853         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2854         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2855         (MAX_OFILE_ALIGNMENT): Move to elf.h.
2856         (STRING_LIMIT): Move to elf.h.
2857         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2858         (ASM_DECLARE_OBJECT_NAME): Remove.
2859         (ESCAPES): Remove.
2860         (ASM_OUTPUT_SKIP): Remove.
2861         (DWARF2_DEBUGGING_INFO): Remove.
2862         (OBJECT_FORMAT_ELF): Remove.
2863         (USER_LABEL_PREFIX): Remove.
2864         (ASM_OUTPUT_EXTERNAL): Remove.
2865         (ASM_OUTPUT_ASCII): Remove.
2866         (TYPE_ASM_OP): Remove.
2867         (SIZE_ASM_OP): Remove.
2868         (WEAK_ASM_OP): Remove.
2869         (STRING_ASM_OP): Remove.
2870         (SET_ASM_OP): Remove.
2871         (ASM_WEAKEN_LABEL): Remove.
2872         (TYPE_OPERAND_FMT): Remove.
2873         (ASM_DECLARE_FUNCTION_SIZE): Remove.
2874         (ASM_FINISH_DECLARE_OBJECT): Remove.
2875         (NO_DOLLAR_IN_LABEL): Remove.
2876         (ASM_GENERATE_INTERNAL_LABEL): Remove.
2877         (ASM_OUTPUT_CASE_LABEL): Remove.
2878         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
2879         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
2880         (gas_output_ascii): Remove.
2881         (gas_output_limited_string): Remove.
2882         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
2883         * config/avr/avr-protos.h
2884         (gas_output_ascii): Remove prototye.
2885         (gas_output_limited_string): Remove prototype.
2886
2887 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
2888
2889         PR target/48637
2890         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
2891         asm operands.
2892
2893 2011-06-27  Jan Hubicka  <jh@suse.cz>
2894
2895         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
2896         node instead of references in node.
2897
2898 2011-06-27  Richard Henderson  <rth@redhat.com>
2899
2900         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
2901         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
2902         inside ifdef.
2903
2904 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
2905
2906         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
2907
2908         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
2909         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
2910         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
2911         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
2912         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
2913         (evaluate_stmt, execute_fold_all_builtins): Handle
2914         BUILT_IN_ASSUME_ALIGNED.
2915         * tree-ssa-dce.c (propagate_necessity): Likewise.
2916         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2917         call_may_clobber_ref_p_1): Likewise.
2918         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
2919         (expand_builtin_assume_aligned): New function.
2920         * doc/extend.texi (__builtin_assume_aligned): Document.
2921
2922         PR debug/49544
2923         * cselib.c (promote_debug_loc): If cselib_preserve_constants
2924         and l has two DEBUG_INSN owned locs instead of just one, adjust
2925         the second location's setting_insn too.
2926
2927 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2928
2929         PR libmudflap/38738
2930         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
2931
2932 2011-06-27  Nick Clifton  <nickc@redhat.com>
2933
2934         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
2935         bit position of highest bit set into a count of the high zero bits.
2936
2937 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2938
2939         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
2940
2941 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2942
2943         PR lto/48492
2944         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
2945         to a NULL parent.
2946
2947 2011-06-27  Richard Guenther  <rguenther@suse.de>
2948
2949         PR tree-optimization/49394
2950         * passes.c (execute_one_pass): Restore current_pass after
2951         applying IPA transforms.
2952
2953 2011-06-27  Kai Tietz  <ktietz@redhat.com>
2954
2955         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
2956         out of type precision after operation.
2957         (find_bswap): Take for limit value the integer auto-promotion
2958         into account.
2959
2960 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2961
2962         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
2963         forward scan as well.
2964
2965 2011-06-27  Tristan Gingold  <gingold@adacore.com>
2966
2967         PR target/44241
2968         * config/vms/vms-protos.h: New file.
2969         * config/vms/vms-crtlmap.map: New file.
2970         * config/vms/vms.c: New file.
2971         * config/vms/make-crtlmap.awk: New file.
2972         * config/vms/vms-crtl.h: File removed.
2973         * config/vms/vms-crtl-64.h: File removed.
2974         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
2975         * config/alpha/vms64.h: Do not include vms-crtl-64.h
2976         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
2977         clear some builtins on VMS.  Calls vms_patch_builtins.
2978         (avms_asm_output_external): Remove.
2979         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
2980         (struct crtl_name_spec): Remove
2981         (DO_CTRL_NAMES): Remove.
2982         * config/ia64/vms.h (struct crtl_name_spec): Remove
2983         (DO_CTRL_NAMES): Remove.
2984         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
2985         clear some builtins on VMS.  Calls vms_patch_builtins.
2986         (ia64_asm_output_external): Remove DO_CRTL_NAME.
2987         * config/ia64/vms64.h: Do not include vms-crtl-64.h
2988         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
2989
2990 2011-06-27  Tristan Gingold  <gingold@adacore.com>
2991
2992         * config/alpha/alpha.c (alpha_end_function): Always generate .end
2993         directive on VMS.
2994
2995 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2996
2997         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
2998         the function receives nonlocal gotos.
2999
3000 2011-06-27  Richard Guenther  <rguenther@suse.de>
3001
3002         PR tree-optimization/49536
3003         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3004         For non-scalar inner types use a scalar type according to
3005         the scalar inner mode.
3006
3007 2011-06-27  Richard Guenther  <rguenther@suse.de>
3008
3009         PR tree-optimization/49365
3010         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3011
3012 2011-06-27  Richard Guenther  <rguenther@suse.de>
3013
3014         PR tree-optimization/49169
3015         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3016         the alignment of function decls.
3017
3018 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
3019
3020         PR target/47997
3021         * config/darwin.c (darwin_mergeable_string_section): Place string
3022         constants in '.cstring' rather than '.const' when CF/NSStrings are
3023         active.
3024
3025 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3026
3027         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3028         (emit_save_register_window): Likewise.
3029         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3030         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
3031         Swap back %o7/%i7 in register naming.
3032
3033 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
3034
3035         PR driver/49371
3036         * config/darwin.c (darwin_override_options): Improve warning when
3037         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3038         is given with fpie/fPIE.
3039         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3040         * config/darwin9.h (PIE_SPEC): New.
3041
3042 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3043
3044         * timevar.c (timevar_print): Increase width for display of timevar
3045         name.
3046
3047 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
3048
3049         PR c++/46400
3050         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3051         instead of TYPE_CHAIN for chain_next for types.
3052
3053 2011-06-24  Richard Henderson  <rth@redhat.com>
3054
3055         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3056         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3057         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3058         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3059         (sparc_flat_expand_prologue): Emit individual instructions
3060         instead of one of the above.
3061
3062 2011-06-24  Easwaran Raman  <eraman@google.com>
3063
3064         PR rtl-optimization/49429
3065         PR target/49454
3066         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
3067         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3068         used to copy y into x.
3069         * calls.c (initialize_argument_information): Mark
3070         an argument addressable if it is passed by invisible reference.
3071         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
3072         if it is passed by reference.
3073
3074 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3075
3076         PR rtl-optimization/49504
3077         * rtlanal.c (nonzero_bits1): Properly handle addition or
3078         subtraction of a pointer in Pmode if pointers extend unsigned.
3079         (num_sign_bit_copies1): Likewise.
3080
3081 2011-06-24  Martin Jambor  <mjambor@suse.cz>
3082
3083         PR tree-optimizations/49516
3084         * tree-sra.c (sra_modify_assign): Choose the safe path for
3085         aggregate copies if we also did scalar replacements.
3086
3087 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3088
3089         PR target/49335
3090         * config/arm/predicates.md (add_operator): New.
3091         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3092
3093 2011-06-24  Andi Kleen  <ak@linux.intel.com>
3094
3095         * tree-sra.c (type_internals_preclude_sra_p): Add msg
3096         parameter. Split up ifs and report reason in *msg.
3097         (reject): Add.
3098         (find_var_candiate): Add msg variable.
3099         Split up ifs and report reason to reject.
3100         (find_param_candidates): Add msg variable.
3101         Pass msg to type_internals_preclude_sra_p.
3102
3103 2011-06-23  Jeff Law  <law@redhat.com>
3104
3105         PR middle-end/48770
3106         * reload.h (reload): Change to return a bool.
3107         * ira.c (ira): If requested by reload, run a fast DCE pass after
3108         reload has completed.  Fix comment typo.
3109         * reload1.c (need_dce): New file scoped static.
3110         (reload): Set reload_completed here.  Return whether or not a DCE
3111         pass after reload is needed.
3112         (delete_dead_insn): Set need_dce as needed.
3113
3114         PR middle-end/49465
3115         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3116         to detect threading through joiner block.  If there was already
3117         an edge to the new target, then do not change the PHI nodes.
3118
3119 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
3120
3121         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3122         get_pointer_alignment to see if base isn't sufficiently aligned.
3123
3124 2011-06-23  Jan Hubicka  <jh@suse.cz>
3125
3126         PR tree-optimize/49373
3127         * tree-pass.h (all_late_ipa_passes): Declare.
3128         * cgraphunit.c (init_lowered_empty_function): Fix properties.
3129         (cgraph_optimize): Execute late passes; remove unreachable funcions
3130         after materialization.
3131         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3132         LTOing.
3133         * passes.c (all_late_ipa_passes): Declare.
3134         (dump_passes, register_pass): Handle late ipa passes.
3135         (init_optimization_passes): Move ipa_pta to late passes; schedule
3136         fixup_cfg at beggining of all_passes.
3137         (apply_ipa_transforms): New function.
3138         (execute_one_pass): When doing simple ipa pass, apply all transforms.
3139
3140 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
3141
3142         * params.c: Include common/common-target.h.  Don't include tm.h.
3143         (lang_independent_params): Move from toplev.c.
3144         (global_init_params): New.
3145         * params.h (global_init_params): Declare.
3146         * target.def (default_params): Move to common-target.def.
3147         * toplev.c (lang_independent_options): Remove.
3148         (lang_independent_params): Move to params.c.
3149         (general_init): Use global_init_params.
3150         * common/common-target.def (option_default_params): Move from
3151         target.def.
3152         * common/config/ia64/ia64-common.c: Include params.h.
3153         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3154         from ia64.c.
3155         * common/config/rs6000/rs6000-common.c: Include params.h.
3156         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3157         from rs6000.c.
3158         * common/config/sh/sh-common.c: Include params.h.
3159         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3160         from sh.c.
3161         * common/config/spu/spu-common.c: Include params.h.
3162         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3163         from spu.c.
3164         * config/ia64/ia64.c (ia64_option_default_params,
3165         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3166         * config/rs6000/rs6000.c (rs6000_option_default_params,
3167         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3168         * config/sh/sh.c (sh_option_default_params,
3169         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3170         * config/spu/spu.c (spu_option_default_params,
3171         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3172         * Makefile.in (OBJS): Remove params.o.
3173         (OBJS-libcommon-target): Add params.o.
3174         (params.o, $(common_out_object_file)): Update dependencies.
3175         * doc/tm.texi: Regenerate.
3176
3177 2011-06-23  Alan Modra  <amodra@gmail.com>
3178
3179         PR bootstrap/49383
3180         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3181         invocation for 2011-06-09 changes.
3182
3183 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3184
3185         PR libgomp/49490
3186         * omp-low.c (expand_omp_for_static_nochunk): Only
3187         use n ceil/ nthreads size for the first n % nthreads threads in the
3188         team instead of all threads except for the last few ones which
3189         get less work or none at all.
3190
3191         PR debug/49496
3192         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3193         uses.
3194
3195 2011-06-22  Richard Guenther  <rguenther@suse.de>
3196
3197         PR tree-optimization/49493
3198         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3199         Refer to the alias target of variables.
3200         (associate_varinfo_to_alias_1): Remove.
3201         (ipa_pta_execute): Do not associate aliases with anything.
3202         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3203         (cgraph_function_node): Likewise.
3204         (cgraph_function_or_thunk_node): Likewise.
3205         (varpool_variable_node): Likewise.
3206
3207 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3208
3209         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3210         * config.gcc (arm*-*-linux*): Default to gnu tls.
3211         (arm*-*-*): Add --with-tls option.
3212         (all_defaults): Add 'tls'.
3213
3214 2011-06-22  Richard Henderson  <rth@redhat.com>
3215
3216         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3217         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3218         (dwarf2out_frame_debug_cfa_window_save): Rename from
3219         dwarf2out_window_save; make static.
3220         * tree.h (dwarf2out_window_save): Don't declare.
3221
3222         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3223         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3224         (emit_save_register_window): Rename from gen_save_register_window;
3225         emit the insn and add REG_CFA_* notes.
3226         (sparc_expand_prologue): Update to match.
3227         * config/sparc/sparc.md (save_register_window_1): Simplify from
3228         save_register_window<P:mode>.
3229
3230 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3231
3232         PR target/49497
3233         * config/i386/i386.md (*lea_general_2): Always allow SImode.
3234         (*lea_general_2_zext): Likewise.
3235         (imul to lea peepholes): Use const359_operand and check
3236         TARGET_PARTIAL_REG_STALL.
3237
3238         * config/i386/predicates.md (const359_operand): New.
3239
3240 2011-06-22  Michael Matz  <matz@suse.de>
3241
3242         * cgraphunit.c (assemble_thunk): Use correct return type.
3243
3244 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3245             Dmitry Melnik  <dm@ispras.ru>
3246
3247         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3248         (neon_output_shift_immediate): Ditto.
3249         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3250         prototype.
3251         (neon_output_shift_immediate): Ditto.
3252         * config/arm/neon.md (vashl<mode>3): Modified constraint.
3253         (vashr<mode>3_imm): New insn pattern.
3254         (vlshr<mode>3_imm): Ditto.
3255         (vashr<mode>3): Modified constraint.
3256         (vlshr<mode>3): Ditto.
3257         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3258         predicate.
3259         (imm_for_neon_rshift_operand): Ditto.
3260         (imm_lshift_or_reg_neon): Ditto.
3261         (imm_rshift_or_reg_neon): Ditto.
3262
3263         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3264
3265 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3266
3267         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3268         builtin calls even if likelyvalue is not CONSTANT.
3269         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3270         Return get_value_for_expr of first operand
3271         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3272         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3273         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3274         their non-checking counterparts.
3275         (call_may_clobber_ref_p_1): Likewise.
3276         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3277         like their non-checking counterparts.
3278         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3279         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3280         like their non-checking counterparts.
3281         (find_func_clobbers): Likewise.
3282         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3283         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3284
3285         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3286         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3287         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3288         of base type reference as argument.
3289         (resolve_addr_in_expr): Likewise.  Fix keep computation.
3290         (convert_descriptor_to_signed): Renamed to...
3291         (convert_descriptor_to_mode): ... this.  For wider types convert to
3292         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3293         (typed_binop): New function.
3294         (scompare_loc_descriptor, ucompare_loc_descriptor,
3295         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3296         default to unsigned type instead of signed.
3297
3298         PR debug/47858
3299         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3300         (gimple_build_debug_source_bind_stat): New prototype.
3301         (gimple_build_debug_source_bind): Define.
3302         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3303         gimple_debug_source_bind_get_value,
3304         gimple_debug_source_bind_get_value_ptr,
3305         gimple_debug_source_bind_set_var,
3306         gimple_debug_source_bind_set_value): New inlines.
3307         * gimple.c (gimple_build_debug_source_bind_stat): New function.
3308         * gimple-pretty-print.c (dump_gimple_debug): Handle
3309         GIMPLE_DEBUG_SOURCE_BIND.
3310         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3311         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3312         * tree-parloops.c (eliminate_local_variables,
3313         separate_decls_in_region): Likewise.
3314         (separate_decls_in_region_debug): Renamed from
3315         separate_decls_in_region_debug_bind.  Handle
3316         gimple_debug_source_bind_p.
3317         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3318         prototypes.
3319         (DECL_HAS_DEBUG_ARGS_P): Define.
3320         (struct tree_function_decl): Add has_debug_args_flag field.
3321         * tree.c (debug_args_for_decl): New variable.
3322         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3323         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3324         (rewrite_debug_stmt_uses): New function.
3325         (rewrite_stmt): Use it to rewrite debug stmt uses.
3326         * rtl.def (DEBUG_PARAMETER_REF): New.
3327         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3328         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3329         DEBUG_PARAMETER_REF.
3330         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3331         * print-rtl.c (print_rtx): Likewise.
3332         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3333         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3334         debug stmts in the first bb.
3335         * tree-inline.c (remap_ssa_name): If remapping default def
3336         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3337         a source bind debug stmt.
3338         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3339         (maybe_move_debug_stmts_to_successors): Likewise.
3340         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
3341         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3342         debug args vector from old_decl to new_decl.
3343         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3344         or modified parameters, add debug bind stmts before call
3345         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3346         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3347         on DECL_DEBUG_EXPRs from debug args vector.
3348         (expand_debug_source_expr): New function.
3349         (expand_debug_locations): Use it for source bind insns.
3350         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3351         * var-tracking.c (prepare_call_arguments): Add debug args
3352         to call_arguments if any.
3353         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3354         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3355         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3356         (get_ref_die_offset, parameter_ref_descriptor): New functions.
3357         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3358         (gen_subprogram_die): Handle parameters identified by
3359         DEBUG_PARAMETER_REF.
3360
3361 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3362
3363         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3364         * doc/install.texi (Configuration): Document --with-tls.
3365         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3366         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3367         (arm_tls_descseq_addr): New.
3368         (legitimize_tls_address): Add tlsdesc support.
3369         (arm_cannot_copy_insn_p): Check for tlscall.
3370         (arm_emit_tls_decoration): Likewise.
3371         * config/arm/arm.h (TARGET_GNU2_TLS): New.
3372         (OPTION_DEFAULT_SPECS): Add with-tls support.
3373         * config/arm/arm.md (R1_REGNUM): Define.
3374         (tlscall): New.
3375         * config/arm/arm.opt (tls_type): New enumeration type and values.
3376         (mtls-dialect): New switch.
3377         * config/arm/arm-opts.h (enum tls_type): New.
3378
3379 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3380
3381         * attribs.c (register_attribute): Added assert to check that all
3382         attribute specs are registered with a name that is not empty and
3383         does not start with '_'.
3384         (decl_attributes): Avoid the lookup of the "naked" attribute spec
3385         if the function has no attributes.
3386         * tree.c (is_attribute_with_length_p): Removed.
3387         (is_attribute_p): Removed.
3388         (private_is_attribute_p): New.
3389         (private_lookup_attribute): New.
3390         (lookup_attribute): Removed.
3391         (lookup_ident_attribute): New.
3392         (remove_attribute): Require the first argument to be in the form
3393         'text', not '__text__'.  Updated asserts.
3394         (merge_attributes): Use lookup_ident_attributes instead of
3395         lookup_attribute.
3396         (merge_dllimport_decl_attributes): Use remove_attribute.
3397         (attribute_list_contained): Likewise.
3398         (attribute_list_equal): Immediately return 1 if the arguments are
3399         identical pointers.
3400         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
3401         'int'.  Require the first argument to be in the form 'text', not
3402         '__text__'.  Require the second argument to be an identifier.
3403         (lookup_attribute): Made inline.  Require the first argument to be
3404         in the form 'text', not '__text__'.
3405         (private_is_attribute_p, private_lookup_attribute): New.
3406         Updated comments.
3407
3408 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3409
3410         * builtins.c: Add sync_ or SYNC__ to builtin names.
3411         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3412         * omp-low.c: Add sync_ or SYNC__ to builtin names.
3413
3414 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
3415
3416         PR target/33049
3417         * config/avr/avr.md (extzv): New expander.
3418         (*extzv): New insn.
3419         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3420         * config/avr/constraints.md (C04): New constraint.
3421         * doc/md.texi (Machine Constraints): Document it.
3422
3423 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
3424
3425         PR middle-end/49489
3426         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3427         unsignedp argument instead of 1 for clrsb_optab.
3428         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3429         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
3430         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3431         * optabs.c (widen_leading): Call widen_operand and expand_unop
3432         with 0 as unsignedp argument instead of 1 for clrsb_optab.
3433         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3434
3435 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
3436
3437         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3438
3439 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
3440
3441         * gensupport.c (add_define_attr): New static function.
3442         (is_predicable): Allow multi-alternative lists for the "predicable"
3443         attribute.
3444         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3445         (process_one_cond_exec): Call alter_attrs_for_insn.
3446         * doc/md.texi (Defining Attributes): Mention some standard names.
3447         (Conditional Execution): Update documentation for "predicable".
3448
3449         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3450         __builtin_clrsbll): Document.
3451         * doc/rtl.texi (clrsb): New entry.
3452         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
3453         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
3454         (expand_unop): Handle clrsb_optab.
3455         (init_optabs): Initialize it.
3456         * optabs.h (enum optab_index): New entry OTI_clrsb.
3457         (clrsb_optab): Define.
3458         * genopinit.c (optabs): Add an entry for it.
3459         * builtins.c (expand_builtin): Handle clrsb builtin functions.
3460         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3461         BUILT_IN_CLRSBLL): New.
3462         * rtl.def (CLRSB): New code.
3463         * dwarf2out.c (mem_loc_descriptor): Handle it.
3464         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3465         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3466         and popcount.
3467         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3468         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3469         (__ctzDI2): Move declaration.
3470         * config/bfin/bfin.md (clrsbsi2): New expander.
3471         (signbitssi2): Use the CLRSB rtx.
3472         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
3473         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3474
3475 2011-06-21  Richard Guenther  <rguenther@suse.de>
3476
3477         * ipa-inline-transform.c (inline_transform): Fix previous change.
3478
3479 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
3480
3481         PR tree-optimization/49478
3482         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3483         with constant operand.
3484
3485 2011-06-21  Richard Guenther  <rguenther@suse.de>
3486
3487         * ipa-inline-transform.c (inline_transform): Fix typo.
3488
3489 2011-06-21  Richard Guenther  <rguenther@suse.de>
3490
3491         PR tree-optimization/49483
3492         * tree-vect-stmts.c (vectorizable_assignment): Also handle
3493         VIEW_CONVERT_EXPR conversions.
3494
3495 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
3496
3497         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3498         * config/avr/avr-tables.opt: New file (generated).
3499         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3500         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3501         avr-mcus.def.
3502         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3503         (avr_option_override): Don't process -mmcu= argument here.  Set
3504         avr_current_device using avr_mcu_index.
3505         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3506         * config/avr/avr.opt (mmcu=): Use Enum.
3507         * config/avr/t-avr (avr-devices.o): Update dependencies.
3508         ($(srcdir)/config/avr/avr-tables.opt): New.
3509         * target.def (help): Remove.
3510         * doc/tm.texi.in (TARGET_HELP): Remove.
3511         * doc/tm.texi: Regenerate.
3512         * opts.c: Don't include target.h.
3513         (common_handle_option): Don't call targetm.help.
3514         * system.h (TARGET_HELP): Poison.
3515         * Makefile.in (opts.o): Update dependencies.
3516
3517 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3518
3519         * config/usegld.h: New file.
3520         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3521         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3522         (LIB_SPEC): Likewise.  Search /lib.
3523         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3524         (RDYNAMIC_SPEC): Handle GNU ld.
3525         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3526         Define.
3527         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3528         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3529         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3530         (STACK_CHECK_STATIC_BUILTIN): Define.
3531         * config/sol2.opt (compat-bsd): Remove.
3532         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3533         * config/sol2-bi.h: New file.
3534         * config/sol2-gld.h: Remove.
3535         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3536         (NO_DBX_BNSYM_ENSYM): Remove.
3537         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3538         (STACK_CHECK_STATIC_BUILTIN): Remove.
3539         Test USE_GLD instead of TARGET_GNU_LD.
3540         * config/i386/sol2-10.h: Rename to ...
3541         * config/i386/sol2-bi.h .. this.
3542         (SUBTARGET_EXTRA_SPECS): Redefine.
3543         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3544         (MULTILIB_DEFAULTS): Remove.
3545         (DEFAULT_ARCH32_P): Define.
3546         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3547         (ARCH64_SUBDIR): Define.
3548         Test USE_GLD instead of TARGET_GNU_LD.
3549         (I386_EMULATION): Rename to ...
3550         (ARCH32_EMULATION): ... this.
3551         (X86_64_EMULATION): Rename to ...
3552         (ARCH64_EMULATION): ... this.
3553         (TARGET_LD_EMULATION): Remove.
3554         (LINK_ARCH_SPEC): Remove.
3555         * config/i386/sol2-gas.h: Remove.
3556         * config/i386/t-sol2-10: Rename to ...
3557         * config/i386/t-sol2-64: ... this.
3558         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3559         (AS_SPARC64_FLAG): Define.
3560         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3561         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3562         depending on TARGET_CPU_DEFAULT.
3563         (CPP_CPU_SPEC): Redefine.
3564         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3565         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3566         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3567         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3568         ASM_ARCH_DEFAULT_SPEC): Redefine.
3569         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3570         LINK_ARCH_DEFAULT_SPEC.
3571         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3572         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3573         (ARCH64_SUBDIR): Define.
3574         (LINK_ARCH64_SPEC): Redefine.
3575         (CC1_SPEC): Redefine.
3576         (OPTION_DEFAULT_SPECS): Redefine.
3577         (MULTILIB_DEFAULTS): Define.
3578         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3579         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3580         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3581         (NO_DBX_BNSYM_ENSYM): Remove.
3582         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3583         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3584         (TARGET_ASM_NAMED_SECTION): Likewise.
3585         (STACK_CHECK_STATIC_BUILTIN): Remove.
3586         * config/sparc/sol2-bi.h: Remove.
3587         * config/sparc/sol2-gas-bi.h: Remove.
3588         * config/sparc/sol2-gas.h: Remove.
3589         * config/sparc/sol2-gld-bi.h: Remove.
3590         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3591         common parts ...
3592         (*-*-solaris2*): ... here.
3593
3594 2011-06-21  Christian Bruel  <christian.bruel@st.com>
3595
3596         PR other/43564
3597         * ipa-inline.c (can_inline_edge_p): Check
3598         !DECL_DISREGARD_INLINE_LIMITS.
3599
3600 2011-06-21  Christian Bruel  <christian.bruel@st.com>
3601
3602         PR middle-end/49139
3603         * cgraphunit.c (process_function_and_variable_attributes): warn when
3604         always_inline functions that are not inline.
3605         * ipa-inline-transform.c (inline_transform): Always call
3606         optimize_inline.
3607         * tree-inline.c (tree_inlinable_function_p): Use error instead
3608         of sorry.
3609         (expand_call_inline): Likewise.
3610
3611 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
3612
3613         * Makefile.in (dg_target_exps): Set.
3614         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3615         instead of 7, try to divide it more evenly.
3616
3617 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
3618
3619         PR target/49089
3620         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3621         (avx256_split_unaligned_store): New definition.
3622         (ix86_option_override_internal): Enable avx256 unaligned load/store
3623         splitting only when avx256_split_unaligned_load/store is set.
3624
3625 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
3626
3627         * regrename.c (scan_rtx_reg): Handle the case where we write to an
3628         open chain in a smaller mode without failing the entire block.
3629
3630 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3631
3632         PR middle-end/47725
3633         * combine.c (cant_combine_insn_p): Don't check zero/sign
3634         extended hard registers.
3635
3636 2011-06-21  Alan Modra  <amodra@gmail.com>
3637
3638         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3639         CONST high part large-toc address.
3640         (rs6000_tls_referenced_p): Make static.
3641         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3642
3643 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
3644
3645         PR middle-end/47725
3646         * combine.c (cant_combine_insn_p): Check zero/sign extended
3647         hard registers.
3648
3649 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3650
3651         PR target/49385
3652         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3653         one of the operands is a register.
3654
3655 2011-06-20  Kai Tietz  <ktietz@redhat.com>
3656
3657         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3658         operations in combination with binary and.
3659
3660 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
3661
3662         * regrename.c (do_replace): Don't update notes.
3663
3664 2011-06-20  Alan Modra  <amodra@gmail.com>
3665
3666         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3667         of toc-relative address in CONST.
3668         (rs6000_delegitimize_address): Recognize changed address.
3669         (rs6000_legitimize_reload_address): Likewise.
3670         (rs6000_emit_move): Don't force these constants to memory.
3671         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3672         toc-relative address in CONST.
3673         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3674         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3675
3676 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3677
3678         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
3679         (count_trailing_zeros): Likewise.
3680
3681 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3682
3683         PR other/49325
3684         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3685         .init_array can be used with .ctors on targets.
3686         * configure: Regenerated.
3687
3688 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3689
3690         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3691         if the element type is volatile.
3692
3693 2011-06-18  Jan Hubicka  <jh@suse.cz>
3694
3695         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3696         extra name aliases.
3697         (lto_symtab_resolve_can_prevail_p): Likewise.
3698         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3699         * cgraphbuild.c (record_reference): Remove extra body alias code.
3700         (mark_load): Likewise.
3701         (mark_store): Likewise.
3702         * cgraph.h (varpool_node): Remove extra_name filed;
3703         add alias_of and extraname_alias.
3704         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3705         (varpool_alias_aliased_node): New inline function.
3706         (varpool_variable_node): New function.
3707         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3708         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3709         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3710         (input_varpool_node): Likewise.
3711         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3712         (varpool_externally_visible_p): Remove extra body alias code.
3713         (function_and_variable_visibility): Likewise.
3714         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3715         (ipa_pta_execute): Use it.
3716         * varpool.c (varpool_remove_node): Remove extra name alias code.
3717         (varpool_mark_needed_node): Likewise.
3718         (varpool_analyze_pending_decls): Analyze aliases.
3719         (assemble_aliases): New functoin.
3720         (varpool_assemble_decl): Use it.
3721         (varpool_create_variable_alias): New function.
3722         (varpool_extra_name_alias): Rewrite.
3723         (varpool_for_node_and_aliases): New function.
3724
3725 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
3726
3727         PR target/49411
3728         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3729         last_arg_constant and last argument doesn't match its predicate,
3730         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3731         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3732         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3733         spelling of error message.
3734         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3735         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3736         const_0_to_255_operand instead of const_int_operand.
3737
3738         Revert:
3739         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3740
3741         * config/i386/sse.md (blendbits): Remove mode attribute.
3742         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3743         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3744         Check integer value of operand 3 in insn constraint.
3745
3746 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
3747
3748         PR rtl-optimization/48542
3749         * reload.c (find_equiv_reg): Stop looking when finding a
3750         setjmp-type call.
3751         * reload1.c (reload_as_needed): Invalidate all reload
3752         registers when crossing a setjmp-type call.
3753
3754 2011-06-16  Jeff Law  <law@redhat.com>
3755
3756         * tree-ssa-threadupdate.c (struct redirection_data): New field
3757         intermediate_edge.
3758         (THREAD_TARGET2): Define.
3759         (redirection_data_eq): Also check that the intermediate edge is equal.
3760         (lookup_redirection_data): Drop useless argument.  Extract the
3761         outgoing_edge and intermediate edge from E.  Callers updated.
3762         (copy_phi_args, update_destination_phis): New functions.
3763         (fix_duplicate_block_edges): Likewise.
3764         (create_edge_and_update_destination_phis): Duplicate all the edges
3765         hung off e->aux.  Use copy_phi_args.
3766         (create_duplicates): Use fix_duplicate_block_edges.
3767         (fixup_template_block): Likewise.
3768         (redirect_edges): If necessary, redirect the joiner block's incoming
3769         edge to the duplicate of the joiner block.
3770         (thread_block): Don't muck up loops when threading through a joiner
3771         block.
3772         (thread_through_loop_header): Handle threading through a joiner block.
3773         (mark_threaded_blocks, register_jump_thread): Likewise.
3774         * tree-flow.h (register_jump_thread): Add new argument.  Callers
3775         updated.
3776         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3777         (thread_across_edge): Handle threading through a joiner block.
3778
3779 2011-06-16  Martin Jambor  <mjambor@suse.cz>
3780
3781         PR tree-optimization/49343
3782         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3783         calculate offset, provide 2nd operand for the new COMPONENT_REF.
3784
3785 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
3786
3787         * config/darwin-protos.h (machopic_select_rtx_section): Move to
3788         inside RTX_CODE ifdef.
3789
3790 2011-06-16  Tom de Vries  <tom@codesourcery.com>
3791
3792         PR target/45098
3793         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3794         Disallow NULL pointer for pointer arithmetic.
3795
3796 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3797
3798         PR target/49398
3799         Revert.
3800         2011-06-10  Wei Guozhi  <carrot@google.com>
3801
3802         PR target/45335
3803         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3804         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3805         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3806         related peephole2.
3807         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3808         related peephole2.
3809         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3810         (arm_legitimate_ldrd_p): New prototype.
3811         (arm_output_ldrd): New prototype.
3812         * config/arm/arm.c (arm_check_ldrd_operands): New function.
3813         (arm_legitimate_ldrd_p): New function.
3814         (arm_output_ldrd): New function.
3815
3816 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3817
3818         PR middle-end/46500
3819         * doc/tm.texi.in: Update Copyright date.
3820         * doc/tm.texi: Regenerate.
3821         * targhooks.c (default_setup_incoming_varargs): Replace
3822         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3823         (default_pretend_outgoing_varargs_named): Likewise.
3824         (hook_pass_by_reference_must_pass_in_stack): Likewise.
3825         (hook_callee_copies_named): Likewise.
3826         (default_function_arg_advance): Likewise.
3827         (default_function_arg): Likewise.
3828         (default_function_incoming_arg): Likewise.
3829         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3830         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3831         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3832         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3833         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3834         * targhooks.h (default_setup_incoming_varargs): Likewise.
3835         (default_pretend_outgoing_varargs_named): Likewise.
3836         (hook_pass_by_reference_must_pass_in_stack): Likewise.
3837         (hook_callee_copies_named): Likewise.
3838         (default_function_arg_advance): Likewise.
3839         (default_function_arg): Likewise.
3840         (default_function_incoming_arg): Likewise.
3841         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3842         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3843         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3844         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3845         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3846         * target.def (pass_by_reference): Likewise.
3847         (setup_incoming_varargs, strict_argument_naming): Likewise.
3848         (pretend_outgoing_varargs_named, callee_copies): Likewise.
3849         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3850         (function_incoming_arg): Likewise.
3851         * target.h: Don't include "tm.h" .
3852         (cumulative_args_t): New typedef.
3853         [GCC_TM_H] (get_cumulative_args): New static inline function.
3854         [GCC_TM_H] (pack_cumulative_args): Likewise.
3855         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3856         argument type with cumulative_args_t.
3857         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3858         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3859         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3860         (frv_arg_partial_bytes, frv_function_arg): Likewise.
3861         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3862         (frv_function_arg_1): Likewise.
3863         * config/s390/s390.c (s390_pass_by_reference): Likewise.
3864         (s390_function_arg_advance, s390_function_arg): Likewise.
3865         * config/m32c/m32c.c (m32c_function_arg): Likewise.
3866         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3867         (m32c_strict_argument_naming): Likewise.
3868         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3869         (spu_function_arg_advance): Likewise.
3870         (spu_setup_incoming_varargs): Likewise.  Make static.
3871         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
3872         Remove prototype.
3873         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
3874         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3875         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
3876         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
3877         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
3878         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
3879         (mep_pass_by_reference, mep_function_arg): Likewise.
3880         (mep_function_arg_advance): Likewise.
3881         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3882         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
3883         (m32r_function_arg, m32r_function_arg_advance): Likewise.
3884         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
3885         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
3886         (ix86_function_arg, ix86_pass_by_reference): Likewise.
3887         (ix86_setup_incoming_varargs): Likewise.
3888         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
3889         (sh_strict_argument_naming): Likewise.
3890         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
3891         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
3892         (sh_function_arg_advance, sh_function_arg): Likewise.
3893         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
3894         (pdp11_function_arg_advance): Likewise.
3895         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
3896         Likewise.
3897         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
3898         * config/avr/avr.c (avr_function_arg): Likewise.
3899         (avr_function_arg_advance): Likewise.
3900         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
3901         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
3902         (xtensa_function_arg_1): Likewise.
3903         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
3904         Likewise.
3905         (xstormy16_function_arg): Likewise.
3906         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
3907         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
3908         (fr30_function_arg_advance): Likewise.
3909         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3910         (lm32_function_arg, lm32_function_arg_advance): Likewise.
3911         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
3912         (moxie_function_arg, moxie_function_arg_advance): Likewise.
3913         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
3914         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
3915         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
3916         (cris_function_arg, cris_function_incoming_arg): Likewise.
3917         (cris_function_arg_advance, cris_function_arg_1): Likewise.
3918         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
3919         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
3920         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
3921         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
3922         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
3923         (mn10300_arg_partial_bytes): Likewise.
3924         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
3925         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
3926         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
3927         (ia64_function_arg_1): Likewise.
3928         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
3929         (m68k_function_arg): Likewise.
3930         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
3931         (rs6000_function_arg, setup_incoming_varargs): Likewise.
3932         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
3933         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
3934         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
3935         (picochip_arg_advance): Likewise.
3936         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
3937         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
3938         (mcore_function_arg_advance): Likewise.
3939         * config/score/score.c (score_pass_by_reference): Likewise.
3940         (score_function_arg_advance): Likewise.
3941         (score_arg_partial_bytes): Likewise.  Make static.
3942         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
3943         * config/arm/arm.c (arm_arg_partial_bytes): Replace
3944         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3945         (arm_function_arg, arm_function_arg_advance): Likewise.
3946         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
3947         * config/pa/pa.c (pa_pass_by_reference): Likewise.
3948         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
3949         (pa_function_arg): Likewise.
3950         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
3951         (mips_function_arg, mips_function_arg_advance): Likewise.
3952         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
3953         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
3954         * config/vax/vax.c (vax_function_arg): Likewise.
3955         (vax_function_arg_advance): Likewise.
3956         * config/h8300/h8300.c (h8300_function_arg): Likewise.
3957         (h8300_function_arg_advance): Likewise.
3958         * config/v850/v850.c (v850_pass_by_reference): Likewise.
3959         (v850_strict_argument_naming, v850_function_arg): Likewise.
3960         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
3961         (v850_setup_incoming_varargs): Likewise.
3962         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
3963         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
3964         (mmix_function_arg, mmix_pass_by_reference): Likewise.
3965         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
3966         with const void *.
3967         * config/bfin/bfin.c (setup_incoming_varargs): Replace
3968         CUMULATIVE_ARGS* argument type with cumulative_args_t.
3969         (bfin_function_arg_advance, bfin_function_arg): Likewise.
3970         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
3971         * calls.c (emit_call_1): Change type of args_so_far to
3972         cumulative_args_t.  Changed all callers.
3973         (initialize_argument_information): Likewise.
3974         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
3975         * dse.c (get_call_args): Likewise.
3976         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3977         * function.c (pass_by_reference, reference_callee_copied): Likewise.
3978         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
3979         New member args_so_far_v.  Changed all users.
3980         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
3981         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3982         * config/mips/mips.c (mips_output_args_xfer): Likewise.
3983         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3984         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3985         * config/microblaze/microblaze.c (microblaze_expand_prologue):
3986         Likewise.
3987         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
3988         m32r_pass_by_reference.
3989
3990 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
3991
3992         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
3993         argument to be a VEC of statements.
3994         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
3995         assert that pattern statements have to have their vector type set.
3996         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
3997         Change the first argument to be a VEC of statements.  Update
3998         documentation.
3999         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4000         (vect_handle_widen_mult_by_const): New function.
4001         (vect_recog_widen_mult_pattern):  Change the first argument to be a
4002         VEC of statements.  Update documentation.  Check that the constant is
4003         INTEGER_CST.  Support multiplication by a constant that fits an
4004         intermediate type - call vect_handle_widen_mult_by_const.
4005         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4006         call.  Handle additional pattern statements if necessary.
4007
4008 2011-06-16  Nick Clifton  <nickc@redhat.com>
4009
4010         PR target/49427
4011         * config.gcc: Set cpu_type to v850 for any V850 architecture.
4012         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4013         md_file, extra_modes, out_file and extra_options are these are all
4014         deduced from cpu_type.
4015
4016 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
4017
4018         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4019         truncation mask to 63.
4020
4021 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
4022
4023         PR target/49313
4024         PR target/29524
4025         * longlong.h: Add AVR support:
4026         (count_leading_zeros): New macro.
4027         (count_trailing_zeros): New macro.
4028         (COUNT_LEADING_ZEROS_0): New macro.
4029         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4030         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4031         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4032         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4033         (LIB2FUNCS_EXCLUDE): Add _clz.
4034         * config/avr/libgcc.S (XCALL): Move up in file.
4035         (XJMP): New C Macro.
4036         (DEFUN): New asm macro.
4037         (ENDF): New asm macro.
4038         (__ffssi2): New function.
4039         (__ffshi2): New function.
4040         (__loop_ffsqi2): New function.
4041         (__ctzsi2): New function.
4042         (__ctzhi2): New function.
4043         (__clzdi2): New function.
4044         (__clzsi2): New function.
4045         (__clzhi2): New function.
4046         (__paritydi2): New function.
4047         (__paritysi2): New function.
4048         (__parityhi2): New function.
4049         (__parityqi2): New function.
4050         (__popcounthi2): New function.
4051         (__popcountsi2): New function.
4052         (__popcountdi2): New function.
4053         (__popcountqi2): New function.
4054         (__bswapsi2): New function.
4055         (__bswapdi2): New function.
4056         (__ashldi3): New function.
4057         (__ashrdi3): New function.
4058         (__lshrdi3): New function.
4059         Fix suspicous lines.
4060
4061 2011-06-16  Richard Guenther  <rguenther@suse.de>
4062
4063         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4064         the same as x != 0.
4065         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4066         to (bool) X & 1.
4067         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4068         equality compares against zero for the lower bit.
4069
4070 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
4071
4072         PR tree-optimization/49419
4073         * tree-vrp.c (execute_vrp): Call init_range_assertions
4074         before estimate_numbers_of_iterations, call
4075         free_number_of_iterations_estimates before calling
4076         remove_range_assertions.
4077
4078 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4079
4080         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4081         (struct partial_schedule): Add rows_length field.
4082         (verify_partial_schedule): Check rows_length.
4083         (ps_insert_empty_row): Handle rows_length.
4084         (create_partial_schedule): Likewise.
4085         (free_partial_schedule): Likewise.
4086         (reset_partial_schedule): Likewise.
4087         (create_ps_insn): Remove rest_count argument.
4088         (remove_node_from_ps): Update rows_length.
4089         (add_node_to_ps): Update rows_length and call create_ps_insn
4090         without passing row_rest_count.
4091         (rotate_partial_schedule): Update rows_length.
4092
4093 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4094
4095         * ddg.c (add_intra_loop_mem_dep): New function.
4096         (build_intra_loop_deps): Call it.
4097
4098 2011-06-13  Jeff Law  <law@redhat.com>
4099
4100         * df-problems.c (df_lr_local_compute): Manually CSE
4101         PIC_OFFSET_TABLE_REGNUM.
4102         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4103         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4104
4105 2011-06-13  Jan Hubicka  <jh@suse.cz>
4106
4107         * cgraphunit.c (handle_alias_pairs): New function.
4108         (cgraph_finalize_compilation_unit): Use it.
4109         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4110         as externally visible.
4111
4112 2011-06-15  Richard Guenther  <rguenther@suse.de>
4113
4114         * expr.c (expand_expr_real_2): Reduce all integral types to
4115         bitfield precision.
4116         (expand_expr_real_1): Likewise.
4117
4118 2011-06-15  Martin Jambor  <mjambor@suse.cz>
4119
4120         PR tree-optimization/48613
4121         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4122         ipa_node_params_vector is NULL.
4123
4124 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
4125
4126         PR debug/49382
4127         * dwarf2out.c (dw_loc_list_node): Add force field.
4128         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4129         location in the list, even if it is modified before first real insn.
4130         (output_loc_list): Emit empty ranges with force flag set.
4131         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4132
4133 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
4134
4135         PR target/49349
4136         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4137         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
4138         above a fence.  Update comments.
4139         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4140         placed just above it.  Do not allow NULL place_to_insert.
4141
4142 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
4143
4144         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4145         (slpeel_tree_peel_loop_to_edge): Don't call
4146         remove_dead_stmts_from_loop.
4147         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4148         remove irrelevant pattern statements.  For irrelevant statements
4149         check if it is the last statement of a detected pattern, use
4150         corresponding pattern statement instead.
4151         (destroy_loop_vec_info): No need to remove pattern statements,
4152         only free stmt_vec_info.
4153         (vect_transform_loop): For irrelevant statements check if it is
4154         the last statement of a detected pattern, use corresponding
4155         pattern statement instead.
4156         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4157         pattern statements.  Set basic block for the new statement.
4158         (vect_pattern_recog): Update documentation.
4159         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4160         operands of pattern statements.
4161         (vectorizable_call): Fix printing.  In case of a pattern statement
4162         use the lhs of the original statement when creating a dummy
4163         statement to replace the original call.
4164         (vect_analyze_stmt): For irrelevant statements check if it is
4165         the last statement of a detected pattern, use corresponding
4166         pattern statement instead.
4167         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4168         statements use gsi of the original statement.
4169
4170 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4171
4172         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4173         common/common-target-def.h.
4174         * target.def (default_target_flags, handle_option,
4175         supports_split_stack, optimization_table, init_struct,
4176         except_unwind_info, unwind_tables_default, have_named_sections):
4177         Move to common/common-target.def.
4178         * target.h (enum opt_levels, struct default_options): Move to
4179         common/common-target.h.
4180         * targhooks.c (default_except_unwind_info,
4181         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4182         default_target_handle_option, empty_optimization_table): Move to
4183         common/common-targhooks.c.
4184         * targhooks.h (default_except_unwind_info,
4185         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4186         default_target_handle_option, empty_optimization_table): Move to
4187         common/common-targhooks.h.
4188         * common/common-target-def.h: Include common/common-targhooks.h.
4189         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4190         defined.
4191         * common/common-target.def (handle_option, option_init_struct,
4192         option_optimization_table, default_target_flags,
4193         except_unwind_info, supports_split_stack, unwind_tables_default,
4194         have_named_sections): Move from target.def.
4195         (HOOK_PREFIX): Undefine at end of file.
4196         * common/common-target.h: Include input.h.
4197         (enum opt_levels, struct default_options): Move from target.h.
4198         * common/common-targhooks.c, common/common-targhooks.h: New.
4199         * config.gcc (target_has_targetm_common): Default to yes.
4200         (moxie*): Set target_has_targetm_common=no.
4201         (hppa*-*-*): Don't set target_has_targetm_common=yes.
4202         * doc/tm.texi: Regenerate.
4203         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4204         (C_TARGET_DEF_H): Add common/common-targhooks.h.
4205         (GCC_OBJS): Remove vec.o.
4206         (OBJS): Remove hooks.o and vec.o.
4207         (OBJS-libcommon-target): Add vec.o, hooks.o and
4208         common/common-targhooks.o.
4209         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4210         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4211         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4212         cfglayout.o, $(out_object_file), $(common_out_object_file)):
4213         Update dependencies.
4214         (common/common-targhooks.o): New.
4215         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
4216         * common/config/pa/pa-common.c: Include more headers.  Take
4217         copyright dates from pa.c.
4218         (pa_option_optimization_table, pa_handle_option,
4219         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4220         TARGET_HANDLE_OPTION): Move from pa.c.
4221         * common/config/alpha/alpha-common.c,
4222         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4223         common/config/bfin/bfin-common.c,
4224         common/config/cris/cris-common.c,
4225         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4226         common/config/h8300/h8300-common.c,
4227         common/config/i386/i386-common.c,
4228         common/config/ia64/ia64-common.c,
4229         common/config/iq2000/iq2000-common.c,
4230         common/config/lm32/lm32-common.c,
4231         common/config/m32c/m32c-common.c,
4232         common/config/m32r/m32r-common.c,
4233         common/config/m68k/m68k-common.c,
4234         common/config/mcore/mcore-common.c,
4235         common/config/mep/mep-common.c,
4236         common/config/microblaze/microblaze-common.c,
4237         common/config/mips/mips-common.c,
4238         common/config/mmix/mmix-common.c,
4239         common/config/mn10300/mn10300-common.c,
4240         common/config/pdp11/pdp11-common.c,
4241         common/config/picochip/picochip-common.c,
4242         common/config/rs6000/rs6000-common.c,
4243         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4244         common/config/score/score-common.c, common/config/sh/sh-common.c,
4245         common/config/sparc/sparc-common.c,
4246         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4247         common/config/vax/vax-common.c,
4248         common/config/xstormy16/xstormy16-common.c,
4249         common/config/xtensa/xtensa-common.c: New.
4250         * config/alpha/alpha.c: Include common/common-target.h.
4251         (alpha_option_optimization_table, alpha_handle_option,
4252         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4253         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4254         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4255         * config/arm/arm.c (arm_option_optimization_table,
4256         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4257         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4258         arm-common.c.
4259         * config/avr/avr.c (avr_option_optimization_table,
4260         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4261         to avr-common.c.
4262         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4263         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4264         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4265         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4266         * config/cris/cris.c (cris_option_optimization_table,
4267         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4268         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4269         cris-common.c.
4270         * config/fr30/fr30.c (fr30_option_optimization_table,
4271         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4272         to fr30-common.c.
4273         * config/frv/frv.c (frv_option_optimization_table,
4274         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4275         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4276         * config/h8300/h8300.c (h8300_option_optimization_table,
4277         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4278         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4279         * config/i386/i386-protos.h (ix86_handle_option): Declare.
4280         * config/i386/i386.c: Include common/common-target.h.
4281         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4282         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4283         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4284         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4285         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4286         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4287         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4288         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4289         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4290         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4291         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4292         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4293         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4294         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4295         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4296         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4297         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4298         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4299         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4300         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4301         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4302         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4303         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4304         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4305         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4306         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4307         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4308         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4309         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4310         ix86_option_optimization_table, ix86_option_init_struct,
4311         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4312         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4313         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4314         i386-common.c.
4315         * config/i386/t-i386 (i386.o): Update dependencies.
4316         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4317         * config/ia64/ia64.c (ia64_option_optimization_table,
4318         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4319         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4320         ia64_handle_option): Move to ia64-common.c.
4321         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4322         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4323         * config/lm32/lm32.c (lm32_option_optimization_table,
4324         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4325         to lm32-common.c.
4326         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4327         m32c-common.c.
4328         * config/m32r/m32r.c (m32r_option_optimization_table,
4329         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4330         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4331         m32r_handle_option): Move to m32r-common.c.
4332         (m32r_memory_move_cost): Remove comment referring to
4333         TARGET_HANDLE_OPTION.
4334         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4335         Move to m68k-common.c.
4336         * config/mcore/mcore.c (mcore_option_optimization_table,
4337         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4338         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4339         * config/mep/mep.c (mep_option_optimization_table,
4340         mep_handle_option, TARGET_HANDLE_OPTION,
4341         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4342         Move to mep-common.c.
4343         * config/microblaze/microblaze.c
4344         (microblaze_option_optimization_table,
4345         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4346         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4347         * config/mips/mips.c (mips_handle_option,
4348         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4349         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4350         mips-common.c.
4351         * config/mmix/mmix.c (mmix_option_optimization_table,
4352         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4353         Move to mmix-common.c.
4354         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4355         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4356         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4357         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4358         * config/pa/pa.c: Include common/common-target.h.
4359         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4360         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4361         pa_handle_option): Move to pa-common.c.
4362         (pa_option_override): Use targetm_common.except_unwind_info.
4363         (pa_asm_output_mi_thunk, pa_function_section): Use
4364         targetm_common.have_named_sections.
4365         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4366         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4367         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4368         pdp11_handle_option, pdp11_option_init_struct): Move to
4369         pdp11-common.c.
4370         * config/picochip/picochip.c (picochip_option_optimization_table,
4371         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4372         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4373         * config/rs6000/rs6000.c: Include common/common-target.h.
4374         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4375         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4376         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4377         rs6000_handle_option): Move to rs6000-common.c.
4378         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4379         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4380         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4381         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4382         * config/s390/s390.c (processor_flags_table,
4383         s390_option_optimization_table, s390_option_init_struct,
4384         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4385         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4386         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4387         * config/s390/s390.h (processor_flags_table): Declare.
4388         * config/score/score.c (score_option_optimization_table,
4389         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4390         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4391         score_handle_option): Move to score-common.c.
4392         * config/sh/sh.c (sh_option_optimization_table,
4393         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4394         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4395         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4396         * config/sparc/sparc.c: Include common/common-target.h.
4397         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4398         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4399         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4400         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4401         spu_option_init_struct): Move to spu-common.c.
4402         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4403         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4404         * config/v850/v850.c (small_memory_physical_max,
4405         v850_handle_memory_optionn v850_handle_option,
4406         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4407         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4408         v850-common.c.
4409         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4410         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4411         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4412         Move to xtensa-common.c.
4413         * cfglayout.c: Include common/common-target.h.
4414         (fixup_reorder_chain): Use targetm_common.have_named_sections.
4415         * cfgrtl.c: Include common/common-target.h.
4416         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4417         targetm_common.have_named_sections.
4418         * dbxout.c: Include common/common-target.h.
4419         (dbxout_function_end): Use targetm_common.have_named_sections.
4420         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4421         targetm_common.except_unwind_info.
4422         * dwarf2out.c: Include common/common-target.h.
4423         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4424         dwarf2out_begin_prologue, dwarf2out_frame_init,
4425         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4426         targetm_common.except_unwind_info.
4427         * except.c: Include common/common-target.h.
4428         (init_eh, finish_eh_generation,
4429         output_one_function_exception_table): Use
4430         targetm_common.except_unwind_info.
4431         (switch_to_exception_section): Use targetm_common.have_named_sections.
4432         * explow.c: Include common/common-target.h.
4433         * expr.c: Include common/common-target.h.
4434         (build_personality_function): Use targetm_common.except_unwind_info.
4435         * function.c: Include common/common-target.h.
4436         (expand_function_end): Use targetm_common.except_unwind_info.
4437         * haifa-sched.c: Include common/common-target.h.
4438         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4439         * lto-opts.c: Include common/common-target.h instead of target.h.
4440         (lto_reissue_options): Use targetm_common.handle_option.
4441         * opts.c: Include common/common-target.h.
4442         (target_handle_option): Use targetm_common.handle_option.
4443         (init_options_struct): Update comment referring to
4444         targetm.target_option.optimization.  Use
4445         targetm_common.default_target_flags,
4446         targetm_common.unwind_tables_default and
4447         targetm_common.option_init_struct.
4448         (default_options_optimization): Use
4449         targetm_common.option_optimization_table.
4450         (finish_options): Use targetm_common.except_unwind_info,
4451         targetm_common.unwind_tables_default,
4452         targetm_common.have_named_sections and
4453         targetm_common.supports_split_stack.
4454         * toplev.c: Include common/common-target.h.
4455         (process_options): Use targetm_common.have_named_sections.
4456         * tree-tailcall.c: Include common/common-target.h.
4457         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4458         * tree.c: Include common/common-target.h.
4459         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4460         * varasm.c: Include common/common-target.h.
4461         (resolve_unique_section, hot_function_section,
4462         default_function_section): Use targetm_common.have_named_sections.
4463
4464 2011-06-14  Easwaran Raman  <eraman@google.com>
4465
4466         PR rtl-optimization/44194
4467         * dse.c: Include tree-flow.h
4468         (insn_info): Add new field non_frame_wild_read.
4469         (group_info): Add new fields escaped_n and escaped_p.
4470         (kill_on_calls): New variable.
4471         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4472         (dse_step0): Initialize kill_on_calls.
4473         (can_escape): New function.
4474         (set_usage_bits): Add additional parameter; record information
4475         about escaped locations.
4476         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4477         (dse_step2_nospill): Set kill_on_calls based on
4478         group->escaped_n and group->escaped_n.
4479         (add_wild_read): Refactor into...
4480         (reset_active_stores): ... New function, and
4481         (free_read_records): ... New function.
4482         (add_non_frame_wild_read): New function.
4483         (scan_insn): Call add_non_frame_wild_read on non-const calls.
4484         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4485         (dse_step5_nospill): Call scan_reads_nospill for instructions
4486         marked as non_frame_wild_read.
4487         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4488
4489 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4490
4491         * common/common-target-def.h, common/common-target.def,
4492         common/common-target.h, common/config/default-common.c,
4493         common/config/pa/pa-common.c: New files.
4494         * Makefile.in (common_out_file, common_out_object_file,
4495         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4496         (OBJS-libcommon-target): Include $(common_out_object_file).
4497         (prefix.o): Update dependencies.
4498         ($(common_out_object_file), common/common-target-hooks-def.h,
4499         s-common-target-hooks-def-h): New.
4500         (s-tm-texi): Also check timestamp on common-target.def.
4501         (build/genhooks.o): Update dependencies.
4502         * config.gcc (common_out_file, target_has_targetm_common): Define.
4503         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4504         TARGET_ALWAYS_STRIP_DOTDOT.
4505         * configure.ac (common_out_object_file): Define.
4506         (common_out_file, common_out_object_file): Substitute.
4507         (common): Create directory.
4508         * configure: Regenerate.
4509         * doc/tm.texi.in (targetm_common): Document.
4510         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4511         * doc/tm.texi: Regenerate.
4512         * genhooks.c (hook_array): Also include common/common-target.def.
4513         * prefix.c (tm.h): Don't include.
4514         (common/common-target.h): Include.
4515         (ALWAYS_STRIP_DOTDOT): Don't define.
4516         (update_path): Use targetm_common.always_strip_dotdot instead of
4517         ALWAYS_STRIP_DOTDOT.
4518         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4519
4520 2011-06-14  David Li  <davidxl@google.com>
4521
4522         * passes.c (execute_function_todo): Remove TODO_dump_func.
4523         (execute_one_pass): Remove TODO_dump_func.
4524         (execute_function_dump): New function.
4525         * tree-vrp.c: Remove TODO_dump_func.
4526         * regrename.c: Remove TODO_dump_func.
4527         * fwprop.c: Remove TODO_dump_func.
4528         * tree-into-ssa.c: Remove TODO_dump_func.
4529         * tree-complex.c: Remove TODO_dump_func.
4530         * tracer.c: Remove TODO_dump_func.
4531         * tree-loop-distribution.c: Remove TODO_dump_func.
4532         * postreload-gcse.c: Remove TODO_dump_func.
4533         * postreload.c: Remove TODO_dump_func.
4534         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4535         * tree-tailcall.c: Remove TODO_dump_func.
4536         * ipa-cp.c: Remove TODO_dump_func.
4537         * final.c: Remove TODO_dump_func.
4538         * tree-emutls.c: Remove TODO_dump_func.
4539         * omp-low.c: Remove TODO_dump_func.
4540         * tree-ssa-dse.c: Remove TODO_dump_func.
4541         * tree-ssa-uncprop.c: Remove TODO_dump_func.
4542         * auto-inc-dec.c: Remove TODO_dump_func.
4543         * reorg.c: Remove TODO_dump_func.
4544         * tree-ssa-copyrename.c: Remove TODO_dump_func.
4545         * tree-ssa-ccp.c: Remove TODO_dump_func.
4546         * compare-elim.c: Remove TODO_dump_func.
4547         * mode-switching.c: Remove TODO_dump_func.
4548         * modulo-sched.c: Remove TODO_dump_func.
4549         * tree-call-cdce.c: Remove TODO_dump_func.
4550         * cse.c: Remove TODO_dump_func.
4551         * web.c: Remove TODO_dump_func.
4552         * tree-stdarg.c: Remove TODO_dump_func.
4553         * lto-streamer-out.c: Remove TODO_dump_func.
4554         * tree-ssa-math-opts.c: Remove TODO_dump_func.
4555         * tree-ssa-dom.c: Remove TODO_dump_func.
4556         * tree-nrv.c: Remove TODO_dump_func.
4557         * loop-init.c: Remove TODO_dump_func.
4558         * gimple-low.c: Remove TODO_dump_func.
4559         * ipa-inline.c: Remove TODO_dump_func.
4560         * tree-ssa-sink.c: Remove TODO_dump_func.
4561         * jump.c: Remove TODO_dump_func.
4562         * ifcvt.c: Remove TODO_dump_func.
4563         * tree-ssa-loop.c: Remove TODO_dump_func.
4564         * recog.c: Remove TODO_dump_func.
4565         * dse.c: Remove TODO_dump_func.
4566         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4567         * matrix-reorg.c: Remove TODO_dump_func.
4568         * tree-eh.c: Remove TODO_dump_func.
4569         * regmove.c: Remove TODO_dump_func.
4570         * function.c: Remove TODO_dump_func.
4571         * tree-vectorizer.c: Remove TODO_dump_func.
4572         * ipa-split.c: Remove TODO_dump_func.
4573         * gcse.c: Remove TODO_dump_func.
4574         * tree-if-conv.c: Remove TODO_dump_func.
4575         * init-regs.c: Remove TODO_dump_func.
4576         * tree-ssa-phiopt.c: Remove TODO_dump_func.
4577         * implicit-zee.c: Remove TODO_dump_func.
4578         * lower-subreg.c: Remove TODO_dump_func.
4579         * bt-load.c: Remove TODO_dump_func.
4580         * tree-dfa.c: Remove TODO_dump_func.
4581         * except.c: Remove TODO_dump_func.
4582         * emit-rtl.c: Remove TODO_dump_func.
4583         * store-motion.c: Remove TODO_dump_func.
4584         * cfgexpand.c: Remove TODO_dump_func.
4585         * tree-cfgcleanup.c: Remove TODO_dump_func.
4586         * cfgcleanup.c: Remove TODO_dump_func.
4587         * tree-ssa-pre.c: Remove TODO_dump_func.
4588         * tree-sra.c: Remove TODO_dump_func.
4589         * tree-mudflap.c: Remove TODO_dump_func.
4590         * tree-ssa-copy.c: Remove TODO_dump_func.
4591         * cfglayout.c: Remove TODO_dump_func.
4592         * tree-ssa-forwprop.c: Remove TODO_dump_func.
4593         * tree-ssa-dce.c: Remove TODO_dump_func.
4594         * ira.c: Remove TODO_dump_func.
4595         * tree-ssa.c: Remove TODO_dump_func.
4596         * integrate.c: Remove TODO_dump_func.
4597         * tree-optimize.c: Remove TODO_dump_func.
4598         * tree-ssa-phiprop.c: Remove TODO_dump_func.
4599         * tree-object-size.c: Remove TODO_dump_func.
4600         * combine.c: Remove TODO_dump_func.
4601         * bb-reorder.c: Remove TODO_dump_func.
4602         * cprop.c: Remove TODO_dump_func.
4603         * var-tracking.c: Remove TODO_dump_func.
4604         * tree-profile.c: Remove TODO_dump_func.
4605         * tree-vect-generic.c: Remove TODO_dump_func.
4606         * reg-stack.c: Remove TODO_dump_func.
4607         * sched-rgn.c: Remove TODO_dump_func.
4608         * tree-ssa-structalias.c: Remove TODO_dump_func.
4609         * tree-switch-conversion.c: Remove TODO_dump_func.
4610         * tree-cfg.c: Remove TODO_dump_func.
4611         * tree-ssa-reassoc.c: Remove TODO_dump_func.
4612         * combine-stack-adj.c: Remove TODO_dump_func.
4613         * dce.c: Remove TODO_dump_func.
4614         * tree-ssanames.c: Remove TODO_dump_func.
4615         * regcprop.c: Remove TODO_dump_func.
4616
4617 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4618
4619         PR middle-end/47364
4620         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4621         and properly handle result not in Pmode.
4622
4623 2011-06-14  Robert Millan  <rmh@gnu.org>
4624
4625         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4626         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4627         `config/linux.h'.
4628
4629         * config/i386/kfreebsd-gnu64.h: New file.
4630         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4631         with `i386/kfreebsd-gnu64.h'.
4632
4633         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4634         (GNU_USER_LINK_EMULATION64): New macros.
4635         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4636         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4637         of hardcoding `elf_i386' and `elf_x86_64'.
4638
4639 2011-06-14  Nick Clifton  <nickc@redhat.com>
4640
4641         PR target/49403
4642         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4643
4644         PR target/49402
4645         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4646
4647 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
4648
4649         PR fortran/49103
4650         * tree.h (DECL_NONSHAREABLE): Define.
4651         (struct tree_decl_common): Change decl_common_unused to
4652         decl_nonshareable_flag.
4653         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4654         Ignore vars with DECL_NONSHAREABLE bit set.
4655         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4656         on stores to automatic aggregate vars.
4657
4658         PR rtl-optimization/49390
4659         Revert:
4660         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
4661
4662         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4663         MEM_ALIAS_SET.
4664
4665 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
4666             Tom de Vries  <tom@codesourcery.com>
4667
4668         PR target/45098
4669         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4670         Document changed semantics.
4671         (max_stmt_executions, max_stmt_executions_int): Declare.
4672         * tree-data-ref.c (estimated_loop_iterations)
4673         (estimated_loop_iterations_int): Move functions...
4674         * tree-ssa-loop-niter.c (estimated_loop_iterations)
4675         (estimated_loop_iterations_int): here.
4676         (record_estimate): Change nb_iterations_upper_bound and
4677         nb_iterations_estimate semantics.
4678         (max_stmt_executions, max_stmt_executions_int): New function.
4679         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4680         (max_stmt_executions_tree): this.
4681         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4682         estimated_loop_iterations_tree.
4683         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4684         max_stmt_executions_int instead of estimated_loop_iterations_int.
4685         * predict.c (predict_loops): Idem.
4686         * tree-parloops.c (parallelize_loops): Idem.
4687         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4688         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4689         (init_omega_for_ddr_1): Idem.
4690         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4691         (loop_prefetch_arrays): Idem
4692         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4693         max_stmt_executions instead of estimated_loop_iterations.
4694         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4695         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4696         instead of nb_iterations_upper_bound.
4697
4698 2011-06-13  Jan Hubicka  <jh@suse.cz>
4699
4700         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4701
4702 2011-06-14  Richard Henderson  <rth@redhat.com>
4703
4704         PR debug/48459
4705         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4706         (based_loc_descr): Assert it's true.
4707         (compute_frame_pointer_to_fb_displacement): Set it, rather than
4708         aborting immediately.
4709
4710 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
4711             Mingfeng Wu  <mingfeng@faraday-tech.com>
4712
4713         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4714
4715 2011-06-13  Jan Hubicka  <jh@suse.cz>
4716
4717         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4718
4719 2011-06-13  Jan Hubicka  <jh@suse.cz>
4720
4721         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4722         similarly to DECL_COMDAT.
4723         * cgraphunit.c (cgraph_analyze_function): Likewise.
4724         * ipa.c (function_and_variable_visibility): Likewise.
4725
4726 2011-06-13  Jan Hubicka  <jh@suse.cz>
4727
4728         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4729         BINFO_VIRTUALS when streaming for ltrans unit.
4730
4731 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
4732
4733         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4734         (movdi_internal64): Same.
4735
4736 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
4737
4738         PR target/44618
4739         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4740         a set of similar patterns, where the MATCH_OPERAND for the function
4741         argument is replaced with individual references to hardware registers.
4742         (save_fpregs_<mode>): Ditto
4743         (restore_gpregs_<mode>): Ditto
4744         (return_and_restore_gpregs_<mode>): Ditto
4745         (return_and_restore_fpregs_<mode>): Ditto
4746         (return_and_restore_fpregs_aix_<mode>): Ditto
4747
4748 2011-06-13  Jan Hubicka  <jh@suse.cz>
4749
4750         * ipa-utils.c (postorder_stack): New structure.
4751         (ipa_reverse_postorder): Handle aliases.
4752
4753 2011-06-13  Jan Hubicka  <jh@suse.cz>
4754
4755         * ipa-inline.c (reset_edge_caches): Walk aliases.
4756         (update_caller_keys): Do not test inlinability of aliases.
4757         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4758         (do_estimate_growth): Fix typo.
4759
4760 2011-06-13  Jan Hubicka  <jh@suse.cz>
4761
4762         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4763         (can_remove_node_now_p): ... here; handle same comdat groups.
4764         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4765         (inline_call): Update use of can_remove_node_now_p.
4766
4767 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4768
4769         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4770         condition to disallow non-identical memory locations.
4771         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4772         preference to bit manipulation instructions.
4773
4774 2011-06-13  Jan Hubicka  <jh@suse.cz>
4775
4776         * cgraph.c (cgraph_for_node_thunks_and_aliases,
4777         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4778         (nonremovable_p): New function.
4779         (cgraph_can_remove_if_no_direct_calls_p): New function.
4780         (used_from_object_file_p): New functoin.
4781         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4782         references from aliases.
4783         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4784         * ipa-inline.c (check_caller_edge): New function.
4785         (want_inline_function_called_once_p): Use it; accept aliases called
4786         once, too.
4787         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4788
4789 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4790
4791         PR target/48454
4792         * config/arm/neon.md (vec_pack_trunc): Set the lengths
4793         correctly for the case with Quad vectors.
4794
4795 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
4796            Ira Rosen  <ira.rosen@linaro.org>
4797
4798         PR tree-optimization/49352
4799         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4800         all, make sure loop_use_stmt after the loop is a def stmt of a used
4801         SSA_NAME that is the only one defined inside of the loop.  Don't
4802         check for COND_EXPR and GIMPLE_BINARY_RHS.
4803         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4804         check_reduction is true.
4805
4806 2011-06-11  Jan Hubicka  <jh@suse.cz>
4807
4808         PR middle-end/49373
4809         * ipa.c (cgraph_externally_visible_p): Check resolution info.
4810
4811 2011-06-11  Jan Hubicka  <jh@suse.cz>
4812
4813         PR middle-end/48836
4814         * ipa-inline-transform.c: Include tree-pass.h
4815         (inline_transform): Set TODO_update_ssa_only_virtuals.
4816         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4817
4818 2011-06-11  Jan Hubicka  <jh@suse.cz>
4819
4820         PR middle-end/49378
4821         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4822         aliases and thunks.
4823
4824 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
4825
4826         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4827         Take number of iterations to peel into account for equally frequent
4828         misalignment values.
4829
4830 2011-06-11  Jan Hubicka  <jh@suse.cz>
4831
4832         * lto-streamer-out.c (produce_symtab): Stream out the newly
4833         represented aliases.
4834
4835 2011-06-11  Jan Hubicka  <jh@suse.cz>
4836
4837         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4838         varying args.
4839         (ipa_update_after_lto_read): Likewise.
4840         (ipa_write_node_info): Do not sream call_with_var_arguments.
4841         (ipa_read_node_info): Likewise.
4842
4843 2011-06-11  Jan Hubicka  <jh@suse.cz>
4844
4845         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4846
4847 2011-06-11  Jan Hubicka  <jh@suse.cz>
4848
4849         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4850         (lto_symtab_resolve_can_prevail_p): Likewise.
4851         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4852         * cgraph.c (same_body_aliases_done): New global var.
4853         (cgraph_same_body_alias_1): Rename to ...
4854         (cgraph_create_function_alias): ... this one; reorg to new
4855         representation.
4856         (cgraph_same_body_alias): Use cgraph_create_function_alias;
4857         record references when asked to.
4858         (cgraph_add_thunk): Fix formating.
4859         (cgraph_get_node): Kill same body alias code.
4860         (cgraph_node_for_asm): Likewise.
4861         (cgraph_remove_same_body_alias): Remove.
4862         (cgraph_remove_node): Kill same body alias code.
4863         (cgraph_mark_address_taken_node): Mark also the aliased function
4864         as having address taken.
4865         (dump_cgraph_node): Dump same body aliases.
4866         (cgraph_for_node_thunks_and_aliases): Update for new alias
4867         representation.
4868         (cgraph_for_node_and_aliases): Likewise.
4869         * cgraph.h (same_body): Kll pointer.
4870         (same_body_alias): Update comment.
4871         (same_body_aliases_done): Declare.
4872         (cgraph_remove_same_body_alias): Remove declaration.
4873         (cgraph_create_function_alias): Declare.
4874         (cgraph_process_same_body_aliases): Declare.
4875         (cgraph_function_with_gimple_body_p): Check for alias.
4876         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
4877         (cgraph_alias_aliased_node): New function.
4878         (cgraph_function_node): Update for new aliases.
4879         (cgraph_function_or_thunk_node): Likewise.
4880         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
4881         (inline_call): Remove dead aliases.
4882         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
4883         name hack for same body aliases.
4884         (clone_of_p): Look through aliases.
4885         (verify_cgraph_node): Verify aliases.
4886         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
4887         (cgraph_process_same_body_aliases): New function.
4888         (process_function_and_variable_attributes): Disable weakref warning on
4889         alias.
4890         (cgraph_analyze_functions): Handle aliases.
4891         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
4892         (assemble_thunks): Rename to ...
4893         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
4894         (cgraph_expand_function): Remove alias output code.
4895         (cgraph_output_in_order): Skip aliases.
4896         (cgraph_preserve_function_body_p): Aliases don't need preserving.
4897         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
4898         (ipa_record_reference): Do not assert on alias references.
4899         (ipa_ref_has_aliases_p): New function.
4900         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
4901         (ipa_ref_has_aliases_p): Declare.
4902         * lto-cgraph.c (lto_output_node): Handle aliases.
4903         (input_node): Likewise.
4904         * lto-streamer-out.c (lto_output): Skip aliases.
4905         (produce_symtab): Kill same_body_alias code.
4906         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
4907         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
4908         * ipa-inline.c (update_caller_keys): Walk aliases.
4909         (inline_small_functions): Fix thinko in previous patch.
4910         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
4911         (function_and_variable_visibility): Do not walk same body aliases.
4912         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
4913         (ipa_pta_execute): Use it.
4914
4915 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
4916
4917         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
4918         (*vec_dupv2df): Rename from vec_dupv2df.
4919         (vec_dupv2df): New expander.
4920
4921 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
4922
4923         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
4924
4925 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
4926
4927         * config/i386/i386.md: Use default value in "isa" attribute.
4928         * config/i386/sse.md: Ditto.
4929         * config/i386/mmx.md: Ditto.
4930
4931 2011-06-10  Wei Guozhi  <carrot@google.com>
4932
4933         PR target/45335
4934         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4935         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4936         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4937         related peephole2.
4938         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4939         related peephole2.
4940         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4941         (arm_legitimate_ldrd_p): New prototype.
4942         (arm_output_ldrd): New prototype.
4943         * config/arm/arm.c (arm_check_ldrd_operands): New function.
4944         (arm_legitimate_ldrd_p): New function.
4945         (arm_output_ldrd): New function.
4946
4947 2011-06-10  David Li  <davidxl@google.com>
4948
4949         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4950         * passes.c (passr_eq): New function.
4951         (create_pass_tab): New function.
4952         (pass_traverse): New function.
4953         (dump_one_pass): New function.
4954         (dump_pass_list): New function.
4955         (dump_passes): New function.
4956
4957 2011-06-10  Jan Hubicka  <jh@suse.cz>
4958
4959         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
4960         setting the nothrow flag.
4961         * ipa-reference.c (propagate): Skip aliases.
4962         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
4963         (propagate_nothrow): Skip aliases; do not update cgraph.
4964         (local_pure_const): Do not update cgraph.
4965         * tree-profile.c (tree_profiling): Do fixup_cfg.
4966
4967 2011-06-10  Jan Hubicka  <jh@suse.cz>
4968
4969         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
4970         (cgraph_local_node_p): ... here; handle aliases.
4971         (has_addr_references_p): Break out from ...;
4972         (cgraph_remove_unreachable_nodes) ... here.
4973
4974 2011-06-10  Jan Hubicka  <jh@suse.cz>
4975
4976         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
4977         * common.opt (flag_inline_functions_called_once): Do not
4978         initialize to 1.
4979
4980 2011-06-10  Jan Hubicka  <jh@suse.cz>
4981
4982         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
4983         (ipcp_initialize_node_lattices): Do not deal with aliases;
4984         Do not try to propagate through thunks.
4985         (ipcp_change_tops_to_bottom): Do not deal with aliases.
4986
4987 2011-06-10  Jan Hubicka  <jh@suse.cz>
4988
4989         * ipa-prop.c (ipa_write_node_info): Stream jump functions
4990         for indirect calls.
4991         (ipa_read_node_info): Likewise.
4992
4993 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4994
4995         PR lto/49302
4996         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
4997         (build_and_insert_call): Likewise.
4998         (build_and_insert_ref): New.
4999         (gimple_expand_builtin_pow): Minor cleanup.
5000         (gimple_expand_builtin_cabs): New.
5001         (execute_cse_sincos): Add case for BUILT_IN_CABS.
5002
5003 2011-06-10  Jan Hubicka  <jh@suse.cz>
5004
5005         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5006         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5007         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5008         (ipcp_propagate_stage): Skip aliases when propagating.
5009         (ipcp_need_redirect_p): Skip aliases.
5010         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5011         collect_callers_of_node.
5012         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5013         for aliases.
5014         (ipa_compute_jump_functions): Look through aliases.
5015
5016 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5017
5018         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5019
5020 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5021
5022         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5023         Adjust comments.
5024         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5025
5026 2011-06-10  Jan Hubicka  <jh@suse.cz>
5027
5028         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5029         Update call of gimple_get_virt_method_for_binfo.
5030         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5031         refuse_thunks parameter.
5032         (gimple_fold_call): Update.
5033         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5034
5035 2011-06-10  Jan Hubicka  <jh@suse.cz>
5036
5037         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5038         (not_all_callers_have_enough_arguments_p): ... this one; turn into
5039         worker for cgraph_for_node_and_aliases.
5040         (convert_callers_for_node): Break out from ...
5041         (convert_callers): ... here.
5042         (modify_function): Use collect_callers_of_node.
5043         (ipa_early_sra): Use cgraph_for_node_and_aliases.
5044
5045 2011-06-10  Richard Guenther  <rguenther@suse.de>
5046
5047         PR tree-optimization/49361
5048         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5049         when not already in gimple form.
5050
5051 2011-06-10  Richard Guenther  <rguenther@suse.de>
5052
5053         PR bootstrap/49344
5054         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5055         FOR_EACH_PHI_OR_STMT_USE.
5056
5057 2011-06-10  Jan Hubicka  <jh@suse.cz>
5058
5059         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5060         (clone_inlined_nodes): ... here.
5061         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5062         to real destination prior inlining.
5063         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5064         can_early_inline_edge_p, want_early_inline_function_p,
5065         want_early_inline_function_p, want_inline_small_function_p,
5066         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5067         edge_badness, update_all_callee_keys, lookup_recursive_calls,
5068         add_new_edges_to_heap, inline_small_functions, flatten_function,
5069         inline_always_inline_functions, early_inline_small_functions): Use
5070         cgraph_function_or_thunk_node.
5071         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5072         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5073         (do_estimate_edge_growth_1): Break out from ...
5074         (do_estimate_growth) ... here; walk aliases.
5075         (inline_generate_summary): Skip aliases.
5076
5077 2011-06-10  Richard Guenther  <rguenther@suse.de>
5078
5079         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5080         forward when combining, visit inserted stmts when a stmt was changed.
5081
5082 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
5083
5084         * tree.h (error_operand_p): Add.
5085         * dbxout.c (dbxout_type_fields): Use the latter.
5086         * c-decl.c (add_stmt): Likewise.
5087         * gimplify.c (omp_add_variable, omp_notice_variable,
5088         gimplify_scan_omp_clauses): Likewise.
5089
5090 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
5091
5092         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5093         when a value is actually passed in regs.
5094
5095 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5096             Laurent Rougé  <laurent.rouge@menta.fr>
5097
5098         * doc/invoke.texi (SPARC options): Add -mflat.
5099         * config/sparc/sparc.opt: Likewise.
5100         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5101         (sparc_flat_expand_prologue): Declare.
5102         (sparc_flat_expand_epilogue): Likewise.
5103         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5104         (CPP_ENDIAN_SPEC): Replace with...
5105         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
5106         (CPP_SPEC): Adjust to above change.
5107         (EXTRA_SPECS): Likewise.
5108         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5109         (INCOMING_REGNO): Likewise.
5110         (OUTGOING_REGNO): Likewise.
5111         (LOCAL_REGNO): Likewise.
5112         (SETUP_FRAME_ADDRESSES): Likewise.
5113         (FIXED_REGISTERS): Set 0 for %fp.
5114         (CALL_USED_REGISTERS): Likewise.
5115         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5116         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5117         (RETURN_ADDR_REGNUM): Define.
5118         (RETURN_ADDR_RTX): Use it.
5119         (INCOMING_RETURN_ADDR_REGNUM): Define.
5120         (INCOMING_RETURN_ADDR_RTX): Use it.
5121         (DWARF_FRAME_RETURN_COLUMN): Likewise.
5122         (EH_RETURN_REGNUM): Define.
5123         (EH_RETURN_STACKADJ_RTX): Use it.
5124         (EH_RETURN_HANDLER_RTX): Delete.
5125         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5126         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5127         Delete.
5128         (struct machine_function): Add frame_size, apparent_frame_size,
5129         frame_base_reg, frame_base_offset, n_global_fp_regs and
5130         save_local_in_regs_p fields.
5131         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5132         sparc_frame_base_offset, sparc_n_global_fp_regs,
5133         sparc_save_local_in_regs_p): New macros.
5134         (sparc_option_override): Error out if -fcall-saved-REG is specified
5135         for Out registers.
5136         (eligible_for_restore_insn): Fix formatting.
5137         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
5138         (eligible_for_sibcall_delay): Likewise.
5139         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5140         (sparc_legitimate_address_p): Adjust to above change.
5141         (save_global_or_fp_reg_p): New predicate.
5142         (return_addr_reg_needed_p): Likewise.
5143         (save_local_or_in_reg_p): Likewise.
5144         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
5145         (SORR_SAVE, SORR_RESTORE): Delete.
5146         (sorr_pred_t): New typedef.
5147         (sorr_act_t): New enum.
5148         (save_or_restore_regs): Rename to...
5149         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
5150         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5151         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
5152         mechanism.  Add CFI information for double-word saves in 32-bit mode.
5153         (emit_adjust_base_to_offset): New function extracted from...
5154         (emit_save_or_restore_regs): ...this.  Rename the rest to...
5155         (emit_save_or_restore_regs_global_fp_regs): ...this.
5156         (emit_save_or_restore_regs_local_in_regs): New function.
5157         (gen_create_flat_frame_[123]): New functions.
5158         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
5159         (sparc_flat_expand_prologue): New function.
5160         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5161         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
5162         (sparc_flat_expand_epilogue): New function.
5163         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5164         (output_return): Likewise.
5165         (output_sibcall): Likewise.
5166         (sparc_output_mi_thunk): Likewise.
5167         (sparc_frame_pointer_required): Likewise.
5168         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5169         function optimization.
5170         * config/sparc/sparc.md (flat): New attribute.
5171         (prologue): Add TARGET_FLAT handling.
5172         (save_register_window): Disable if TARGET_FLAT.
5173         (create_flat_frame_[123]): New patterns.
5174         (epilogue): Add TARGET_FLAT handling.
5175         (sibcall_epilogue): Likewise.
5176         (eh_return): New expander.
5177         (eh_return_internal): New insn and splitter.
5178         (return_internal): Add TARGET_FLAT handling.
5179         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5180         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5181         (nonlocal_goto): Add TARGET_FLAT handling.
5182         * config/sparc/t-elf: Add -mflat multilib.
5183         * config/sparc/t-leon: Likewise.
5184
5185 2011-06-10  Jan Hubicka  <jh@suse.cz>
5186
5187         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5188         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5189         (self_recursive_p): Use cgraph_function_node.
5190         (propagate_pure_const): Likewise.
5191         (propagate_nothrow): Likewise.
5192         * ipa-reference.c (ipa_reference_get_not_read_global): Use
5193         cgraph_function_node.
5194         (propagate_bits): Likewise.
5195         (propagate): Likewise.
5196
5197 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5198             Richard Earnshaw  <rearnsha@arm.com>
5199
5200         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5201         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5202         (*thumb2_movdi_vfp): Delete.
5203         (*arm_movdi_vfp_cortexa8): Delete.
5204         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5205         (*movdi_vfp_cortexa8): Likewise.
5206
5207 2011-06-10  Richard Guenther  <rguenther@suse.de>
5208
5209         * stor-layout.c (initialize_sizetypes): Give names to all
5210         sizetype kinds.
5211
5212 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
5213
5214         PR tree-optimization/49318
5215         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5216         irrelevant pattern statements.
5217
5218 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5219
5220         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5221
5222         PR bootstrap/49354
5223         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5224         to last assignment.
5225
5226 2011-06-09  Jan Hubicka  <jh@suse.cz>
5227
5228         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5229         do not recompute reachable flag.
5230         (cgraph_finalize_function, cgraph_analyze_functions): Set
5231         redefined_extern_inline here.
5232
5233 2011-06-09  Jan Hubicka  <jh@suse.cz>
5234
5235         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5236         (cgraph_only_called_directly_p): ... this one; bring offline.
5237         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5238         varpool_used_from_object_file_p): Drop names from the declaratoin.
5239         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5240         collect_callers_of_node): New.
5241         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5242         (cgraph_edge_recursive_p): Use cgraph_function_node.
5243         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5244         (cgraph_node_cannot_be_local_p_1): Break out from ...
5245         (cgraph_node_can_be_local_p): ... here; walk aliases.
5246         (cgraph_for_node_thunks_and_aliases): New function.
5247         (cgraph_for_node_and_aliases): New function.
5248         (cgraph_make_node_local_1): Break out from ...
5249         (cgraph_make_node_local) ... here; use
5250         cgraph_for_node_thunks_and_aliases.
5251         (cgraph_set_nothrow_flag_1): Break out from ...
5252         (cgraph_set_nothrow_flag) ... here;
5253         use cgraph_for_node_thunks_and_aliases.
5254         (cgraph_set_const_flag_1): Break out from ...
5255         (cgraph_set_const_flag) ... here;
5256         use cgraph_for_node_thunks_and_aliases.
5257         (cgraph_set_pure_flag_1): Break out from ...
5258         (cgraph_set_pure_flag) ... here;
5259         use cgraph_for_node_thunks_and_aliases.
5260         (cgraph_propagate_frequency_1): Break out from ...
5261         (cgraph_propagate_frequency) ... here; use
5262         cgraph_for_node_thunks_and_aliases.
5263         (cgraph_used_from_object_file_p): Do not care about aliases.
5264         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5265         New functions.
5266         (collect_callers_of_node_1, collect_callers_of_node): New functions.
5267
5268 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5269
5270         PR rtl-optimization/49154
5271         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5272         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5273         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5274         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5275         * config/cris/cris.h (cris_register_move_cost): Remove
5276         !TARGET_V32 code.  Tweak comments.
5277
5278 2011-06-09  Jan Hubicka  <jh@suse.cz>
5279
5280         * cgraphbuild.c (record_eh_tables): Mark personality function as having
5281         address taken.
5282
5283 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5284
5285         PR rtl-optimization/49154
5286         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5287         is a matching slot in the hashtable, assign it to classes_ptr.
5288
5289         PR rtl-optimization/49154
5290         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5291         register classes.
5292         * doc/tm.texi: Regenerate.
5293
5294 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5295
5296         PR target/49307
5297         * config/sh/sh.md (UNSPEC_CHKADD): New.
5298         (chk_guard_add): New define_insn_and_split.
5299         (symGOT_load): Use chk_guard_add instead of blockage.
5300
5301 2011-06-09  Kai Tietz  <ktietz@redhat.com>
5302
5303         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5304
5305 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5306
5307         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5308
5309 2011-06-09  Wei Guozhi  <carrot@google.com>
5310
5311         PR target/46975
5312         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5313         (peephole2 for conditional move): Generate 16 bit instructions.
5314
5315 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
5316
5317         * config/i386/i386.md (*movdi_internal_rex64): Merge
5318         alternatives 6 and 8.
5319
5320 2011-06-09  David Li  <davidxl@google.com>
5321
5322         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5323         * passes.c (passr_eq): New function.
5324         (create_pass_tab): New function.
5325         (pass_traverse): New function.
5326         (dump_one_pass): New function.
5327         (dump_pass_list): New function.
5328         (dump_passes): New function.
5329
5330 2011-06-09  David Li  <davidxl@google.com>
5331
5332         * tree-complex.c (tree_lower_complex): Gate cleanup.
5333         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5334         (execute_optimize_stdarg): Ditto.
5335         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5336         (execute_cleanup_eh_1): Ditto.
5337         (execute_cleanup_eh): Ditto.
5338         * gcse.c (gate_rtl_pre): Ditto.
5339         (execute_rtl_pre): Ditto.
5340         * except.c (finish_eh_generation): Ditto.
5341         (convert_to_eh_region_ranges): Ditto.
5342         * cprop.c (one_cprop_pass): Ditto.
5343
5344 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5345
5346         PR target/48673
5347         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5348         in all basic blocks.
5349
5350 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5351
5352         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5353         (HAVE_ENABLE_EXECUTE_STACK): Define.
5354         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5355         (HAVE_ENABLE_EXECUTE_STACK): Define.
5356         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5357         (HAVE_ENABLE_EXECUTE_STACK): Define.
5358         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5359         (ENABLE_EXECUTE_STACK): Remove.
5360         (HAVE_ENABLE_EXECUTE_STACK): Define.
5361         [IN_LIBGCC2]: Don't include <windows.h>.
5362         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5363         (HAVE_ENABLE_EXECUTE_STACK): Define.
5364         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5365         (HAVE_ENABLE_EXECUTE_STACK): Define.
5366         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5367         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5368         (HAVE_ENABLE_EXECUTE_STACK): Define.
5369         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5370         (HAVE_ENABLE_EXECUTE_STACK): Define.
5371         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5372         (HAVE_ENABLE_EXECUTE_STACK): Define.
5373         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5374         (HAVE_ENABLE_EXECUTE_STACK): Define.
5375         * config/alpha/alpha.c (alpha_trampoline_init): Test
5376         HAVE_ENABLE_EXECUTE_STACK.
5377         * config/i386/i386.c (ix86_trampoline_init): Likewise.
5378         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5379         (sparc64_initialize_trampoline): Likewise.
5380         * libgcc2.c [L_enable_execute_stack]: Remove.
5381         * system.h (ENABLE_EXECUTE_STACK): Poison.
5382         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5383         * doc/tm.texi: Regenerate.
5384         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5385
5386 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
5387
5388         PR middle-end/49308
5389         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5390         variable.  After resetting and rescanning insn continue with previous
5391         statement.
5392
5393 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5394
5395         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5396         (gcc_cv_ld_hidden): Likewise.
5397         * configure: Regenerate.
5398         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5399         (ix86_stack_protect_fail): Mark unused.
5400         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5401         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5402         [TARGET_MACHO]: Don't define.
5403         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5404         (TARGET_STACK_PROTECT_FAIL): Likewise.
5405         (rs6000_stack_protect_fail): Mark unused.
5406         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5407         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
5408
5409 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5410
5411         * varasm.c (get_section): Print location of other conflict
5412         for section conflicts.
5413
5414 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5415
5416         * config/i386/driver-i386.c (host_detect_local_cpu):
5417         Add model 0x2d Intel CPU.
5418
5419 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5420
5421         * reginfo.c (global_regs_decl): Add.
5422         (globalize_reg): Add decl parameter. Compute location.  Pass location
5423         to warnings and add inform. Store decl in global_regs_decl.
5424         * rtl.h (globalize_reg): Update prototype.
5425         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5426
5427 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
5428
5429         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5430
5431 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5432
5433         PR target/49305
5434         * config/sh/predicates.md (general_movsrc_operand): Check
5435         mode for memory with indexed address for QI and HImode.
5436         (general_movdst_operand): Likewise.
5437
5438 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
5439
5440         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5441
5442 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
5443
5444         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5445         (num_ssa_operands): Likewise.
5446         (op_iter_init_phiuse): Forward-declare.
5447         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5448
5449 2011-06-08  Nick Clifton  <nickc@redhat.com>
5450
5451         * doc/invoke.texi (ARM Options): Update description of
5452         -mthumb-interwork.
5453
5454 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
5455
5456         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5457         unknown Intel family 0x6 CPUs.
5458
5459 2011-06-08  Martin Jambor  <mjambor@suse.cz>
5460
5461         * tree-sra.c (mark_rw_status): Removed.
5462         (analyze_access_subtree): New parameter parent instead of
5463         mark_read and mark_write, propagate from that.
5464
5465 2011-06-08  Julian Brown  <julian@codesourcery.com>
5466
5467         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5468         for double-precision helper functions in hard-float mode if only
5469         single-precision arithmetic is supported in hardware.
5470
5471 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
5472
5473         PR rtl-optimization/49303
5474         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
5475         code_motion_path_driver returned 0 or 1.
5476         (sel_region_finish): Clear h_d_i_d.
5477
5478 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5479
5480         * config/sh/sh.c (prepare_move_operands): Set pic register
5481         appropriately for global and local dynamic tls models even
5482         if flag_pic is unset.
5483
5484 2011-06-07  Jason Merrill  <jason@redhat.com>
5485
5486         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5487
5488 2011-06-07  Xinliang David Li  <davidxl@google.com>
5489         * passes.c (enable_disable_pass): Handle assembler name.
5490         (is_pass_explicitly_enabled_or_disabled): Ditto.
5491
5492 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5493
5494         PR tree-optimization/48497
5495         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5496
5497 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5498
5499         PR tree-optimization/46728
5500         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5501         to use gimple_val_nonnegative_real_p.
5502         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5503         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5504
5505 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
5506
5507         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5508
5509 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
5510
5511         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5512         constant vectors.
5513
5514 2011-06-07  Richard Guenther  <rguenther@suse.de>
5515
5516         * stor-layout.c (initialize_sizetypes): Initialize all
5517         sizetypes based on target definitions.
5518         (set_sizetype): Remove.
5519         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5520         * tree.h (set_sizetype): Remove.
5521
5522 2011-06-07  Nick Clifton  <nickc@redhat.com>
5523
5524         * config.gcc: Unify V850 architecture options and add support for
5525         newer V850 architectures.
5526         * config/v850/t-v850e: Delete.
5527
5528 2011-06-07  Richard Guenther  <rguenther@suse.de>
5529
5530         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5531         Call set_sizetype from here.
5532
5533 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
5534
5535         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5536         (*maddhisi4tb, *maddhisi4tt): New define_insns.
5537
5538 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
5539             Andrew Stubbs  <ams@codesourcery.com>
5540
5541         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5542         multiplies.
5543         * doc/md.texi (Canonicalization of Instructions): Document widening
5544         multiply canonicalization.
5545
5546 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
5547
5548         PR gcov-profile/49299
5549         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5550
5551 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
5552
5553         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5554         a pointer.
5555         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5556         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5557         vect_recog_pow_pattern): Likewise.
5558         (vect_pattern_recog_1): Remove declaration.
5559         (widened_name_p): Remove declaration.  Add new argument to specify
5560         whether to check that both types are either signed or unsigned.
5561         (vect_recog_widen_mult_pattern): Update documentation.  Handle
5562         unsigned patterns and multiplication by constants.
5563         (vect_pattern_recog_1): Update vect_recog_func references.  Use
5564         statement information from the statement returned from pattern
5565         detection functions.
5566         (vect_pattern_recog): Update vect_recog_func reference.
5567         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5568         multiplication by a constant use the type of the other operand.
5569
5570 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
5571
5572         PR rtl-optimization/49145
5573         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5574
5575 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
5576
5577         PR debug/49262
5578         * dwarf2out.c (native_encode_initializer): Decrement count in each
5579         iteration.
5580
5581         PR debug/49294
5582         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5583         non-MODE_INT modes.
5584
5585         PR c++/49264
5586         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5587         if stmt folded into nothing.
5588         * tree-inline.c (fold_marked_statements): If a builtin at the end of
5589         a bb folded into nothing, just update cgraph edges and move to next bb.
5590         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5591         to be NULL.  Don't compute count and frequency if new_call is NULL.
5592
5593 2011-06-04  Diego Novillo  <dnovillo@google.com>
5594
5595         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5596         (cgraph.o): Likewise.
5597         (cgraphunit.o): Likewise.
5598         * cgraphunit.c: Include lto-streamer.h
5599         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5600         if LTO is enabled.
5601         * lto-streamer-in.c (unpack_value_fields): Call
5602         streamer_hooks.unpack_value_fields if set.
5603         (lto_materialize_tree): For unhandled nodes, first try to
5604         call lto_streamer_hooks.alloc_tree, if it exists.
5605         (lto_input_ts_decl_common_tree_pointers): Move reading of
5606         DECL_INITIAL to lto_streamer_read_tree.
5607         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5608         (lto_streamer_read_tree): New.
5609         (lto_reader_init): Rename from lto_init_reader.
5610         Move initialization code to lto/lto.c.
5611         * lto-streamer-out.c (pack_value_fields): Call
5612         streamer_hooks.pack_value_fields if set.
5613         (lto_output_tree_ref): For tree nodes that are not normally indexable,
5614         call streamer_hooks.indexable_with_decls_p before giving up.
5615         (lto_output_ts_decl_common_tree_pointers): Move handling
5616         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5617         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5618         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
5619         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
5620         (lto_streamer_write_tree): New.
5621         (lto_output): Call lto_streamer_init directly.
5622         (lto_writer_init): Remove.
5623         * lto-streamer.c (streamer_hooks): New.
5624         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5625         instead of lto_preload_common_nodes.
5626         (lto_is_streamable): Move from lto-streamer.h
5627         (lto_streamer_hooks_init): New.
5628         (streamer_hooks): New.
5629         (streamer_hooks_init): New.
5630         * lto-streamer.h (struct output_block): Forward declare.
5631         (struct lto_input_block): Likewise.
5632         (struct data_in): Likewise.
5633         (struct bitpack_d): Likewise.
5634         (struct streamer_hooks): Declare.
5635         (streamer_hooks): Declare.
5636         (lto_streamer_hooks_init): Declare.
5637         (lto_streamer_write_tree): Declare.
5638         (lto_streamer_read_tree): Declare.
5639         (streamer_hooks_init): Declare.
5640         (lto_is_streamable): Move to lto-streamer.c
5641
5642 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5643
5644         * longlong.h (smul_ppmm): The resulting register pair contains the
5645         higher order word first.
5646
5647 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5648
5649         PR tree-optimization/46728
5650         * builtins.c (powi_table): Remove.
5651         (powi_lookup_cost): Remove.
5652         (powi_cost): Remove.
5653         (expand_powi_1): Remove.
5654         (expand_powi): Remove.
5655         (expand_builtin_pow_root): Remove.
5656         (expand_builtin_pow): Remove.
5657         (expand_builtin_powi): Eliminate handling of constant exponent.
5658         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
5659
5660 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5661
5662         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5663
5664 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5665
5666         * dce.c (reset_unmarked_insns_debug_uses): New.
5667         (delete_unmarked_insns): Skip debug insns.
5668         (prescan_insns_for_dce): Likewise.
5669         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5670         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5671         active reg can be found.
5672         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
5673         (convert_regs_1): Use it.
5674
5675 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5676
5677         * tree-pretty-print.c (dump_function_header): Add flags.
5678         Don't dump decl_uid with nouid.
5679         * tree-pretty-print.h (dump_function_header): Adjust.
5680         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5681         * passes.c (pass_init_dump_file): Pass dump_flags on.
5682         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5683
5684 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
5685
5686         PR bootstrap/49270
5687         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5688
5689 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
5690
5691         PR tree-optimization/49243
5692         * calls.c (setjmp_call_p): Also check if fndecl has the
5693         returns_twice attribute.
5694
5695 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5696
5697         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5698         -ffast-math etc.
5699
5700 2011-06-06  Richard Henderson  <rth@redhat.com>
5701             Georg-Johann Lay  <avr@gjlay.de>
5702
5703         PR target/42210
5704         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5705         New predicates.
5706         * config/avr/avr.md ("insv"): New insn expander.
5707         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5708         "*insv.not.io", "*insv.reg"): New insns.
5709
5710 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
5711
5712         PR target/49285
5713         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5714         to nonimmediate_operand from memory_operand for the operand that is to
5715         be forced to memory by the expander.  Lose the constraints.
5716
5717 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5718
5719         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5720         EH return when delayed branches are disabled.
5721
5722 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
5723
5724         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5725         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
5726         calculation.
5727         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5728         Simplify MODE_V1DF and MODE_V2SF handling.
5729         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5730         Simplify MODE_SF handling.
5731
5732 2011-06-04  Jan Hubicka  <jh@suse.cz>
5733
5734         PR tree-optimization/48893
5735         PR tree-optimization/49091
5736         PR tree-optimization/49179
5737         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5738         Bounds check.
5739
5740 2011-06-04  Jan Hubicka  <jh@suse.cz>
5741
5742         PR lto/48954
5743         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5744         bitmaps.
5745
5746 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
5747
5748         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5749
5750 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
5751
5752         PR target/49281
5753         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5754         to be strictly smaller than 1 << shiftcount.
5755
5756 2011-06-04  Jan Hubicka  <jh@suse.cz>
5757
5758         PR tree-optimize/48929
5759         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5760         of empty predicate.
5761
5762 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
5763
5764         PR debug/48333
5765         * calls.c (emit_call_1): Prefer the __builtin declaration of
5766         builtin functions.
5767
5768 2011-06-03   Diego Novillo  <dnovillo@google.com>
5769
5770         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5771         (lto_input_tree_pointers): Likewise.
5772         * lto-streamer-out.c (pack_value_fields): Likewise.
5773         (lto_output_tree_pointers): Likewise.
5774         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5775         and OPTIMIZATION_NODE.
5776
5777 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5778
5779         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5780         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5781         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5782         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5783         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5784         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5785         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5786         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5787         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5788         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5789         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5790         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5791         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5792         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5793         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5794         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5795         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5796         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5797         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5798         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5799         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5800         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5801         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5802         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5803         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5804         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5805         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5806         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5807         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5808         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5809         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5810         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5811         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5812         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5813         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5814         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5815         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5816         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5817         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5818         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5819         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5820         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5821         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5822         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5823         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5824         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5825         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5826         * system.h (MD_UNWIND_SUPPORT): Poison.
5827         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5828         * doc/tm.texi: Regenerate.
5829         * unwind-dw2.c: Include md-unwind-support.h instead of
5830         MD_UNWIND_SUPPORT.
5831         * config/ia64/unwind-ia64.c: Likewise.
5832         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5833
5834 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
5835
5836         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5837
5838 2011-06-03  Richard Henderson  <rth@redhat.com>
5839             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5840
5841         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5842         (sigill_hdlr): Correct insn, insn size.
5843         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5844
5845 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5846
5847         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5848         t-slibgcc-dummy.
5849         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5850         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5851         * config/mips/t-iris: Remove.
5852         * config/mips/t-irix6: New file.
5853         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5854
5855 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5856
5857         * Makefile.in (LIB2ADDEHDEP): Remove.
5858         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5859         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5860         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5861         * config/t-darwin (LIB2ADDEHDEP): Remove.
5862         * config/t-freebsd (LIB2ADDEHDEP): Remove.
5863         * config/t-linux (LIB2ADDEHDEP): Remove.
5864
5865 2011-06-03  Diego Novillo  <dnovillo@google.com>
5866
5867         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5868         (lto_register_var_decl_in_symtab): Likewise.
5869         (lto_register_function_decl_in_symtab): Likewise.
5870         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
5871         logic to uniquify_nodes.
5872
5873 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5874
5875         * config/alpha/t-osf5: Remove.
5876         * config/alpha/t-osf-pthread: Remove.
5877         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
5878         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
5879
5880 2011-06-03  Julian Brown  <julian@codesourcery.com>
5881
5882         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
5883         (strongarm1110): Use strongarm tuning.
5884         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
5885         * config/arm/arm.c (arm_strongarm_tune): New.
5886         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5887         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
5888         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
5889         setting, using previous defaults or 1 for Cortex-A5.
5890         (arm_option_override): Set max_insns_skipped from current tuning.
5891
5892 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
5893
5894         * doc/install.texi (Options specification): Document --with-specs.
5895
5896 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5897
5898         * config/arm/neon.md (orndi3_neon): Actually split it.
5899
5900 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
5901
5902         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
5903         * var-tracking.c (reverse_op): Limite recurse depth to 5.
5904
5905 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
5906
5907         PR debug/47590
5908         * target.def (delay_sched2, delay_vartrack): New.
5909         * doc/tm.texi.in: Update.
5910         * doc/tm.texi: Rebuild.
5911         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
5912         * var-tracking.c (gate_handle_var_tracking): Likewise.
5913         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
5914         (bfin_flag_var_tracking): Drop.
5915         (output_file_start): Don't save and override flag_var_tracking.
5916         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
5917         (bfin_reorg): Test original variables.
5918         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5919         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
5920         (ia64_flag_var_tracking): Drop.
5921         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5922         (ia64_file_start): Don't save and override flag_var_tracking.
5923         (ia64_override_options_after_change): Ditto
5924         flag_schedule_insns_after_reload.
5925         (ia64_reorg): Test original variables.
5926         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
5927         (picochip_flag_var_tracking): Drop.
5928         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5929         (picochip_option_override): Don't save and override
5930         flag_schedule_insns_after_reload.
5931         (picochip_asm_file_start): Ditto flag_var_tracking.
5932         (picochip_reorg): Test original variables.
5933         * config/spu/spu.c (spu_flag_var_tracking): Drop.
5934         (TARGET_DELAY_VARTRACK): Define.
5935         (spu_var_tracking): New.
5936         (spu_machine_dependent_reorg): Call it.
5937         (asm_file_start): Don't save and override flag_var_tracking.
5938
5939 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5940
5941         PR target/49163
5942         * config/sh/predicates.md (general_movsrc_operand): Return 0
5943         for memory and memory subreg of which address is an invalid
5944         indexed address for QI and HImode.
5945         (general_movdst_operand): Likewise.
5946
5947 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
5948
5949         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
5950         edges only, when there is a non-local label in the function.
5951         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
5952
5953 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
5954
5955         * config/i386/constraints.md (Y3): New register constraint.
5956         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
5957         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
5958         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
5959         *sse2_interleave_lowv2df.
5960
5961 2011-06-02  Julian Brown  <julian@codesourcery.com>
5962
5963         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
5964         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
5965         (arm_cortex_a5_tune): New.
5966
5967 2011-06-02  Julian Brown  <julian@codesourcery.com>
5968
5969         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
5970         * config/arm/arm.c (arm_default_branch_cost): New.
5971         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5972         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
5973         (arm_fa726_tune): Set branch_cost field using
5974         arm_default_branch_cost.
5975         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
5976         current_tune structure.
5977         * dojump.c (tm_p.h): Include file.
5978
5979 2011-06-02  Julian Brown  <julian@codesourcery.com>
5980
5981         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
5982         tuning.
5983         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5984         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
5985         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
5986         field.
5987         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
5988         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
5989         (arm_fa726te_tune): Add prefer_constant_pool setting.
5990         (arm_v6t2_tune, arm_cortex_tune): New.
5991         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
5992         prefer_constant_pool setting.
5993
5994 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
5995
5996         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
5997         switch statement.
5998         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
5999         (*movdf_internal) <case 6,7,8>: Ditto.
6000
6001         * config/i386/constraints.md (Y4): New register constraint.
6002         * config/i386/sse.md (vec_set<mode>_0): Merge with
6003         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6004         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6005         *vec_extractv2di_1_sse.
6006         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6007         and *vec_concatv2di_rex64_sse.
6008
6009 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
6010
6011         PR target/48807
6012         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6013         of cgraph_local_info for null before attempting to use it.
6014
6015 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6016
6017         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6018         (current_function_dynamic_alloc_count): Delete.
6019         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6020         (expand_builtin_nonlocal_goto): Remove obsolete comment.
6021         (expand_builtin_update_setjmp_buf): Remove dead code.
6022         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6023         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6024         support.
6025         * function.c (instantiate_virtual_regs): Likewise.
6026         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6027         for a block with a single abnormal incoming edge.
6028         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
6029         (SETJMP_VIA_SAVE_AREA): Delete.
6030         * config/sparc/sparc-protos.h (load_got_register): Declare.
6031         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6032         (load_got_register): Make global.
6033         (sparc_frame_pointer_required): Add 'static'.
6034         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
6035         (sparc_builtin_setjmp_frame_value): New function.
6036         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6037         (save_stack_nonlocal): New expander.
6038         (restore_stack_nonlocal): Likewise.
6039         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6040         (nonlocal_goto_internal): New insn.
6041         (goto_handler_and_restore): Delete.
6042         (builtin_setjmp_setup): Likewise.
6043         (do_builtin_setjmp_setup): Likewise.
6044         (setjmp): Likewise.
6045         (builtin_setjmp_receiver): New expander.
6046
6047 2011-06-01  David Li  <davidxl@google.com>
6048
6049         PR middle-end/49261
6050         * tree-pretty-print.c (dump_function_header): Format cleanup.
6051
6052 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
6053
6054         PR target/49238
6055         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6056         needed when original operands are used for msw_skip comparison.
6057
6058 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6059
6060         PR debug/49250
6061         * var-tracking.c (add_uses, add_stores): Don't call
6062         cselib_subst_to_values on ENTRY_VALUE.
6063
6064 2011-06-01  Diego Novillo  <dnovillo@google.com>
6065
6066         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6067         output_record_start with LTO_null instead of output_zero.
6068         (lto_output_ts_binfo_tree_pointers): Likewise.
6069         (lto_output_tree): Likewise.
6070         (output_eh_try_list): Likewise.
6071         (output_eh_region): Likewise.
6072         (output_eh_lp): Likewise.
6073         (output_eh_regions): Likewise.
6074         (output_bb): Likewise.
6075         (output_function): Likewise.
6076         (output_unreferenced_globals): Likewise.
6077         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6078         instead of NUM_TREE_CODES.
6079         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6080         (lto_output_int_in_range): Change << to >> when shifting VAL.
6081
6082 2011-06-01  Diego Novillo  <dnovillo@google.com>
6083
6084         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6085         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6086
6087 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6088
6089         PR target/45074
6090         * optabs.h (valid_multiword_target_p): Declare.
6091         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6092         doing multi-word operations.
6093         * optabs.c (expand_binop): Likewise.
6094         (expand_doubleword_bswap): Likewise.
6095         (expand_absneg_bit): Likewise.
6096         (expand_unop): Likewise.
6097         (expand_copysign_bit): Likewise.
6098         (multiword_target_p): New function.
6099
6100 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6101
6102         PR rtl-optimization/48830
6103         PR rtl-optimization/48808
6104         PR rtl-optimization/48792
6105         * reload.c (push_reload): Check contains_reg_of_mode.
6106         * reload1.c (strip_paradoxical_subreg): New function.
6107         (gen_reload_chain_without_interm_reg_p): Use it to handle
6108         paradoxical subregs.
6109         (emit_output_reload_insns, gen_reload): Likewise.
6110
6111 2011-06-01  David Li  <davidxl@google.com>
6112
6113         * predict.c : Change pass name
6114         * ipa.c: Ditto.
6115         * dce.c: Ditto.
6116         * tree-profile.c: Ditto.
6117         * except.c: Ditto.
6118
6119 2011-06-01  David Li  <davidxl@google.com>
6120
6121         * tree-pretty-print.c (dump_function_header): New function.
6122         * final.c (rest_of_clean_state): Use header dumper.
6123         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6124         * passes.c (pass_init_dump_file): Use header dumper.
6125
6126 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6127
6128         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6129         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6130         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6131         New functions.
6132         (mem_loc_descriptor): Use them.
6133
6134         * var-tracking.c (create_entry_value): New function.
6135         (vt_add_function_parameter): Use it.
6136
6137 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6138
6139         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6140         Include <signal.h>, <ucontext.h>.
6141         (sigill_caught): Define.
6142         (sigill_hdlr): New function.
6143         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6144         insns can be executed.
6145         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6146         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6147
6148 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6149
6150         * config/t-slibgcc-darwin: Move to ...
6151         * config/t-slibgcc-dummy: ... this.  Clarify comments.
6152         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6153         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6154         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6155         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
6156         Remove i386/t-crtstuff from tmake_file.
6157         (i[34567]86-*-solaris2*): Remove t-svr4,
6158         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6159         t-slibgcc-dummy.
6160         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6161         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6162         sparc/t-crtfm from tmake_file.
6163         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6164         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6165         Remove extra_parts.
6166         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6167         * config/i386/t-nwld (SHLIB_LINK): Remove.
6168         * config/i386/t-rtems-i386: Rename to ...
6169         * config/i386/t-rtems: ... this.
6170         ($(T)crti.o, $(T)crtn.o): Remove.
6171         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6172         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6173         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6174         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6175         EXTRA_MULTILIB_PARTS): Remove.
6176         * config/sparc/t-sol2-64: Likewise.
6177         * config/sparc/t-sol2: Remove.
6178         * config/sparc/t-crtin: Remove.
6179         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6180         * config/i386/gmon-sol2.c: Remove.
6181         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6182         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6183         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6184         * config/i386/sol2-gc1.asm: Remove.
6185         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6186         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6187         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6188         * config/t-slibgcc-sld: Remove.
6189
6190 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6191
6192         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6193         base_type_for_mode with op_mode instead of mode.
6194
6195 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
6196
6197         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
6198         Cortex-A15.
6199         * config/arm/arm-tune.md: Regenerate.
6200         * config/arm/arm-tables.opt: Regenerate.
6201         * config/arm/arm.c (FL_DIV): Rename...
6202         (FL_THUMB_DIV): ... to this.
6203         (FL_ARM_DIV): Define.
6204         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6205         (arm_arch_hwdiv): Remove.
6206         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6207         (arm_issue_rate): Add cortexr5.
6208         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6209         __ARM_ARCH_EXT_IDIV__.
6210         (TARGET_IDIV): Define.
6211         (arm_arch_hwdiv): Remove.
6212         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6213         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6214         (divsi3, udivsi3): New patterns.
6215         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6216         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6217
6218 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6219
6220         * ipa-utils.c (ipa_dfs_info): New field scc_no.
6221         * ipa-utils.c (searchc): Set scc_no.
6222
6223 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6224
6225         * ipa-utils.c (searchc_env): New field allow_overwritable.
6226         (searchc): do not ignore edges to overwritable nodes if indicated
6227         by env->allow_overwritable.
6228         (ipa_reduced_postorder): Set env.allow_overwritable.
6229
6230 2011-06-01  Richard Guenther  <rguenther@suse.de>
6231
6232         * tree.c (free_lang_data): Do not reset boolean_type_node nor
6233         char_type_node.
6234         * lto-streamer.c (lto_record_common_node): Take node pointer,
6235         do not register types.
6236         (lto_preload_common_nodes): Explicitly skip preloading nodes
6237         that differ between frontends.
6238
6239 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6240
6241         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6242         NON_FLOAT_REGS.
6243
6244 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6245
6246         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6247         parameter value for dump. Dump cost on outermost call only.
6248         (rs6000_memory_move_cost): Dump cost on outermost call only.
6249
6250 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6251
6252         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6253         DW_OP_GNU_convert ops.
6254
6255         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6256         cselib_preserve_constants.
6257         (cselib_lookup_1): If cselib_preserve_constants,
6258         a new VALUE is being created for REG and there is a VALUE for the
6259         same register in wider mode, add another loc with lowpart SUBREG of
6260         the wider VALUE.
6261         (cselib_subst_to_values): Handle ENTRY_VALUE.
6262         * var-tracking.c  (replace_expr_with_values): Return NULL for
6263         ENTRY_VALUE too.
6264         * dwarf2out.c (convert_descriptor_to_signed): New function.
6265         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6266         instead of two shifts.
6267         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6268         the right mode if needed.
6269         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6270         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6271         convert_descriptor_to_signed.
6272         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6273         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6274
6275         PR target/48688
6276         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6277
6278 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6279
6280         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6281         of X87MODEI12 and SWI48x instead of SSEMODEI24.
6282         (SWI248x): New mode iterator, rename from X87MODEI.
6283         (X87MODEI): Remove mode iterator.
6284         (X87MODEI12): Ditto.
6285         (SSEMODEI24): Ditto.
6286
6287 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6288
6289         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6290         * doc/invoke.texi: Document max-vartrack-expr-depth.
6291         * var-tracking.c (EXPR_DEPTH): New.
6292         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6293
6294 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6295
6296         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6297         * config/i386/sse.md: Add n to negated FMA pattern names.
6298
6299 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6300
6301         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6302
6303 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6304
6305         * gengtype-state.c (read_state_params_structs): Initialize previous.
6306
6307 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6308
6309         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6310         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6311
6312 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6313
6314         * config/i386/i386.md (*movtf_internal): Avoid allocating general
6315         registers.  Penalize F*r->o alternative to prevent partial memory
6316         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
6317         CONST_DOUBLE immediates when optimizing function for size.  Do not move
6318         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6319         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6320         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6321         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6322         alternatives.
6323         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6324
6325         (fp_register_operand splitters): Use fp_register_operand
6326         constraint.  Do not use FP_REG_P in insn condition.
6327         (any_fp_register_operand splitters): Use any_fp_register_operand
6328         constraint.  Do not use ANY_FP_REG_P in insn condition.
6329
6330 2011-05-31  Jan Hubicka  <jh@suse.cz>
6331
6332         * cgraph.h (cgraph_inline_failed_t): Give enum a name
6333         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6334         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6335         (lto_output_edge): Use output_enum and var_len_unsigned.
6336         (lto_output_varpool_node): Likewise.
6337         (input_overwrite_node): Do not take resolution parameter;
6338         extract it from a bitpack.
6339         (input_node): Do not read resolution; use input_enum and
6340         var_len_unsigned.
6341         (input_varpool_node): Likewise.
6342         (input_edge): Likewise.
6343         (input_cgraph_1): Likewise.
6344
6345 2011-05-31  Richard Guenther  <rguenther@suse.de>
6346
6347         * gimple.c (gimple_register_canonical_type): Do not register
6348         any types via gimple_register_type.
6349
6350 2011-05-31  Jan Hubicka  <jh@suse.cz>
6351
6352         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6353         of thunks.
6354
6355 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6356
6357         PR rtl-optimization/49235
6358         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6359         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6360
6361 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
6362
6363         PR tree-optimization/49093
6364         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6365         data references.
6366
6367 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
6368
6369         PR debug/49047
6370         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6371         for concrete functions containing the code of cloned functions.
6372
6373 2011-05-31  Richard Guenther  <rguenther@suse.de>
6374
6375         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6376         to ...
6377         (forward_propagate_into_comparison_1): ... this.
6378         (forward_propagate_comparison): Rename to ...
6379         (forward_propagate_into_comparison): ... this.  Split out
6380         real forward propagation code to ...
6381         (forward_propagate_comparison): ... this.
6382         (forward_propagate_into_gimple_cond): Remove looping.
6383         (forward_propagate_into_cond): Likewise.
6384         (simplify_not_neg_expr): Return whether we have done something.
6385         (simplify_gimple_switch): Likewise.
6386         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6387         (ssa_forward_propagate_and_combine): ... this.  Re-structure
6388         to do a forward forward-propagation walk on BBs and a backward
6389         stmt combining walk on BBs.  Consistently re-scan changed statements.
6390         (pass_forwprop): Adjust.
6391
6392 2011-05-30  Ian Lance Taylor  <iant@google.com>
6393
6394         * godump.c (go_format_type): Correct length of name added to
6395         obstack for anonymous field.
6396
6397 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6398
6399         PR target/49186
6400         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6401         part of the second operand is 0.
6402
6403 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
6404
6405         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6406         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
6407         to memory for !TARGET_MEMORY_MISMATCH_STALL.
6408         (*movdf_internal_rex64): Do not penalize F->r alternative.
6409         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6410         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
6411         when optimizing function for size.  Do not move CONST_DOUBLEs
6412         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6413         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
6414         SUBREGs.  Do not check for MEM_P operands in the insn condition,
6415         check for ANY_FP_REGNO_P instead.
6416         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6417         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6418         function for speed.
6419         * config/i386/i386.c (ix86_option_override_internal): Do not
6420         set TARGET_INTEGER_DFMODE_MOVES here.
6421
6422 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6423
6424         PR target/49168
6425         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6426
6427 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
6428
6429         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6430         DW_TAG_rvalue_reference_type even for
6431         -gdwarf-4 -fno-debug-types-section.
6432
6433 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6434
6435         PR tree-optimization/46728
6436         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6437         (build_and_insert_binop): New.
6438         (gimple_expand_builtin_pow): Reorder args for
6439         build_and_insert_call; use build_and_insert_binop; add more
6440         optimizations for fractional exponents.
6441
6442 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
6443
6444         PR bootstrap/49190
6445
6446         Revert:
6447         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6448
6449         * tree.h (struct tree_identifier): Inherit from tree_typed, not
6450         tree_common.
6451         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6452         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6453         TS_BASE instead of TS_COMMON.
6454         * varasm.c (assemble_name): Remove assert.
6455
6456 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
6457
6458         * config.gcc: Keep obselete list sorted.
6459
6460 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
6461             Eric Botcazou  <ebotcazou@adacore.com>
6462
6463         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6464         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6465         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6466         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6467         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6468
6469 2011-05-30  Richard Guenther  <rguenther@suse.de>
6470
6471         * gimple.c (gimple_types_compatible_p_1): Compare record
6472         and union type members properly.
6473
6474 2011-05-30  Richard Guenther  <rguenther@suse.de>
6475
6476         PR tree-optimization/49210
6477         * ipa-split.c (split_function): Care for the case where the call
6478         result is not trivially convertible to the result holding variable.
6479
6480 2011-05-30  Richard Guenther  <rguenther@suse.de>
6481
6482         PR tree-optimization/49218
6483         * tree-vrp.c (adjust_range_with_scev): Properly check whether
6484         overflow occured.
6485
6486 2011-05-30  Richard Guenther  <rguenther@suse.de>
6487
6488         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6489         New function split out from ...
6490         (forward_propagate_into_gimple_cond): ... here.  Adjust.
6491         (forward_propagate_into_cond): Likewise.
6492         (forward_propagate_comparison): Also propagate into
6493         comparisons on assignment RHS.  Change return value to
6494         behave similar to forward_propagate_into_cond.
6495         (tree_ssa_forward_propagate_single_use_vars): Handle
6496         strict-overflow warnings properly for forward_propagate_comparison.
6497
6498 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6499
6500         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6501         from plugin linker.
6502         * configure: Regenerate.
6503
6504 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
6505
6506         PR tree-optimization/49199
6507         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6508         non-reduction operands are either defined in the loop or by induction.
6509
6510 2011-05-29  Xinliang David Li  <davidxl@google.com>
6511
6512         * opts-global.c (handle_common_deferred_options): Handle new options.
6513         * passes.c (register_one_dump_file): Call register_pass_name.
6514         (execute_one_pass): Check explicit enable/disable flag.
6515         (passr_hash): New function.
6516         (passr_eq): Ditto.
6517         (register_pass_name): Ditto.
6518         (get_pass_by_name): Ditto.
6519         (pass_hash): Ditto.
6520         (pass_eq): Ditto.
6521         (enable_pass): Ditto.
6522         (disable_pass): Ditto.
6523         (is_pass_explicitly_enabled_or_disabled): Ditto.
6524
6525 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
6526
6527         * config/i386/i386.md (*movoi_internal_avx): Use
6528         standard_sse_constant_opcode for alternative 0.
6529         (*movti_internal_sse): Ditto.
6530         (*movti_internal_rex64): Use standard_sse_constant_opcode for
6531         alternative 2.
6532         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6533         sselog1 type moves.
6534         (*movsi_internal): Ditto.
6535         (*movdi_internal): Ditto.  Add ssecvt type moves.
6536
6537 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6538
6539         PR target/48830
6540         * rtlanal.c (simplify_subreg_regno): Adjust comment.
6541
6542 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
6543
6544         PR rtl-optimization/49095
6545         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6546         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6547
6548 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
6549
6550         PR target/43995
6551         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6552         recurse_p argument.  Only follow register copies if it is set,
6553         and prevent mips_find_pic_call_symbol from recursing.
6554         (mips_find_pic_call_symbol): Add a recurse_p argument.
6555         Pass it to mips_pic_call_symbol_from_set.
6556         (mips_annotate_pic_calls): Update accordingly.
6557
6558 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
6559
6560         * emit-rtl.c (try_split): Use a loop to search for
6561         NOTE_INSN_CALL_ARG_LOCATIONs.
6562
6563 2011-05-29  Richard Guenther  <rguenther@suse.de>
6564
6565         PR tree-optimization/49217
6566         * ipa-pure-const.c (propagate_pure_const): Fix typos.
6567
6568 2011-05-28  Jan Hubicka  <jh@suse.cz>
6569
6570         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6571         length.
6572         (string_slot_free): Remove
6573         (create_output_block): Initialize obstack.
6574         (destroy_output_block): Free obstack.
6575         (lto_string_index): Add PERSISTENT parameter; do not duplicate
6576         the string unless it needs to be added into the hash.
6577         (lto_output_string_with_length): Add persistent attribute;
6578         handle NULL strings.
6579         (lto_output_string): Add PERSISTENT parameter.
6580         (output_string_cst, output_identifier): Simplify.
6581         (lto_output_location_bitpack): Update.
6582         (lto_output_builtin_tree): Update.
6583         * lto-streamer.h (struct output_block): Add obstack.
6584         (lto_output_string, lto_output_string_with_length): Remove
6585         declarations; functions are static now.
6586
6587 2011-05-28  Jan Hubicka  <jh@suse.cz>
6588
6589         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6590         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6591         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6592         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6593         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6594         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6595         unpack_ts_decl_with_vis_value_fields,
6596         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6597         lto_get_builtin_tree): Use enum and variable length i/o.
6598         * basic-block.h (profile_status_d): Add PROFILE_LAST.
6599         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6600         New functions.
6601         (bp_pack_enum, bp_unpack_enum): New macros.
6602
6603 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6604
6605         * genrecog.c: Remove redundant forward declarations.
6606
6607 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6608
6609         * config.gcc: Deprecate mips*-*-openbsd*.
6610
6611 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6612
6613         PR bootstrap/49195
6614         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6615         for match_op_dup.
6616
6617 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
6618
6619         PR middle-end/48981
6620         * gengtype.c (vec_prefix_type): New function.
6621         (note_def_vec): Use vec_prefix_type and change the length
6622         attribute to be based on the prefix.
6623         * vec.c: Include coretypes.h before vec.h.
6624         (struct vec_prefix): Remove.
6625         (vec_gc_p_reserve): Change the offsetof to sizeof.
6626         (vec_gc_p_reserve_exact): Likewise.
6627         (vec_heap_p_reserve): Likewise.
6628         (vec_heap_p_reserve_exact): Likewise.
6629         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6630         (vec_stack_p_reserve): Change the offsetof to sizeof.
6631         (vec_stack_p_reserve_exact): Likewise.
6632         * vec.h (struct vec_prefix): New struct definition.
6633         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6634         (VEC_T_GTY(T,B)): Likewise.
6635         (DEF_VEC_FUNC_P(T)): Use prefix field.
6636         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6637         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6638
6639 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6640
6641         PR tree-optimization/46728
6642         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6643         (powi_as_mults): Add gimple_set_location.
6644         (build_and_insert_call): New.
6645         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6646         0.5, 0.25, 0.75, 1./3., or 1./6.
6647
6648 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
6649
6650         * doc/contrib.texi: Update copyright years.
6651         (Contributors): Add Zdenek Sojka.
6652
6653 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
6654
6655         * c-decl.c (c_push_function_context): Copy the current statement
6656         list stack.
6657         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6658         (finish_struct): Call building_stmt_list_p instead of checking
6659         cur_stmt_list.
6660         * c-parser.c (c_parser_postfix_expression): Likewise.
6661         * c-typeck.c (c_end_compound_stmt): Likewise.
6662         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6663         * tree-iterator.c (stmt_list_cache): Change to a VEC.
6664         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6665         (free_stmt_list): Likewise.
6666         * tree.h (struct tree_statement_list): Include typed_tree instead
6667         of tree_common.
6668         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6669         as TS_TYPED instead of TS_COMMON.
6670
6671 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6672             Uros Bizjak  <ubizjak@gmail.com>
6673
6674         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6675         (HAVE_AS_IX86_TLSGDPTL): Define.
6676         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6677         (HAVE_AS_IX86_TLSLDMPLT): Define.
6678         * configure: Regenerate.
6679         * config.in: Regenerate.
6680         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6681         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6682         TARGET_SUN_TLS, use @tlsgdplt or @plt.
6683         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6684         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6685         @tlsldmplt or @plt.
6686         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6687
6688 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
6689
6690         * sched-int.h (struct _haifa_deps_insn_data): New members cond
6691         and reverse_cond.
6692         (INSN_COND, INSN_REVERSE_COND): New macros.
6693         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6694         once.
6695         (sched_get_condition_with_rev): Cache the results, and look them up
6696         if possible.
6697         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6698         are clobbered by the current insn.
6699         * target.def (exposed_pipline): New sched data hook.
6700         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6701         * doc/tm.texi: Regenerate.
6702
6703 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6704
6705         PR tree-optimization/49170
6706         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
6707         sincos or cexp.
6708
6709 2011-05-27  Richard Guenther  <rguenther@suse.de>
6710
6711         PR middle-end/49189
6712         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6713         of comparisons.
6714
6715 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
6716
6717         * haifa-sched.c (sched_scan_info): Remove.
6718         (schedule_block): Call sched_extend_luids rather than sched_init_luids
6719         with NULL args.
6720         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6721         Remove functions.
6722         (sched_scan): Remove.
6723         (sched_extend_luids): Renamed from luids_extend_insn and no longer
6724         static.  All callers changed.
6725         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6726         static.  All callers changed.
6727         (sched_init_luids): Remove all arguments except the first.  All
6728         callers changed.  Don't use sched_scan.
6729         (haifa_init_h_i_d): Likewise.
6730         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6731         manually rather than using sched_init_luids.  Likewise with
6732         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6733         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6734         rather than sched_init_luids with NULL args.
6735         * sel-sched-ir.c (new_insns): Remove variable.
6736         (sched_scan): New static function, previously in haifa-sched.c.  Remove
6737         all arguments but the first two; all callers changed.
6738         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6739         rather than sched_init_luids.
6740         (sel_init_bbs): Remove second argument.  All callers changed.
6741         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6742         with NULL arguments.
6743         (create_insn_rtx_from_pattern): Likewise.
6744         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6745         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6746         (sched_init_insn_luid, sched_extend_luids): Declare.
6747         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6748         declarations.
6749
6750 2011-05-27  Richard Guenther  <rguenther@suse.de>
6751
6752         PR middle-end/49177
6753         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6754         A CMP B ? (T) true : (T) false for non-integral types T again.
6755
6756 2011-05-27  Jan Hubicka  <jh@suse.cz>
6757
6758         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6759         so 0 means NULL string.
6760         (lto_output_string_with_length): ... here.
6761         (lto_output_string, output_string_cst, output_identifier): Update
6762         handling of NULL strings.
6763         (lto_output_location_bitpack): New function.
6764         (lto_output_location): Use it.
6765         (lto_output_tree_ref): Use output_record_start.
6766         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6767         len values.
6768         * lto-streamer-in.c (string_for_index): Break out from ...; offset
6769         values by 1.
6770         (input_string_internal): ... here;
6771         (input_string_cst, input_identifier, lto_input_string): Update handling
6772         of NULL strings.
6773         (lto_input_location_bitpack): New function
6774         (lto_input_location): Use it.
6775         (unpack_ts_type_common_value_fields): Pack align & alias in var len
6776         values.
6777         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6778         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6779         (bp_pack_value): Sanity check the value range.
6780         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6781         New functions.
6782         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6783         New functions.
6784
6785 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
6786
6787         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6788         call_arg_location instructions down the floor.
6789
6790 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
6791
6792         PR rtl-optimization/49154
6793         * ira.c (setup_pressure_classes): Process class without sublcasses
6794         as a candidate for pressure classes.
6795
6796 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
6797
6798         PR rtl-optimization/48575
6799         * genrecog.c (position_type): New enum.
6800         (position): New structure.
6801         (decision): Use position structure instead of a string.
6802         (root_pos, peep2_insn_pos_list): New variables.
6803         (next_position, compare_positions): New functions.
6804         (new_decision): Use position structures instead of strings.
6805         (maybe_both_true): Likewise.
6806         (change_state): Likewise.
6807         (write_tree): Likewise.
6808         (make_insn_sequence): Likewise.
6809
6810 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6811
6812         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6813         TS_BASE instead of TS_COMMON.
6814         (find_decls_types_r): Check for TS_TYPED structure before looking at
6815         TREE_TYPE.
6816         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6817         Add chain field.
6818         (BLOCK_CHAIN): Use new chain field.
6819
6820 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
6821
6822         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6823         moves expensive on Power7 also.
6824
6825 2011-05-26  Richard Guenther  <rguenther@suse.de>
6826
6827         * fold-const.c (fold_unary_loc): Remove bogus code.
6828
6829 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6830
6831         * tree.h (struct tree_identifier): Inherit from tree_typed, not
6832         tree_common.
6833         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6834         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6835         TS_BASE instead of TS_COMMON.
6836         * varasm.c (assemble_name): Remove assert.
6837
6838 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
6839
6840         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6841         substituted first.
6842         * libgcc-std.ver: Delete file.
6843
6844 2011-05-26  Richard Guenther  <rguenther@suse.de>
6845
6846         PR tree-optimization/48702
6847         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6848         only when we know the base address is within bounds.
6849         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6850         assume the base address of TARGET_MEM_REFs is in bounds.
6851
6852 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6853
6854         PR target/49099
6855         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6856         declaration in TARGET_SOLARIS.
6857
6858 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
6859
6860         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
6861         The instruction is then expanded explicitly.
6862         (supported_compare): Callable instruction.
6863         (compare): Likewise.
6864
6865 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
6866
6867         PR c++/49165
6868         * gimplify.c (shortcut_cond_r): Don't special case
6869         COND_EXPRs if they have void type on one of their arms.
6870
6871 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
6872
6873         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
6874         to reduce duplication, and to achieve a slightly more logical order
6875         of operations.
6876
6877 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
6878
6879         PR tree-optimization/49161
6880         * tree-vrp.c (struct case_info): New type.
6881         (compare_case_labels): Sort case_info structs instead of
6882         trees, and not primarily by CASE_LABEL uids but by
6883         label_for_block indexes.
6884         (find_switch_asserts): Put case labels into struct case_info
6885         array instead of TREE_VEC, adjust sorting, compare label_for_block
6886         values instead of CASE_LABELs.
6887
6888 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6889
6890         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
6891         ("orndi3_neon"): Likewise.
6892         ("bic<mode>3_neon"): Likewise.
6893
6894 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
6895
6896         PR tree-optimization/49038
6897         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
6898         Ensure at least one epilogue iteration if required by data
6899         accesses with gaps.
6900         * tree-vectorizer.h (struct _loop_vec_info): Add new field
6901         to mark loops that require peeling for gaps.
6902         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
6903         (vect_get_known_peeling_cost): Take peeling for gaps into
6904         account.
6905         (vect_transform_loop): Generate epilogue if required by data
6906         access with gaps.
6907         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
6908         loop as requiring an epilogue if there are gaps in the end of
6909         the strided group.
6910
6911 2011-05-25  Ian Lance Taylor  <iant@google.com>
6912
6913         * godump.c (go_format_type): Output the first field with a usable
6914         Go type, if any.
6915
6916 2011-05-25  Ian Lance Taylor  <iant@google.com>
6917
6918         * godump.c (go_format_type): Check for invalid type names, pointer
6919         target types, and struct field types.
6920
6921 2011-05-25  Jason Merrill  <jason@redhat.com>
6922
6923         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
6924
6925 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
6926
6927         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
6928
6929 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6930
6931         * config/i386/i386.md (*movqi_extv_1)): Put back
6932         "register_operand" check in "type" calculation.
6933         (*movqi_extzv_2): Likewise.
6934
6935 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6936
6937         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6938
6939 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
6940
6941         PR bootstrap/49160
6942         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
6943         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
6944         __divxc3, __divtc3): Wrap definitions in #ifndef.
6945
6946 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6947
6948         PR target/49142
6949         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
6950         "register_operand" check and replace q_regs_operand with
6951         QIreg_operand in "type" calculation.
6952         (*movqi_extv_1): Likewise.
6953         (*movqi_extzv_2_rex64): Likewise.
6954         (*movqi_extzv_2): Likewise.
6955
6956         * config/i386/predicates.md (QIreg_operand): New.
6957
6958 2011-05-25  Richard Guenther  <rguenther@suse.de>
6959
6960         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6961         type-based offset disambiguation, streamline MEM_REF and
6962         TARGET_MEM_REF handling.
6963
6964 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6965
6966         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
6967         (bdesc_special_args): Add pause intrinsic.
6968
6969         * config/i386/i386.md (UNSPEC_PAUSE): New.
6970         (pause): Likewise.
6971         (*pause): Likewise.
6972         * config/i386/ia32intrin.h (__pause): Likewise.
6973
6974         * doc/extend.texi (X86 Built-in Functions): Add documentation for
6975         pause intrinsic.
6976
6977 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6978
6979         PR tree-optimization/46728
6980         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
6981         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
6982
6983 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
6984
6985         * tree.h (struct tree_exp): Inherit from struct tree_typed.
6986         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
6987         instead of TS_COMMON.
6988
6989 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
6990
6991         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
6992         LIBGCC2_GNU_PREFIX is defined.
6993         (__N): New macro.
6994         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
6995         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
6996         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
6997         __clz_tab): Define using __N.
6998         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
6999         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7000         * target.def (libfunc_gnu_prefix): New hook.
7001         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7002         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7003         * doc/tm.texi: Regenerate.
7004         * system.h (LIBGCC2_GNU_PREFIX): Poison.
7005         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7006         account.
7007         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7008         (init_optabs): Likewise for the bswap libfuncs.
7009         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7010         and divide.
7011         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7012         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7013         * libgcc-std.ver: Remove.
7014         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7015         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7016         libgcc-std.ver.
7017         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7018         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7019         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7020         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7021         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7022         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7023         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7024         * config/fixed-bit.h (FIXED_OP): Define differently depending on
7025         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7026         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7027
7028 2011-05-25  Jan Hubicka  <jh@suse.cz>
7029
7030         * lto-streamer-out.c (output_record_start): Use lto_output_enum
7031         (lto_output_tree): Use output_record_start.
7032         * lto-streamer-in.c (input_record_start): Use lto_input_enum
7033         (lto_get_pickled_tree): Use input_record_start.
7034         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7035         (lto_value_range_error): New function.
7036         * lto-streamer.h (lto_value_range_error): Declare.
7037         (lto_output_int_in_range, lto_input_int_in_range): New functions.
7038         (lto_output_enum, lto_input_enum): New macros.
7039
7040 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7041
7042         * common.opt (flag_stack_usage_info): New variable.
7043         (-Wstack-usage): New option.
7044         * doc/invoke.texi (Warning options): Document -Wstack-usage.
7045         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7046         <OPT_fstack_usage>: Likewise.
7047         * toplev.c (output_stack_usage): Handle -Wstack-usage.
7048         * calls.c (expand_call): Test flag_stack_usage_info variable instead
7049         of flag_stack_usage.
7050         (emit_library_call_value_1): Likewise.
7051         * explow.c (allocate_dynamic_stack_space): Likewise.
7052         * function.c (instantiate_virtual_regs ): Likewise.
7053         (prepare_function_start): Likewise.
7054         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7055         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7056         * config/arm/arm.c (arm_expand_prologue): Likewise.
7057         (thumb1_expand_prologue): Likewise.
7058         * config/avr/avr.c (expand_prologue): Likewise.
7059         * config/i386/i386.c (ix86_expand_prologue): Likewise.
7060         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7061         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7062         * config/mips/mips.c (mips_expand_prologue): Likewise.
7063         * config/pa/pa.c (hppa_expand_prologue): Likewise.
7064         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7065         * config/s390/s390.c (s390_emit_prologue): Likewise.
7066         * config/sh/sh.c (sh_expand_prologue): Likewise.
7067         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7068         * config/spu/spu.c (spu_expand_prologue): Likewise.
7069
7070 2011-05-25  Richard Guenther  <rguenther@suse.de>
7071
7072         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7073         (gimple_canonical_types_compatible_p): Likewise.
7074
7075 2011-05-25  Jan Hubicka  <jh@suse.cz>
7076
7077         PR middle-end/49062
7078         * ipa.c (function_and_variable_visibility): Only add to same
7079         comdat group list if DECL_ONE_ONLY.
7080
7081 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
7082
7083         PR rtl-optimization/49014
7084         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7085
7086 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7087
7088         PR target/49128
7089         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7090
7091 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7092
7093         PR rtl-optimization/48757
7094         * ira-build.c (loop_with_eh_edge_p): Rename to
7095         loop_with_complex_edge_p, check edges on complexity, make function
7096         conditional.
7097         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7098         conditional.
7099
7100 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7101
7102         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7103         force flag_ira_share_save_slots to 0.
7104
7105 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7106
7107         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7108         (vt_initialize): Set PROLOGUE_BB unconditionally.
7109         Add block comment about CFA_BASE_RTX machinery.
7110         Reset FP_CFA_OFFSET to -1 on all invalid paths.
7111         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7112
7113 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7114
7115         PR objc/48187
7116         * c-parser.c (c_parser_objc_class_instance_variables): More robust
7117         parsing of syntax error in ObjC instance variable lists.  In
7118         particular, avoid an infinite loop if there is a stray ']'.
7119         Updated error message.
7120
7121 2011-05-24  Ian Lance Taylor  <iant@google.com>
7122
7123         * godump.c (go_define): Don't accept a string immediately after
7124         another operand.
7125
7126 2011-05-24  Ian Lance Taylor  <iant@google.com>
7127
7128         * godump.c (struct godump_container): Add invalid_hash field.
7129         (go_format_type): Return false if type is found in invalid_hash.
7130         (go_output_typedef): Add invalid type to invalid_hash.
7131         (go_finish): Create and delete invalid_hash.
7132
7133 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7134
7135         PR tree-optimization/46728
7136         * tree-ssa-math-opts.c (powi_table): New.
7137         (powi_lookup_cost): New.
7138         (powi_cost): New.
7139         (powi_as_mults_1): New.
7140         (powi_as_mults): New.
7141         (gimple_expand_builtin_powi): New.
7142         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7143         (gate_cse_sincos): Remove sincos/cexp restriction.
7144
7145 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7146
7147         PR target/3746
7148         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7149         mips-tdump native.
7150         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7151         * mips-tdump.c: Likewise.
7152
7153 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7154
7155         PR target/49128
7156         * config/i386/driver-i386.c (host_detect_local_cpu): Always
7157         add -mno-XXX.  Handle FMA.
7158
7159 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7160
7161         PR rtl-optimization/48633
7162         * ira-build.c (loop_with_eh_edge_p): New function.
7163         (mark_loops_for_removal): Use it.
7164
7165 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7166
7167         PR rtl-optimization/48971
7168         * ira.c (setup_pressure_classes): Don't check register move cost
7169         for classes with one registers.  Don't add pressure class if there
7170         is a pressure class with the same available hard registers.
7171         Check contains_reg_of_mode.  Fix a typo in collecting
7172         temp_hard_regset.  Ignore hard registers not belonging to a class.
7173
7174 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
7175
7176         PR target/49133
7177         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7178
7179 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7180             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7181
7182         PR gcov-profile/48845
7183         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7184
7185 2011-05-24  Richard Guenther  <rguenther@suse.de>
7186
7187         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7188         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7189         (gimple_types_compatible_p_1): Adjust.
7190         (iterative_hash_canonical_type): Do not bother about complete vs.
7191         incomplete types.
7192         (gimple_canonical_types_compatible_p): Likewise.
7193
7194 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7195
7196         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7197
7198 2011-05-24  Richard Guenther  <rguenther@suse.de>
7199
7200         PR bootstrap/49078
7201         * gimple.c (gimple_register_canonical_type): Revert
7202         previous change.
7203         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7204         does not for a tree for the case where it matters.  Cache
7205         pointer-type alias-sets.
7206
7207 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
7208
7209         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7210         (OBJS): Remove options.o, opts-common.o and prefix.o.
7211         (OBJS-libcommon-target): New.
7212         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7213         (BACKEND): Include libcommon-target.a.
7214         (MOSTLYCLEANFILES): Include libcommon-target.a.
7215         (libcommon-target.a): New.
7216         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7217         prefix.o.
7218
7219 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
7220
7221         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
7222         parts of output shared with the driver.
7223         * optc-gen.awk: Don't generate parts of output not shared with the
7224         driver.
7225         * opth-gen.awk: Remove GCC_DRIVER conditionals.
7226         * doc/options.texi (SourcerInclude): Mention options-save.c.
7227         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7228         (OBJS): Add options-save.o.
7229         (options-save.c, options-save.o): New.
7230         (options.o): Update dependencies.
7231         (gcc-options.o): Remove.
7232         (mostlyclean): Remove options-save.c.
7233
7234 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7235
7236         PR debug/49032
7237         * dbxout.c: Include cgraph.h.
7238         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7239         and without value expr, return NULL if no varpool node exists for
7240         it or if it is not needed.
7241         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7242
7243         PR c/49120
7244         * c-decl.c (start_decl): Convert expr to void_type_node.
7245
7246 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
7247
7248         PR rtl-optimization/48826
7249         * emit-rtl.c (try_split): When splitting a call that is followed
7250         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7251
7252 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7253
7254         * cfgexpand.c (expand_debug_expr): For unused non-addressable
7255         parameters passed in memory prefer using DECL_INCOMING_RTL over
7256         the pseudos it will be copied into.
7257
7258 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7259
7260         PR target/47315
7261         * config/i386/i386.c (ix86_option_override_internal): Save the
7262         initial options after checking vzeroupper.
7263
7264 2011-05-23  David Li  <davidxl@google.com>
7265
7266         PR tree-optimization/48988
7267         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7268         Initialize has_valid_pred for each pred chain.
7269
7270 2011-05-23  Richard Guenther  <rguenther@suse.de>
7271
7272         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7273         (iterative_hash_gimple_type): Always hash type names.
7274
7275 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7276
7277         * c-typeck.c (build_function_call_vec): Tweak call to
7278         check_function_arguments.
7279
7280 2011-05-23  Richard Guenther  <rguenther@suse.de>
7281
7282         PR tree-optimization/49115
7283         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7284         is not necessarily carried out, do not claim it kills the ref.
7285         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7286
7287 2011-05-23  Richard Guenther  <rguenther@suse.de>
7288
7289         PR middle-end/15419
7290         * builtins.c (fold_builtin_memory_op): Be less restrictive about
7291         what pointer types we accept for folding.
7292
7293 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7294
7295         * gthr-gnat.c: Remove.
7296         * gthr-gnat.h: Remove.
7297         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7298         * config/t-freebsd (LIB2ADDEH): Likewise.
7299         * config/t-linux (LIB2ADDEH): Likewise.
7300         * config/t-sol2 (LIB2ADDEH): Likewise.
7301         * config/ia64/t-vms (LIB2ADDEH): Likewise.
7302         * configure.ac (target_thread_file): Remove gnat handling.
7303         * configure: Regenerate.
7304         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7305
7306 2011-05-23  Tristan Gingold  <gingold@adacore.com>
7307             Eric Botcazou  <ebotcazou@adacore.com>
7308
7309         * gcov.c (create_file_names): If no object directory is specified,
7310         keep the directory of the file.
7311
7312 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7313
7314         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7315         * configure: Regenerate.
7316
7317 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7318
7319         PR middle-end/48973
7320         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7321         failed and the comparison has a single bit signed type, use
7322         constm1_rtx instead of const1_rtx for true value.
7323         (do_store_flag): If ops->type is single bit signed type, disable
7324         signel bit test optimization and pass -1 instead of 1 as last
7325         parameter to emit_store_flag_force.
7326
7327 2011-05-23  Tom de Vries  <tom@codesourcery.com>
7328
7329         PR target/45098
7330         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7331         function.
7332         (infer_loop_bounds_from_undefined): Use new function.
7333
7334 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7335
7336         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7337         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
7338         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7339         and -O0 otherwise.
7340         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7341
7342 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7343
7344         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7345         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7346         returns true.
7347
7348 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7349
7350         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7351
7352 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7353
7354         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7355         UNSPEC_MOVE_PIC pattern.
7356
7357 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7358
7359         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7360         (sparc-*-rtems*): Likewise.
7361         (sparc64-*-elf*): Likewise.
7362         (sparc64-*-rtems*): Likewise.
7363         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
7364         * config/sparc/t-crtin: New file.
7365         * config/sparc/t-sol2 (crti.o): Delete rule.
7366         (crtn.o): Likewise.
7367         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7368         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7369         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7370         (ENDFILE_SPEC): Add crtn.o.
7371
7372 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7373
7374         PR middle-end/48689
7375         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7376         CODE_CONTAINS_STRUCT (TS_COMMON).
7377
7378 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
7379
7380         PR middle-end/49029
7381         * expmed.c (extract_fixed_bit_field): Test whether target can be used
7382         only after deciding which mode to use.
7383
7384 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7385
7386         PR target/45098
7387         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7388         for call to get_shiftadd_cost.
7389
7390 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
7391
7392         PR target/49104
7393         * config/i386/cpuid.h (bit_MMXEXT): New define.
7394
7395 2011-05-22  Nick Clifton  <nickc@redhat.com>
7396
7397         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7398         initialisation of non-existant args[2] element.  Use args[] array
7399         not arg[] array to pass arguments to build_function_type_list.
7400
7401 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
7402
7403         PR tree-optimization/49087
7404         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7405
7406 2011-05-21  Jason Merrill  <jason@redhat.com>
7407
7408         PR c++/49092
7409         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7410         static storage duration.
7411
7412 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7413
7414         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7415         frame pointer.
7416
7417 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7418
7419         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7420         false if there are call-saved registers here...
7421         (sparc_can_use_return_insn_p): ...but here instead.
7422         (save_or_restore_regs): Fix thinko.
7423         (sparc_expand_prologue): Use current_function_is_leaf.
7424         (sparc_frame_pointer_required): Likewise.
7425
7426 2011-05-21  Nick Clifton  <nickc@redhat.com>
7427
7428         PR target/49098
7429         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7430
7431 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7432
7433         * gengtype.c (walk_type): Implemented "atomic" GTY option.
7434         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7435
7436 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
7437
7438         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
7439         * optc-gen.awk: Move common code to opt-read.awk.
7440         * opth-gen.awk: Likewise.
7441         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7442
7443 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
7444
7445         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7446
7447 2011-05-20  Tom de Vries  <tom@codesourcery.com>
7448
7449         PR target/45098
7450         * tree-ssa-loop-ivopts.c: Include expmed.h.
7451         (get_shiftadd_cost): New function.
7452         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
7453
7454 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
7455
7456         PR bootstrap/49086
7457         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7458         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7459
7460 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
7461
7462         * Makefile.in: Update comment referring to $(OBJS-common).
7463
7464 2011-05-20  Ian Lance Taylor  <iant@google.com>
7465
7466         * godump.c (go_output_typedef): Put enum constants in the macro
7467         hash table to avoid duplicate Go const definitions.
7468
7469 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
7470
7471         * Makefile.in (LIBDEPS): Add libcommon.a.
7472         (LIBS): Likewise.
7473         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7474         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7475         pretty-print.o and version.o.
7476         (OBJS-libcommon): New.
7477         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7478         (BACKEND): Add libcommon.a.
7479         (MOSTLYCLEANFILES): Likewise.
7480         (libcommon.a): New.
7481         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7482         (cpp$(exeext)): Likewise.
7483         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7484         pretty-print.o and input.o.
7485         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7486         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7487         (errors.o): Remove.
7488         (mips-tfile): Don't explicitly use version.o.
7489         (mips-tdump): Likewise.
7490         (gcov.o): Depend on $(DIAGNOSTIC_H).
7491         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7492         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7493         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7494         * gcov-dump.c: Include intl.h and diagnostic.h.
7495         (main): Initialize diagnostics.
7496         * gcov.c: Include diagnostic.h.
7497         (fnotice): Remove.
7498         (main): Initialize diagnostics.
7499         * lto-wrapper.c: Include diagnostic.h.
7500         (main): Initialize diagnostics.
7501
7502 2011-05-20  Michael Matz  <matz@suse.de>
7503
7504         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7505
7506 2011-05-20  Michael Matz  <matz@suse.de>
7507             Richard Guenther  <rguenther@suse.de>
7508
7509         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7510         use lto_streamer_cache_append directly instead of returning a VEC.
7511         (preload_common_node): Remove.
7512         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7513         track seen nodes.
7514         (lto_streamer_cache_create): Call lto_preload_common_nodes.
7515
7516 2011-05-20  Richard Guenther  <rguenther@suse.de>
7517
7518         PR tree-optimization/49079
7519         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7520         MEM_REFs correctly for the trailing array access detection.
7521         Special case constants the same way as decls for overall size
7522         constraining.
7523
7524 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
7525
7526         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7527         argument expansion.
7528
7529 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
7530
7531         PR tree-optimization/49073
7532         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7533         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7534         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7535
7536 2011-05-20  Richard Guenther  <rguenther@suse.de>
7537
7538         PR middle-end/48849
7539         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7540         of pointer types the same way the middle-end does.
7541
7542 2011-05-20  Richard Guenther  <rguenther@suse.de>
7543
7544         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7545         or pointer-to chains.  Delay all fixup to uniquify_nodes.
7546
7547 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
7548
7549         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7550         (fma4_fmaddsub): Likewise
7551
7552 2011-05-19  Jan Hubicka  <jh@suse.cz>
7553
7554         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7555         (GIMPLE_TYPE_PAIR_SIZE): New macro.
7556         (type_pair_cache): New static var.
7557         (lookup_type_pair): Use fixed sized custom hash; make inline.
7558         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7559         calls of lookup_type_pair.
7560         (print_gimple_types_stats): Remove cache stats.
7561         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7562         and gtc_ob.
7563
7564 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
7565
7566         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7567         when TARGET_RDRND is active.
7568         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7569         Generate dummy SImode target register when target is NULL.
7570
7571 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
7572
7573         * config/arm/arm-fpus.def: New.
7574         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7575         arm-fpus.def.
7576         * config/arm/arm-tables.opt: Regenerate.
7577         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7578         (arm_option_override): Don't decode FPU name to string here.
7579         * config/arm/arm.opt (mfpu=): Use Enum.
7580         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7581         Update dependencies.
7582
7583 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
7584
7585         * collect2.c: Include diagnostic.h.
7586         (fatal_perror, fatal, error, fancy_abort): Remove.
7587         (main): Set progname.  Call xmalloc_set_program_name and
7588         diagnostic_initialize.
7589         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7590         scan_libraries, resolve_lib_name): Call fatal_error instead of
7591         fatal and fatal_perror.
7592         * collect2.h (error, fatal, fatal_perror): Don't declare.
7593         * tlink.c: Include diagnostic-core.h.
7594         (recompile_files): Call fatal_error instead of fatal_perror.
7595         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7596         pretty-print.o and input.o.
7597         (collect2.o, tlink.o): Update dependencies.
7598
7599 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7600
7601         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7602
7603 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7604
7605         PR target/40483
7606         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7607         COMDAT group syntax, both SPARC and x86 variants.
7608         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7609         * configure: Regenerate.
7610         * config/sol2.h (TARGET_SOLARIS): Define.
7611         (PUSHSECTION_FORMAT): Remove.
7612         (SECTION_NAME_FORMAT): Define.
7613         * config/sol2.c: Include hashtab.h.
7614         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7615         expansion, using SECTION_NAME_FORMAT.
7616         (solaris_comdat_htab): New variable.
7617         (struct comdat_entry): Define.
7618         (comdat_hash): New function.
7619         (comdat_eq): New function.
7620         (solaris_elf_asm_comdat_section): New function.
7621         (solaris_define_comdat_signature): New function.
7622         (solaris_code_end): New function.
7623         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7624         (solaris_code_end): Declare.
7625         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7626         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7627         solaris_code_end.
7628         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7629         Remove ATTRIBUTE_UNUSED.
7630         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7631         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
7632         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
7633         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7634         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7635         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7636         (PUSHSECTION_FORMAT): Remove.
7637         (SECTION_NAME_FORMAT): Redefine.
7638
7639 2011-05-19  Kai Tietz  <ktietz@redhat.com>
7640
7641         * tree-cfg.c (verify_gimple_assign_binary): Barf on
7642         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7643         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7644
7645 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
7646             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7647
7648         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7649
7650 2011-05-19  Richard Guenther  <rguenther@suse.de>
7651
7652         PR middle-end/48985
7653         * tree-object-size.c (addr_object_size): If the pointed-to
7654         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7655
7656 2011-05-19  Richard Guenther  <rguenther@suse.de>
7657
7658         * gimple.c (gimple_types_compatible_p_1): Compare names of
7659         the types themselves.
7660         (iterative_hash_gimple_type): And hash them that way.
7661         (gimple_register_type_1): If we register a main variant properly
7662         initialize the leader to ourselves.
7663
7664 2011-05-19  Tom de Vries  <tom@codesourcery.com>
7665
7666         PR target/45098
7667         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7668         get_loop_invariant_expr_id.
7669         (get_loop_invariant_expr_id): Use get_expr_id.
7670         (parm_decl_cost): New function.
7671         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7672         Improve bound cost estimation.  Use different inv_expr_id for elim and
7673         express cases.
7674
7675 2011-05-19  Tom de Vries  <tom@codesourcery.com>
7676
7677         PR target/45098
7678         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7679         cost_base.cost == 0.
7680
7681 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7682
7683         PR target/49002
7684         * config/i386/sse.md
7685         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7686         load cast.
7687
7688 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
7689
7690         PR tree-optimization/49039
7691         * tree-vrp.c (extract_range_from_binary_expr): For
7692         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7693         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7694
7695 2011-05-18  Tom de Vries  <tom@codesourcery.com>
7696
7697         PR target/45098
7698         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7699
7700 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
7701
7702         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7703         (*tls_global_dynamic_64): Ditto.
7704         (*tls_local_dynamic_base_32_gnu): Ditto.
7705         (*tls_local_dynamic_base_64): Ditto.
7706         (tls_initial_exec_64_sun): Ditto.
7707
7708 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
7709
7710         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7711         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7712         bf592-none.
7713         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7714         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7715         * config/bfin/bfin.c (bfin_cpus): Add bf592.
7716         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7717         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
7718         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7719         * config/bfin/elf.h (LIB_SPEC): Add bf592.
7720
7721 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
7722
7723         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
7724         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
7725         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7726         target_thread_pointer, arm_structure_size_boundary, struct
7727         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7728         struct abi_name, arm_all_abis): Remove.
7729         (arm_option_override) Don't process most enumerated option values here.
7730         Don't process target_fpe_name here.  Work with integer not string for
7731         structure size boundary; use separate diagnostics for each case.
7732         * config/arm/arm.h (enum float_abi_type, enum
7733         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7734         to arm-opts.h.
7735         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7736         arm_structure_size_boundary): Remove.
7737         * config/arm/arm.opt (mabi=): Use Enum and Init.
7738         (arm_abi_type): New Enum and EnumValue entries.
7739         (mfloat-abi=): Use Enum and Init.
7740         (float_abi_type): New Enum and EnumValue entries.
7741         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
7742         (mfp16-format=): Use Enum and Init.
7743         (arm_fp16_format_type): New Enum and EnumValue entries.
7744         (mstructure-size-boundary=): Use UInteger and Init.
7745         (mtp=): Use Enum and Init.
7746         (arm_tp_type): New Enum and EnumValue entries.
7747
7748 2011-05-18  Richard Guenther  <rguenther@suse.de>
7749
7750         PR tree-optimization/49018
7751         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7752         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7753         gimple_has_side_effects.
7754
7755 2011-05-18  Richard Guenther  <rguenther@suse.de>
7756
7757         * gimple.c (gimple_register_type_1): New function, split out from ...
7758         (gimple_register_type): ... here.  Avoid infinite recursion.
7759
7760 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
7761
7762         PR tree-optimization/41881
7763         * tree-vectorizer.h (struct _loop_vec_info): Add new field
7764         reduction_chains along with a macro for its access.
7765         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7766         (destroy_loop_vec_info): Free reduction chains.
7767         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7768         (vect_is_slp_reduction): New function.
7769         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7770         (vect_create_epilog_for_reduction): Support SLP reduction chains.
7771         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7772         definition types for reduction chains.
7773         (vect_supported_load_permutation_p): Don't allow permutations for
7774         reduction chains.
7775         (vect_analyze_slp_instance): Support reduction chains.
7776         (vect_analyze_slp): Try to build SLP instance from reduction chains.
7777         (vect_get_constant_vectors):  Handle reduction chains.
7778         (vect_schedule_slp_instance): Mark the first statement of the
7779         reduction chain as reduction.
7780
7781 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
7782
7783         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7784         names for group elements access.
7785         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7786         reduction chains as well.  Remove data reference and interleaving
7787         related words from the fields names.
7788         * tree-vect-loop.c (vect_transform_loop): Use new names for group
7789         elements access.
7790         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7791         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7792         vect_update_interleaving_chain, vect_same_range_drs,
7793         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7794         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7795         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7796         vect_analyze_group_access, vect_analyze_data_ref_access,
7797         vect_create_data_ref_ptr, vect_transform_strided_load,
7798         vect_record_strided_load_vectors): Likewise.
7799         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7800         vect_model_load_cost, vectorizable_store, vectorizable_load,
7801         vect_remove_stores, new_stmt_vec_info): Likewise.
7802         * tree-vect-slp.c (vect_build_slp_tree,
7803         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7804
7805 2011-05-18  Richard Guenther  <rguenther@suse.de>
7806
7807         PR middle-end/48989
7808         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7809         operand verification.
7810         (verify_gimple_assign_binary): Likewise.
7811         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7812         to non-1-precision BOOLEAN_TYPEs.
7813
7814 2011-05-18  Tom de Vries  <tom@codesourcery.com>
7815
7816         PR target/45098
7817         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7818
7819 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
7820
7821         PR tree-optimization/49000
7822         * tree-ssa.c (execute_update_addresses_taken): Call
7823         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
7824         be rewritten and decl has been marked for renaming, reset
7825         the debug stmt.
7826
7827 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7830         enum_opts_set when testing if attributes have set -mfpmath=.
7831
7832 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
7833
7834         * config/mips/mips.c (mips_handle_option): Remove unused variable.
7835
7836 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
7837
7838         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7839         info->entry with 0
7840         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
7841         id.transform_lang_insert_block with NULL.
7842
7843 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
7844
7845         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7846         (output_fp_compare): Change args 3 and 4 to bool.
7847         (ix86_expand_call): Change arg 6 to bool.
7848         (ix86_attr_length_immediate_default): Change arg 2 to bool.
7849         (ix86_attr_length_vex_default): Change arg 3 to bool.
7850         * config/i386/i386.md: Update all uses.
7851         * config/i386/i386.c: Ditto.
7852         (ix86_flags_dependent): Change return type to bool.
7853
7854 2011-05-17  Richard Guenther  <rguenther@suse.de>
7855
7856         * gimple.c (type_hash_pair_compare): Fix comparison.
7857
7858 2011-05-17  Richard Guenther  <rguenther@suse.de>
7859
7860         * gimple.c (iterative_hash_gimple_type): Simplify singleton
7861         case some more, fix final hash value of the non-singleton case.
7862
7863 2011-05-17  Richard Guenther  <rguenther@suse.de>
7864
7865         PR bootstrap/49013
7866         Revert
7867         2011-05-16  Richard Guenther  <rguenther@suse.de>
7868
7869         * gimple.c (gimple_types_compatible_p_1): Use names of the
7870         type itself, not its main variant.
7871         (iterative_hash_gimple_type): Likewise.
7872
7873 2011-05-17  Richard Guenther  <rguenther@suse.de>
7874
7875         * gimple.c (gimple_register_canonical_type): Use the main-variant
7876         leader for computing the canonical type.
7877
7878 2011-05-17  Nick Clifton  <nickc@redhat.com>
7879
7880         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
7881         moves.
7882
7883         * config/rx/rx.md: Add peephole to remove redundant extensions
7884         after loads.
7885         (bitset_in_memory): Use rx_restricted_mem_operand.
7886         (bitinvert_in_memory): Likewise.
7887         (bitclr_in_memory): Likewise.
7888
7889 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
7890             Nick Clifton  <nickc@redhat.com>
7891
7892         * config/rx/rx.md: Add peepholes to match a register move followed
7893         by a comparison of the moved register.  Replace these with an
7894         addition of zero that does both actions in one instruction.
7895
7896 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
7897
7898         PR target/48986
7899         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
7900         predicate to allow CONST_INT.
7901         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
7902
7903 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
7904
7905         * opts-common.c (opt_enum_arg_to_value): New.
7906         * opts.h (opt_enum_arg_to_value): Declare.
7907         * config/i386/i386.opt (fpmath): Remove.
7908         (mfpmath=): Use Enum, Init and Save.
7909         (fpmath_unit): New Enum and EnumValue entries.
7910         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
7911         name for function fpmath state.
7912         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
7913         * config/i386/i386.c: Include diagnostic.h.
7914         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
7915         (ix86_target_string): Take enum fpmath_unit value instead of string.
7916         (ix86_debug_options): Update call to ix86_target_string.
7917         (ix86_option_override_internal): Don't process fpmath strings here.
7918         (x86_function_specific_save, ix86_function_specific_restore):
7919         Don't handle fpmath state specially.
7920         (ix86_function_specific_print): Pass fpmath state to
7921         ix86_target_string instead of printing in this function.
7922         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
7923         Handle enum attributes.
7924         (IX86_ATTR_ENUM, ix86_opt_enum): New.
7925         (ix86_valid_target_attribute_tree): Update option_strings
7926         handling.  Handle fpmath as enum option.
7927         (ix86_can_inline_p): Update field names for function fpmath state.
7928         (ix86_expand_builtin): Update call to ix86_target_string.
7929         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
7930         (ix86_fpmath): Remove.
7931         * config/i386/t-i386 (i386.o): Update dependencies.
7932
7933 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
7934
7935         PR preprocessor/48677
7936         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
7937         from decoded_options[0], not from itself.
7938
7939 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
7940
7941         * config/i386/constraints.md (z): New constraint.
7942         * config/i386/i386.c (c): New mode attribute.
7943         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
7944         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7945         constraint for operand 0.
7946         (*call_vzeroupper): Ditto.
7947         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
7948         (*call_rex64_ms_sysv_vzeroupper): Ditto.
7949         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
7950         Use "lzm" constraint for operand 0.
7951         (*call_pop_vzeroupper): Ditto.
7952         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
7953         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
7954         constraint for operand 0.
7955         (*sibcall_vzeroupper): Ditto.
7956         (*sibcall_rex64_ms_sysv): Ditto.
7957         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
7958         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
7959         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
7960         (*sibcall_pop_vzeroupper): Ditto.
7961         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
7962         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
7963         mode iterator.  Use "<c>zm" constraint for operand 1.
7964         (*call_value_vzeroupper): Ditto.
7965         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
7966         for operand 1.
7967         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
7968         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
7969         *call_value_pop_1.  Use "lzm" constraint for operand 1.
7970         (*call_value_pop_vzeroupper): Ditto.
7971         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
7972         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
7973         mode iterator.  Use "Uz" constraint for operand 1.
7974         (*sibcall_value_vzeroupper): Ditto.
7975         (*sibcall_value_rex64_ms_sysv): Ditto.
7976         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
7977         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
7978         constraint for operand 1.
7979         (*sibcall_value_pop_vzeroupper): Ditto.
7980         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
7981         and "z" constraint for operand 2.
7982         (*tls_global_dynamic_32_gnu): Ditto.
7983         (*tls_local_dynamic_base_32_gnu): Ditto.
7984         (*tls_local_dynamic_base_64): Ditto.
7985         (*tls_local_dynamic_32_once): Ditto.
7986         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
7987         Update all callers.
7988         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
7989
7990 2011-05-16  Richard Guenther  <rguenther@suse.de>
7991
7992         * gimple.c (gimple_types_compatible_p_1): Use names of the
7993         type itself, not its main variant.
7994         (iterative_hash_gimple_type): Likewise.
7995
7996 2011-05-16  Richard Guenther  <rguenther@suse.de>
7997
7998         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
7999         always visit pointer target and function result and argument types.
8000
8001 2011-05-16  Jason Merrill  <jason@redhat.com>
8002
8003         PR c++/48999
8004         * tree-inline.c (copy_statement_list): Put back recursion.
8005
8006 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
8007
8008         PR target/27663
8009         PR target/41076
8010         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8011         * config/avr/avr.md ("*ior<mode>qi.byte0",
8012         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8013
8014 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
8015
8016         PR target/45099
8017         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8018         register is needed for a function argument.
8019
8020 2011-05-16  Richard Guenther  <rguenther@suse.de>
8021
8022         * gimple.c (struct type_hash_pair): New type.
8023         (type_hash_pair_compare): New function.
8024         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
8025
8026 2011-05-16  Revital Eres  <revital.eres@linaro.org>
8027
8028         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
8029
8030 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8031
8032         * config/i386/i386.md (floating point move splitters): Fix
8033         usage of standard_80387_constant_p.
8034         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8035
8036 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8037
8038         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8039
8040 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8041
8042         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8043         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8044         (tree_ssa_lim_finalize): Likewise.
8045
8046 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
8047
8048         * config/i386/constraint.md (Yd, Yx): New register constraints.
8049         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
8050         Yd conditional register constraint.
8051         (*movtf_internal): Use standard_sse_constant_opcode.
8052         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
8053         Yx conditional register constraint.
8054         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
8055         Yd conditional register constraint.  Use standard_sse_constant_p to
8056         check for valid SSE constants and call standard_sse_constant_opcode to
8057         output SSE insn.
8058         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8059         constants and call standard_sse_constant_opcode to output SSE insn.
8060         * config/i386/i386.c (ix86_option_ovverride_internal): Set
8061         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
8062         optimize_size is set.
8063         (standard_sse_constant_opcode): Output conditional AVX insn templates.
8064
8065 2011-05-14  Tobias Burnus  <burnus@net-b.de>
8066
8067         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8068
8069 2011-05-13  Martin Jambor  <mjambor@suse.cz>
8070
8071         * ipa-prop.c (ipa_cst_from_jfunc): New function.
8072         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8073         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8074         (evaluate_conditions_for_ipcp_clone): Removed.
8075         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8076         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8077         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8078
8079 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8080
8081         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8082         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8083         lieu of MAY_HAVE_DEBUG_STMTS.
8084         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8085         debug statements if !MAY_HAVE_DEBUG_STMTS.
8086
8087 2011-05-13  Martin Thuresson  <martint@google.com>
8088
8089         PR gcov-profile/47793
8090         * libgcov.c (gcov_exit): Support relative profile paths.
8091         * doc/invoke.texi (-fprofile-dir): Update for above change.
8092
8093 2011-05-13  Richard Guenther  <rguenther@suse.de>
8094
8095         * gimple.c (gimple_canonical_types_compatible_p): Do not use
8096         type-pair caching, do not compare hashes.
8097
8098 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
8099
8100         PR middle-end/48965
8101         * tree-cfg.c (edge_to_cases_cleanup): Return true.
8102         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8103
8104 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8105
8106         * gimplify.c (gimplify_expr): Make sure operand is boolified.
8107         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8108         compatible type for TRUTH_NOT_EXPR.
8109
8110 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8111
8112         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8113         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
8114         can_create_pseudo_p ().
8115
8116 2011-05-13  Richard Guenther  <rguenther@suse.de>
8117
8118         PR lto/48978
8119         * gimple.c (iterative_hash_gimple_type): Revert change in
8120         pointer target and function result and argument hashing.
8121
8122 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
8123
8124         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8125         (*movxf_internal_nointeger): Ditto.
8126         (*movdf_internal_rex64): Ditto.
8127         (*movdf_internal): Ditto.
8128         (*movdf_internal_nointeger): Ditto.
8129         (*movsf_internal): Ditto.
8130         (sincos splitters): Use can_create_pseudo ().
8131
8132 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
8133
8134         * config/i386/i386-opts.h: New.
8135         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8136         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8137         ix86_section_threshold): Remove.
8138         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
8139         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8140         OPT_mbranch_cost_.
8141         (ix86_option_override_internal): Don't decode strings for options
8142         other than -march=, -mtune= and -mfpmath=.  Don't allow for
8143         __attribute__ uses in remaining diagnostics for options with
8144         string arguments.  Don't check for integer arguments being negative.
8145         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8146         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8147         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8148         ix86_branch_cost, ix86_section_threshold): Remove.
8149         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8150         HeaderInclude.
8151         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8152         but not Var.
8153         (masm=): Use Enum and Init.
8154         (asm_dialect): New Enum and EnumValue entries.
8155         (mbranch-cost=): Use UInteger.
8156         (mlarge-data-threshold=): Use UInteger and Init.
8157         (mcmodel=): Use Enum and Init.
8158         (cmodel): New Enum and EnumValue entries.
8159         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8160         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8161         mregparm=): Use UInteger.
8162         (mstringop-strategy=): Use Enum and Init.
8163         (stringop_alg): New Enum and EnumValue entries.
8164         (mtls-dialect=): Use Enum and Init.
8165         (tls_dialect): New Enum and EnumValue entries.
8166         (mabi=): Use Enum and Init.
8167         (calling_abi): New Enum and EnumValue entries.
8168         (mveclibabi=): Use Enum and Init.
8169         (ix86_veclibabi): New Enum and EnumValue entries.
8170
8171 2011-05-13  Nick Clifton  <nickc@redhat.com>
8172
8173         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8174         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8175
8176 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8177
8178         PR middle-end/48984
8179         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8180         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8181         (gimple_boolify): Check for cast for boolean_type_node instead for
8182         BOOLEAN_TYPE.
8183
8184 2011-05-13  Richard Guenther  <rguenther@suse.de>
8185
8186         PR tree-optimization/48172
8187         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8188         multiplying by number of iterations for equal step.
8189         (vect_create_cond_for_alias_checks): Likewise.
8190
8191 2011-05-13  Andreas Schwab  <schwab@redhat.com>
8192
8193         * configure.ac: Use AS_HELP_STRING throughout.
8194         * configure: Regenerate.
8195
8196 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8199         (ix86_emit_restore_regs_using_mov): Likewise.
8200         (ix86_emit_restore_sse_regs_using_mov): Likewise.
8201
8202 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
8203
8204         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8205         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8206         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8207         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8208         RTX_OK_FOR_OLO10_P): ...here.
8209         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8210         SYMBOLIC_CONST.
8211
8212 2011-05-12  Kai Tietz  <ktietz@redhat.com>
8213
8214         * gimplify.c (gimple_boolify): Re-boolify expression
8215         arguments even if expression type is of kind BOOLEAN_TYPE.
8216         (gimplify_boolean_expr): Removed.
8217         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8218         and XOR. Additional take care that we keep expression's type.
8219         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8220         of TRUTH_AND|OR|XOR_EXPR.
8221
8222 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8223
8224         PR tree-optimization/48975
8225         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8226         on all bbs here and free and clear ifc_bbs at the end.
8227
8228 2011-05-12  Richard Guenther  <rguenther@suse.de>
8229
8230         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8231         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
8232         until after simple checks.
8233         (gimple_types_compatible_p): Likewise.
8234         (iterative_hash_gimple_type): Always hash pointer targets
8235         and function return and argument types.
8236         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8237         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
8238         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8239         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
8240         completely in the simple compare section.
8241         (gimple_register_canonical_type): Query the cache again after
8242         registering.
8243
8244 2011-05-12  Richard Guenther  <rguenther@suse.de>
8245
8246         PR tree-optimization/48172
8247         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8248         the number of iterations from the segment size calculation.
8249         (vect_create_cond_for_alias_checks): Adjust.
8250
8251 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8252
8253         PR debug/48967
8254         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8255         if validate_subreg fails.
8256
8257 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
8258
8259         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8260         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8261         early.
8262
8263 2011-05-12  DJ Delorie  <dj@redhat.com>
8264
8265         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8266         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8267         created builtin into rx_builtins array.
8268         (rx_builtin_decl): New function.
8269         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
8270
8271 2011-05-12  DJ Delorie  <dj@redhat.com>
8272             Nick Clifton  <nickc@redhat.com>
8273
8274         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8275         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8276         (rx_is_legitimate_address): Add pre-decrement and post-increment
8277         addressing in HImode and QImode.  Fix test for out of range
8278         REG+INT addressing.
8279         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8280         (rx_align_for_label): Test label before extracting its usage count.
8281         (rx_adjust_insn_lengths): Fix selection of insn codes.
8282         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8283
8284 2011-05-11  Jason Merrill  <jason@redhat.com>
8285
8286         * tree.c (type_hash_canon): Use struct tree_type_non_common.
8287
8288 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8289
8290         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8291         reindent the subsequent block.
8292
8293 2011-05-11  Satoru Takabayashi  <satorux@google.com>
8294             Paul Pluzhnikov  <ppluzhnikov@google.com>
8295
8296         * doc/install.texi (Configuration): Document --with-linker-hash-style.
8297         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8298         * config.in: Add LINKER_HASH_STYLE.
8299         * configure.ac: Add --with-linker-hash-style.
8300         * configure: Regenerate.
8301
8302 2011-05-11  Richard Guenther  <rguenther@suse.de>
8303
8304         PR middle-end/48964
8305         * gimple.c (iterative_hash_canonical_type): Fix typo.
8306
8307 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
8308
8309         * config/i386/i386.c (legitimize_tls_address)
8310         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8311         expanders directly for TARGET_GNU2_TLS.  Determine pic and
8312         __tls_get_addr symbol reference here.  Update call to
8313         gen_tls_global_dynamic_{32,64} for added arguments.
8314         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8315         expanders directly for TARGET_GNU2_TLS.  Determine
8316         __tls_get_addr symbol reference here.  Update call to
8317         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
8318         unique UNSPEC REG_EQUIV to libcall block.
8319         (ix86_tls_get_addr): Declare static.
8320         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8321         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8322         Do not determine pic and __tls_get_addr symbol reference here. Do not
8323         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8324         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8325         (tls_global_dynamic_64): Add operand 2.  Do not determine
8326         __tls_get_addr symbol reference here.  Do not call
8327         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8328         (tls_local_dynamic_base64): Ditto for operand 1.
8329
8330 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8331
8332         * function.c (expand_function_start): Initialize stack_check_probe_note
8333         only if the generic stack checking mechanism is used.
8334
8335 2011-05-11  Richard Guenther  <rguenther@suse.de>
8336
8337         PR tree-optimization/15256
8338         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8339         (A & B) | C, combine (A op CST1) op CST2.
8340         (tree_ssa_forward_propagate_single_use_vars): Only bother to
8341         visit assigns that have uses.
8342
8343 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
8344
8345         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8346         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8347         (unpack_ts_type_common_value_fields): ...this.  Update comment.
8348         (unpack_value_fields): Adjust for renaming.
8349         (lto_input_ts_type_tree_pointers): Split into...
8350         (lto_input_ts_type_common_tree_pointer): ...this and...
8351         (lto_input_ts_type_non_common_tree_pointers): ...this.
8352         (lto_input_tree_pointers): Adjust for above split.
8353         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8354         (pack_ts_type_common_value_fields): ...this.  Update comment.
8355         (lto_output_ts_type_tree_pointers): Split into...
8356         (lto_output_ts_type_common_tree_pointers): ...this and...
8357         (lto_output_ts_type_non_common_tree_pointers): ...this.
8358         (lto_output_tree_pointers): Adjust for above split.
8359         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8360         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8361         * stor-layout.c (vector_type_mode): Adjust location of mode field.
8362         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8363         Define.
8364         (struct tree_type): Split into...
8365         (struct tree_type_common: ...this and...
8366         (struct tree_type_with_lang_specific): ...this and...
8367         (struct tree_type_non_common): ...this.  Adjust accessor macros
8368         accordingly.
8369         (TYPE_VALUES_RAW): Define.
8370         (union tree_node): Update for above changes.
8371         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8372         TS_TYPE_NON_COMMON.
8373         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8374         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8375         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8376         * treestructu.def (TS_TYPE): Remove.
8377         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8378         Define.
8379
8380 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
8381
8382         PR debug/48159
8383         * tree-ssa.c (reset_debug_uses): New function.
8384         * tree-flow.h (reset_debug_uses): New prototype.
8385         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8386         * tree-loop-distribution.c (generate_loops_for_partition): Call
8387         reset_debug_uses on the stmts that will be removed.  Keep around
8388         all debug stmts, don't count them as bits in partition bitmap.
8389         (generate_builtin): Don't count debug stmts or labels as bits in
8390         partition bitmap.
8391
8392 2011-05-11  Richard Guenther  <rguenther@suse.de>
8393
8394         * gimple.c (gimple_type_hash_1): Merge with ...
8395         (gimple_type_hash): ... this.
8396         (gtc_visit): Remove mode parameter and simplify accordingly.
8397         (gimple_types_compatible_p_1): Likewise.
8398         (gimple_types_compatible_p): Likewise.
8399         (iterative_hash_gimple_type): Likewise.
8400         (visit): Likewise.
8401         (gimple_type_eq): Adjust.
8402
8403 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8404
8405         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8406         enters the branch create an anti edge in the opposite direction
8407         to prevent the creation of reg-moves.
8408         * modulo-sched.c: Adjust comment to reflect the fact we are
8409         scheduling closing branch.
8410         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8411         (stage_count): New field in struct partial_schedule.
8412         (calculate_stage_count): New function.
8413         (normalize_sched_times): Rename to reset_sched_times and handle
8414         incrementing the sched time of the nodes by a constant value
8415         passed as parameter.
8416         (duplicate_insns_of_cycles): Skip closing branch.
8417         (sms_schedule_by_order): Schedule closing branch.
8418         (ps_insn_find_column): Handle closing branch.
8419         (sms_schedule): Call reset_sched_times and adjust the code to
8420         support scheduling of the closing branch.
8421         (ps_insert_empty_row): Update calls to normalize_sched_times
8422         and rotate_partial_schedule functions.
8423
8424 2011-05-11  Richard Guenther  <rguenther@suse.de>
8425
8426         PR middle-end/48953
8427         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8428
8429 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
8430
8431         * opts.c (finish_options): Move warning settings from process_options.
8432         * toplev.c (process_options): Move warning settings to finish_options.
8433
8434 2011-05-11  Richard Guenther  <rguenther@suse.de>
8435
8436         PR tree-optimization/18041
8437         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8438         (simplify_bitwise_binary): ... this.  Handle operand conversions
8439         by applying them to the result instead.
8440         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
8441
8442 2011-05-11  Richard Guenther  <rguenther@suse.de>
8443
8444         * gimple.c (gimple_canonical_types_compatible_p): Split out
8445         from gimple_types_compatible_p and friends.  Do not recurse
8446         to pointed-to types.
8447         (gimple_canonical_type_eq): Use it.
8448         (iterative_hash_canonical_type): Split out from
8449         iterative_hash_gimple_type and friends.  Do not recurse
8450         to pointed-to types.
8451         (gimple_canonical_type_hash): Use it, allocate the hash here.
8452
8453 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8454
8455         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8456         recognizing doloop.
8457
8458 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8459
8460         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8461         instead of PREV_INSN.
8462
8463 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8464
8465         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8466         * loop-doloop.c (doloop_condition_get): Likewise.
8467         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8468         (doloop_end): New.
8469         * config/arm/arm.md (*addsi3_compare0): Remove "*".
8470
8471 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
8472
8473         * tree.def (CASE_LABEL_EXPR): Add an operand.
8474         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8475
8476 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8477
8478         * c-decl.c (c_override_global_bindings_to_false): Remove.
8479         (global_bindings_p): Don't check
8480         c_override_global_bindings_to_false.
8481         * c-tree.h (c_override_global_bindings_to_false): Remove.
8482         * c-typeck.c (composite_type): Don't set
8483         c_override_global_bindings_to_false.
8484
8485 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8486
8487         PR target/48857, 48495
8488         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8489         (VSX_MODE): Ditto.
8490         (VSX_MOVE_MODE): Ditto.
8491         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8492         VSX vector types.  Add V2DImode.
8493         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8494         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8495         (MODES_TIEABLE_P): Ditto.
8496
8497         * config/rs6000/rs6000.c (rs6000_emit_move): Use
8498         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8499         VSX_VECTOR_MODE.
8500         (init_cumulative_args): Ditto.
8501         (rs6000_function_arg_boundary): Ditto.
8502         (rs6000_function_arg_advance_1): Ditto.
8503         (rs6000_function_arg): Ditto.
8504         (rs6000_function_ok_for_sibcall): Ditto.
8505         (emit_frame_save): Ditto.
8506         (rs6000_function_value): Ditto.
8507         (rs6000_libcall_value): Ditto.
8508
8509 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8510
8511         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8512         i386/darwin-lib.h to $libgcc_tm_file.
8513         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8514
8515 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8516
8517         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8518
8519 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8520
8521         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8522         * config/rs6000/rs6000-tables.opt: New file (generated).
8523         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8524         rs6000/rs6000-tables.opt to extra_options.
8525         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8526         * config/rs6000/rs6000.c (rs6000_select): Remove.
8527         (processor_target_table): Move contents to rs6000-cpus.def.
8528         (darwin_rs6000_override_options): Check
8529         global_options_set.x_rs6000_cpu_index instead of
8530         rs6000_select[1].string.
8531         (rs6000_option_override_internal): Likewise.
8532         (rs6000_handle_option): Don't assert that global structures are in
8533         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
8534         (rs6000_default_cpu): New variable.
8535         (rs6000_file_start): Set it instead of local default_cpu.  Check
8536         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8537         global_options_set.x_rs6000_tune_index instead of rs6000_select.
8538         (rs6000_darwin_file_start): Check rs6000_default_cpu and
8539         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8540         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8541         rs6000_select): Remove.
8542         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8543         Remove.
8544         (mcpu=, mtune=): Use Var, Init, Enum and Save.
8545         * config/rs6000/t-rs6000
8546         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8547         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8548         global_options_set.x_rs6000_cpu_index instead of
8549         rs6000_select[1].string.
8550         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8551         global_options_set.x_rs6000_cpu_index instead of
8552         rs6000_select[1].string.
8553
8554 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8555
8556         * config.gcc (libgcc_tm_file): Define instead of including files
8557         from ../../libgcc/config/ in tm_file.
8558         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8559         * configure: Regenerate.
8560         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8561         libgcc_tm.h, cs-libgcc_tm.h): New.
8562         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8563         (clean): Remove libgcc_tm.h.
8564         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8565         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8566         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8567
8568 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
8569
8570         PR target/48896
8571         * config/avr/avr.c (avr_ret_register): Return unsigned int
8572         instead of int.
8573         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8574         it to avr_libcall_value.
8575         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8576         expand_expr.
8577         (avr_expand_binop_builtin): Ditto.
8578         (avr_expand_unop_builtin): Ditto.
8579
8580 2011-05-10  DJ Delorie  <dj@redhat.com>
8581
8582         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8583         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8584         * config/rx/rx.c (rx_align_for_label): Add label and
8585         uses_threshold parameters.  Do not align when the label is not
8586         used enough.
8587         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8588
8589 2011-05-10  Richard Guenther  <rguenther@suse.de>
8590
8591         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8592         a series of conversions and apply foldings similar to what
8593         fold-const does.
8594         (tree_ssa_forward_propagate_single_use_vars): Call it.
8595
8596 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
8597
8598         PR tree-optimization/48611
8599         PR tree-optimization/48794
8600         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8601         referenced from RESX or EH_DISPATCH arguments.
8602
8603         PR debug/48928
8604         * dfp.c (decimal_to_decnumber): Handle conversion from
8605         dconst{1,2,m1,half}.
8606
8607 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8608
8609         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8610         for !flag_prefer_avx128.
8611         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8612
8613 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
8614
8615         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8616         (fold_ternary_loc): Use expr_location_or.
8617
8618 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8619
8620         PR debug/48853
8621         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8622         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8623         Pmode and mem_mode is not VOIDmode.
8624
8625 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
8626
8627         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8628         TYPE_QUAL_RESTRICT): Convert to enum.
8629
8630 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8631
8632         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8633         (const_pow2_1_to_8_operand): Ditto.
8634         (const_pow2_1_to_128_operand): Ditto.
8635         (const_pow2_1_to_32768_operand): Ditto.
8636         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8637         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
8638         in insn constraint to check integer value of operand 3.
8639         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8640
8641         (PINSR_MODE): New mode iterator.
8642         (sse2p4_1): New mode attribute.
8643         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8644         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8645         iterator.  Use const_int_operand instead of
8646         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
8647         exact_log2 in insn constraint to check integer value of operand 3.
8648
8649 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8650
8651         * config/i386/sse.md (blendbits): Remove mode attribute.
8652         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8653         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8654         Check integer value of operand 3 in insn constraint.
8655
8656 2011-05-09  Richard Guenther  <rguenther@suse.de>
8657
8658         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8659         for diagnostics.
8660         (lto_symtab_merge): Likewise.  Do not register types here.
8661         (lto_symtab_merge_decls_2): Likewise.
8662         (lto_symtab_merge_decls_1): Likewise.
8663         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8664         * gimple.c (enum gtc_mode): Declare.
8665         (gimple_types_compatible_p): Make static.
8666
8667 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8668
8669         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8670         temporary register to match Pmode.
8671
8672 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8673
8674         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8675         and *vec_concatv4si_1_avx.
8676
8677 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8678
8679         PR rtl-optimization/48927
8680         * ira-conflicts.c (commutative_constraint_p): Use
8681         recog_data.alternative_enabled_p to disable alternatives where
8682         "enabled" attribute is false.
8683         (get_dup_num): Ditto.
8684         * ira-lives.c (single_reg_class): Ditto.
8685         (ira_implicitly_set_insn_hard_regs): Ditto.
8686
8687 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
8688
8689         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8690         (dataflow_set_preserve_mem_locs): Likewise.
8691
8692 2011-05-09  Philipp Thomas  <pth@suse.de>
8693
8694         * config/mep/mep.c (mep_validate_vliw): Syntax description
8695         should not be translated.
8696
8697 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
8698
8699         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8700         * config/mips/mips-tables.opt: New file (generated).
8701         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
8702         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8703         MIPS_ARCH_OPTION_NATIVE): Define.
8704         * config/mips/mips.c (mips_cpu_info_table): Move contents to
8705         mips-cpus.def.
8706         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8707         mips_parse_cpu): Remove.
8708         (mips_cpu_info_from_opt, mips_default_arch): New.
8709         (mips_handle_option): Don't assert that global structures are in
8710         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8711         (mips_option_override): Use new variables and functions to set
8712         state of these options.  Use strcmp to check for individual CPU names.
8713         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8714         definition.
8715         * config/mips/mips.opt (march=): Use ToLower and Enum.
8716         (mips): Use ToLower, Enum and Var.
8717         (mtune=): Use ToLower and Enum.
8718         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8719
8720 2011-05-08  Jan Hubicka  <jh@suse.cz>
8721
8722         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8723         Arrange type pairs to be UID ordered.
8724         (gimple_lookup_type_leader): Make inline.
8725
8726 2011-05-09  Nick Clifton  <nickc@redhat.com>
8727
8728         PR target/48899
8729         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8730         PROCESSOR_DEFAULT.
8731
8732         PR target/48897
8733         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8734         variable 's'.
8735
8736 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
8737
8738         * combine.c (simplify_comparison): Abstract out parts into...
8739         (simplify_compare_const): ... new function.
8740         (try_combine): Generalize parallel arithmetic/compare combining
8741         to call simplify_compare_const() and CANONICALIZE_COMPARE().
8742
8743 2011-05-08  Jan Hubicka  <jh@suse.cz>
8744
8745         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
8746         (cgraph_create_virtual_clone): Call hooks once virtual clone
8747         is finished.
8748         * cgraph.h (cgraph_clone_node): Update prototype.
8749         * ipa-cp.c (ipcp_estimate_growth): Use
8750         estimate_ipcp_clone_size_and_time.
8751         * ipa-inline-transform.c (clone_inlined_nodes): Update.
8752         * lto-cgraph.c (input_node): Update.
8753         * ipa-inline.c (recursive_inlining): Update.
8754         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8755         (evaluate_conditions_for_known_args): Break out from ...
8756         (evaluate_conditions_for_edge): ... here.
8757         (evaluate_conditions_for_ipcp_clone): New function.
8758         (inline_node_duplication_hook): Update clone summary based
8759         on parameter map.
8760         (estimate_callee_size_and_time): Rename to ...
8761         (estimate_node_size_and_time): take NODE instead of EDGE;
8762         take POSSIBLE_TRUTHS as argument.
8763         (estimate_callee_size_and_time): Update.
8764         (estimate_ipcp_clone_size_and_time): New function.
8765         (do_estimate_edge_time): Update.
8766
8767 2011-05-08  Richard Guenther  <rguenther@suse.de>
8768
8769         PR middle-end/48908
8770         PR middle-end/48905
8771         * expmed.c (expand_shift_1): Compute adjusted constant shift
8772         amount manually.
8773
8774 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
8775
8776         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8777
8778 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
8779
8780         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8781
8782 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
8783
8784         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8785
8786 2011-05-07  Jan Hubicka  <jh@suse.cz>
8787
8788         * ipa-inline-transform.c (inline_call): Account when program size
8789         decreases.
8790         * ipa-inline.c (relative_time_benefit): New function.
8791         (edge_badness): Reorganize to be power 2 based; fix thinko when
8792         computing badness for negative growth; update comments to match
8793         reality; better dumps.
8794
8795 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
8796
8797         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8798         type to bool and adjust comment.
8799         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8800         (fold_mathfn_compare): Remove calls to global_bindings_p.
8801         (fold_inf_compare): Likewise.
8802         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8803         * c-tree.h (global_bindings_p): Adjust prototype.
8804         * c-decl.c (global_bindings_p): Return bool and simplify.
8805
8806 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
8807
8808         PR tree-optimization/48837
8809         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8810         when accumulator transformation is performed.
8811
8812 2011-05-06  Jan Hubicka  <jh@suse.cz>
8813
8814         * i386.h (ix86_tune_indices): Add
8815         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
8816         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
8817         * i386.c (initial_ix86_tune_features): Add
8818         X86_SOFTARE_PREFETCHING_BENEFICIAL.
8819         (software_prefetching_beneficial_p): Remove predicate.
8820         (ix86_option_override_internal): Use new macro.
8821
8822 2011-05-06  Jan Hubicka  <jh@suse.cz>
8823
8824         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8825
8826 2011-05-06  Jan Hubicka  <jh@suse.cz>
8827
8828         * cgraph.c (cgraph_add_thunk): Create real function node instead
8829         of alias node; finalize it and mark needed/reachale; arrange visibility
8830         to be right and add it into the corresponding same comdat group list.
8831         (dump_cgraph_node): Dump thunks.
8832         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
8833         cgraph_function_with_gimple_body_p,
8834         cgraph_first_function_with_gimple_body,
8835         cgraph_next_function_with_gimple_body): New functions.
8836         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8837         New macros.
8838         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8839         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8840         * cgraphunit.c (cgraph_finalize_function): Only look into possible
8841         devirtualization when optimizing.
8842         (verify_cgraph_node): Verify thunks.
8843         (cgraph_analyze_function): Analyze thunks.
8844         (cgraph_mark_functions_to_output): Output thunks only in combination
8845         with function they are assigned to.
8846         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8847         alias into normal node.
8848         (assemble_thunks): New functoin.
8849         (cgraph_expand_function): Use it.
8850         * lto-cgraph.c (lto_output_node): Stream thunks.
8851         (input_overwrite_node): Stream in thunks.
8852         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8853         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8854         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8855         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8856         (inline_analyze_function): Do not care about thunk jump functions.
8857         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
8858         * ipa-prop.c (ipa_prop_write_jump_functions): Use
8859         cgraph_function_with_gimple_body_p.
8860         * passes.c (do_per_function_toporder): Use
8861         cgraph_function_with_gimple_body_p.
8862         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8863         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8864         (function_called_by_processed_nodes_p): Likewise.
8865
8866 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
8867
8868         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8869         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8870         entries.
8871         (mabi=): Replace with separate entries for mabi=altivec,
8872         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
8873         mabi=ieeelongdouble and mabi=ibmlongdouble.
8874         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
8875         check for -mabi=spe without SPE ABI support here.
8876         (rs6000_handle_option): Replace OPT_mabi_ handling with
8877         OPT_mabi_altivec and OPT_mabi_spe handling.
8878
8879 2011-05-06  Cary Coutant  <ccoutant@google.com>
8880
8881         * dwarf2out.c (contains_subprogram_definition): New function.
8882         (should_move_die_to_comdat): Call it.
8883
8884 2011-05-06  Jeff Law  <law@redhat.com>
8885
8886         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
8887         remove_ctrl_stmt_and_useless_edges.
8888         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
8889         (fixup_template_block, thread_single_edge): Likewise.
8890         (mark_threaded_blocks): Use THREAD_TARGET.
8891
8892 2011-05-06  Alan Modra  <amodra@gmail.com>
8893
8894         PR target/48900
8895         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8896         const0_rtx as the arg to the dummy __tls_get_addr libcall.
8897
8898 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
8899
8900         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
8901         constraint modifier to "r".
8902
8903 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
8904
8905         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
8906         fall through for OPT_mcmodel_.
8907
8908 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8909
8910         * config/s390/s390.c (s390_asm_trampoline_template): Comment
8911         instruction sizes.
8912         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
8913
8914 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8915
8916         PR target/47930
8917         * config/arm/arm.opt (marm): Document it.
8918         (mthumb): Reject negative variant.
8919
8920 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
8921
8922         PR target/48898
8923         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8924         Fix typo in "ccvt" variable name.
8925
8926 2011-05-06  Tristan Gingold  <gingold@adacore.com>
8927
8928         PR target/48895
8929         * config/vms/vms-ar.c (main): Remove cwd variable.
8930
8931 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
8932
8933         PR debug/48902
8934         * var-tracking.c (prepare_call_arguments): Move else before #endif.
8935
8936 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
8937
8938         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
8939         * gimplify.c (gimplify_switch_expr): Likewise.
8940         * omp-low.c (expand_omp_sections): Likewise.
8941         * tree-eh.c (lower_try_finally_switch): Likewise.
8942         (lower_eh_dispatch): Likewise.
8943         * tree.h (build_case_label): Declare.
8944         * tree.c (build_case_label): Define.
8945
8946 2011-05-05  Jason Merrill  <jason@redhat.com>
8947
8948         PR c++/40975
8949         * tree-inline.c (copy_tree_r): Use copy_statement_list.
8950         (copy_statement_list): Don't recurse.
8951         * stor-layout.c (copy_self_referential_tree_r): Don't allow
8952         STATEMENT_LIST.
8953
8954 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
8955
8956         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
8957         through from -mfpu= handling.
8958         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
8959
8960 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
8961
8962         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
8963         POST_MODIFY.
8964
8965 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
8966
8967         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
8968         for 11.31.
8969         (hppa[12]*-*-hpux11*): Ditto.
8970         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
8971         * config/ia64/hpux-unix2003.h: New.
8972         * config/pa/pa-hpux1131.opt: New.
8973         * config/pa/pa-hpux1131.h: New.
8974         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
8975         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
8976         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
8977
8978 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
8979
8980         PR debug/48853
8981         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
8982         instead of mode as 3rd argument to recursive call.
8983         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
8984         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
8985         VOIDmode.
8986         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
8987         don't give up if mode is Pmode and mem_mode is not VOIDmode.
8988         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
8989         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
8990
8991 2011-05-05  Julian Brown  <julian@codesourcery.com>
8992
8993         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
8994         parenthesis in D-register case.
8995
8996 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
8997
8998         * opt-functions.awk (var_type_struct): Handle Enum options.
8999         * optc-gen.awk: Don't check range of variables of character type.
9000         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9001         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9002         rs6000_sdata_name, rs6000_explicit_options): Remove.
9003         (rs6000_option_override_internal): Check for -malign-power here.
9004         Use global_options_set instead of rs6000_explicit_options.
9005         (rs6000_parse_fpu_option): Remove.
9006         (rs6000_handle_option): Access variables via opts and opts_set
9007         pointers.  Use error_at and warning_at.  Add fall-through
9008         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9009         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9010         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9011         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9012         here.  Don't use rs6000_parse_fpu_option.
9013         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9014         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9015         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9016         (mrecip=): Use Var.
9017         (mspe): Use Var and Save.
9018         (mtraceback=): Use Enum and Var.
9019         (rs6000_traceback_type): New Enum and EnumValue entries.
9020         (mfloat-gprs=): Use Enum, Var and Save.
9021         (rs6000_float_gprs): New Enum and EnumValue entries.
9022         (mlong-double-): use Var and Save.
9023         (msched-costly-dep=, minsert-sched-nops=): Use Var.
9024         (malign-): Use Enum and Var.
9025         (rs6000_alignment_flags): New Enum and EnumValue entries.
9026         (mfpu=): Use Enum.
9027         (fpu_type_t): New Enum and EnumValue entries.
9028         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9029         global_options_set instead of rs6000_explicit_options.
9030         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9031         global_options_set instead of rs6000_explicit_options.
9032         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9033         global_options_set instead of rs6000_explicit_options.
9034         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9035         global_options_set instead of rs6000_explicit_options.
9036         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9037         global_options_set instead of rs6000_explicit_options.
9038         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9039         global_options_set instead of rs6000_explicit_options.
9040         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9041         definition.
9042         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9043         global_options_set instead of rs6000_explicit_options.
9044         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9045         (rs6000_cmodel): New Enum and EnumValue entries.
9046         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9047         global_options_set instead of rs6000_explicit_options.
9048         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9049         (mtls-size=): Use Enum and Var.
9050         (rs6000_tls_size): New Enum and EnumValue entries.
9051
9052 2011-05-05  Michael Matz  <matz@suse.de>
9053
9054         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9055         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9056         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9057         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9058         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9059         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9060         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9061         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9062         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9063         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9064         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9065         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9066         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9067         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9068         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9069         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9070
9071 2011-05-05  Richard Guenther  <rguenther@suse.de>
9072
9073         * expmed.c (expand_variable_shift): Rename to ...
9074         (expand_shift_1): ... this.  Take an expanded shift amount.
9075         For rotates recurse directly not building trees for the shift amount.
9076         (expand_variable_shift): Wrap around expand_shift_1.
9077         (expand_shift): Adjust.
9078
9079 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
9080
9081         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9082
9083 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9084
9085         * tree.h (get_pending_sizes): Remove prototype.
9086         (put_pending_size): Likewise.
9087         (put_pending_sizes): Likewise.
9088         * stor-layout.c (pending_sizes): Delete.
9089         (get_pending_sizes): Likewise.
9090         (put_pending_size): Likewise.
9091         (put_pending_sizes): Likewise.
9092         (variable_size): Do not call put_pending_size and tidy up.
9093         * function.h (struct function): Remove dont_save_pending_sizes_p.
9094         * lto-streamer-in.c (input_function): Do not stream it.
9095         * lto-streamer-out.c (output_function): Likewise.
9096         * tree-inline.c (initialize_cfun): Do not copy it.
9097         * c-decl.c (store_parm_decls): Do not set it.
9098         * omp-low.c (create_task_copyfn): Likewise.
9099         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9100
9101 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
9102
9103         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9104         conditions.
9105         (*movdf_internal): Ditto.
9106         (*movdf_internal_nointeger): Ditto.
9107         (*movsf_internal): Ditto.
9108
9109 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9110
9111         * c-decl.c (finish_decl): Don't call get_pending_sizes.
9112         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
9113         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
9114         (c_variable_size): Remove.
9115         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
9116         call put_pending_sizes.
9117         (get_parm_info): Add parameter expr.  Use it to set
9118         arg_info->pending_sizes.
9119         (store_parm_decls): Use arg_info->pending_sizes instead or calling
9120         get_pending_sizes.
9121         * c-parser.c (c_parser_parms_declarator): Update call to
9122         c_parser_parms_list_declarator.
9123         (c_parser_parms_list_declarator): Take parameter expr.  Update
9124         call to push_parm_decl.  Update recursive call.  Don't call
9125         get_pending_sizes.  Update calls to get_parm_info.
9126         (c_parser_objc_method_definition): Update calls to
9127         c_parser_objc_method_decl and objc_start_method_definition.
9128         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9129         (c_parser_objc_method_decl): Add parameter expr.  Update call to
9130         grokparm.
9131         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9132         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9133         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9134
9135 2011-05-05  Michael Hope  <michael.hope@linaro.org>
9136
9137         PR pch/45979
9138         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9139         __ARM_EABI__ hosts.
9140
9141 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9142
9143         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9144         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9145         (spu_output_mi_thunk): New function.
9146
9147 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9148
9149         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9150         targetm.asm_out.print_operand.
9151         * config/sol2.c: Include target.h.
9152
9153 2011-05-04  Jan Hubicka  <jh@suse.cz>
9154
9155         * ipa-inline.c (reset_edge_caches): New function.
9156         (update_caller_keys): Add check_inlinablity_for; do not
9157         reset edge caches; remove now unnecesary loop.
9158         (update_callee_keys): Add comments; reset node_growth_cache of callee.
9159         (update_all_callee_keys): Likewise.
9160         (inline_small_functions): Sanity check cache; update code
9161         recomputing it.
9162
9163 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
9164
9165         PR rtl-optimization/47612
9166         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9167         as the last insn of the sequence to be moved.
9168
9169 2011-05-04  Tobias Burnus  <burnus@net-b.de>
9170
9171         PR fortran/48864
9172         * doc/invoke.texi (Ofast): Document that it
9173         enables Fortran's -fno-protect-parens.
9174
9175 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9176
9177         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9178
9179 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9180
9181         * stor-layout.c (variable_size): Do not issue errors.
9182
9183 2011-05-04  Richard Guenther  <rguenther@suse.de>
9184
9185         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9186         for array-ref indices.
9187         (tree_coverage_counter_addr): Likewise.
9188         (build_fn_info_type): Use size_int for index types.
9189         (build_gcov_info): Likewise.
9190
9191 2011-05-04  Richard Guenther  <rguenther@suse.de>
9192
9193         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9194         to build_int_cst.
9195         * c-typeck.c (really_start_incremental_init): Use bitsize_int
9196         for constructor indices.
9197         (push_init_level): Likewise.
9198
9199 2011-05-04  Richard Guenther  <rguenther@suse.de>
9200
9201         * explow.c (promote_mode): Move variable declarations before code.
9202
9203 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
9204
9205         * tree.h (build_function_type_array): Declare.
9206         (build_varargs_function_type_array): Declare.
9207         (build_function_type_vec, build_varargs_function_type_vec): Define.
9208         * tree.c (build_function_type_array_1): New function.
9209         (build_function_type_array): New function.
9210         (build_varargs_function_type_array): New function.
9211
9212 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
9213
9214         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9215         before setting STMT_VINFO_TYPE.
9216
9217 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9218
9219         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9220         instead of spu_pass_by_reference.
9221
9222 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9223
9224         * calls.c (emit_library_call_value_1): Invoke
9225         promote_function_mode hook on libcall arguments.
9226         * explow.c (promote_function_mode, promote_mode): Handle TYPE
9227         argument being NULL.
9228         * targhooks.c (default_promote_function_mode): Lisewise.
9229         * config/s390/s390.c (s390_promote_function_mode): Likewise.
9230         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9231
9232         * doc/tm.texi: Document that TYPE argument might be NULL.
9233
9234 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9235
9236         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9237
9238 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9239
9240         From Bernd Schmidt
9241         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9242
9243 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9244
9245         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9246         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9247         Move ...
9248         * mips-tfile.c: ... here.
9249         Don't include coretypes.h, tm.h, filenames.h.
9250         (saber_stop): Remove definition and all calls.
9251         [__SABER__]: Remove.
9252         (__LINE__): Remove default.
9253         (Size_t, Ptrdiff_t): Remove definitions.
9254         Replace by size_t, ptrdiff_t.
9255         [!MIPS_DEBUGGING_INFO]: Remove.
9256         (SHASH_SIZE, THASH_SIZE): Remove defaults.
9257         (progname): Add const.
9258         (STATIC): Remove.
9259         Replace all uses by static.
9260         (ALIGN_SYMTABLE_OFFSET): Remove default.
9261         * mips-tdump.c: Don't include coretypes.h, tm.h.
9262         Remove !MIPS_IS_STAB guard.
9263         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9264         $(TM_H), filenames.h dependencies.
9265         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9266
9267 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9268
9269         From Jie Zhang
9270         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9271         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9272
9273 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9274
9275         From Bernd Schmidt
9276         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9277         account and save/restore RETS.
9278         (PROFILE_BEFORE_PROLOGUE): Define.
9279         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
9280         the push insn to use predecrement.
9281
9282 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9283
9284         From Jie Zhang
9285         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9286
9287 2011-05-04  Nick Clifton  <nickc@redhat.com>
9288
9289         * config/mn10300/mn10300.c: Include cfgloop.h.
9290         (DUMP): New macro.
9291         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
9292         Lcc or a FLcc insn into the instruction stream.
9293         (mn10300_block_contains_call): New function.  Returns true if the
9294         given basic block contains a CALL insn.
9295         (mn10300_loop_contains_call_insn): New function.  Returns true if
9296         the given loop contains a CALL insn.
9297         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
9298         to use the SETLB and Lcc or FLcc insns.
9299         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9300         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9301         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
9302         disable the SETLB optimization.
9303         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9304         __SETLB__ or __NO_SETLB__.
9305         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9306         (movsf_internal): Handle MDR register.
9307         (cmpsi): Make visible.
9308         (setlb): New pattern.
9309         (Lcc): New pattern.
9310         (FLcc): New pattern.
9311
9312 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9313
9314         PR target/48860
9315         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9316         for reg<->xmm moves.
9317         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9318         (vec_concatv2di_rex64_sse): Ditto.
9319         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9320         (*vec_extractv2di_1_rex64): Ditto.
9321
9322         Revert:
9323         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9324
9325         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9326         reg<->xmm moves.
9327         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9328
9329 2011-05-04  Richard Guenther  <rguenther@suse.de>
9330
9331         * tree.h (int_const_binop): Remove notrunc argument.
9332         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
9333         create integer constants that are properly truncated.
9334         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9335         (const_binop): Remove zero notrunc argument to int_const_binop.
9336         (size_binop_loc): Likewise.
9337         (fold_div_compare): Likewise.
9338         (maybe_canonicalize_comparison_1): Likewise.
9339         (fold_comparison): Likewise.
9340         (fold_binary_loc): Likewise.
9341         (multiple_of_p): Likewise.
9342         * expr.c (store_constructor): Likewise.
9343         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9344         (maybe_fold_stmt_addition): Likewise.
9345         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9346         * stor-layout.c (layout_type): Likewise.
9347         * tree-data-ref.c (tree_fold_divides_p): Likewise.
9348         * tree-sra.c (build_ref_for_offset): Likewise.
9349         (build_user_friendly_ref_for_offset): Likewise.
9350         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9351         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9352         * tree-ssa-loop-niter.c (inverse): Likewise.
9353         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9354         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9355         * tree-switch-conversion.c (check_range): Likewise.
9356         (build_constructors): Likewise.
9357         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9358         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9359         (extract_range_from_assert): Likewise.
9360         (vrp_int_const_binop): Likewise.
9361         (extract_range_from_binary_expr): Likewise.
9362         (extract_range_from_unary_expr): Likewise.
9363         (check_array_ref): Likewise.
9364         (find_case_label_range): Likewise.
9365         (simplify_div_or_mod_using_ranges): Likewise.
9366         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9367         comparing case labels for merging.
9368
9369 2011-05-03  Mark Wielaard  <mjw@redhat.com>
9370
9371         * dwarf2out.c (debug_str_hash_forced): Removed.
9372         (gen_label_for_indirect_string): Removed.
9373         (get_debug_string_label): Removed.
9374         (AT_string_form): Generate label directly.
9375         (output_indirect_string): Test indirect_string_node for
9376         DW_FORM_strp instead of checking label and refcount.
9377         (prune_indirect_string): Removed.
9378         (prune_unused_types): Don't check debug_str_hash_forced or
9379         call prune_indirect_string.
9380
9381 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9382
9383         PR other/48093
9384         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9385
9386 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9387
9388         PR debug/47994
9389         PR debug/47919
9390         * combine.c (try_combine): Skip debug insns at m_split tests.
9391
9392 2011-04-26  Mark Wielaard  <mjw@redhat.com>
9393
9394         PR42288
9395         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9396         when info_section_emitted.
9397
9398 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
9399
9400         * config/mips/mips-opts.h: New.
9401         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9402         to mips-opts.h.
9403         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9404         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9405         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
9406         via opts pointer.
9407         * config/mips/mips.h (enum mips_code_readable_setting): Move to
9408         mips-opts.h.
9409         (mips_abi, mips_code_readable): Don't declare.
9410         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9411         (mabi=): Use Enum and Var.
9412         (mips_abi): New Enum and EnumValue entries.
9413         (mcode-readable=): Use Enum and Var.
9414         (mips_code_readable_setting): New Enum and EnumValue entries.
9415         (mr10k-cache-barrier=): Use Enum and Var.
9416         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9417
9418 2011-05-03  Jan Hubicka  <jh@suse.cz>
9419
9420         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9421         replace hash by pointer map.
9422         (cgraph_node_set_element_def, cgraph_node_set_element,
9423         const_cgraph_node_set_element, varpool_node_set_element_def,
9424         varpool_node_set_element, const_varpool_node_set_element): Remove.
9425         (free_cgraph_node_set, free_varpool_node_set): New function.
9426         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9427         * tree-emutls.c: Free varpool node set.
9428         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9429         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9430         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9431         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9432         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9433         Move here from ipa.c; implement using pointer_map
9434         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9435         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9436         debug_cgraph_node_set, varpool_node_set_new,
9437         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9438         dump_varpool_node_set, debug_varpool_node_set):
9439         Move to ipa-uitls.c.
9440         * passes.c (ipa_write_summaries): Update.
9441
9442 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9443
9444         From Mike Frysinger:
9445         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9446         bf542/bf544/bf547/bf548/bf549.
9447
9448 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
9449
9450         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9451
9452 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9453
9454         From Bernd Schmidt:
9455         * config/bfin/bfin.md (MOVCC): New mode_macro.
9456         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9457         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
9458         comments from generated assembly.
9459
9460 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9461
9462         From Bernd Schmidt
9463         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9464         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9465         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9466         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9467         * config/bfin/lib1funcs.asm (___muldi3): New function.
9468
9469 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9470
9471         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9472         build_function_type_list instead of build_function_type.
9473         Rearrange initialization of `args' to do so.
9474
9475 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9476
9477         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9478         instead of build_function_type.
9479
9480 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9481
9482         * config/rs6000/rs6000.c (spe_init_builtins): Call
9483         build_function_type_list instead of build_function_type.
9484         (paired_init_builtins, altivec_init_builtins): Likewise.
9485         (builtin_function_type): Likewise.
9486
9487 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9488
9489         * config/sh/sh.c (sh_media_init_builtins): Call
9490         build_function_type_list instead of build_function_type.
9491
9492 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9493
9494         * config/sparc/sparc.c (sparc_file_end): Call
9495         build_function_type_list instead of build_function_type.
9496
9497 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9498
9499         * config/alpha/alpha.c (alpha_init_builtins): Call
9500         build_function_type_list instead of build_function_type.
9501
9502 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9503
9504         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9505         build_function_type_list instead of build_function_type.
9506
9507 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9508
9509         * config/iq2000/i2000.c (iq2000_init_builtins): Call
9510         build_function_type_list instead of build_function_type.
9511         Delete `endlink' variable.
9512
9513 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9514
9515         * config/avr/avr.c (avr_init_builtins): Call
9516         build_function_type_list instead of build_function_type.
9517
9518 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9519
9520         * config/picochip/picochip.c (picochip_init_builtins): Call
9521         build_function_type_list instead of build_function_type.
9522         Delete `endlink' variable.
9523
9524 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9525
9526         * config/bfin/bfin.c (bfin_init_builtins): Call
9527         build_function_type_list instead of build_function_type.
9528
9529 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9530
9531         From Bernd Schmidt
9532         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9533         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
9534
9535 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9536
9537         From Jie Zhang:
9538         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9539         libbffastfp overrides libgcc when -mfast-fp.
9540
9541 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9542
9543         Originally from Bernd Schmidt
9544         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9545         * config/bfin/bfin.c (override_options): Test it and error if
9546         TARGET_FDPIC.
9547
9548 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9549
9550         Originally From Bernd Schmidt
9551         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9552         FD-PIC.
9553
9554 2011-05-03  Jeff Law  <law@redhat.com>
9555
9556         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9557         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9558         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9559         than accessing AUX field directly.  Free the AUX field before
9560         clearing it.
9561         (thread_block, thread_through_loop_header): Likewise.
9562         (thread_single_edge, mark_threaded_blocks): Likewise.
9563         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
9564         (register_jump_thread): Do not attempt to thread to a NULL edge.
9565
9566 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
9567
9568         * function.c (init_function_start): Call decide_function_section.
9569         * varasm.c (decide_function_section): New function.
9570         (assemble_start_function): When not using
9571         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9572         or first_function_block_is_cold.
9573         * rtl.h (decide_function_section): Declare.
9574
9575 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
9576             Jakub Jelinek  <jakub@redhat.com>
9577
9578         PR target/48774
9579         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9580         only succeed if req_mode is the same as set_mode.
9581
9582 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
9583
9584         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9585         * genemit.c (gen_exp): Handle RETURN.
9586         * emit-rtl.c (verify_rtx_sharing): Likewise.
9587         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9588         * rtl.c (copy_rtx): RETURN is shared.
9589         * rtl.h (enum global_rtl_index): Add GR_RETURN.
9590         (ret_rtx): New.
9591         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9592         * config/s390/s390.c (s390_emit_epilogue): Likewise.
9593         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9594         * config/cris/cris.c (cris_expand_return): Likewise.
9595         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9596         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9597         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9598         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9599         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9600         Likewise.
9601         * config/v850/v850.c (expand_epilogue): Likewise.
9602         * config/bfin/bfin.c (bfin_expand_call): Likewise.
9603         * config/arm/arm.md (epilogue): Likewise.
9604         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9605         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9606         variable to ret_reg.
9607
9608 2011-05-03  Richard Guenther  <rguenther@suse.de>
9609
9610         PR lto/48846
9611         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9612         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9613         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9614
9615 2011-05-03  Richard Guenther  <rguenther@suse.de>
9616
9617         * c-decl.c (grokdeclarator): Instead of looking at
9618         TREE_OVERFLOW check if the constant fits in the index type.
9619
9620 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
9621
9622         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9623         (vec_store_lanes<mode><mode>): Likewise.
9624
9625 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
9626
9627         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9628         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9629         convert_optab_index values.
9630         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9631         * genopinit.c (optabs): Initialize the new optabs.
9632         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9633         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9634         (expand_STORE_LANES): New functions.
9635         * tree.h (build_array_type_nelts): Declare.
9636         * tree.c (build_array_type_nelts): New function.
9637         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9638         (vect_model_load_cost): Likewise.
9639         (vect_store_lanes_supported, vect_load_lanes_supported)
9640         (vect_record_strided_load_vectors): Declare.
9641         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9642         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9643         (vect_transform_strided_load): Split out statement recording into...
9644         (vect_record_strided_load_vectors): ...this new function.
9645         * tree-vect-stmts.c (create_vector_array, read_vector_array)
9646         (write_vector_array, create_array_ref): New functions.
9647         (vect_model_store_cost): Add store_lanes_p argument.
9648         (vect_model_load_cost): Add load_lanes_p argument.
9649         (vectorizable_store): Try to use store-lanes functions for
9650         interleaved stores.
9651         (vectorizable_load): Likewise load-lanes and loads.
9652         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9653         to vect_model_store_cost.
9654         (vect_build_slp_tree): Likewise vect_model_load_cost.
9655
9656 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
9657
9658         * hooks.h (hook_bool_mode_uhwi_false): Declare.
9659         * hooks.c (hook_bool_mode_uhwi_false): New function.
9660         * target.def (array_mode_supported_p): New hook.
9661         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9662         * doc/tm.texi: Regenerate.
9663         * stor-layout.c (mode_for_array): New function.
9664         (layout_type): Use it.
9665         * config/arm/arm.c (arm_array_mode_supported_p): New function.
9666         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9667
9668 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
9669
9670         PR target/48723
9671         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9672         for -fstack-check if the size to allocate is negative.
9673
9674 2011-05-02  Lawrence Crowl  <crowl@google.com>
9675
9676         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9677         (timevar_cond_start): New for starting a timer only when it is not
9678         already running.
9679         (timevar_cond_stop): New for stopping a timer when it was not already
9680         running.
9681
9682         * timevar.c (timevar_stop): Enable start/stop timers to start again.
9683         (timevar_cond_start): New as above.
9684         (timevar_cond_stop): New as above.
9685
9686         * timevar.def: Add start/stop timers for compiler phases,
9687         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9688         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9689         and TV_PHASE_FINALIZE.
9690         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9691         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9692         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9693         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9694         Make unused TV_OVERLOAD into a start/stop timer.
9695
9696         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9697         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9698         to indicate that they are start/stop timers.
9699
9700         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9701         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9702         Move initialization to do_compile.
9703         (do_compile): Add initialization from above.
9704         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9705
9706         * c-decl.c (c_write_global_declarations): Add start/stop of
9707         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9708
9709         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9710         or TV_PARSE_INLINE, as appropriate.
9711         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9712         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9713
9714 2011-05-02  Jason Merrill  <jason@redhat.com>
9715
9716         PR c++/40975
9717         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9718
9719 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
9720
9721         PR c/35445
9722         * c-decl.c (finish_decl): Only create a composite if the types are
9723         compatible.
9724
9725 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
9726
9727         * config/fr30/fr30-protos.h (Mmode): Don't define.
9728         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
9729         definition where used.
9730         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9731         define.  Expand definitions where used.
9732         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9733         Expand definitions where used.
9734         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9735         rx_function_arg, rx_function_arg_advance,
9736         rx_function_arg_boundary): Expand definitions of those macros.
9737         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
9738         definition where used.
9739
9740 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9741
9742         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9743         reg<->xmm moves.
9744         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9745         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
9746         with *movv2sf_internal_rex64_avx.
9747         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9748         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9749         Use %v prefix in insn mnemonic to handle TARGET_AVX.
9750         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
9751         "vex" in "prefix" attribute calculation.
9752         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
9753
9754 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
9755
9756         PR target/47951
9757         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9758         inputs match the output.
9759
9760 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
9761
9762         PR target/47955
9763         * config/m68k/m68k.c (m68k_expand_prologue): Set
9764         current_function_static_stack_size.
9765
9766 2011-05-02   Jan Hubicka  <jh@suse.cz>
9767
9768         * lto-streamer.c (lto_streamer_cache_insert_1,
9769         lto_streamer_cache_lookup, lto_streamer_cache_create,
9770         lto_streamer_cache_delete): Use pointer map instead of hashtable.
9771         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9772
9773 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
9774
9775         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9776         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9777         config/m68k/t-opts: New files.
9778         * config/m68k/m68k-tables.opt: New file (generated).
9779         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9780         extra_options and m68k/t-opts to tmake_file.
9781         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9782         (all_isas): Initialize using m68k-isas.def.
9783         (all_microarchs): Initialize using m68k-microarchs.def.
9784         (m68k_find_selection): Remove.
9785         (m68k_handle_option): Don't assert that global structures are in
9786         use.  Use error_at.  Access variables via opts pointer.  Don't
9787         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
9788         directly for -m68020-40 and -m68020-60.
9789         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9790         m68k_tune_entry here.
9791         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9792         to m68k-opts.h.
9793         (m68k_library_id_string): Remove declaration.
9794         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
9795         (m68k_library_id_string): New Variable.
9796         (march=, mcpu=, mtune=): Use Enum and Var.
9797
9798 2011-05-02  Richard Guenther  <rguenther@suse.de>
9799
9800         * varasm.c (output_constructor_regular_field): Compute zero-based
9801         index with double-ints.  Make sure to ICE instead of producing
9802         wrong code.
9803         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9804         in asserts.  Properly use a signed type.
9805
9806 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9807
9808         * config/i386/sse.md (V): New mode iterator.
9809         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
9810         TARGET_SSE2.
9811         (V_256): Rename from AVX256MODE.
9812         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
9813         condition to all users.
9814         (VF1): Ditto.
9815         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
9816         condition to all users.
9817         (VF_128): Make V4SF mode unconditional.
9818         (VF_256): Rename from AVX256MODEF2P.
9819         (VI4F_128): Rename from SSEMODE4S.
9820         (VI8F_128): Rename from SSEMODE2D.
9821         (VI4F_256): Rename from AVX256MODE8P.
9822         (VI8F_256): Rename from AVX256MODE4P.
9823         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9824         (ssescalarmodesuffix): Remove SF and DF modes.
9825         (SSEMODE124): Remove.
9826         (SSEMODE1248): Ditto.
9827         (SSEMODEF2P): Ditto.
9828         (AVXMODEF2P): Ditto.
9829         (AVXMODEFDP): Ditto.
9830         (AVXMODEFSP): Ditto.
9831         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9832         unconditional.
9833         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
9834         unconditional.
9835         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9836         xop_pcmov_<mode>256.  Use V mode iterator.
9837
9838         Adjust RTX patterns globally for renamed mode attributes.
9839
9840 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9841
9842         * haifa-sched.c (sched_emit_insn): Emit insn before first
9843         non-scheduled insn.  Inform back-end about new insn.  Add
9844         new insn to scheduled_insns list.
9845
9846 2011-05-02  Richard Guenther  <rguenther@suse.de>
9847
9848         PR tree-optimization/48822
9849         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9850         (process_scc): Indicate which iteration we start.
9851
9852 2011-05-02  Jan Hubicka  <jh@suse.cz>
9853
9854         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9855         (lto_section_overrun): New.
9856         * lto-section-out.c (append_block): Rename to ...
9857         (lto_append_block): ... this one; export.
9858         (lto_output_1_stream): Move lto lto-streamer.h
9859         (lto_output_data_stream): Update.
9860         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9861         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9862         functions.
9863
9864 2011-05-02  Richard Guenther  <rguenther@suse.de>
9865
9866         * tree.c (tree_code_counts): New global array.
9867         (record_node_allocation_statistics): Count individual tree codes.
9868         (dump_tree_statistics): Dump individual code stats.
9869
9870 2011-05-01  Jan Hubicka  <jh@suse.cz>
9871
9872         * ipa-inline.c (caller_growth_limits): Fix thinko when
9873         looking for largest stack frame.
9874         * ipa-inline.h (dump_inline_summary): Declare.
9875         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
9876         on stack usage.
9877         (dump_inline_summary): Export.
9878         (debug_inline_summary): Declare as DEBUG_FUNCTION.
9879
9880 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
9881
9882         * reginfo.c (memory_move_cost): Change rclass argument type form
9883         'enum reg_class' to reg_class_t.
9884         * reload.h (memory_move_cost): Update prototype.
9885         * postreload.c reload_cse_simplify_set): Change type dclass var to
9886         reg_class_t.
9887         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
9888         Update prototype.
9889         (ira_allocate_and_set_costs): Change aclass argument type form
9890         'enum reg_class' to reg_class_t.
9891         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
9892         Change aclass argument type to reg_class_t.
9893         (update_conflict_hard_reg_costs): Change type aclass and pref vars
9894         to reg_class_t.
9895         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
9896         memory_move_cost call.
9897
9898         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
9899         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
9900         Change type tmp var to reg_class_t.
9901
9902 2011-04-30  Jan Hubicka  <jh@suse.cz>
9903
9904         * ipa-inline.c (can_inline_edge_p): Disregard limits when
9905         inlining into function with flatten attribute.
9906         (want_inline_small_function_p): Be more realistic about inlining
9907         cold calls where callee size grows.
9908
9909 2011-04-30  Jan Hubicka  <jh@suse.cz>
9910
9911         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
9912         flags.
9913
9914 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
9915
9916         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9917         PRINT_OPERAND_PUNCT_VALID_P): Remove.
9918         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
9919         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
9920         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9921         (print_operand): Rename to...
9922         (sparc_print_operand): ...this. Make static. Adjust
9923         sparc_print_operand function call.
9924         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
9925         functions.
9926
9927 2011-04-30  Jan Hubicka  <jh@suse.cz>
9928
9929         PR middle-end/48752
9930         * ipa-inline.c (early_inliner): Disable when doing late
9931         addition of function.
9932
9933 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
9934
9935         * dwarf2out.c (get_address_mode): New inline.
9936         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
9937         if not dwarf_strict emit
9938         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
9939         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
9940         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
9941         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
9942         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
9943         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
9944         mem_loc_descriptor callers.
9945         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9946         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
9947         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
9948         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
9949         (base_types): New variable.
9950         (get_base_type_offset, calc_base_type_die_sizes,
9951         base_type_for_mode, mark_base_types, base_type_cmp,
9952         move_marked_base_types): New functions.
9953         (calc_die_sizes): Assert that die_offset is 0 or equal to
9954         next_die_offset.
9955         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
9956         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
9957         callers.  If not dwarf_strict, call mem_loc_descriptor even for
9958         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
9959         (gen_subprogram_die): Don't give up on call site parameters
9960         with non-integral or large integral modes.  Adjust
9961         mem_loc_descriptor callers.
9962         (prune_unused_types): Call prune_unused_types_mark on base_types
9963         vector entries.
9964         (resolve_addr): Call mark_base_types.
9965         (dwarf2out_finish): Call move_marked_base_types.
9966
9967         PR tree-optimization/48809
9968         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
9969         type.
9970         (gen_inbound_check): Don't compute index_expr - range_min in utype
9971         again, instead reuse SSA_NAME initialized in build_arrays.
9972         Remove two useless gsi_for_stmt calls.
9973
9974 2011-04-29  Jeff Law  <law@redhat.com>
9975
9976         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
9977
9978 2011-04-29  Martin Jambor  <mjambor@suse.cz>
9979
9980         * cgraph.h (cgraph_postorder): Remove declaration.
9981         * ipa-utils.h (ipa_free_postorder_info): Declare.
9982         (ipa_reverse_postorder): Likewise.
9983         * cgraphunit.c: Include ipa-utils.h.
9984         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
9985         * ipa-inline.c: Include ipa-utils.h.
9986         (ipa_inline): Update call to ipa_reverse_postorder.
9987         * ipa-pure-const.c (propagate_pure_const): Update call to
9988         ipa_reduced_postorder and ipa_print_order.  Call
9989         ipa_free_postorder_info to clean up.
9990         (propagate_nothrow): Likewise.
9991         * ipa-reference.c (propagate): Removed a useless call to
9992         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
9993         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
9994         * ipa.c: Include ipa-utils.h.
9995         (ipa_profile): Update call to ipa_reverse_postorder.
9996         (cgraph_postorder): Moved to...
9997         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
9998         (ipa_utils_print_order): Renamed to ipa_print_order.
9999         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10000         comments.
10001         (ipa_free_postorder_info): New function.
10002         * passes.c: Include ipa-utils.h.
10003         (do_per_function_toporder): Update call to ipa_reverse_postorder.
10004         (ipa_write_summaries): Likewise.
10005         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10006         (cgraphunit.o): Likewise.
10007         (ipa.o): Likewise.
10008         (ipa-inline.o): Likewise.
10009
10010 2011-04-29  Jan Hubicka  <jh@suse.cz>
10011
10012         * gcc.dg/tree-ssa/inline-10.c: New testcase.
10013         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10014         * ipa-inline.h (clause_t): Turn into unsigned int.
10015         * ipa-inline-analysis.c (add_clause): Do more simplification.
10016         (and_predicates): Shortcut more cases.
10017         (predicates_equal_p): Move forward; check that clauses are properly
10018         ordered.
10019         (or_predicates): Shortcut more cases.
10020         (edge_execution_predicate): Rewrite as...
10021         (set_cond_stmt_execution_predicate): ... this function; handle
10022         __builtin_constant_p.
10023         (set_switch_stmt_execution_predicate): New .
10024         (compute_bb_predicates): New.
10025         (will_be_nonconstant_predicate): Update TODO.
10026         (estimate_function_body_sizes): Use compute_bb_predicates
10027         and free them later, always try to estimate if stmt is constant.
10028         (estimate_time_after_inlining, estimate_size_after_inlining):
10029         Gracefully handle optimized out edges.
10030         (read_predicate): Fix off by one error.
10031
10032 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10033
10034         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10035
10036 2011-04-27  Xinliang David Li  <davidxl@google.com>
10037
10038         * tree-profile.c (init_ic_make_global_vars): Set
10039         tls attribute on ic vars.
10040         * coverage.c (coverage_end_function): Initialize
10041         function_list with zero.
10042
10043 2011-04-29  Richard Guenther  <rguenther@suse.de>
10044
10045         * builtins.c (fold_builtin_classify_type): Use integer_type_node
10046         for the type of the result.
10047         (fold_builtin_isascii): Likewise.
10048         (fold_builtin_toascii): Use integer_type_node where appropriate.
10049         (fold_builtin_logb): Likewise.
10050         (fold_builtin_frexp): Likewise.
10051         (fold_builtin_strstr): Likewise.
10052         (fold_builtin_strpbrk): Likewise.
10053         (fold_builtin_fputs): Likewise.
10054         (fold_builtin_sprintf): Likewise.
10055         (fold_builtin_snprintf): Likewise.
10056         (fold_builtin_printf): Likewise.
10057         (do_mpfr_remquo): Use a proper type for the assigned constant.
10058         (do_mpfr_lgamma_r): Likewise.
10059         * dwarf2out.c (resolve_one_addr): Use size_int.
10060         * except.c (init_eh): Likewise.
10061         (assign_filter_values): Use integer_type_node for filter values.
10062         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10063         indices.
10064         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10065         for EH region numbers.
10066         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10067         for the shift amount.
10068
10069 2011-04-29  Richard Guenther  <rguenther@suse.de>
10070
10071         * expr.h (expand_shift): Rename to ...
10072         (expand_variable_shift): ... this.
10073         (expand_shift): Take a constant shift amount.
10074         * expmed.c (expand_shift): Rename to ...
10075         (expand_variable_shift): ... this.
10076         (expand_shift): New wrapper around expand_variable_shift.
10077         * expr.c (convert_move, emit_group_load_1, emit_group_store,
10078         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10079         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10080         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10081         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10082         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10083         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10084         emit_store_flag_1, emit_store_flag): Likewise.
10085         * builtins.c (expand_builtin_signbit): Likewise.
10086         * calls.c (load_register_parameters): Likewise.
10087         * function.c (assign_parm_setup_block): Likewise.
10088         * lower-subreg.c (resolve_shift_zext): Likewise.
10089         * optabs.c (widen_bswap, expand_abs_nojump,
10090         expand_one_cmpl_abs_nojump, expand_float): Likewise.
10091         * spu/spu.c (spu_expand_extv): Likewise.
10092         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10093
10094 2011-04-29  Richard Guenther  <rguenther@suse.de>
10095
10096         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10097         for the remapped region number.
10098         * predict.c (build_predict_expr): Use integer_type_node for the
10099         predict kind.
10100         * fold-const.c (fold_binary_loc): Use integer_type_node for
10101         the shift amount.  Use a proper type for the PLUS_EXPR operand.
10102
10103 2011-04-29  Michael Matz  <matz@suse.de>
10104
10105         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10106         other trees that just builtins.
10107         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10108
10109 2011-04-29  Richard Guenther  <rguenther@suse.de>
10110
10111         * tree-nested.c (get_trampoline_type): Use size_int.
10112         (get_nl_goto_field): Likewise.
10113         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10114         for all indexes.
10115         (lower_eh_constructs_2): Likewise.
10116         (lower_resx): Likewise.
10117         (lower_eh_dispatch): Likewise.
10118         * tree-mudflap.c (mf_build_string): Use size_int.
10119         (mudflap_register_call): Use integer_type_node for the flag.
10120         (mudflap_enqueue_constant): Use size_int.
10121         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10122         instead of rebuilding it.
10123
10124 2011-04-29  Richard Guenther  <rguenther@suse.de>
10125
10126         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10127         Handle OBJ_TYPE_REF.
10128         (find_func_aliases_for_call): Use it more consistently.
10129
10130 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
10131
10132         * haifa-sched.c (last_nondebug_scheduled_insn): New.
10133         (rank_for_schedule): Use it.
10134         (schedule_block): Set it.
10135
10136 2011-04-28  David Li  <davidxl@google.com>
10137
10138         * tree.c (crc32_string): Use crc32_byte.
10139         (crc32_byte): New function.
10140         * tree.h (crc32_byte): New function.
10141         * gcov.c (read_graph_file): Handle new cfg_cksum.
10142         (read_count_file): Ditto.
10143         * profile.c (instrument_values): Ditto.
10144         (get_exec_counts): Ditto.
10145         (read_profile_edge_counts): Ditto.
10146         (compute_branch_probabilities): Ditto.
10147         (compute_value_histograms): Ditto.
10148         (branch_prob): Ditto.
10149         (end_branch_prob): Ditto.
10150         * coverage.c (read_counts_file): Ditto.
10151         (get_coverage_counts): Ditto.
10152         (tree_coverage_counter_addr): Ditto.
10153         (coverage_checksum_string): Ditto.
10154         (coverage_begin_output): Ditto.
10155         (coverage_end_function): Ditto.
10156         (build_fn_info_type): Ditto.
10157         (build_fn_info_value): Ditto.
10158         * libgcov.c (gcov_exit): Ditto.
10159         * gcov-dump.c (tag_function): Ditto.
10160         (compute_checksum): Remove.
10161
10162 2011-04-29  Alan Modra  <amodra@gmail.com>
10163
10164         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10165         unspec plus offset.  Tidy macho code.
10166
10167 2011-04-29  Martin Jambor  <mjambor@suse.cz>
10168
10169         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10170         node instead of a decl.  Update all callers.
10171         * cgraph.h: Update declaration.
10172
10173 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
10174
10175         PR tree-optimization/48765
10176         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10177         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10178         to indicate if loop aware SLP is being used.  Scan the statements
10179         and update the vectorization factor according to the type of
10180         vectorization before statement analysis.
10181         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10182         pass it to vect_analyze_loop_operations.
10183         (vectorizable_reduction): Set number of copies to 1 in case of pure
10184         SLP statement.
10185         * tree-vect-stmts.c (vectorizable_conversion,
10186         vectorizable_assignment, vectorizable_shift,
10187         vectorizable_operation, vectorizable_type_demotion,
10188         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10189         Likewise.
10190         (vectorizable_condition): Move the check that it is not SLP
10191         vectorization before the number of copies check.
10192         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10193         to vectorize the loop using SLP.
10194
10195 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
10196
10197         PR middle-end/48597
10198         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10199         inline asm.
10200
10201 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
10202
10203         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10204         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10205         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10206         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10207         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10208         linux*.h headers.
10209         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10210         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10211         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10212         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10213         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10214         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10215         REG_NAME.
10216         * config/i386/linux.h (REG_NAME): Don't define.
10217         * config/i386/linux64.h (REG_NAME): Don't define.
10218         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10219         Undefine before defining.
10220
10221 2011-04-28  Jan Hubicka  <jh@suse.cz>
10222
10223         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10224         nonconstant_names array.
10225         (estimate_function_body_sizes): Build nonconstant_names array; handle
10226         BUILT_IN_CONSTANT_P.
10227
10228 2011-04-28  Richard Guenther  <rguenther@suse.de>
10229
10230         PR bootstrap/48804
10231         Revert
10232         2011-04-28  Richard Guenther  <rguenther@suse.de>
10233
10234         * tree-ssa-structalias.c (solve_constraints): Build succ graph
10235         as late as possible.
10236
10237 2011-04-28  Richard Guenther  <rguenther@suse.de>
10238
10239         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10240         (debug_constraint): Do it here.
10241         (dump_constraints): And here.
10242         (rewrite_constraints): And here.
10243         (dump_constraint_edge): Remove.
10244         (dump_constraint_graph): Rewrite to produce DOT output.
10245         (solve_constraints): Build succ graph as late as possible.
10246         Dump constraint graphs before and after solving.
10247
10248 2011-04-28  Richard Guenther  <rguenther@suse.de>
10249
10250         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10251         New function split out from ...
10252         (find_func_aliases): ... here.  Call it.
10253         (find_func_aliases_for_call): Likewise.
10254
10255 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10256
10257         * internal-fn.h (internal_fn_name_array): Declare.
10258         (internal_fn_flags_array): Likewise.
10259
10260 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10261
10262         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
10263         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10264         Move from sse.md.
10265         (ssemodefsuffix): Remove.
10266         (ssevecmodesuffix): New mode attribute.
10267         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10268         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10269         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10270         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10271         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10272         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10273         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10274         ssemodesuffix mode attribute.
10275         (float splitters): Use ssevecmodesuffix mode attribute.
10276         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10277         (sseinsmode): Rename from avxvecmode.
10278         (avxsizesuffix): Rename from avxmodesuffix.
10279         (sseintvecmode): Rename from avxpermvecmode.
10280         (ssedoublevecmode): Rename from ssedoublesizemode.
10281         (ssehalfvecmode): Rename from avxhalfvecmode.
10282         (ssescalarmode): Rename from avxscalarmode.
10283         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10284         templates for ssemodesuffix mode attribute.
10285         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10286         mode attribute.
10287
10288         Adjust RTX patterns globally for renamed mode attributes.
10289
10290 2011-04-27  Jan Hubcika  <jh@suse.cz>
10291
10292         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10293         * ipa-inline-analysis.c: Include alloc-pool.h.
10294         (edge_predicate_pool): New.
10295         (trye_predicate_p): New function
10296         (false_predicate_p): New function.
10297         (add_clause): Sanity check that false clauses are "optimized";
10298         never add clauses to predicate that is already known to be false.
10299         (and_predicate): Use flase_predicate_p.
10300         (evaulate_predicate): Rename to ...
10301         (evaluate_predicate): ... this one; update all callers; assert
10302         that false is not listed among possible truths.
10303         (dump_predicate): Use true_predicate_p.
10304         (account_size_time): Use false_predicate_p.
10305         (evaulate_conditions_for_edge): Rename to ...
10306         (evaluate_conditions_for_edge) ... this one.
10307         (edge_set_predicate): New function.
10308         (inline_edge_duplication_hook): Duplicate edge predicates.
10309         (inline_edge_removal_hook): Free edge predicates.
10310         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10311         (dump_inline_summary): Update.
10312         (estimate_function_body_sizes): Set edge predicates.
10313         (estimate_calls_size_and_time): Handle predicates.
10314         (estimate_callee_size_and_time): Update.
10315         (remap_predicate): Add toplev_predicate; update comment.
10316         (remap_edge_predicates): New function.
10317         (inline_merge_summary): Compute toplev predicate; update.
10318         (read_predicate): New function.
10319         (read_inline_edge_summary): Use it.
10320         (inline_read_section): Likewise.
10321         (write_predicate): New function.
10322         (write_inline_edge_summary): Use it.
10323         (inline_write_summary): Likewise.
10324         (inline_free_summary): Free alloc pool and edge summary vec.
10325
10326 2011-04-27  Richard Guenther  <rguenther@suse.de>
10327
10328         * tree-ssa-structalias.c (changed_count): Remove.
10329         (changed): Use a bitmap.
10330         (unify_nodes): Adjust.
10331         (do_sd_constraint): Likewise.
10332         (do_ds_constraint): Likewise.
10333         (do_complex_constraint): Likewise.
10334         (solve_graph): Likewise.
10335
10336 2011-04-27  Jan Hubicka  <jh@suse.cz>
10337
10338         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10339
10340 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10341
10342         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10343         (avx_vperm2f128_*_operand): Ditto.
10344         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10345         Use avx_vpermilp_parallel in insn condition.
10346         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10347         Use avx_vperm2f128_parallel in insn condition.
10348
10349 2011-04-27  Richard Guenther  <rguenther@suse.de>
10350
10351         * Makefile.in (tree-ssa-structalias.o): Remove
10352         gt-tree-ssa-structalias.h dependency.
10353         (GTFILES): Remove tree-ssa-structalias.c.
10354         * tree.c (allocate_decl_uid): New function.
10355         (make_node_stat): Use it.
10356         (copy_node_stat): Likewise.
10357         * tree.h (allocate_decl_uid): Declare.
10358         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10359         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10360         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10361         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10362         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10363         (struct heapvar_map): Likewise.
10364         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10365         heapvar_insert): Likewise.
10366         (make_heapvar_for): Rename to ...
10367         (make_heapvar): ... this.  Simplify.
10368         (fake_var_decl_obstack): New global var.
10369         (build_fake_var_decl): New function.
10370         (make_constraint_from_heapvar): Adjust.
10371         (handle_lhs_call): Likewise.
10372         (create_function_info_for): Likewise.
10373         (intra_create_variable_infos): Likewise.
10374         (init_alias_vars): Allocate fake_var_decl_obstack.
10375         (init_alias_heapvars, delete_alias_heapvars): Remove.
10376         (compute_points_to_sets): Do not call init_alias_heapvars.
10377         (ipa_pta_execute): Likewise.
10378         (delete_points_to_sets): Free fake_var_decl_obstack.
10379
10380 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10381
10382         * config/spu/divmovti4.c (union qword_UTItype): New data type.
10383         (si_from_UTItype, si_to_UTItype): New functions.
10384         (__udivmodti4): Use them to implement type-punning.
10385         * config/spu/multi3.c (union qword_TItype): New data type.
10386         (si_from_TItype, si_to_TItype): New functions.
10387         (__multi3): Use them to implement type-punning.
10388
10389 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10390
10391         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10392
10393 2011-04-27  Jan Hubicka  <jh@suse.cz>
10394
10395         * ipa-prop.c (function_insertion_hook_holder): New holder.
10396         (ipa_add_new_function): New function.
10397         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10398         Register/deregister holder.
10399
10400 2011-04-27  Richard Guenther  <rguenther@suse.de>
10401
10402         PR tree-optimization/48772
10403         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10404
10405 2011-04-27  Richard Guenther  <rguenther@suse.de>
10406
10407         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10408         TARGET_MEM_REF handling.
10409
10410 2011-04-27  Nick Clifton  <nickc@redhat.com>
10411
10412         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10413         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10414         (REG_CLASS_NAMES): Likewise.
10415         (REG_CLASS_CONTENTS): Likewise.
10416         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
10417         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
10418         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
10419         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
10420         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
10421         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10422         duplicate register classes.
10423         (frv_class_likely_spilled_p): Likewise.
10424         (frv_register_move_cost): Likewise.
10425
10426         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10427         end of the regno_reg_class array.
10428
10429 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
10430
10431         PR c/48742
10432         * c-typeck.c (build_binary_op): Don't wrap arguments if
10433         int_operands is true.
10434
10435 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
10436
10437         PR target/48767
10438         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10439         targetm.calls.must_pass_in_stack for void type.
10440
10441 2011-04-26  Jan Hubicka  <jh@suse.cz>
10442
10443         * cgraphbuild.c (build_cgraph_edges): Update call
10444         of cgraph_create_edge and cgraph_create_indirect_edge.
10445         * cgraph.c (cgraph_create_edge_including_clones,
10446         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10447         cgraph_update_edges_for_call_stmt_node): Do not take nest
10448         argument; do not initialize call_stmt_size/time.
10449         (dump_cgraph_node): Do not dump nest.
10450         (cgraph_clone_edge): Do not take loop_nest argument;
10451         do not propagate it; do not clone call_stmt_size/time.
10452         (cgraph_clone_node): Likewise.
10453         (cgraph_create_virtual_clone): Update.
10454         * cgraph.h (struct cgraph_edge): Remove
10455         call_stmt_size/call_stmt_time/loop_nest.
10456         (cgraph_create_edge, cgraph_create_indirect_edge,
10457         cgraph_create_edge_including_clones, cgraph_clone_node): Update
10458         prototype.
10459         * tree-emutls.c (gen_emutls_addr): Update.
10460         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10461         loop_nest; handle indirect calls, too.
10462         (clone_inlined_nodes): Do not care about updating inline summaries.
10463         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10464         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10465         stream call_stmt_size/call_stmt_time/loop_nest.
10466         * ipa-inline.c (edge_badness): Update.
10467         (ipa_inline): dump summaries after inlining.
10468         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10469         New.
10470         (inline_edge_summary): New function.
10471         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10472         (inline_edge_removal_hook): Handle edge summaries.
10473         (inline_edge_duplication_hook): New hook.
10474         (inline_summary_alloc): Alloc hooks.
10475         (initialize_growth_caches): Do not register removal hooks.
10476         (free_growth_caches); Do not free removal hook.
10477         (dump_inline_edge_summary): New function.
10478         (dump_inline_summary): Use it.
10479         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10480         (inline_update_callee_summaries): New function.
10481         (inline_merge_summary): Use it.
10482         (do_estimate_edge_time, do_estimate_edge_growth): Update.
10483         (read_inline_edge_summary): New function.
10484         (inline_read_section): Use it.
10485         (write_inline_edge_summary): New function.
10486         (inline_write_summary): Use it.
10487         (inline_free_summary): Free edge new holders.
10488         * tree-inline.c (copy_bb): Update.
10489
10490 2011-04-26  Jason Merrill  <jason@redhat.com>
10491
10492         * tree-eh.c (lower_try_finally_switch): Create the label along with
10493         the CASE_LABEL_EXPR.
10494
10495 2011-04-26  David S. Miller  <davem@davemloft.net>
10496             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10497
10498         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10499         * configure: Regenerate.
10500
10501 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10502
10503         PR target/48258
10504         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10505         reduction.
10506         (VEC_reduc): New code iterator and splitters for vector reduction.
10507         (VEC_reduc_name): Ditto.
10508         (VEC_reduc_rtx): Ditto.
10509         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10510         (reduc_<VEC_reduc_name>_v4sf): Ditto.
10511
10512         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10513         support for extracting SF on VSX.
10514
10515         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10516         generating xscvspdp.
10517         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10518         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10519         double add, minimum, maximum vector reduction.
10520         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10521         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10522         optimize double vector reduction.
10523         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10524
10525 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
10526
10527         * config/fr30/fr30.h (inhibit_libc): Don't define.
10528         * config/m32r/m32r-protos.h: Correct comment.
10529         * config/v850/v850.h (GHS_default_section_names,
10530         GHS_current_section_names): Use tree, not union tree_node *.
10531
10532 2011-04-26  Xinliang David Li  <davidxl@google.com>
10533
10534         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10535         * c-family/c-opts.c (c_common_handle_option): Set
10536         warn_maybe_uninitialized.
10537         * opts.c (common_handle_option): Ditto.
10538         * common.opt:  New option.
10539         * tree-ssa.c (warn_uninit): Add one more parameter.
10540         (warn_uninitialized_var): Pass warning code.
10541         * tree-flow.h: Interface change.
10542
10543 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10544
10545         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10546         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10547         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10548
10549 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10550
10551         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10552         * config/mips/mips.opt (mmips-tfile): Remove.
10553
10554         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10555         mips-tdump reference to ...
10556         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
10557         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10558         reference by Tru64 UNIX.
10559
10560 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
10561
10562         PR debug/48768
10563         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10564         is error_mark_node, set value to NULL.
10565
10566         PR tree-optimization/48734
10567         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10568         if return value from maybe_fold_*_comparsions isn't something
10569         the code is prepared to handle.
10570
10571 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
10572
10573         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10574         mode check.
10575         (ext_QIreg_nomode_operands): Remove.
10576         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10577         (*andsi_1): Ditto.
10578         (*andhi_1): Ditto.
10579
10580 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
10581
10582         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10583
10584 2011-04-26  Richard Guenther  <rguenther@suse.de>
10585
10586         * c-typeck.c (build_unary_op): Do not expand array-refs via
10587         pointer arithmetic.  Only adjust qualifiers for function types.
10588
10589 2011-04-26  Richard Guenther  <rguenther@suse.de>
10590
10591         PR middle-end/48694
10592         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10593         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10594         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
10595         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10596
10597 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
10598
10599         * doc/extend.texi: Document __underlying_type.
10600
10601 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
10602
10603         * config/rs6000/titan.md (automata_option "progress"): Remove.
10604
10605 2011-04-25  Jeff Law  <law@redhat.com>
10606
10607         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10608
10609 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10610
10611         * system.h (ENUM_BITFIELD): Remove.
10612
10613 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
10614             Eric Botcazou  <ebotcazou@adacore.com>
10615
10616         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10617         for STORE_FLAG_VALUE==-1 case.
10618
10619 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
10620
10621         PR target/43804
10622         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10623         LEGITIMATE_PIC_OPERAND_P.
10624
10625 2011-04-24  Jan Hubicka  <jh@suse.cz>
10626
10627         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10628         WPA hack.
10629         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10630         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10631         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
10632         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10633         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10634         Sanity check predicate length.
10635         (remap_predicate): Likewise; sanity check jump functions.
10636         (inline_read_section, inline_write_summary): Sanity check
10637         predicate length.
10638
10639 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10640
10641         PR other/48748
10642         * doc/extend.texi (Type Traits): Document __is_standard_layout,
10643         __is_literal_type, and __is_trivial; update throughout about
10644         possibly cv-qualified void types.
10645
10646 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
10647
10648         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10649         testsuite and make it version agnostic.
10650
10651 2011-04-22  Jan Hubicka  <jh@suse.cz>
10652
10653         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10654
10655 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
10656
10657         PR c/48685
10658         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10659         to VOID_TYPE even around MODIFY_EXPR.
10660
10661 2011-04-22  Mike Stump  <mikestump@comcast.net>
10662
10663         * gensupport.c (read_md_rtx): Fix typo in comment.
10664         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10665         comment.
10666
10667 2011-04-22  Jan Hubicka  <jh@suse.cz>
10668
10669         * gengtype.c (open_base_files): Add ipa-inline.h include.
10670         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10671         ipa-prop.c; update all uses.
10672         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
10673         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10674         merge summary of inlined function into former caller.
10675         * ipa-inline.c (max_benefit): Remove.
10676         (edge_badness): Compensate for removal of benefits.
10677         (update_caller_keys): Use
10678         reset_node_growth_cache/reset_edge_growth_cache.
10679         (update_callee_keys): Likewise.
10680         (update_all_callee_keys): Likewise.
10681         (inline_small_functions): Do not collect max_benefit; do not reset
10682         estimated_growth; call free_growth_caches and initialize_growth_caches.
10683         * ipa-inline.h (struct condition, type clause_t, struct predicate,
10684         struct size_time_entry): New structures.
10685         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
10686         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10687         and estimated_growth.
10688         (edge_growth_cache_entry): New structure.
10689         (node_growth_cache, edge_growth_cache): New global vars.
10690         (estimate_growth): Turn into inline.
10691         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10692         initialize_growth_caches, free_growth_caches): Declare.
10693         (estimate_edge_growth): Rewrite.
10694         (estimate_edge_time): Implement as inline cache lookup.
10695         (reset_node_growth_cache, reset_edge_growth_cache): New inline
10696         functions.
10697         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10698         (NUM_CONDITIONS): New constant.
10699         (predicate_conditions): New enum.
10700         (IS_NOT_CONSTANT): New constant.
10701         (edge_removal_hook_holder): New var.
10702         (node_growth_cache, edge_growth_cache): New global vars.
10703         (true_predicate, single_cond_predicate, false_predicate,
10704         not_inlined_predicate, add_condition, add_clause, and_predicates,
10705         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10706         dump_clause, dump_predicate, account_size_time,
10707         evaulate_conditions_for_edge): New functions.
10708         (inline_summary_alloc): Move to heap.
10709         (inline_node_removal_hook): Clear condition and entry vectors.
10710         (inline_edge_removal_hook): New function.
10711         (initialize_growth_caches, free_growth_caches): New function.
10712         (dump_inline_summary): Update.
10713         (edge_execution_predicate): New function.
10714         (will_be_nonconstant_predicate): New function.
10715         (estimate_function_body_sizes): Compute BB and constantness predicates.
10716         (compute_inline_parameters): Do not clear estimated_growth.
10717         (estimate_edge_size_and_time): New function.
10718         (estimate_calls_size_and_time): New function.
10719         (estimate_callee_size_and_time): New function.
10720         (remap_predicate): New function.
10721         (inline_merge_summary): New function.
10722         (do_estimate_edge_time): New function based on...
10723         (estimate_edge_time): ... this one.
10724         (do_estimate_edge_growth): New function.
10725         (do_estimate_growth): New function based on....
10726         (estimate_growth): ... this one.
10727         (inline_analyze_function): Analyze after deciding on jump functions.
10728         (inline_read_section): New function.
10729         (inline_read_summary): Use it.
10730         (inline_write_summary): Write all the new data.
10731         * ipa-prop.c (ipa_get_param_decl_index): Export.
10732         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
10733         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10734         Declare.
10735         (ipa_get_lattice): Move here from ipa-cp.c
10736         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10737         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10738         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10739         cgraph_edge_inlinable_p): Remove.
10740         * cgraphunit.c: Include ipainline.h
10741         (cgraph_process_new_functions): Update call of
10742         compute_inline_parameters.
10743
10744 2011-04-22  Richard Guenther  <rguenther@suse.de>
10745
10746         * tree.c (build_int_cst): Properly create canonicalized integer
10747         constants.
10748         (build_int_cst_type): Remove scary comments.
10749
10750 2011-04-22  Xinliang David Li  <davidxl@google.com>
10751
10752         * toplev.c (process_options): Enable -Werror=coverage-mismatch
10753         by default when -Wno-error is not specified.
10754         * opts-global.c (decode_options): Remove call to
10755         control_warning_options.
10756
10757 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
10758
10759         PR tree-optimization/48717
10760         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10761         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10762
10763 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
10764
10765         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
10766         definition where used.
10767
10768 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
10769
10770         PR c/48716
10771         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10772         TREE_STATIC variables declared inside of some OpenMP construct.
10773
10774 2011-04-22  Martin Jambor  <mjambor@suse.cz>
10775
10776         PR middle-end/48585
10777         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
10778
10779 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
10780
10781         PR c/36750
10782         * c-typeck.c (pop_init_level): Do not warn about initializing
10783         with ` = {0}'.
10784
10785 2011-04-22  Alan Modra  <amodra@gmail.com>
10786
10787         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10788         when returning call_cookie.
10789         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10790         pointers, to functions with no more vector args than the current
10791         function, and some non-local calls for ABI_V4.
10792         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10793         sibcall_nonlocal_aix64): Combine to ..
10794         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
10795         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10796         (sibcall_value_nonlocal_aix<mode>): ..likewise.
10797         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10798         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
10799         operand.
10800         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10801         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10802         sibcall_value_symbolic_64): Delete.
10803
10804 2011-04-21  Xinliang David Li  <davidxl@google.com>
10805
10806         * cgraph.h: Remove pid.
10807         * cgraph.c: Remove pid.
10808         * value-prof.c (init_node_map): New function.
10809         (del_node_map): New function.
10810         (find_func_by_funcdef_no): New function.
10811         (gimple_ic_transform): Call new function.
10812         * cgraphunit.c (cgraph_finalize_function): Remove pid.
10813         * function.c (get_last_funcdef_no): New function.
10814         * function.h (get_last_funcdef_no): New function.
10815         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10816         to libgcov function.
10817         (tree-profiling): Call node map init and delete function.
10818
10819 2011-04-21  Ian Lance Taylor  <iant@google.com>
10820
10821         * godump.c (go_format_type): Use exported Go name for anonymous
10822         field name.
10823
10824 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10825
10826         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10827         Call builtin_function_type_list instead of builtin_function_type.
10828         (UNARY, BINARY, TRINARY, QUAD): Likewise.
10829
10830 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10831
10832         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10833         build_function_type_list instead of build_function_type.
10834         Delete variable `endlink'.
10835
10836 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10837
10838         * config/s390/s390.c (s390_init_builtins): Call
10839         build_function_type_list instead of build_function_type.
10840
10841 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
10842
10843         * config/ia64/ia64.c (ia64_init_builtins): Call
10844         build_function_type_list instead of builtin_function_type.
10845
10846 2011-04-21  Easwaran Raman  <eraman@google.com>
10847
10848         * cfgexpand.c (stack_var): Remove OFFSET...
10849         (add_stack_var): ...and its reference here...
10850         (expand_stack_vars): ...and here.
10851         (stack_var_cmp): Sort by descending order of size.
10852         (partition_stack_vars): Change heuristic.
10853         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
10854         (dump_stack_var_partition): Add newline after each partition.
10855
10856 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
10857             Jeff Law  <law@redhat.com>
10858
10859         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
10860         * gengtype.c (matching_file_name_substitute): Likewise.
10861
10862 2011-04-21  Richard Guenther  <rguenther@suse.de>
10863
10864         PR lto/48703
10865         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
10866
10867 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
10868
10869         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10870
10871 2011-04-21  Richard Guenther  <rguenther@suse.de>
10872
10873         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
10874         file name.
10875
10876 2011-04-21  Richard Guenther  <rguenther@suse.de>
10877
10878         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10879         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10880         Use DECL_P, not SSA_VAR_P.
10881         (ptr_derefs_may_alias_p): Likewise.
10882         (ptr_deref_may_alias_ref_p_1): Likewise.
10883         (decl_refs_may_alias_p): Likewise.
10884         (refs_may_alias_p_1): Likewise.
10885         (ref_maybe_used_by_call_p_1): Likewise.
10886         (call_may_clobber_ref_p_1): Likewise.
10887         (indirect_ref_may_alias_decl_p): Assume indirect refrences
10888         are either MEM_REF or TARGET_MEM_REF.
10889         (indirect_refs_may_alias_p): Likewise.
10890         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
10891         for MEM_EXPR of indirect calls.
10892
10893 2011-04-21  Tristan Gingold  <gingold@adacore.com>
10894
10895         * vmsdbgout.c (write_srccorr): Compute file length from the string.
10896         (dst_file_info_struct): Remove flen field.
10897         (lookup_filename): Remove code that set flen field.
10898
10899 2011-04-21  Tristan Gingold  <gingold@adacore.com>
10900
10901         * config/ia64/ia64.c (ia64_start_function): Add a guard.
10902
10903 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
10904
10905         PR target/48708
10906         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
10907         vec_extract and vec_concat for non-SSE4_1 targets.
10908
10909 2011-04-21  Richard Guenther  <rguenther@suse.de>
10910
10911         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
10912         return statements.
10913
10914 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
10915
10916         * config/i386/cygming.h (union tree_node, TREE): Don't define or
10917         undefine.
10918         (FILE): Don't undefine.
10919
10920 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
10921
10922         * config/alpha/alpha.c (struct machine_function): Use rtx, not
10923         struct rtx_def *.
10924         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
10925         struct rtx_def *.
10926         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
10927         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
10928         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
10929         rtx_def *.
10930         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
10931         definitions where used.
10932         * config/microblaze/microblaze.h (struct microblaze_args): Use
10933         rtx, not struct rtx_def *.
10934         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
10935         rtx_def *.
10936         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
10937         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
10938         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
10939         not struct rtx_def *.
10940         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
10941         struct rtx_def *.
10942         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
10943         rtx_def *.
10944         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
10945
10946 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
10947
10948         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
10949         operand_equal_p to compare DR_BASE_ADDRESSes.
10950         (vect_check_interleaving): Likewise.
10951
10952 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
10953
10954         PR target/46329
10955         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
10956         for all Neon struct constants.
10957
10958 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
10959
10960         * target.def (legitimate_constant_p): New hook.
10961         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
10962         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
10963         * doc/tm.texi: Regenerate.
10964         * hooks.h (hook_bool_mode_rtx_true): Declare.
10965         * hooks.c (hook_bool_mode_rtx_true): Define.
10966         * system.h (LEGITIMATE_CONSTANT_P): Poison.
10967         * calls.c (precompute_register_parameters): Replace uses of
10968         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
10969         (emit_library_call_value_1): Likewise.
10970         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
10971         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
10972         * ira-costs.c (scan_one_insn): Likewise.
10973         * recog.c (general_operand, immediate_operand): Likewise.
10974         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
10975         * reload1.c (init_eliminable_invariants): Likewise.
10976
10977         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
10978         mode argument.
10979         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
10980         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
10981         argument.
10982         (TARGET_LEGITIMATE_CONSTANT_P): Define.
10983         * config/alpha/predicates.md (input_operand): Update call to
10984         alpha_legitimate_constant_p.
10985
10986         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
10987         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
10988         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
10989         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10990         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
10991         (arm_legitimate_constant_p): New functions.
10992         (arm_cannot_force_const_mem): Make static.
10993
10994         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
10995
10996         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
10997         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
10998         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
10999         instead of bfin_legitimate_constant_p.
11000         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
11001         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11002
11003         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11004
11005         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11006
11007         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11008         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11009         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11010         (frv_legitimate_constant_p): Make static.  Add a mode argument.
11011
11012         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11013         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11014         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11015
11016         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11017         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11018         * config/i386/i386.c (legitimate_constant_p): Rename to...
11019         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
11020         argument.
11021         (ix86_cannot_force_const_mem): Update accordingly.
11022         (ix86_legitimate_address_p): Likewise.
11023         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11024         * config/i386/i386.md: Update commentary.
11025
11026         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11027         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11028         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11029         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
11030
11031         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11032
11033         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11034         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11035         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11036         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
11037
11038         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11039         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11040         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11041
11042         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11043         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11044         (m32r_legitimate_constant_p): New function.
11045
11046         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11047         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11048         LEGITIMATE_CONSTANT_P.
11049         (LEGITIMATE_CONSTANT_P): Delete.
11050         * config/m68k/m68k.c (m68k_expand_prologue): Call
11051         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11052         (m68k_legitimate_constant_p): New function.
11053         * config/m68k/m68k.md: Update comments.
11054
11055         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11056         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11057         (mcore_legitimate_constant_p): New function.
11058
11059         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11060         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11061         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11062         Add a mode argument.
11063         (mep_legitimate_address): Update accordingly.
11064         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11065
11066         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11067         Delete.
11068         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11069         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11070         static.  Check OP's mode for VOIDmode.
11071         (microblaze_legitimate_constant_p): New function.
11072         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11073
11074         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11075         * config/mips/mips.c (mips_legitimate_constant_p): New function.
11076         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11077         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11078         * config/mips/predicates.md: Update comments.
11079
11080         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11081         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11082         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11083         (mmix_legitimate_constant_p): Make static, return a bool, and take
11084         a mode argument.
11085         (mmix_print_operand_address): Update accordingly.
11086
11087         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11088         Delete.
11089         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11090         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11091         static.  Add a mode argument.
11092         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11093
11094         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11095
11096         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11097         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11098         (pa_legitimate_constant_p): New function.
11099
11100         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11101
11102         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11103         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11104         (pdp11_legitimate_constant_p): New function.
11105
11106         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11107         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11108         (rs6000_legitimate_constant_p): New function.
11109
11110         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11111         (rx_legitimate_constant_p): ...this.
11112         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11113         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11114         (rx_legitimate_constant_p): ...this.
11115         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11116         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11117
11118         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11119         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11120         * config/s390/s390.c (legitimate_constant_p): Rename to...
11121         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
11122         and add a mode argument.
11123         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11124
11125         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11126
11127         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11128         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11129         (sh_legitimate_constant_p): New function.
11130
11131         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11132         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11133         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11134         (legitimate_constant_p): Rename to...
11135         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
11136         argument.
11137         (constant_address_p): Update accordingly.
11138
11139         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11140         argument and return a bool.
11141         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11142         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11143         (spu_legitimate_constant_p): Add a mode argument and return a bool.
11144         (spu_rtx_costs): Update accordingly.
11145         * config/spu/predicates.md (vec_imm_operand): Likewise.
11146
11147         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11148
11149         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11150         * config/v850/v850.c (v850_legitimate_constant_p): New function.
11151         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11152
11153         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11154         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11155         * config/vax/vax.c (legitimate_constant_p): Likewise.
11156
11157         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11158         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11159         (xtensa_legitimate_constant_p): New function.
11160
11161 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11162
11163         * target.def (cannot_force_const_mem): Add a mode argument.
11164         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11165         * doc/tm.texi: Regenerate.
11166         * hooks.h (hook_bool_mode_rtx_false): Declare.
11167         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11168         (hook_bool_mode_const_rtx_true): Likewise.
11169         (hook_bool_mode_rtx_false): New function.
11170         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11171         to be non-VOID.  Update call to cannot_force_const_mem.
11172         (find_reloads): Update accordingly.
11173         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11174         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11175         argument.
11176         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11177         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11178         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11179         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11180         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11181         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11182         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11183         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11184         (m68k_cannot_force_const_mem): ...this new function.
11185         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11186         argument.
11187         (mips_const_insns, mips_legitimize_const_move): Update calls.
11188         (mips_secondary_reload_class): Likewise.
11189         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11190         (pa_cannot_force_const_mem): ...this new function.
11191         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11192         (rs6000_cannot_force_const_mem): ...this new function.
11193         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11194         argument.
11195         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11196         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11197         to...
11198         (xtensa_cannot_force_const_mem): ...this new function.
11199
11200 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11201
11202         * config/mips/mips.c (mips16_build_function_stub): Call
11203         build_function_type_list instead of build_function_type.
11204         (mips16_build_call_stub): Likewise.
11205
11206 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11207
11208         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11209         instead of build_function_type.
11210
11211 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11212
11213         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11214         instead of build_function_type.
11215
11216 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
11217
11218         PR target/48678
11219         * config/i386/i386.md (insv): Change operand 0 constraint to
11220         "register_operand".  Change operand 1 and 2 constraint to
11221         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
11222         * config/i386/sse.md (sse4_1_pinsrb): Export.
11223         (sse2_pinsrw): Ditto.
11224         (sse4_1_pinsrd): Ditto.
11225         (sse4_1_pinsrq): Ditto.
11226         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11227         * config/i386/i386.c (ix86_expand_pinsr): New.
11228
11229 2011-04-20  Easwaran Raman  <eraman@google.com>
11230
11231         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11232         containing union type only with -fstrict-aliasing.
11233
11234 2011-04-20  Jim Meyering  <meyering@redhat.com>
11235
11236         Remove useless if-before-free tests.
11237         * calls.c (expand_call, save_area): Likewise.
11238         * cfgcleanup.c (try_forward_edges): Likewise.
11239         * collect2.c (collect_execute): Likewise.
11240         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11241         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11242         * coverage.c (coverage_checksum_string): Likewise.
11243         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11244         * cselib.c (cselib_init): Likewise.
11245         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11246         (df_set_clean_cfg): Likewise.
11247         * function.c (free_after_compilation): Likewise.
11248         * gcc.c (do_spec_1, main): Likewise.
11249         * gcov.c (create_file_names): Likewise.
11250         * gensupport.c (identify_predicable_attribute): Likewise.
11251         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11252         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11253         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11254         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11255         * ipa-pure-const.c (local_pure_const): Likewise.
11256         * ipa-reference.c (propagate): Likewise.
11257         * ira-costs.c (free_ira_costs): Likewise.
11258         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11259         * matrix-reorg.c (mat_free): Likewise.
11260         * prefix.c (get_key_value): Likewise.
11261         * profile.c (compute_value_histograms): Likewise.
11262         * reload1.c (free_reg_equiv): Likewise.
11263         * sched-deps.c (free_deps): Likewise.
11264         * sel-sched-ir.c (fence_clear): Likewise.
11265         * sese.c (set_rename, if_region_set_false_region): Likewise.
11266         * tree-data-ref.c (free_rdg): Likewise.
11267         * tree-eh.c (lower_try_finally): Likewise.
11268         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11269         * tree-ssa-live.c (delete_var_map): Likewise.
11270         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11271         * tree-ssa-pre.c (phi_trans_add): Likewise.
11272
11273 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
11274
11275         PR tree-optimization/48611
11276         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11277         beyond ERT_MUST_NOT_THROW region.
11278
11279 2011-04-20  Catherine Moore  <clm@codesourcery.com>
11280
11281         * config/mips/mips.opt (mfix-24k): New.
11282         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11283         * config/mips/mips.md (length): Increase by 4 for stores if
11284         fixing 24K errata.
11285         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11286         all noreorder if fixing 24K errata.
11287         * doc/invoke.texi: Document mfix-24k.
11288
11289 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
11290
11291         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11292         quad-word modes, reduce to 9-bit index range when above 1016 limit.
11293
11294 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11295
11296         * config/arm/arm.c (arm_gen_constant): Move movw support ....
11297         (const_ok_for_op): ... to here.
11298
11299 2011-04-20  Kai Tietz  <ktietz@redhat.com>
11300
11301         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11302         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11303
11304 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11305
11306         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11307
11308 2011-04-20  Richard Guenther  <rguenther@suse.de>
11309
11310         PR tree-optimization/47892
11311         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11312         are if-convertible.
11313
11314 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
11315
11316         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11317
11318 2011-04-20  Tristan Gingold  <gingold@adacore.com>
11319
11320         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11321
11322 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
11323
11324         PR target/18145
11325
11326         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11327         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11328         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11329         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11330         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11331
11332         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11333         New prototype.
11334
11335         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11336         (avr_asm_named_section, avr_asm_output_aligned_common,
11337         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11338         New functions to update...
11339         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11340         (avr_asm_init_sections): Overwrite section callbacks for
11341         data_section, bss_section.
11342         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11343         from here to...
11344         (avr_file_end): ...here.
11345
11346 2011-04-20  Richard Guenther  <rguenther@suse.de>
11347
11348         PR middle-end/48695
11349         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11350         objects and types here.  Adjust for their offset before comparing.
11351
11352 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11353
11354         * tree-vect-stmts.c (vectorizable_store): Only chain one related
11355         statement per copy.
11356
11357 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11358
11359         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11360         (GIMPLE_H): Include $(INTERNAL_FN_H).
11361         (OBJS-common): Add internal-fn.o.
11362         (internal-fn.o): New rule.
11363         * internal-fn.def: New file.
11364         * internal-fn.h: Likewise.
11365         * internal-fn.c: Likewise.
11366         * gimple.h: Include internal-fn.h.
11367         (GF_CALL_INTERNAL): New gf_mask.
11368         (gimple_statement_call): Put fntype into a union with a new
11369         internal_fn field.
11370         (gimple_build_call_internal): Declare.
11371         (gimple_build_call_internal_vec): Likewise.
11372         (gimple_call_same_target_p): Likewise.
11373         (gimple_call_internal_p): New function.
11374         (gimple_call_internal_fn): Likewise.
11375         (gimple_call_fntype): Return null for internal calls.
11376         (gimple_call_set_fntype): Assert that the function is not internal.
11377         (gimple_call_set_fn): Likewise.
11378         (gimple_call_set_fndecl): Likewise.
11379         (gimple_call_set_internal_fn): New function.
11380         (gimple_call_addr_fndecl): Handle null functions.
11381         (gimple_call_return_type): Likewise null types.
11382         * gimple.c (gimple_build_call_internal_1): New function.
11383         (gimple_build_call_internal): Likewise.
11384         (gimple_build_call_internal_vec): Likewise.
11385         (gimple_call_same_target_p): Likewise.
11386         (gimple_call_flags): Handle calls to internal functions.
11387         (gimple_call_fnspec): New function.
11388         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11389         (gimple_has_side_effects): Handle null functions.
11390         (gimple_rhs_has_side_effects): Likewise.
11391         (gimple_call_copy_skip_args): Handle calls to internal functions.
11392         * cfgexpand.c (expand_call_stmt): Likewise.
11393         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11394         * gimple-fold.c (gimple_fold_call): Handle null functions.
11395         (gimple_fold_stmt_to_constant_1): Don't fold
11396         calls to internal functions.
11397         * gimple-low.c (gimple_check_call_args): Handle calls to internal
11398         functions.
11399         * gimple-pretty-print.c (dump_gimple_call): Likewise.
11400         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11401         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11402         (do_warn_unused_result): Likewise.
11403         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11404         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11405         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11406         the target of a call.
11407         (initialize_hash_element): Update accordingly.
11408         (hashable_expr_equal_p): Use gimple_call_same_target_p.
11409         (iterative_hash_hashable_expr): Handle calls to internal functions.
11410         (print_expr_hash_elt): Likewise.
11411         * tree-ssa-pre.c (can_value_number_call): Likewise.
11412         (eliminate): Handle null functions.
11413         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11414         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11415         (find_func_aliases): Likewise.
11416         * value-prof.c (gimple_ic_transform): Likewise.
11417         (gimple_indirect_call_to_profile): Likewise.
11418         * lto-streamer-in.c (input_gimple_stmt): Likewise.
11419         * lto-streamer-out.c (output_gimple_stmt): Likewise.
11420
11421 2011-04-19  Jan Hubicka  <jh@suse.cz>
11422
11423         * ipa-inline-transform.c (save_inline_function_body): Add comments.
11424         * ipa-inline.c (inline_small_functions): Compute summaries first,
11425         populate heap later.
11426
11427 2011-04-19  Jan Hubicka  <jh@suse.cz>
11428
11429         * cgraph.h (save_inline_function_body): Remove.
11430         * ipa-inline-transform.c: New file, broke out of...
11431         * ipa-inline.c: ... this one; Update toplevel comment.
11432         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11433         make global.
11434         (update_noncloned_frequencies): Move to ipa-inline-transform.c
11435         (cgraph_mark_inline_edge): Rename to inline_call; move to
11436         ipa-inline-transform.c.
11437         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11438         move to ipa-inline-transform.c
11439         (recursive_inlining, inline_small_functions, flatten_function,
11440         ipa_inline, inline_always_inline_functions,
11441         early_inline_small_functions): Update.
11442         (inline_transform): Move to ipa-inline-transform.c.
11443         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11444         Declare.
11445         * Makefile.in (ipa-inline-transform.o): New file.
11446         * cgraphunit.c (save_inline_function_body): Move to
11447         ipa-inline-transform.c
11448
11449 2011-04-19  DJ Delorie  <dj@redhat.com>
11450
11451         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11452         registers if we already know there aren't any.
11453         (m32c_emit_epilogue): Don't emit a barrier here.
11454         (m32c_emit_eh_epilogue): Likewise.
11455         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11456         operands at expand time.
11457         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11458         int" wchar type.
11459         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11460         duplicates.  Provide aliases instead.
11461         * config/m32c/prologue.md (eh_return): Emit a barrier here.
11462         (eh_epilogue): Add a "(return)" here as a hint to other parts of
11463         the compiler.
11464
11465 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
11466
11467         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11468         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11469         (general_or_i64_p, sparc_register_move_cost): New function.
11470
11471 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11472
11473         * doc/install.texi (Configuration, --enable-threads): Remove mach.
11474         Add lynx, mipssde.  Sort table.
11475
11476 2011-04-19  Xinliang David Li  <davidxl@google.com>
11477
11478         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11479         not negative.
11480
11481 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
11482
11483         PR target/48678
11484         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11485         is a SUBREG with non-MODE_INT mode inside of it.
11486
11487 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11488
11489         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11490         also according to actual contants.
11491         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11492         (gimple_fold_call): Use it.
11493         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11494
11495 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11496
11497         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11498         non-pointer assignments.
11499
11500 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11501
11502         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11503         account anc_offset and otr_type from the indirect edge info.
11504         * ipa-prop.c (get_ancestor_addr_info): New function.
11505         (compute_complex_ancestor_jump_func): Assignment analysis moved to
11506         get_ancestor_addr_info, call it.
11507         (ipa_note_param_call): Do not initialize information about polymorphic
11508         calls, return the indirect call graph edge.  Remove the last
11509         parameter, adjust all callers.
11510         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11511         parameters.  Initialize polymorphic information in the indirect edge.
11512
11513 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11514
11515         PR lto/48148
11516         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11517         the types if they have different enumeration identifiers.
11518
11519 2011-04-19  Jan Hubicka  <jh@suse.cz>
11520
11521         * cgraph.h (cgraph_optimize_for_size_p): Declare.
11522         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11523         * predict.c (cgraph_optimize_for_size_p): Break out from ...
11524         (optimize_function_for_size_p) ... here.
11525
11526 2011-04-19  Richard Guenther  <rguenther@suse.de>
11527
11528         PR lto/48207
11529         * tree.c (free_lang_data): Do not reset the decl-assembler-name
11530         langhook.
11531
11532 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11533
11534         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11535         if DECL_NO_INLINE_WARNING_P is set on the function.
11536
11537 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
11538
11539         PR fortran/47976
11540         * reload1.c (inc_for_reload): Return void. All callers changed.
11541         (emit_input_reload_insns): Don't try to delete previous output
11542         reloads to a register, or record spill_reg_store for autoincs.
11543
11544 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
11545
11546         * gengtype.h: Updated copyright year.
11547         (struct input_file_st): Add inpisplugin field.
11548         (type_fileloc): New function.
11549         * gengtype.c
11550         (write_typed_struct_alloc_def): Add gcc_assert.
11551         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11552         (write_typed_alloc_defns): Don't output for plugin files.
11553         (input_file_by_name): Clear inpisplugin field.
11554         (main): Set inpisplugin field for plugin files.
11555
11556 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
11557
11558         * gengtype-state.c (string_eq): New.
11559         (read_state): Use string_eq instead of strcmp when creating the
11560         state_ident_tab.
11561
11562 2011-04-19  Wei Guozhi  <carrot@google.com>
11563
11564         PR target/47855
11565         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11566         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11567         linkage.
11568         * config/arm/constraints.md (Uu): New constraint.
11569         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11570
11571 2011-04-19  Tristan Gingold  <gingold@adacore.com>
11572
11573         * config.gcc (-*-*-*vms): Added.
11574         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11575         definitions moved.
11576         * config/vms/vms-ld.c: New file.
11577         * config/vms/vms-ar.c: New file.
11578         * config/vms/t-vmsnative: New file.
11579
11580 2011-04-18  Xinliang David Li  <davidxl@google.com>
11581
11582         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11583
11584 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
11585
11586         PR middle-end/48661
11587         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11588         if TREE_TYPE (v) is non-NULL.
11589
11590         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11591         gimple_get_virt_mehtod_for_binfo.
11592         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11593         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11594         callers.
11595         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11596
11597 2011-04-18  Michael Matz  <matz@suse.de>
11598             Steve Ellcey  <sje@cup.hp.com>
11599
11600         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11601         use its mode as source mode if it isn't VOIDmode.
11602
11603 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
11604
11605         * doc/passes.texi: Fill crossref nodes.
11606
11607 2011-04-18  Jim Meyering  <meyering@redhat.com>
11608
11609         Fix doubled-word typos in comments and strings
11610         * config/alpha/vms-unwind.h: s/for for/for/
11611         * config/arm/unwind-arm.h: Likewise.
11612         * config/microblaze/microblaze.c: Likewise.
11613         * config/sh/constraints.md: s/in in/in/
11614         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11615
11616 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
11617
11618         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11619         (AVX_FLOAT_MODE_P): Ditto.
11620         (AVX128_VEC_FLOAT_MODE_P): Ditto.
11621         (AVX256_VEC_FLOAT_MODE_P): Ditto.
11622         (AVX_VEC_FLOAT_MODE_P): Ditto.
11623         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11624         (UNSPEC_MASKSTORE): Ditto.
11625         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11626         Merge from <sse>_movmsk<ssemodesuffix> and
11627         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
11628         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
11629         iterator.
11630         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11631         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11632         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11633
11634 2011-04-18  Jan Hubicka  <jh@suse.cz>
11635
11636         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11637
11638         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11639         (want_inline_function_called_once_p): Break out the logic from
11640         ipa_inline.
11641         (edge_badness): Ensure that profile is not misupdated.
11642         (lookup_recursive_calls): Prioritize by call frequencies.
11643         (inline_small_functions): Move program size estimates here;
11644         actually process whole queue even when unit growth has been
11645         met. (to properly compute inline_failed reasons and for the
11646         case unit size decrease.) Revisit comments on recursive inlining.
11647         (ipa_inline): Remove unit summary code; first inline hot calls
11648         of functions called once, cold calls next.
11649         (order, nnodes): Remove unused variables.
11650         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11651         (GTFILES): Remove ipa-inline.c
11652         * sel-sched.c (fill_insns): Silence uninitialized var warning.
11653
11654 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11655
11656         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11657
11658 2011-04-18  Jie Zhang  <jie@codesourcery.com>
11659             Richard Earnshaw  <rearnsha@arm.com>
11660
11661         * arm.c (neon_builtin_type_bits): Remove.
11662         (typedef enum neon_builtin_mode): New.
11663         (T_MAX): Don't define.
11664         (typedef enum neon_builtin_datum): Remove bits, codes[],
11665         num_vars and base_fcode.  Add mode, code and fcode.
11666         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11667         VAR10): Change accordingly.
11668         (neon_builtin_data[]): Change accordingly
11669         (arm_init_neon_builtins): Change accordingly.
11670         (neon_builtin_compare): Remove.
11671         (locate_neon_builtin_icode): Remove.
11672         (arm_expand_neon_builtin): Change accordingly.
11673
11674         * arm.h (enum arm_builtins): Move to ...
11675         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11676
11677         * arm.c (arm_builtin_decl): Declare.
11678         (TARGET_BUILTIN_DECL): Define.
11679         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11680         (arm_builtin_decls[]): New.
11681         (arm_init_neon_builtins): Store builtin declarations in
11682         arm_builtin_decls[].
11683         (arm_init_tls_builtins): Likewise.
11684         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
11685         (arm_builtin_decl): New.
11686
11687 2011-04-18  Richard Guenther  <rguenther@suse.de>
11688
11689         * tree.c (upper_bound_in_type): Build properly canonicalized
11690         INTEGER_CSTs.
11691         (lower_bound_in_type): Likewise.
11692
11693 2011-04-18  Richard Guenther  <rguenther@suse.de>
11694
11695         * gimple.h (gimple_call_addr_fndecl): New function.
11696         (gimple_call_fndecl): Use it.
11697         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11698         for direct calls.
11699         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11700         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11701
11702 2011-04-18  Richard Guenther  <rguenther@suse.de>
11703
11704         PR middle-end/48650
11705         * tree.c (build_string): STRING_CST is now derived from tree_typed.
11706
11707 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11708
11709         PR lto/48492
11710         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11711         DECL_IN_CONSTANT_POOL without RTL.
11712
11713 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
11714             Ira Rosen  <ira.rosen@linaro.org>
11715
11716         PR target/48252
11717         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11718         to match neon_vzip/vuzp/vtrn_internal.
11719         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11720         outputs explicitly dependent on both inputs.
11721         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11722
11723 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
11724
11725         PR tree-optimization/48616
11726         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11727         whether the shift is by scalar or vector based on whether all SLP
11728         scalar stmts have the same rhs.
11729
11730 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
11731
11732         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11733         memory operands.
11734
11735 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
11736
11737         PR target/43700
11738         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11739         registers.
11740
11741 2011-04-17  Jan Hubicka  <jh@suse.cz>
11742
11743         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
11744         * cgrpahunit.c (cgraph_finalize_function): Do not set
11745         finalized_by_frontend.
11746         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11747         finalized_by_frontend.
11748
11749 2011-04-17  Jan Hubicka  <jh@suse.cz>
11750
11751         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11752         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11753         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
11754         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11755         method.
11756         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11757         gimple-fold.c
11758         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11759
11760 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
11761
11762         PR lto/48538
11763         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11764         is non-null before accessing it.
11765         (input_cgraph): Remove trailing spaces.
11766
11767 2011-04-17  Revital Eres  <revital.eres@linaro.org>
11768
11769         * params.def (sms-min-sc): New param flag.
11770         * modulo-sched.c (sms_schedule): Use it.
11771         * doc/invoke.texi (sms-min-sc): Document it.
11772
11773 2011-04-17  Jan Hubicka  <jh@suse.cz>
11774
11775         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11776         present, also set gimple_call_set_cannot_inline.
11777         * ipa-inline.c: Update toplevel comment.
11778         (MAX_TIME): Remove.
11779         (cgraph_clone_inlined_nodes): Fix linebreaks.
11780         (cgraph_check_inline_limits): Restructure to ...
11781         (caller_growth_limits): ... this one; be more tolerant
11782         on growth in nested inline chains; add explanatory comment;
11783         fix stack accounting thinko introduced by previous patch.
11784         (cgraph_default_inline_p): Remove.
11785         (report_inline_failed_reason): New function.
11786         (can_inline_edge_p): New function.
11787         (can_early_inline_edge_p): New function.
11788         (leaf_node_p): Move upwards in file.
11789         (want_early_inline_function_p): New function.
11790         (want_inline_small_function_p): New function.
11791         (want_inline_self_recursive_call_p): New function.
11792         (cgraph_edge_badness): Rename to ...
11793         (edge_badness) ... this one; fix linebreaks.
11794         (update_edge_key): Update call of edge_baddness; add
11795         detailed dump about queue updates.
11796         (update_caller_keys): Use can_inline_edge_p and
11797         want_inline_small_function_p.
11798         (cgraph_decide_recursive_inlining): Rename to...
11799         (recursive_inlining): Use can_inline_edge_p and
11800         want_inline_self_recursive_call_p; simplify and remove no longer
11801         valid FIXME.
11802         (cgraph_set_inline_failed): Remove.
11803         (add_new_edges_to_heap): Use can_inline_edge_p and
11804         want_inline_small_function_p.
11805         (cgraph_decide_inlining_of_small_functions): Rename to ...
11806         (inline_small_functions): ... this one; cleanup; use
11807         can/want predicates; cleanup debug ouput; work edges till fibheap
11808         is exhausted and do not stop once unit growth is reached; remove
11809         later loop processing remaining edges.
11810         (cgraph_flatten): Rename to ...
11811         (flatten_function): ... this one; use can_inline_edge_p
11812         and can_early_inline_edge_p predicates.
11813         (cgraph_decide_inlining): Rename to ...
11814         (ipa_inline): ... this one; remove unreachable nodes before
11815         inlining functions called once; simplify the pass.
11816         (cgraph_perform_always_inlining): Rename to ...
11817         (inline_always_inline_functions): ... this one; use
11818         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
11819         (cgraph_decide_inlining_incrementally): Rename to ...
11820         (early_inline_small_functions): ... this one; simplify
11821         using new predicates; cleanup; make dumps prettier.
11822         (cgraph_early_inlining): Rename to ...
11823         (early_inliner): newer inline regular functions into always-inlines;
11824         fix updating of call stmt summaries.
11825         (pass_early_inline): Update for new names.
11826         (inline_transform): Fix formating.
11827         (gate_cgraph_decide_inlining): Rename to ...
11828         (pass_ipa_inline): ... this one.
11829         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11830         * ipa-inline-analysis.c (dump_inline_summary): Update.
11831         (compute_inline_parameters): Do not compute disregard_inline_limits;
11832         look for mismatching arguments.
11833         (estimate_growth): Fix handlig of non-trivial self recursion.
11834         (inline_read_summary): Do not read info->disregard_inline_limits.
11835         (inline_write_summary): Do not write info->disregard_inline_limits.
11836         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11837         and move all checks into can_inline_edge_p predicate; re-enable code
11838         comparing optimization levels.
11839         (expand_call_inline): Do not test inline_forbidden_into_p.
11840         * Makefile.in (ipa-inline.o): Update arguments.
11841
11842 2011-04-17  Revital Eres  <revital.eres@linaro.org>
11843
11844         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11845
11846 2011-04-17  Revital Eres  <revital.eres@linaro.org>
11847
11848         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11849
11850 2011-04-17  Michael Matz  <matz@suse.de>
11851
11852         PR tree-optimization/48622
11853         PR lto/48645
11854         * ipa-inline-analysis.c (inline_read_summary): Read size/time
11855         in same order as they're written.
11856
11857 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11858
11859         * config/pa/predicates.md: Reorganize and simplify predicates.
11860         Eliminate duplicate code checks.
11861         (arith_operand): Rename to arith14_operand
11862         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11863         * config/pa/pa.md: Use renamed operands.
11864         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11865         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11866         arith11_operand, adddi3_operand, indexed_memory_operand,
11867         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11868         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11869         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11870         move_dest_operand, move_src_operand, prefetch_cc_operand,
11871         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
11872         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
11873         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
11874         div_operand, int5_operand, movb_comparison_operator,
11875         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
11876         arith_double_operand, ireg_operand, lhs_lshift_operand,
11877         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
11878         integer_store_memory_operand): Likewise.
11879         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
11880         (integer_store_memory_operand, read_only_operand,
11881         function_label_operand, borx_reg_operand,
11882         non_hard_reg_operand): Likewise.
11883         (eq_neq_comparison_operator): Delete unused operator.
11884         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
11885         function_label_operand.
11886         (emit_move_sequence): Likewise.
11887
11888 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
11889
11890         * config/i386/sse.md (sseunpackmode): New mode attribute.
11891         (ssepackmode): Ditto.
11892         (vec_pack_trunc_<mode>): Macroize expander from
11893         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
11894         (vec_unpacks_lo_<mode>): Macroize expander from
11895         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11896         (vec_unpacks_hi_<mode>): Macroize expander from
11897         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11898         (vec_unpacku_lo_<mode>): Macroize expander from
11899         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11900         (vec_unpacku_hi_<mode>): Macroize expander from
11901         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11902         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
11903         ix86_expand_sse4_unpack.
11904         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
11905
11906 2011-04-16  Jan Hubicka  <jh@suse.cz>
11907
11908         * cgraphbuild.c: Include ipa-inline.h.
11909         (reset_inline_failed): Use initialize_inline_failed.
11910         * cgraph.c: Include ipa-inline.h.
11911         (cgraph_create_node_1): Do not initialize estimated_growth.
11912         (initialize_inline_failed): More to ipa-inline-analysis.c
11913         (dump_cgraph_node): Do not dump inline flags.
11914         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
11915         and disregard_inline_limits flags.
11916         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
11917         time, size, estimated_growth.
11918         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
11919         Update.
11920         * cgraphunit.c (cgraph_decide_is_function_needed): Use
11921         DECL_DISREGARD_INLINE_LIMITS.
11922         (cgraph_analyze_function): Do not initialize
11923         node->local.disregard_inline_limits.
11924         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11925         inlinable, versionable and disregard_inline_limits.
11926         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
11927         cgraph_check_inline_limits, cgraph_default_inline_p,
11928         cgraph_edge_badness, update_caller_keys, update_callee_keys,
11929         add_new_edges_to_heap): Update.
11930         (cgraph_decide_inlining_of_small_function): Update; set
11931         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
11932         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
11933         cgraph_decide_inlining_incrementally): Update.
11934         * ipa-inline.h (inline_summary): Add inlinable, versionable,
11935         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
11936         time, size and estimated_growth parameters.
11937         (estimate_edge_growth): Update.
11938         (initialize_inline_failed): Declare.
11939         * ipa-split.c: Include ipa-inline.h
11940         (execute_split_functions): Update.
11941         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
11942         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
11943         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
11944         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
11945         estimated_growth to INT_MIN.
11946         (inline_node_duplication_hook): Likewise.
11947         (dump_inline_summary): Dump new fields.
11948         (compute_inline_parameters): Update.
11949         (estimate_edge_time, estimate_time_after_inlining,
11950         estimate_size_after_inlining, estimate_growth, inline_read_summary,
11951         inline_write_summary):
11952         (initialize_inline_failed): Move here from cgraph.c.
11953         * tree-sra.c: Include ipa-inline.h.
11954         (ipa_sra_preliminary_function_checks): Update.
11955         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
11956         ipa-inline.h.
11957
11958 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
11959
11960         * config/i386/sse.md (V16): New mode iterator.
11961         (VI1, VI8): Ditto.
11962         (AVXMODEQI, AVXMODEDI): Remove.
11963         (sse2, sse3): New mode attribute.
11964         (mov<mode>): Use V16 mode iterator.
11965         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
11966         (push<mode>1): Use V16 mode iterator.
11967         (movmisalign<mode>): Ditto.
11968         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11969         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
11970         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11971         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
11972         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
11973         avx_movdqu<avxmodesuffix>.
11974         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
11975         *avx_movdqu<avxmodesuffix>.
11976         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
11977         avx_lddqu<avxmodesuffix>.
11978         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
11979         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
11980         avx_movnt<AVXMODEDI:mode>.
11981         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
11982         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
11983
11984 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11985
11986         PR target/48629
11987         * haifa-sched.c (prune_ready_list, schedule_block): Use
11988         sched_pressure_p rather than flag_sched_pressure.
11989
11990 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
11991
11992         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11993         cgraph_get_node instead of cgraph_get_create_node.
11994
11995 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
11996
11997         * cfgexpand.c (expand_debug_expr): Use
11998         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
11999
12000 2011-04-15  Michael Matz  <matz@suse.de>
12001
12002         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12003         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12004         * function.c (gimplify_parameters): Ditto.
12005         * gimplify.c (gimplify_vla_decl): Ditto.
12006
12007         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12008         (gimple_call_set_alloca_for_var): New inline function.
12009         (gimple_call_alloca_for_var_p): Ditto.
12010         * gimple.c (gimple_build_call_from_tree): Remember
12011         CALL_ALLOCA_FOR_VAR_P state.
12012         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12013
12014         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12015         calls if they were for VLA objects.
12016
12017 2011-04-15  Martin Jambor  <mjambor@suse.cz>
12018
12019         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12020         of ADR_EXPRs.
12021
12022 2011-04-15  Martin Jambor  <mjambor@suse.cz>
12023
12024         PR middle-end/48601
12025         * tree-emutls.c (lower_emutls_function_body): Call
12026         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
12027         result is non-NULL.
12028
12029 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
12030
12031         * c-decl.c (detect_field_duplicates): Call
12032         objc_detect_field_duplicates instead of objc_get_interface_ivars.
12033
12034 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
12035
12036         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12037         * gimple.c (gimple_asm_clobbers_memory_p): Define.
12038         * ipa-pure-const.c (check_stmt): Call it.
12039         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12040
12041 2011-04-15  Richard Guenther  <rguenther@suse.de>
12042
12043         PR tree-optimization/48290
12044         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12045         Properly decide inhibiting propagation based on the valueized
12046         operand.  Do loop-closed SSA form preserving here ...
12047         (init_copy_prop): ... not here.
12048
12049 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12050
12051         PR target/48612
12052         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12053         (*ieee_smax<mode>3): Likewise.
12054
12055 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12056
12057         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12058         Replace match_operand with match_dup for the third operand in
12059         these expanders.
12060
12061 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12062
12063         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12064         to track processing of conditionals.  Update all callers.
12065         (try_combine, simplify_if_then_else): Update.
12066
12067 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12068
12069         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12070         -fsched-pressure.
12071
12072 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
12073
12074         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12075         instead of match_operand for operand 3.
12076
12077 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
12078
12079         * recog.h (insn_operand_data): Add an "allows_mem" field.
12080         * genoutput.c (output_operand_data): Initialize it.
12081         * optabs.c (maybe_legitimize_operand_same_code): New function.
12082         (maybe_legitimize_operand): Use it when matching the original
12083         op->value.
12084
12085 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12086
12087         * gimplify.c: Fix issues in comments throughout.
12088         (voidify_wrapper_expr): Fix long line.
12089         (build_stack_save_restore): Likewise.
12090         (gimplify_loop_expr): Likewise.
12091         (gimplify_compound_lval): Likewise.
12092         (gimplify_init_ctor_eval): Likewise.
12093         (gimplify_modify_expr_rhs): Likewise.
12094         (omp_notice_threadprivate_variable): Likewise.
12095
12096 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12097
12098         * cfgexpand.c (expand_call_stmt): Convert the function type to the
12099         original one if this is not a builtin function.
12100
12101 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
12102
12103         PR target/48605
12104         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12105         offset it as needed based on top 2 bits in operands[3], change
12106         MEM mode to SFmode and mask those 2 bits away from operands[3].
12107
12108 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12109
12110         * c-parser.c (c_parser_objc_protocol_definition): Updated for
12111         change from objc_declare_protocols() to objc_declare_protocol().
12112
12113 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
12114
12115         * config/i386/sse.md (sse4_1): New mode attribute.
12116         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12117         avx_blend<ssemodesuffix><avxmodesuffix> and
12118         sse4_1_blend<ssemodesuffix> using VF mode iterator.
12119         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12120         avx_blendv<ssemodesuffix><avxmodesuffix> and
12121         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12122         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12123         avx_dp<ssemodesuffix><avxmodesuffix> and
12124         sse4_1_dp<ssemodesuffix> using VF mode iterator.
12125         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12126         (sse4_1_packusdw): Merge with *avx_packusdw.
12127         (sse4_1_pblendvb): Merge with *avx_pblendvb.
12128         (sse4_1_pblendw): Merge with *avx_pblendw.
12129         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12130         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12131         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12132         VF mode iterator.
12133         (sse4_1_round<ssescalarmodesuffix>): Merge with
12134         *avx_round<ssescalarmodesuffix>.
12135         (aesenc): Merge with *avx_aesenc.
12136         (aesenclast): Merge with *avx_aesenclast.
12137         (aesdec): Merge with *avx_aesdec.
12138         (aesdeclast): Merge with *avx_aesdeclast.
12139         (pclmulqdq): Merge with *pclmulqdq.
12140         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12141         New predicate.
12142         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12143
12144 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         PR middle-end/48608
12147         * cfgexpand.c (get_decl_align_unit): Renamed to ...
12148         (align_local_variable): This.  Update DECL_ALIGN.
12149         (add_stack_var): Updated.
12150         (expand_one_stack_var): Likewise.
12151
12152 2011-04-14  Richard Guenther  <rguenther@suse.de>
12153
12154         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12155         Remove.
12156         (dse_initialize_block_local_data, dse_leave_block,
12157         record_voperand_set, get_stmt_uid): Likewise.
12158         (dse_possible_dead_store_p): Allow any kind of killing stmt.
12159         (dse_optimize_stmt): Remove voperand set handling code.
12160         Simplify and improve to handle any kind of killing stmt.
12161         (dse_record_phi): Remove.
12162         (dse_enter_block): Simplify.
12163         (tree_ssa_dse): Likewise.
12164         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12165
12166 2011-04-14  Jan Hubicka  <jh@suse.cz>
12167
12168         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12169         * cgraph.h (struct inline_summary): Move to ipa-inline.h
12170         (cgraph_local_info): Remove inline_summary.
12171         * ipa-cp.c: Include ipa-inline.h.
12172         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12173         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12174         accesor.
12175         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12176         (input_overwrite_node): Do not set inline summary.
12177         (input_node): Do not stream inline summary.
12178         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12179         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12180         growth; we do not have inline parameters computed for that anyway.
12181         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12182         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12183         (inline_summary_t): New type and VECtor.
12184         (debug_inline_summary, dump_inline_summaries): Declare.
12185         (inline_summary): Use VOCtor.
12186         (estimate_edge_growth): Kill hack computing call stmt size directly.
12187         * lto-section-in.c (lto_section_name): Add inline section.
12188         * ipa-inline-analysis.c: Include lto-streamer.h
12189         (node_removal_hook_holder, node_duplication_hook_holder): New holders
12190         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12191         (inline_summary_vec): Define.
12192         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12193         dump_inline_summaries): New functions.
12194         (estimate_function_body_sizes): Properly compute size/time of outgoing
12195         calls.
12196         (compute_inline_parameters): Alloc inline_summary; do not compute
12197         size/time of incomming calls.
12198         (estimate_edge_time): Avoid missing time summary hack.
12199         (inline_read_summary): Read inline summary info.
12200         (inline_write_summary): Write inline summary info.
12201         (inline_free_summary): Free all hooks and inline summary vector.
12202         * lto-streamer.h: Add LTO_section_inline_summary section.
12203         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12204         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12205
12206 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12207
12208         * tree-vectorizer.h (vect_strided_store_supported): Add a
12209         HOST_WIDE_INT argument.
12210         (vect_strided_load_supported): Likewise.
12211         (vect_permute_store_chain): Return void.
12212         (vect_transform_strided_load): Likewise.
12213         (vect_permute_load_chain): Delete.
12214         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12215         count argument.  Check that the count is a power of two.
12216         (vect_strided_load_supported): Likewise.
12217         (vect_permute_store_chain): Return void.  Update after above changes.
12218         Assert that the access is supported.
12219         (vect_permute_load_chain): Likewise.
12220         (vect_transform_strided_load): Return void.
12221         * tree-vect-stmts.c (vectorizable_store): Update calls after
12222         above interface changes.
12223         (vectorizable_load): Likewise.
12224         (vect_analyze_stmt): Don't check for strided powers of two here.
12225
12226 2011-04-14  Richard Guenther  <rguenther@suse.de>
12227
12228         PR tree-optimization/48590
12229         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12230         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12231         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12232         BUILT_IN_STACK_SAVE.
12233         * tree-ssa-dce.c (propagate_necessity): Handle
12234         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12235
12236 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12237
12238         * c-parser.c (c_parser_objc_class_declaration): Updated call to
12239         objc_declare_class.
12240
12241 2011-04-14  Richard Guenther  <rguenther@suse.de>
12242
12243         * tree.h (get_object_alignment_1): Declare.
12244         * builtins.c (get_object_alignment_1): Split out worker from ...
12245         (get_object_alignment): ... here.
12246         * fold-const.c (get_pointer_modulus_and_residue): Use
12247         get_object_alignment_1.
12248
12249 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12250
12251         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12252         type parameter.
12253         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12254         parameter.  Generalise code to handle arrays as well as vectors.
12255         (vect_setup_realignment): Update accordingly.
12256         * tree-vect-stmts.c (vectorizable_store): Likewise.
12257         (vectorizable_load): Likewise.
12258
12259 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12260
12261         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12262         within the per-copy loop.
12263
12264 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12265
12266         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12267         in the dump file.
12268
12269 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12270
12271         * doc/options.texi (Negative): Explicitly mention that the
12272         Negative chain must be circular.
12273
12274 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
12275
12276         * function.h (block_chainon): Declare.
12277         * function.c (block_chainon): Define.
12278
12279 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
12280             Eric Weddington  <eric.weddington@atmel.com>
12281             Georg-Johann Lay  <avr@gjlay.de>
12282
12283         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12284         New Includes
12285         (avr_init_builtins, avr_expand_builtin,
12286         avr_expand_delay_cycles, avr_expand_unop_builtin,
12287         avr_expand_binop_builtin ): New functions.
12288         (avr_builtin_id): New enum
12289         (struct avr_builtin_description): New struct
12290         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12291         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12292
12293         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12294         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12295         UNSPECV_DELAY_CYCLES): new enumeration values
12296         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12297         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12298         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12299         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12300         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12301         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12302         "fmulsu"): New insns
12303
12304         * config/avr/avr-c.c: fix line endings
12305         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12306         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12307         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12308         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12309         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12310
12311         * doc/extend.texi (AVR Built-in Functions): New node
12312         (Target Builtins): Add documentation of AVR
12313         built-in functions.
12314
12315 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
12316
12317         PR target/44643
12318         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12319         alone. Error if non-const data has attribute progmem.
12320
12321 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12322
12323         * tree.h (struct tree_constructor): Include tree_typed instead of
12324         tree_common.
12325         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12326         TS_TYPED instead of TS_COMMON.
12327
12328 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12329
12330         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12331         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12332         (sse2_psadbw): Merge with *avx_psadbw.
12333         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12334         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12335         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12336         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12337         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12338         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12339         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12340         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12341         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12342         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12343         (ssse3_palignrti): Merge with *avx_palignrti.
12344
12345 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12346
12347         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12348         * tree-ssanames.c (fini_ssanames): VEC_free it.
12349         (make_ssa_name_fn): Update for VECness of free_ssanames.
12350         (release_ssa_name, release_dead_ssa_names): Likewise.
12351         * tree.h (struct tree_ssa_name): Include tree_typed instead of
12352         tree_common.
12353         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12354         TS_TYPED instead of TS_COMMON.
12355
12356 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12357
12358         * postreload-gcse.c (gcse_after_reload_main): Add calls to
12359         statistics_counter_event.
12360         * tree-ssa-copyrename.c (stats): Define.
12361         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
12362         statistics_counter_event.
12363         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12364         (bswap_stats, widen_mul_stats): Define.
12365         (insert_reciprocals): Increment rdivs_inserted.
12366         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
12367         rfuncs_inserted.  Add calls to statistics_counter_event.
12368         (execute_cse_sincos_1): Increment inserted.
12369         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
12370         statistics_counter_event.
12371         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
12372         of bswap_stats.  Add calls to statistics_counter_event.
12373         (convert_mult_to_widen): Increment widen_mults_inserted.
12374         (convert_plusminus_to_widen): Increment maccs_inserted.
12375         (convert_mult_to_fma): Increment fmas_inserted.
12376         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
12377         calls to statistics_counter_event.
12378
12379 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
12380
12381         PR rtl-optimization/48455
12382         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12383         `temp_costs->mem_cost'.
12384
12385 2011-04-13  Jan Hubicka  <jh@suse.cz>
12386
12387         * ipa-inline.h: New file.
12388         * ipa-inline-analysis.c: New file. Broken out of ...
12389         * ipa-inline.c: ... this file; update toplevel comment;
12390         include ipa-inline.h
12391         (inline_summary): Move to ipa-inline.h
12392         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12393         ipa-inline-analysis.c.
12394         (cgraph_estimate_time_after_inlining): Rename to
12395         estiamte_time_after_inlining; move to ipa-inline-analysis.c
12396         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12397         to estimate_edge_growth.
12398         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12399         rename to estimate_size_after_inlining.
12400         (cgraph_mark_inline_edge): Update for new naming convention.
12401         (cgraph_check_inline_limits): Likewise.
12402         (cgraph_edge_badness): Likewise.
12403         (cgraph_decide_recursive_inlining): Likewise.
12404         (cgraph_decide_inlining_of_small_functions): Likewise.
12405         (cgraph_decide_inlining_incrementally): Likewise.
12406         (cgraph_estimate_growth): Rename to estimate_growth; move to
12407         ipa-inline-analysis.c.
12408         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12409         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12410         (compute_inline_parameters): Likewise.
12411         (compute_inline_parameters_for_current): Likewise.
12412         (pass_inline_parameters): Likewise.
12413         (inline_indirect_intraprocedural_analysis): Likewise.
12414         (analyze_function): Rename to inline_analyze_function; likewise.
12415         (add_new_function): Move to ipa-inline-analysis.c.
12416         (inline_generate_summary): Likewise.
12417         (inline_read_summary): Likewise.
12418         (inline_write_summary): Likewise.
12419         * Makefile.in (ipa-inline-analysis.c): New file.
12420
12421 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12422
12423         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12424         * configure: Regenerate.
12425
12426 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12427
12428         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12429         instead of tree_common.
12430         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12431         Likewise.
12432         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12433         TS_TYPED rather than TS_COMMON.
12434         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12435
12436 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
12437
12438         PR target/45263
12439         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12440         r20 around calls of __tablejump_elpm__
12441
12442 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
12443
12444         PR middle-end/48591
12445         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12446         NULL.
12447         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12448
12449 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
12450
12451         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12452         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12453         (cfi_vec): New typedef.
12454         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12455         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12456         (cie_cfi_vec): New static variable.
12457         (cie_cfi_head): Delete.
12458         (add_cfi): Accept a cfi_vec * as first argument. All callers and
12459         declaration changed. Use vector rather than list operations.
12460         (new_cfi): Don't initialize the dw_cfi_next field.
12461         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12462         rather than list operations.
12463         (lookup_cfa): Use vector rather than list operations.
12464         (output_cfis): New argument upto. Accept a cfi_vec rather than
12465         a dw_cfi_ref list head as argument. All callers changed.
12466         Iterate over the vector using upto as a maximum index.
12467         (output_all_cfis): New static function.
12468         (output_fde): Use vector rather than list operations. Use the
12469         new upto argument for output_cfis rather than manipulating a
12470         list.
12471         (dwarf2out_begin_prologue): Change initializations to match
12472         new struct members.
12473         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12474         from the vector length rather than searching for the end of a list.
12475         Use output_all_cfis.
12476         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12477
12478 2011-04-13  Nick Clifton  <nickc@redhat.com>
12479
12480         * config/rx/rx.md (movmemsi): Do not use this pattern when
12481         volatile pointers are involved.
12482
12483 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12484
12485         * config/i386/sse.md (pinsrbits): Remove.
12486         (sse2_packsswb): Merge with *avx_packsswb.
12487         (sse2_packssdw): Merge with *avx_packssdw.
12488         (sse2_packuswb): Merge with *avx_packuswb.
12489         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12490         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12491         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12492         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12493         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12494         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12495         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12496         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12497         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12498         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12499         (sse2_loadld): Merge with *avx_loadld.
12500         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12501         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12502         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12503         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12504         (vec_concatv2di): Merge with *vec_concatv2di_avx.
12505
12506 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
12507
12508         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12509         calling TREE_CHAIN.
12510         * print-tree.c (print_node): Likewise.
12511         * tree-inline.c (copy_tree_r): Likewise.
12512         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12513         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12514         instead of TS_COMMON.
12515         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12516         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12517         (copy_node_stat): Zero TREE_CHAIN only if necessary.
12518         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12519         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12520         ...and these...
12521         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12522         * tree.h: ...here.
12523         (TREE_CHAIN): Check for a TS_COMMON structure.
12524         (TREE_TYPE): Check for a TS_TYPED structure.
12525
12526 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
12527
12528         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12529         cgraph_get_create_node instead of cgraph_node.
12530
12531 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12532
12533         * c-parser.c (c_parser_initelt): Updated call to
12534         objc_build_message_expr.
12535         (c_parser_postfix_expression): Likewise.
12536
12537 2011-04-12  Kai Tietz  <ktietz@redhat.com>
12538
12539         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12540         MASK_MS_BITFIELD_LAYOUT bit.
12541
12542 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12543
12544         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12545         assert it is always true.
12546         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12547         moves.
12548
12549 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12550
12551         * c-parser.c (c_lex_one_token): Rewritten conditional used when
12552         compiling Objective-C to be more efficient.
12553
12554 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
12555
12556         * opts-common.c (decode_cmdline_options_to_array): Remove variable
12557         argv_copied.
12558
12559 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12560
12561         * recog.h, genoutput.c, optabs.c: Revert last patch.
12562
12563 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12564
12565         PR target/48090
12566         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12567
12568 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12569
12570         * recog.h (insn_operand_data): Add an "allows_mem" field.
12571         * genoutput.c (output_operand_data): Initialize it.
12572         * optabs.c (maybe_legitimize_operand_same_code): New function.
12573         (maybe_legitimize_operand): Use it when matching the original
12574         op->value.
12575
12576 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12577
12578         * genpreds.c (process_define_predicate): Move most processing
12579         to gensupport.c.  Continue to validate the expression.
12580         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12581         (process_define_predicate): Move processing to gensupport.c.
12582         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12583         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12584         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
12585         argument.
12586         (valid_predicate_name_p): New function, split out from old
12587         genpreds.c:process_define_predicate.
12588         (process_define_predicate): New function, combining code from
12589         old genpreds.c and genrecog.c functions.
12590         (process_rtx): Call it for DEFINE_PREDICATE and
12591         DEFINE_SPECIAL_PREDICATE.
12592
12593 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12594
12595         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12596         size of a '%A' memory reference.
12597         (T_DREG, T_QREG): New neon_builtin_type_bits.
12598         (arm_init_neon_builtins): Assert that the load and store operands
12599         are neon_struct_operands.
12600         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12601         (NEON_ARG_MEMORY): New builtin_arg.
12602         (neon_dereference_pointer): New function.
12603         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12604         Handle NEON_ARG_MEMORY.
12605         (arm_expand_neon_builtin): Update after above interface changes.
12606         Use NEON_ARG_MEMORY for loads and stores.
12607         * config/arm/predicates.md (neon_struct_operand): New predicate.
12608         * config/arm/iterators.md (V_two_elem): Tweak formatting.
12609         (V_three_elem): Use BLKmode for accesses that have no associated mode.
12610         (V_four_elem): Tweak formatting.
12611         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12612         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12613         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12614         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12615         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12616         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12617         (neon_vst4<mode>): Replace pointer operand with a memory operand.
12618         Use %A in the output template.
12619         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12620         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12621         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12622         the width of the memory access.  Remove post-increment.
12623         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12624
12625 2011-04-12  Nick Clifton  <nickc@redhat.com>
12626
12627         * config/v850/v850.c (expand_prologue): Do not use the CALLT
12628         instruction for interrupt handlers if the target is the basic V850
12629         architecture.
12630         (expand_epilogue): Likewise.
12631
12632 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12633
12634         PR rtl-optimization/48549
12635         * combine.c (propagate_for_debug): Also stop after BB_END of
12636         this_basic_block.  Process LAST and just stop processing after it.
12637         (combine_instructions): If last_combined_insn has been deleted,
12638         set last_combined_insn to its PREV_INSN.
12639
12640 2011-04-12  Richard Guenther  <rguenther@suse.de>
12641
12642         PR tree-optimization/46076
12643         * gimple.h (struct gimple_statement_call): Add fntype field.
12644         (gimple_call_fntype): Adjust.
12645         (gimple_call_set_fntype): New function.
12646         * gimple.c (gimple_build_call_1): Set the call function type.
12647         * gimplify.c (gimplify_call_expr): Preserve the function
12648         type the frontend used for the call.
12649         (gimplify_modify_expr): Likewise.
12650         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12651         function type.
12652         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12653         function type.
12654         * tree-ssa.c (useless_type_conversion_p): Function pointer
12655         conversions are useless.
12656
12657 2011-04-12  Martin Jambor  <mjambor@suse.cz>
12658
12659         * cgraph.h (cgraph_node): Remove function declaration.
12660         (cgraph_create_node): Declare.
12661         (cgraph_get_create_node): Likewise.
12662         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12663         Updated all callers.
12664         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12665         the decl does not already exist.  Call cgraph_get_create_node instead
12666         of cgraph_node.
12667         (cgraph_get_create_node): New function.
12668         (cgraph_same_body_alias): Update comment.
12669         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12670         assert it does not return NULL.
12671         (cgraph_update_edges_for_call_stmt): Likewise.
12672         (cgraph_clone_edge): Likewise.
12673         (cgraph_create_virtual_clone): Likewise.
12674         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12675         instead of cgraph_node.
12676         (cgraph_add_new_function): Call cgraph_create_node or
12677         cgraph_get_create_node instead of cgraph_node.
12678         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12679         instead of cgraph_node.
12680         (record_eh_tables): Likewise.
12681         (mark_address): Likewise.
12682         (mark_load): Likewise.
12683         (build_cgraph_edges): Call cgraph_get_create_node instead
12684         of cgraph_node.
12685         (rebuild_cgraph_edges): Likewise.
12686         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12687         instead of cgraph_node.
12688         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12689         cgraph_node.
12690         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12691         cgraph_create_node instead of cgraph_node.
12692         * c-decl.c (finish_function): Call cgraph_get_create_node instead
12693         of cgraph_node.
12694         * lto-cgraph.c (input_node): Likewise.
12695         * lto-streamer-in.c (input_function): Likewise.
12696         * varasm.c (mark_decl_referenced): Likewise.
12697         (assemble_alias): Likewise.
12698
12699 2011-04-12  Martin Jambor  <mjambor@suse.cz>
12700
12701         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12702         instead of cgraph_node and assert it does not return NULL.
12703         * lto-streamer-in.c (lto_read_body): Likewise.
12704         * omp-low.c (new_omp_context): Likewise.
12705         (create_task_copyfn): Likewise.
12706         * tree-emutls.c (lower_emutls_function_body): Likewise.
12707         * matrix-reorg.c (transform_allocation_sites): Likewise.
12708
12709 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12710
12711         PR c/48552
12712         * c-typeck.c (build_asm_expr): Error out on attempts to use
12713         void type outputs or inputs for constraints that allow reg or
12714         don't allow memory.
12715
12716 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
12717             Richard Earnshaw  <rearnsha@arm.com>
12718
12719         PR target/48250
12720         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12721         to use sign-magnitude offsets. Reject unsupported unaligned
12722         cases. Add detailed description in comments.
12723         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12724         condition from TARGET_32BIT to TARGET_ARM.
12725
12726 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
12727
12728         * tree.h (struct typed_tree): New.
12729         (struct tree_common): Include it instead of tree_base.
12730         (TREE_TYPE): Update for new location of type field.
12731         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12732         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12733         (union tree_node): Add typed field.
12734         * treestruct.def (TS_TYPED): New.
12735         * lto-streamer.c (check_handled_ts_structures): Handle it.
12736         * tree.c (MARK_TS_TYPED): New macro.
12737         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12738
12739 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
12740
12741         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12742         (force_nonfallthru): Do not alter the loop nest if no basic block
12743         was created.
12744
12745 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
12746
12747         * config/i386/sse.md (VI): New mode iterator.
12748         (SSEMODEI): Remove.
12749         (AVX256MODEI): Ditto.
12750         (AVXMODEF4P): Ditto.
12751         (avxvecpsmode): Ditto.
12752         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
12753         (sse2_andnot<mode>3): New expander.
12754         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12755         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
12756         (<any_logic:code><mode>3): Use VI mode iterator.
12757         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12758         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
12759         (*andnottf3): Handle AVX three-operand constraints.
12760         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12761
12762 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12763             Robert Millan  <rmh@gnu.org>
12764
12765         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12766         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12767         GNU_USER_DYNAMIC_LINKER64): Define.
12768         (REG_NAME): Don't undefine.
12769         (MD_UNWIND_SUPPORT): Undefine.
12770         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12771         (REG_NAME): Don't undefine.
12772         (MD_UNWIND_SUPPORT): Undefine.
12773         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
12774
12775 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12778         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12779
12780 2011-04-11  Xinliang David Li  <davidxl@google.com>
12781
12782         * value-profile.c (check_ic_target): New function.
12783         (gimple_ic_transform): Sanity check indirect call target.
12784         * gimple-low.c (gimple_check_call_args): Interface change.
12785         (gimple_check_call_matching_types): New function.
12786         * tree-inline.c (tree_can_inline_p): Call new function.
12787
12788 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
12789
12790         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12791         tree-pretty-print.h & realmpfr.h.
12792
12793 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
12794
12795         PR middle-end/48464
12796         * ira.c (setup_pressure_classes): Fix typo in loop condition.
12797         (setup_allocno_and_important_classes): Ditto.
12798
12799 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12800
12801         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12802         GNU_USER_DYNAMIC_LINKER.
12803         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12804         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12805         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12806         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12807         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12808         GNU_USER_TARGET_OS_CPP_BUILTINS.
12809         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12810         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12811         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12812         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12813         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12814         LINUX_DYNAMIC_LINKER to 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/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12818         GNU_USER_DYNAMIC_LINKER.
12819         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12820         GNU_USER_TARGET_OS_CPP_BUILTINS.
12821         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12822         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12823         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12824         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12825         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12826         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12827         GNU_USER_DYNAMIC_LINKER64): Remove.
12828         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12829         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12830         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12831         GNU_USER_DYNAMIC_LINKER.
12832         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12833         GNU_USER_TARGET_OS_CPP_BUILTINS.
12834         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12835         GNU_USER_TARGET_OS_CPP_BUILTINS.
12836         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12837         to GNU_USER_TARGET_OS_CPP_BUILTINS.
12838         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12839         GNU_USER_TARGET_OS_CPP_BUILTINS.
12840         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12841         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12842         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12843         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12844         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12845         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12846         GNU_USER_DYNAMIC_LINKER.
12847         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12848         GNU_USER_TARGET_OS_CPP_BUILTINS.
12849         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12850         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12851         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12852         GNU_USER_DYNAMIC_LINKER.
12853         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12854         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12855         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12856         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12857         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12858         GNU_USER_DYNAMIC_LINKER.
12859         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12860         GNU_USER_DYNAMIC_LINKERN32.
12861         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12862         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
12863         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
12864         GNU_USER_DYNAMIC_LINKER32.
12865         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12866         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12867         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12868         GNU_USER_DYNAMIC_LINKER.
12869         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12870         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12871         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
12872         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12873         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12874         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
12875         GNU_USER_DYNAMIC_LINKER32.
12876         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12877         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
12878         GNU_USER_DYNAMIC_LINKER.
12879         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
12880         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12881         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12882         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
12883         GNU_USER_DYNAMIC_LINKER64.
12884         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
12885         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12886         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12887         GNU_USER_DYNAMIC_LINKER.
12888         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
12889         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12890         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12891         GNU_USER_DYNAMIC_LINKER.
12892         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
12893         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12894         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12895         GNU_USER_DYNAMIC_LINKER32.
12896         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12897         GNU_USER_DYNAMIC_LINKER64.
12898         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12899         GNU_USER_DYNAMIC_LINKER64.
12900         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
12901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12902         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
12903         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12904         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12905
12906 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
12907
12908         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
12909         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
12910         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
12911         GNU_USER_DYNAMIC_LINKER.
12912         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12913         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
12914         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
12915         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
12916         GNU_USER_DYNAMIC_LINKER64.
12917         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12918         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
12919         GNU_USER_LINK_EMULATION.
12920         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
12921         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
12922         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
12923         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
12924         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
12925         CPP_SPEC, CC1_SPEC): Remove.
12926         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
12927         (GNU_USER_DYNAMIC_LINKER): Define.
12928         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
12929         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
12930         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
12931         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
12932         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
12933         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
12934         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12935         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
12936         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
12937         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
12938         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
12939         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
12940         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
12941         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
12942         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
12943         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12944         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12945         GNU_USER_DYNAMIC_LINKER.
12946         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12947         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
12948         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12949         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
12950         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12951         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
12952         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
12953         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
12954         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
12955         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
12956
12957 2011-04-11  Kai Tietz  <ktietz@redhat.com>
12958
12959         PR target/9601
12960         PR target/11772
12961         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
12962         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
12963         comment.
12964         (ix86_is_msabi_thiscall): Removed.
12965         (ix86_is_type_thiscall): Likewise.
12966         (ix86_get_callcvt): New function.
12967         (ix86_comp_type_attributes): Simplify check.
12968         (ix86_function_regparm): Use ix86_get_callcvt for calling
12969         convention attribute checks.
12970         (ix86_return_pops_args): Likewise.
12971         (ix86_static_chain): Likewise.
12972         (x86_this_parameter): Likewise.
12973         (x86_output_mi_thunk): Likewise.
12974         (ix86_function_type_abi): Optimize check for types without attributes.
12975         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
12976         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
12977         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
12978         by flag-values.
12979         (IX86_BASE_CALLCVT): Helper macro.
12980         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12981         Use ix86_get_callcvt for calling convention attribute checks and avoid
12982         symbol-decoration for stdcall in TARGET_RTD case.
12983         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12984         Likewise.
12985         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
12986         for declaration.
12987
12988 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
12989
12990         * config/i386/sse.md (VI_128): New mode iterator.
12991         (VI12_128): Rename from SSEMODE12.
12992         (VI14_128): Rename from SSEMODE14.
12993         (VI124_128): New mode iterator.
12994         (VI24_128): Rename from SSEMODE248.
12995         (VI248_128): Rename from SSEMODE248.
12996         (SSEMODE124C8): Remove.
12997         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12998         (*sse2_<plusminus_insn><mode>3): Merge with
12999         *avx_<plusminus_insn><mode>3.
13000         (*mulv8hi3): Merge with *avx_mulv8hi3.
13001         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13002         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13003         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13004         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13005         (ashr<mode>3): Merge with *avx_ashr<mode>3.
13006         (lshr<mode>3): Merge with *avx_lshr<mode>3.
13007         (ashl<mode>3): Merge with *avx_ashl<mode>3.
13008         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13009         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13010         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13011         (*<smaxmin:code>v8hi3): Ditto.
13012         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13013         (*<smaxmin:code>v16qi3): Ditto.
13014         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13015         (*sse2_eq<mode>3): Ditto.
13016         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13017         (*sse2_gt<mode>3): Ditto.
13018         (vcondv2di): Split out of vcond<mode>.
13019         (vconduv2di): Split out of vcondu<mode>.
13020
13021 2011-04-11  Richard Guenther  <rguenther@suse.de>
13022
13023         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13024         before calling tree_low_cst.
13025
13026 2011-04-11  Richard Guenther  <rguenther@suse.de>
13027
13028         * stor-layout.c (layout_type): Compute all array index size operations
13029         in the original type.
13030         (initialize_sizetypes): Add comment.
13031         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13032
13033 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13034
13035         * common.opt (Tbss=, Tdata=, Ttext=): New options.
13036
13037 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13038
13039         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13040         of cgraph_node, handle NULL return value.
13041         (cgraph_global_info): Likewise.
13042         (cgraph_rtl_info): Likewise.
13043         * tree-inline.c (estimate_num_insns): Likewise.
13044         * gimplify.c (unshare_body): Likewise.
13045         (unvisit_body): Likewise.
13046         (gimplify_body): Likewise.
13047         * predict.c (optimize_function_for_size_p): Likewise.
13048         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13049         (call_may_clobber_ref_p_1): Likewise.
13050         * varasm.c (function_section_1): Likewise.
13051         (assemble_start_function): Likewise.
13052
13053 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13054
13055         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13056         of cgraph_node.
13057         * final.c (rest_of_clean_state): Likewise.
13058         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13059         * passes.c (pass_init_dump_file): Likewise.
13060         (execute_all_ipa_transforms): Likewise.
13061         (function_called_by_processed_nodes_p): Likewise.
13062         * predict.c (maybe_hot_frequency_p): Likewise.
13063         (probably_never_executed_bb_p): Likewise.
13064         (compute_function_frequency): Likewise.
13065         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13066         (unnest_nesting_tree_1): Likewise.
13067         (lower_nested_functions): Likewise.
13068         * tree-optimize.c (execute_fixup_cfg): Likewise.
13069         (tree_rest_of_compilation): Likewise.
13070         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13071         * tree-sra.c (ipa_early_sra): Likewise.
13072         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13073         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13074         * ipa.c (record_cdtor_fn): Likewise.
13075         * ipa-inline.c (cgraph_early_inlining): Likewise.
13076         (compute_inline_parameters_for_current): Likewise.
13077         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13078         * ipa-pure-const.c (local_pure_const): Likewise.
13079         * ipa-split.c (split_function): Likewise.
13080         (execute_split_functions): Likewise.
13081         * cgraphbuild.c (build_cgraph_edges): Likewise.
13082         (rebuild_cgraph_edges): Likewise.
13083         (cgraph_rebuild_references): Likewise.
13084         (remove_cgraph_callee_edges): Likewise.
13085         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13086         (verify_cgraph_node): Likewise.
13087         (cgraph_analyze_functions): Likewise.
13088         (cgraph_preserve_function_body_p): Likewise.
13089         (save_inline_function_body): Likewise.
13090         (save_inline_function_body): Likewise.
13091         * tree-inline.c (copy_bb): Likewise.
13092         (optimize_inline_calls): Likewise.
13093
13094 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13095
13096         PR tree-optimization/48195
13097         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13098         ipa_check_create_edge_args.
13099         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13100         ipa_check_create_edge_args.
13101         * ipa-inline.c (inline_generate_summary): Do not call
13102         ipa_check_create_node_params and ipa_check_create_edge_args.
13103         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13104         ipa_check_create_edge_args.
13105
13106 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
13107
13108         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13109         instead of loop.
13110         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13111         * function.c (record_hard_reg_sets): Likewise.
13112         * ira.c (compute_regs_asm_clobbered): Likewise.
13113         * sched-deps.c (sched_analyze_1): Likewise.
13114         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13115
13116 2011-04-09  Xinliang David Li  <davidxl@google.com>
13117
13118         PR tree-optimization/PR48484
13119         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13120         has_valid_pred lazily
13121
13122 2011-04-09  Duncan Sands  <baldrick@free.fr>
13123
13124         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13125
13126 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13127
13128         * combine.c (combine_validate_cost): Adjust comments.  Set registered
13129         cost of I0 to zero at the end, if any.
13130
13131 2011-04-08  Xinliang David Li  <davidxl@google.com>
13132
13133         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13134         to insane profile data.
13135
13136 2011-04-08  Xinliang David Li  <davidxl@google.com>
13137
13138         * ipa-cp.c (ipcp_update_profiling): Correct
13139          negative scale factor due to insane profile data.
13140
13141 2011-04-08  Xinliang David Li  <davidxl@google.com>
13142
13143         * final.c (dump_basic_block_info): New function.
13144         (final): Dump basic block.
13145         (final_scan_insn): Remove old dump.
13146
13147 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
13148
13149         PR target/47829
13150         * config.gcc (i386-*-freebsd): Disable unwind table generation for
13151         crtbegin/crtend.
13152
13153 2011-04-08  Michael Matz  <matz@suse.de>
13154
13155         PR middle-end/48389
13156         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13157         functions.
13158         (rebuild_jump_labels): Call rebuild_jump_labels_1.
13159         * rtl.h (rebuild_jump_labels_chain): Declare.
13160         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13161         insns inserted on edges.
13162
13163 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
13164
13165         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13166         * config/arm/arm-arches.def: New.
13167         * config/arm/arm-opts.h: New.
13168         * config/arm/genopt.sh: New.
13169         * config/arm/arm-tables.opt: New (generated).
13170         * config/arm/arm.c (arm_handle_option, arm_target_help,
13171         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13172         (all_architectures): Get most table contents from arm-arches.def.
13173         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13174         arm_selected_tune here.
13175         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13176         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13177         (march=, mcpu=, mtune=): Use Enum and Var.
13178         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13179         (arm.o): Update dependencies.
13180
13181 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
13182
13183         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13184         of header_file.
13185         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13186         (write_typed_alloc_defns): Likewise.
13187         (main): Calls write_typed_alloc_defns with output_header.
13188
13189 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
13190
13191         PR inline-asm/48435
13192         * ira-color.c (setup_profitable_hard_regs): Add comments.
13193         Don't take prohibited hard regs into account.
13194         (setup_conflict_profitable_regs): Rename to
13195         get_conflict_profitable_regs.
13196         (check_hard_reg_p): Check prohibited hard regs.
13197
13198 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13199
13200         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13201         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13202         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13203
13204 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13205
13206         PR target/48366
13207         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13208         move from floating point to shift amount register.
13209         (emit_move_sequence): Remove secondary reload support for floating
13210         point to shift amount amount register copies.
13211         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13212         amount register copies.
13213         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13214         register, return false if mode isn't a scalar integer mode.
13215         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13216
13217 2011-04-08  Richard Guenther  <rguenther@suse.de>
13218
13219         * gimple.c (gimple_call_flags): Remove kludge.
13220
13221 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13222
13223         * sel-sched.c (sel_region_init): Move call to
13224         sel_setup_region_sched_flags after setup_current_loop_nest.
13225
13226 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
13227
13228         PR rtl-optimization/48272
13229         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13230         init_insn_reg_pressure_info.  Adjust a caller.
13231         * sched-int.h (init_insn_reg_pressure_info): Declare.
13232         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13233         when sched-pressure is enabled.
13234
13235 2011-04-08  Richard Guenther  <rguenther@suse.de>
13236
13237         * gimple.c (gimple_set_modified): Do not queue calls to
13238         MODIFIED_NORETURN_CALLS here ...
13239         * tree-ssa-operands.c (update_stmt_operands): ... but here.
13240
13241 2011-04-08  Richard Guenther  <rguenther@suse.de>
13242
13243         PR lto/48467
13244         * toplev.c (lang_dependent_init): Do not open asm_out_file
13245         in WPA mode, nor perform debug machinery initialization.
13246         (finalize): Do not unlink asm_out_file in WPA mode.
13247
13248 2011-04-08  Richard Guenther  <rguenther@suse.de>
13249
13250         * gimple.h (gimple_call_fntype): New function.
13251         (gimple_call_return_type): Use it.
13252         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13253         * gimple-low.c (gimple_check_call_args): Likewise.
13254         * gimple.c (gimple_call_flags): Likewise.
13255         (gimple_call_arg_flags): Likewise.
13256         (gimple_call_return_flags): Likewise.
13257         * tree-cfg.c (verify_gimple_call): Likewise.
13258         (do_warn_unused_result): Likewise.
13259         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13260         * value-prof.c (gimple_ic_transform): Fix fndecl check.
13261
13262 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
13263
13264         PR rtl-optimization/48235
13265         * sel-sched.c (code_motion_process_successors): Recompute the last
13266         insn in basic block if control flow changed.
13267         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
13268         Update condition for ilist_remove.
13269
13270 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13271
13272         PR rtl-optimization/48302
13273         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13274         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
13275         it to record added preheader blocks.
13276         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
13277         on to sel_add_loop_preheaders.
13278         (sel_region_init): Move call to setup_current_loop_nest after
13279         sel_init_bbs.
13280
13281 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13282
13283         PR target/48273
13284         * cfgloop.h (loop_has_exit_edges): New helper.
13285         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13286         non-clonable.
13287         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13288         that have no exit edges.
13289
13290 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13291
13292         PR rtl-optimization/48442
13293         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
13294         all callers.  Adjust assert.
13295
13296 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
13297
13298         PR tree-optimization/48377
13299         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13300         is_packed to true even for types with smaller TYPE_ALIGN than
13301         TYPE_SIZE.
13302
13303 2011-04-08  Richard Guenther  <rguenther@suse.de>
13304
13305         PR bootstrap/48513
13306         * doc/tm.texi: Re-generate.
13307
13308 2011-04-08  Wei Guozhi  <carrot@google.com>
13309
13310         PR target/47855
13311         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13312         * config/arm/arm.c (arm_attr_length_push_multi): New function.
13313         * config/arm/arm.md (*push_multi): Change the length computation to
13314         call a C function.
13315
13316 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
13317
13318         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13319         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13320         * doc/tm.texi: Regenerate.
13321         * system.h (ASM_OUTPUT_BSS): Poison.
13322         * varasm.c (asm_output_bss): Remove function.
13323         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13324
13325         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13326         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13327         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13328         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13329         Likewise.
13330         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13331         Likewise.
13332         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13333         Likewise.
13334         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13335
13336 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13337
13338         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13339         EnumValue lines.
13340
13341 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13342
13343         * config/m68k/m68k.c (m68k_handle_option): Don't handle
13344         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13345         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13346         OPT_mcpu32.
13347         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13348         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13349         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13350         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13351         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13352         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13353         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13354         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13355         options.  Don't map other m68k options manually.  Don't handle
13356         old-style options as canonical.
13357         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13358         * doc/install.texi (m68k-*-*): Document binutils version requirement.
13359
13360 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
13361
13362         * basic-block.h (force_nonfallthru): Move to...
13363         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13364         (force_nonfallthru): ...here.
13365         * cfghooks.c (force_nonfallthru): New function.
13366         * cfgrtl.c (force_nonfallthru): Rename into...
13367         (rtl_force_nonfallthru): ...this.
13368         (commit_one_edge_insertion): Do not set AUX field.
13369         (commit_edge_insertions): Do not discover new basic blocks.
13370         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13371         (cfg_layout_rtl_cfg_hooks): Likewise.
13372         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13373         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
13374         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13375
13376 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
13377
13378         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13379         Remove macros.
13380
13381 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
13382
13383         * config/i386/sse.md: Update copyright year.
13384         (avxcvtvecmode): Remove.
13385         (sse_movhlps): Merge with *avx_movhlps.
13386         (sse_movlhps): Merge with *avx_movlhps.
13387         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13388         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13389         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13390         (sse_loadhps): Merge with *avx_loadhps.
13391         (sse_storelps): Merge with *avx_storelps.
13392         (sse_loadlps): Merge with *avx_loadlps.
13393         (sse_movss): Merge with *avx_movss.
13394         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13395         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13396         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13397         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13398         (vec_set<mode>_0): Ditto.
13399         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13400         (sse4_1_insertps): Merge with *avx_insertps.
13401         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13402         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13403         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13404         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13405         (sse2_storehpd): Merge with *avx_storehpd.
13406         (sse2_loadhpd): Merge with *avx_loadhpd.
13407         (sse2_loadlpd): Merge with *avx_loadlpd.
13408         (sse2_movsd): Merge with *avx_movsd.
13409         (*vec_concatv2df): Merge with *vec_concatv2df.
13410
13411 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
13412
13413         PR debug/48343
13414         * combine.c (combine_instructions): Add last_combined_insn,
13415         update it if insn is after it, pass it to all try_combine calls.
13416         (try_combine): Add last_combined_insn parameter, pass it instead of
13417         i3 to propagate_for_debug.
13418
13419 2011-04-07  Nick Clifton  <nickc@redhat.com>
13420
13421         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13422         to handle MDR <-> data register transfers.
13423         (movhi_internal): Likewise.
13424
13425 2011-04-07  Alan Modra  <amodra@gmail.com>
13426
13427         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13428         previous stack info.
13429
13430 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13431
13432         PR target/43920
13433         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
13434         flow_find_cross_jump.  Swap variables to implement backward replacement.
13435         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13436
13437 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13438
13439         PR target/43920
13440         * cfgcleanup.c (walk_to_nondebug_insn): New function.
13441         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
13442         and bb2.
13443         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13444         src1 or src2.  Redirect edges to the last basic block.  Update
13445         frequency and count on multiple basic blocks in case of fallthru.
13446
13447 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13448
13449         PR target/43920
13450         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13451         function.
13452         (old_insns_match_p): Change return type.  Replace return false/true
13453         with return dir_none/dir_both.  Use can_replace_by.
13454         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
13455         direction from dir_p.  Register replacement direction in dir, last_dir
13456         and afterlast_dir.  Handle new return type of old_insns_match_p using
13457         merge_dir.  Return replacement direction in dir_p.
13458         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13459         return type of old_insns_match_p.
13460         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13461         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13462         flow_find_cross_jump.
13463         * basic-block.h (enum replace_direction): New type.
13464         (flow_find_cross_jump): Add parameter to declaration.
13465
13466 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
13467
13468         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13469         (AVXMODEDCVTPS2DQ): Ditto.
13470         (VEC_FLOAT_MODE): Ditto.
13471         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
13472         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13473         (<any_logic:code><mode>3): Use VF mode iterator.
13474         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13475         Use VF mode iterator.
13476         (copysign<mode>3): Use VF mode iterator.
13477         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
13478         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13479         (*<any_logic:code><MODEF:mode>3): Merge with
13480         *avx_<any_logic:code><MODEF:mode>3.
13481         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13482         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13483         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13484         (avx_cvtdq2ps<avxmodesuffix>): Remove.
13485         (sse2_cvtdq2ps): Use %v modifier.
13486         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13487         (avx_cvtps2dq<avxmodesuffix>): Remove.
13488         (sse2_cvtps2dq): Use %v modifier.
13489         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13490         (avx_cvttps2dq<avxmodesuffix>): Remove.
13491         (sse2_cvttps2dq): Use %v modifier.
13492         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13493         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13494         (sse2_cvtsd2siq): Fix insn template.
13495         (sse2_cvtsd2siq_2): Ditto.
13496         (sse2_cvttsd2siq): Ditto.
13497         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13498         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13499
13500 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13501
13502         * gcov-io.c: Use GCC Runtime Library Exception.
13503
13504 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
13505
13506         PR debug/48466
13507         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13508         as base_reg whatever register reg has been eliminated to, instead
13509         of hardcoding STACK_POINTER_REGNUM.
13510
13511 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13512
13513         * doc/tm.texi.in: Document C target hooks as separate from general
13514         target hooks.
13515         * doc/tm.texi: Regenerate.
13516         * genhooks.c (struct hook_desc): Add docname field.
13517         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
13518         docname field.
13519         (hook_array): Include c-target.def.
13520         (emit_documentation): Use docname field in output.
13521         (emit_init_macros): Take docname argument.  Only emit definitions
13522         for hooks matching docname.
13523         (main): Expect additional arguments in all cases.  Pass argument
13524         to emit_init_macros.
13525         * target.def: Move initial macro definitions and comments to
13526         target-hooks-macros.h.
13527         (gcc_targetcm): Move to c-family/c-target.def.
13528         * target.h (targetcm): Move declaration to c-family/c-target.h.
13529         * targhooks.c (default_handle_c_option): Move to
13530         c-family/c-opts.c.
13531         * targhooks.h (default_handle_c_option): Move declaration to
13532         c-family/c-common.h.
13533         * target-hooks-macros.h: New file.
13534         * config.gcc (target_has_targetcm): Define and use to add to
13535         c_target_objs and cxx_target_objs.
13536         * config/default-c.c: New file.
13537         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13538         of target.h and target-def.h.
13539         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13540         (darwin_objc_construct_string, darwin_cfstring_ref_p,
13541         darwin_check_cfstring_format_arg): Make static.
13542         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13543         TARGET_STRING_OBJECT_REF_TYPE_P,
13544         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13545         * config/darwin-protos.h (darwin_objc_construct_string,
13546         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13547         declare.
13548         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13549         TARGET_STRING_OBJECT_REF_TYPE_P,
13550         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13551         * config/t-darwin (darwin-c.o): Update dependencies.
13552         * system.h (TARGET_HAS_TARGETCM): Poison.
13553         * Makefile.in (TARGET_H): Update.
13554         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13555         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13556         (default-c.o): New target.
13557         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13558         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13559         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
13560         c-target.def.
13561         (build/genhooks.o): Update dependencies.
13562
13563 2011-04-06  Richard Guenther  <rguenther@suse.de>
13564
13565         * ipa-inline.c (enum inlining_mode): Remove.
13566         (cgraph_flatten): Use some other token.
13567         (cgraph_edge_early_inlinable_p): New function, split out from ...
13568         (cgraph_perform_always_inlining): New function, split out from ...
13569         (cgraph_decide_inlining_incrementally): ... here.
13570         (cgraph_mark_inline_edge): Adjust.
13571         (cgraph_early_inlining): Re-structure.
13572         (pass_early_inline): Require SSA form.
13573
13574 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
13575             Julian Brown  <julian@codesourcery.com>
13576             Mark Shinwell  <shinwell@codesourcery.com>
13577
13578         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13579         LO_REGS only for Thumb-1.
13580         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13581         be used in short instructions when optimising for size on Thumb-2.
13582
13583 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
13584
13585         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13586         associated with user returns to be preserved.
13587
13588 2011-04-06  Tristan Gingold  <gingold@adacore.com>
13589
13590         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13591         symbol_queue_size, DBXOUT_DECR_NESTING,
13592         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13593         if XCOFF_DEBUGGING_INFO.
13594
13595 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
13596
13597         * config/i386/i386.md (attribute isa): New.
13598         (attribute enabled): New.
13599         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13600         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13601         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13602         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13603         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13604         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13605         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13606         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13607
13608         * config/i386/sse.md (VF): New mode iterator.
13609         (VF1): Ditto.
13610         (VF2): Ditto.
13611         (VF_128): Ditto.
13612         (SSEMODEF4): Remove.
13613         (attribute sse): Handle V8SF and V4DF modes.
13614         (<absneg:code><mode>2): Use VF mode iterator.
13615         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
13616         mode iterator.
13617         (<plusminus_insn><mode>3): Use VF mode iterator.
13618         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13619         Use VF mode iterator.
13620         (<sse>_vm<plusminus_insn><mode>3): Merge with
13621         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
13622         (mul<mode>3): Use VF mode iterator.
13623         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
13624         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
13625         mode iterator.
13626         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13627         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13628         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
13629         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
13630         mode iterator.
13631         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13632         Use VF1 mode iterator.
13633         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13634         (sqrt<VF2:mode>2): New expander.
13635         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13636         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13637         and sqrtv2df2.  Use VF mode iterator.
13638         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
13639         mode iterator.
13640         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13641         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13642         Use VF1 mode iterator.
13643         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13644         (<smaxmin:code><mode>3): Use VF mode iterator.
13645         (*<smaxmin:code><mode>3_finite): Merge with
13646         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
13647         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13648         (<sse>_vm<smaxmin:code><mode>2): Merge with
13649         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
13650         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
13651         mode iterator.
13652         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
13653         mode iterator.
13654         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13655         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13656         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13657         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13658         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
13659         VF mode iterator.
13660         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13661         Use VF_128 mode iterator.
13662         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
13663         mode iterator.
13664         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
13665         VF_128 mode iterator.
13666         (vcond<mode>): Use VF mode iterator.
13667         * config/i386/predicates.md (sse_comparison_operator): Merge with
13668         avx_comparison_float_operator.  Do not declare as special_predicate.
13669         * config/i386/i386.c (struct builtin_description): Update for renamed
13670         compare patterns.
13671         (ix86_expand_args_builtin): Ditto.
13672         (ix86_expand_sse_compare_mask): Ditto.
13673
13674 2011-04-06  Richard Guenther  <rguenther@suse.de>
13675
13676         * tree-inline.c (estimate_num_insns): For calls simply account
13677         for all passed arguments and a used return value.
13678
13679 2011-04-06  Richard Guenther  <rguenther@suse.de>
13680
13681         PR tree-optimization/47663
13682         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13683         call_stmt_time fields.
13684         (cgraph_edge_inlinable_p): Declare.
13685         (cgraph_edge_recursive_p): New inline function.
13686         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13687         (cgraph_clone_edge): Copy it.
13688         * ipa-inline.c (cgraph_estimate_edge_time): New function.
13689         Account for call stmt time.
13690         (cgraph_estimate_time_after_inlining): Take edge argument.
13691         (cgraph_estimate_edge_growth): Account call stmt size.
13692         (cgraph_estimate_size_after_inlining): Take edge argument.
13693         (cgraph_mark_inline_edge): Adjust.
13694         (cgraph_check_inline_limits): Likewise.
13695         (cgraph_recursive_inlining_p): Remove.
13696         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13697         (cgraph_decide_recursive_inlining): Take edge argument and
13698         adjust.
13699         (cgraph_decide_inlining_of_small_functions): Do not avoid
13700         diags for recursive inlining here.
13701         (cgraph_flatten): Adjust.
13702         (cgraph_decide_inlining_incrementally): Likewise.
13703         (estimate_function_body_sizes): Remove call cost handling.
13704         (compute_inline_parameters): Initialize caller edge call costs.
13705         (cgraph_estimate_edge_growth): New function.
13706         (cgraph_estimate_growth): Use it.
13707         (cgraph_edge_badness): Likewise.
13708         (cgraph_check_inline_limits): Take an edge argument.
13709         (cgraph_decide_inlining_of_small_functions): Adjust.
13710         (cgraph_decide_inlining): Likewise.
13711         * tree-inline.c (estimate_num_insns): Only account for call
13712         return value if it is used.
13713         (expand_call_inline): Avoid diagnostics on recursive inline
13714         functions here.
13715         * lto-cgraph.c (lto_output_edge): Output edge call costs.
13716         (input_edge): Input edge call costs.
13717
13718 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13719
13720         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13721
13722 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
13723
13724         * doc/invoke.texi (Spec Files): Fix typo.
13725
13726 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
13727
13728         * profile.c (branch_prob): Move declaration of local variable.  Remove
13729         obsolete ??? comment.  Expand the location explicitly instead of using
13730         the LOCATION_FILE and LOCATION_LINE macros.
13731
13732 2011-04-06  Wei Guozhi  <carrot@google.com>
13733
13734         PR target/47855
13735         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13736         (arm_cond_branch): Likewise.
13737         (arm_cond_branch_reversed): Likewise.
13738         (arm_jump): Likewise.
13739         (push_multi): Likewise.
13740         * config/arm/constraints.md (Py): New constraint.
13741
13742 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13743
13744         PR bootstrap/48471
13745         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13746         Move these...
13747         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13748         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13749         #ifdef DBX_DEBUGGING_INFO.
13750
13751 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
13752
13753         PR bootstrap/48403
13754         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13755         if old and new states differ.
13756
13757 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
13758
13759         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13760         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13761         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13762         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13763         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13764         mcfv4e): Use Alias.
13765         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13766         ColdFire options to -mcpu= options.
13767
13768 2011-04-05  Jeff Law  <law@redhat.com>
13769
13770         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13771         check if BB is a successor of LOOP->header and return
13772         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13773
13774 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
13775
13776         * cprop.c (struct reg_use): Remove.
13777         (reg_use_table): Make an array of RTX.
13778         (find_used_regs, constprop_register, local_cprop_pass,
13779         bypass_block): Simplify users of reg_use_table.
13780         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
13781         on one of the uses found by find_used_regs.
13782
13783 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13784
13785         PR bootstrap/48469
13786         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13787         declaration.
13788
13789 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13790
13791         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13792         as an rtx.
13793         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13794
13795 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
13796
13797         PR middle-end/48441
13798         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13799
13800 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13801
13802         * combine.c: Include obstack.h.
13803         (struct insn_link): Define.
13804         (uid_log_links): Adjust type.
13805         (FOR_EACH_LOG_LINK): New macro.
13806         (insn_link_obstack): Declare.
13807         (alloc_insn_link): Define.
13808         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
13809         type of link variables.
13810         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13811         (try_combine, record_promoted_values, distribute_notes): Likewise.
13812         (distribute_links): Likewise.  Tweak prototype.
13813         (clear_log_links): Delete.
13814         (adjust_for_new_dest): Call alloc_insn_link.
13815         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13816
13817 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13818
13819         * gcse.c (modify_mem_list): Convert to an array of VECs.
13820         (canon_modify_mem_list, compute_transp): Tweak formatting.
13821         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
13822         (load_killed_in_block_p): Likewise.
13823         (record_last_mem_set_info): Likewise.
13824         (clear_modify_mem_tables): Likewise.
13825
13826 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13827
13828         PR middle-end/48461
13829         * function.c (emit_use_return_register_into_block): Only define if
13830         HAVE_return.
13831
13832 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
13833
13834         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13835
13836 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
13837
13838         * config/rx/rx-opts.h: New.
13839         * config/rx/rx.c (rx_cpu_type): Remove.
13840         (rx_handle_option): Don't assert that global structures are in
13841         use.  Access variables via opts pointer.  Defer most handling of
13842         OPT_mint_register_.  Use error_at.
13843         (rx_option_override): Handle deferred OPT_mint_register_ here.
13844         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13845         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13846         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13847         (rx_cpu_types): New Enum and EnumValue entries.
13848         (mint-register=): Use Defer and use Var accordingly.
13849
13850 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13851
13852         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13853         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13854         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13855         Move these...
13856         (debug_free_queue, debug_nesting, symbol_queue_index):
13857         ...and these...
13858         * dbxout.c: ...to here.  Make static.
13859
13860 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
13861
13862         * gcse.c (modify_pair): Define.  Define a VEC of it.
13863         (canon_modify_mem_list): Convert to an array of VECs.
13864         (free_insn_expr_list_list): Delete.
13865         (clear_modify_mem_tables): Call VEC_free instead.
13866         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13867         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13868         (canon_list_insert, compute_transp): Likewise.
13869
13870 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13871
13872         PR target/43920
13873         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
13874         for size.
13875
13876 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13877
13878         PR target/43920
13879         * function.c (emit_use_return_register_into_block): New function.
13880         (thread_prologue_and_epilogue_insns): Use
13881         emit_use_return_register_into_block.
13882
13883 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13884
13885         PR target/43920
13886         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
13887         insn.
13888
13889 2011-04-05  Tom de Vries  <tom@codesourcery.com>
13890
13891         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
13892
13893 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
13894
13895         * config/arm/arm.md (define_constants for unspec): Replace with
13896         define_c_enum.
13897         (define_constants for unspecv): Replace with define_c_enum.
13898         * config/arm/neon.md (define_constants for unspec): Replace with
13899         define_c_enum.
13900
13901 2011-04-04  Richard Henderson  <rth@redhat.com>
13902
13903         PR bootstrap/48400
13904         * dwarf2out.c (output_line_info): Always emit line info from
13905         at least one section.
13906         (dwarf2out_init): Create text_section_line_info here ...
13907         (set_cur_line_info_table): ... not here.
13908
13909 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
13910
13911         PR target/48380
13912         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
13913         not called.
13914
13915         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
13916
13917 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
13918
13919         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
13920         (expr_equiv_p): Remove.
13921         (insert_set_in_table): Look at <dest, src> pair instead of expr.
13922         (hash_scan_set): Update call to insert_set_in_table.
13923         (dump_hash_table): Dump <dest, src> pair.
13924         (lookup_set): Simplify.  Lookup <dest, src> pair.
13925         (compute_transp): Remove, fold heavily simplified code into...
13926         (compute_local_properties): ...here.  Expect COMP and TRANSP
13927         unconditionally.
13928         (find_avail_set): Take set directly from struct expr.
13929         (find_bypass-set): Likewise.
13930         (bypass_block): Likewise.
13931         (cprop_insn): Likewise.  Remove redundant INSN_P test.
13932
13933         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
13934         checks on form of COND from find_implicit_sets to here.
13935         (find_implicit_sets): Cleanup control flow. Split critical edges
13936         if it exposes implicit sets.  Allocate/resize implicit_sets as
13937         necessary.
13938         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
13939         changed something.  Run df_analyze after find_implicit_sets if any
13940         edges were split.  Do not allocate implicit_sets here.
13941
13942         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
13943         (gcse_obstack): Renamed to cprop_obstack.
13944         (GNEW, GNEWVEC, GNEWVAR): Remove.
13945         (gmalloc): Remove.
13946         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
13947         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
13948         (gcse_alloc): Likewise, and rename to cprop_alloc.
13949         (alloc_gcse_men, free_gcse_mem): Remove.
13950         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
13951         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
13952         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
13953
13954         * cprop.c (oprs_not_set_p): Remove.
13955         (mark_set, mark_clobber): Remove.
13956         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
13957         (reg_not_set_p): New function.
13958         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
13959         (cprop_insn): Likewise.
13960         (cprop_jump): Use FOR_EACH_EDGE.
13961
13962 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
13963
13964         PR bootstrap/48403
13965         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
13966         (rank_for_schedule): Use scheduled_insns vector instead of
13967         last_scheduled_insn.
13968         (ok_for_early_queue_removal): Likewise.
13969         (queue_to_ready): Search forward in nonscheduled_insns_begin if
13970         we have a dbg_cnt.
13971         (choose_ready): Likewise.
13972         (commit_schedule): Use VEC_iterate.
13973         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
13974         a dbg_cnt, use it and ensure the first insn is in the ready list.
13975         (haifa_sched_init): Allocate scheduled_insns.
13976         (sched_extend_ready_list): Don't allocate it; reserve space.
13977         (haifa_sched_finish): Free it.
13978
13979 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * optc-gen.awk: Always remove type from Variable entry before
13982         recording in var_seen.
13983
13984 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
13985
13986         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
13987         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
13988         call to tidy_fallthru_edges.
13989
13990 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
13991
13992         * doc/options.texi (ToLower): Document.
13993         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
13994         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
13995         * opts.h (cl_option): Add cl_tolower field.
13996         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
13997         arguments with lowercase strings.
13998         * config/rx/rx.opt (mcpu=): Add ToLower.
13999         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14000         argument.
14001
14002 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
14003
14004         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14005
14006 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
14007
14008         * config/vax/vax.c: Include reload.h.
14009
14010 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
14011
14012         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14013         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14014         (sparc_preferred_reload_class): New function.
14015
14016 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
14017
14018         PR debug/48401
14019         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14020         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14021
14022 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
14023
14024         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14025         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14026
14027 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
14028
14029         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14030         (ASM_OUTPUT_ALIGNED_BSS): Define.
14031
14032 2011-04-03  Michael Matz  <matz@suse.de>
14033
14034         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14035         and next_slot members.
14036         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14037         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14038         (lto_streamer_cache_append): Declare.
14039         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14040         unsigned index, remove offset parameter, ensure that we append
14041         or update existing entries.
14042         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14043         parameter, update next_slot for append.
14044         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14045         parameter.
14046         (lto_streamer_cache_insert_at): Likewise.
14047         (lto_streamer_cache_append): New function.
14048         (lto_streamer_cache_lookup): Use unsigned index.
14049         (lto_streamer_cache_get): Likewise.
14050         (lto_record_common_node): Don't test tree_node_can_be_shared.
14051         (preload_common_node): Adjust call to lto_streamer_cache_insert.
14052         (lto_streamer_cache_delete): Don't free offsets member.
14053         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14054         (lto_output_string_with_length): Use lto_output_data_stream.
14055         (lto_output_tree_header): Remove ix parameter, don't write it.
14056         (lto_output_builtin_tree): Likewise.
14057         (lto_write_tree): Adjust callers to above, don't track and write
14058         offset, write unsigned index.
14059         (output_unreferenced_globals): Don't emit all global vars.
14060         (write_global_references): Use unsigned indices.
14061         (lto_output_decl_state_refs): Likewise.
14062         (write_symbol): Likewise.
14063         * lto-streamer-in.c (lto_input_chain): Move earlier.
14064         (input_function): Use unsigned index.
14065         (input_alias_pairs): Don't read and then ignore all global vars.
14066         (lto_materialize_tree): Remove ix_p parameter, don't read index,
14067         don't pass it back, use lto_streamer_cache_append.
14068         (lto_register_var_decl_in_symtab): Use unsigned index.
14069         (lto_register_function_decl_in_symtab): Likewise.
14070         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14071         index.
14072         (lto_get_builtin_tree): Don't read index, use
14073         lto_streamer_cache_append.
14074         (lto_read_tree): Adjust call to lto_materialize_tree.
14075
14076         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14077         don't use function calls in arguments to MIN.
14078
14079         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14080         twice.
14081
14082         * gimple.c (gimple_type_leader_entry): Mark deletable.
14083
14084 2011-04-03  Alan Modra  <amodra@gmail.com>
14085
14086         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14087
14088 2011-04-03  Michael Matz  <matz@suse.de>
14089
14090         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14091         an integer.
14092         * tree.h (tree_decl_non_common.vindex): Adjust comment.
14093
14094 2011-04-03  Michael Matz  <matz@suse.de>
14095
14096         * cgraphbuild.c (record_reference): Canonicalize constructor values.
14097         * gimple-fold.c (canonicalize_constructor_val): Accept being called
14098         without function context.
14099         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14100         current_function_decl and cfun.
14101
14102 2011-04-03  Michael Matz  <matz@suse.de>
14103
14104         * tree.c (decl_init_priority_insert): Don't create entry for
14105         default priority.
14106         (decl_fini_priority_insert): Ditto.
14107         (fields_compatible_p, find_compatible_field): Remove.
14108         * tree.h (fields_compatible_p, find_compatible_field): Remove.
14109         * gimple.c (gimple_compare_field_offset): Adjust block comment.
14110
14111 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
14112
14113         * combine.c (try_combine): Remove useless local variable.
14114
14115 2011-04-03  Richard Guenther  <rguenther@suse.de>
14116             Ira Rosen  <ira.rosen@linaro.org>
14117
14118         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14119         non-variable offsets and compare the remaining bases of the two
14120         accesses instead of looking for exact same data-ref.
14121
14122 2011-04-02  Kai Tietz  <ktietz@redhat.com>
14123
14124         PR target/48416
14125         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14126
14127         * i386.c (ix86_is_msabi_thiscall): New helper function.
14128         (ix86_is_type_thiscall): New helper function.
14129         (ix86_comp_type_attributes): Handle thiscall for method-functions
14130         special.
14131         (init_cumulative_args): Likewise.
14132         (find_drap_reg): Likewise.
14133         (ix86_static_chain): Likewise.
14134         (x86_this_parameter): Likewise.
14135         (x86_output_mi_thunk): Likewise.
14136
14137 2011-04-01  Olivier Hainque  <hainque@adacore.com>
14138             Nicolas Setton  <setton@adacore.com>
14139             Eric Botcazou  <ebotcazou@adacore.com>
14140
14141         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14142         (add_gnat_descriptive_type_attribute): New function.
14143         (gen_array_type_die): Call it.
14144         (gen_enumeration_type_die): Likewise.
14145         (gen_struct_or_union_type_die): Likewise.
14146         (modified_type_die): Likewise.
14147         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14148         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14149         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14150
14151 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14152
14153         PR bootstrap/48148
14154         * dwarf2out.c (resolve_addr): Don't call force_decl_die
14155         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14156
14157         Revert:
14158         2011-03-17  Richard Guenther  <rguenther@suse.de>
14159
14160         PR bootstrap/48148
14161         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14162         origin for decls in other ltrans units.
14163         (input_varpool_node): Likewise.
14164
14165 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14166
14167         PR middle-end/48335
14168         * expr.c (expand_assignment): Handle all possibilities
14169         if TO_RTX is CONCAT.
14170         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14171         (store_split_bit_field): If SUBREG_REG (op0) or
14172         op0 itself has smaller mode than word, return it
14173         for offset 0 and const0_rtx for out-of-bounds stores.
14174         If word is const0_rtx, skip it.
14175
14176 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
14177
14178         * config/h8300/h8300.c (print_operand_address): Rename to...
14179         (h8300_print_operand_address): ...this. Make static. Adjust comments.
14180         Call h8300_print_operand and h8300_print_operand_address instead of
14181         print_operand and print_operand_address. Declare.
14182         (print_operand): Renake to...
14183         (h8300_print_operand): ...this. Make static. Adjust comments.
14184         Call h8300_print_operand instead of print_operand. Declare.
14185         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14186         (h8300_register_move_cost): Likewise.
14187         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14188         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14189         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14190         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14191         * config/h8300/h8300-protos.h (print_operand): Delete.
14192         (print_operand_address): Delete.
14193
14194 2011-04-01  Richard Henderson  <rth@redhat.com>
14195
14196         PR 48400
14197         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14198         in strict mode before dwarf4.  Re-order tests to early out
14199         before switching sections.
14200
14201 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
14202
14203         * config/h8300/constraints.md: New file.
14204         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
14205         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14206         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14207         * config/h8300/predicates.md (bit_operand): Likewise.
14208         (incdec_operand): Use satisfies_constraint_M and
14209         satisfies_constraint_O.  Don't use C code block.
14210         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14211         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14212         (compute_mov_length): Use satisfies_constraint_G.
14213         (fix_bit_operand): Use satisfies_constraint_U.
14214         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14215         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14216         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14217         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14218         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14219         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14220         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14221         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14222         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14223         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14224         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14225         (EXTRA_MEMORY_CONSTRAINT): Delete.
14226
14227 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
14228             Michael Meissner  <meissner@linux.vnet.ibm.com>
14229
14230         PR target/48262
14231         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14232         operands, as per the specifications.
14233
14234         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14235         (vec_extract_evenv4sf): Ditto.
14236         (vec_extract_evenv8hi): Ditto.
14237         (vec_extract_evenv16qi): Ditto.
14238         (vec_extract_oddv4si): Ditto.
14239
14240 2011-03-31  Mark Wielaard  <mjw@redhat.com>
14241
14242         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14243         high_pc attribute if the CU has no associated code. Only output
14244         DW_AT_entry_pc for CU if not generating strict dwarf and
14245         dwarf_version < 4.
14246
14247 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
14248
14249         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14250         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14251         out of ...
14252         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14253         * final.c (final_start_function): Call the new function rather
14254         than using a NULL argument for dwarf2out_frame_debug.
14255
14256         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14257         that contains the prologue.
14258
14259         * haifa-sched.c (queue_insn): New arg REASON.  All callers
14260         changed.  Print it in debugging output.
14261
14262         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14263
14264         * sched-ebb.c (begin_schedule_ready): Remove second argument.
14265         Split most of the code into...
14266         (begin_move_insn): ... here.  New function.
14267         (ebb_sched_info): Add a pointer to it.
14268         * haifa-sched.c (scheduled_insns): New static variable.
14269         (sched_extend_ready_list): Allocate it.
14270         (schedule_block): Use it to record the order of scheduled insns.
14271         Perform RTL changes to move insns only after all scheduling
14272         decisions have been made.
14273         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14274         begin_move_insn field.
14275         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14276         * sched-int.h (struct haifa_sched_info): Remove second argument
14277         from begin_schedule_ready hook.  Add new member begin_move_insn.
14278         * sched-rgn.c (begin_schedule_ready): Remove second argument.
14279         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14280
14281         * haifa-sched.c (prune_ready_list): New function, broken out of
14282         schedule_block.
14283         (schedule_block): Use it.
14284
14285 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14286
14287         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14288
14289 2011-04-01  Kai Tietz  <ktietz@redhat.com>
14290
14291         * config.gcc (*-*-mingw*): Allow as option the
14292         posix threading model.
14293         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
14294         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14295         definition.
14296         (CPP_SPEC): Add pthread/no-pthread handling.
14297         (LIB_SPEC): Likewise.
14298         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14299         (LIB_SPEC): Likewise.
14300         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14301         flag to pass -pthread option for shared libgcc build.
14302         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14303         for shared libgcc build.
14304         * config/i386/t-mingw-pthread: New file.
14305         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14306         New define to enable use of library pthread by default.
14307         * config/i386/mingw.opt (pthread): New driver option.
14308         (no-pthread): New driver option.
14309         * config/i386/cygming.opt: Make sure trailing empty line is retained.
14310         * config/i386/mingw-w64.opt: Likewise.
14311
14312 2011-04-01  Gary Funck  <gary@intrepid.com>
14313
14314         * c-decl.c (grokdeclarator): Fix formatting.
14315
14316 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14317
14318         * expr.c (emit_block_move_via_movmem): Use n_generator_args
14319         instead of n_operands.
14320         (set_storage_via_setmem): Likewise.
14321         * optabs.c (maybe_gen_insn): Likewise.
14322         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14323         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14324         (mips_expand_builtin_direct): Likewise.
14325         * config/spu/spu.c (expand_builtin_args): Likewise.
14326
14327 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14328
14329         * recog.h (insn_data_d): Add n_generator_args.
14330         * genoutput.c (data): Likewise.
14331         (output_insn_data): Print it.
14332         (max_opno, num_dups): Delete.
14333         (scan_operands): Just fill in "d->operand[...]".
14334         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14335
14336 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14337
14338         * gensupport.h (pattern_stats): New structure.
14339         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14340         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14341         (max_operand_1, max_operand_vec): Delete.
14342         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14343
14344 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
14345
14346         * emit-rtl.c (emit_pattern_after_setloc): New function.
14347         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14348         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14349         (emit_pattern_after): New function.
14350         (emit_insn_after, emit_jump_insn_after): Call it.
14351         (emit_call_insn_after, emit_debug_insn_after): Likewise.
14352         (emit_pattern_before_setloc): New function.
14353         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14354         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14355         Likewise.
14356         (emit_pattern_before): New function.
14357         (emit_insn_before, emit_jump_insn_before): Call it.
14358         (emit_call_insn_before, emit_debug_insn_before): Likewise.
14359
14360 2011-03-31  Richard Henderson  <rth@redhat.com>
14361
14362         * dwarf2out.c (dw_separate_line_info_ref): Remove.
14363         (dw_separate_line_info_entry): Remove.
14364         (enum dw_line_info_opcode): New.
14365         (dw_line_info_entry): Use it.
14366         (dw_line_info_table, dw_line_info_table_p): New.
14367         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14368         (line_info_table, line_info_label_num): Remove.
14369         (line_info_table_in_use): Remove.
14370         (separate_line_info_table): Remove.
14371         (separate_line_info_table_allocated): Remove.
14372         (separate_line_info_table_in_use): Remove.
14373         (LINE_INFO_TABLE_INCREMENT): Remove.
14374         (line_info_label_num): New.
14375         (cur_line_info_table): New.
14376         (text_section_line_info, cold_text_section_line_info): New.
14377         (separate_line_info): New.
14378         (SEPARATE_LINE_CODE_LABEL): Remove.
14379         (print_dwarf_line_table): Remove.
14380         (debug_dwarf): Don't dump it.
14381         (output_one_line_info_table): New.
14382         (output_line_info): Use it.
14383         (new_line_info_table): New.
14384         (set_cur_line_info_table): New.
14385         (dwarf2out_switch_text_section): Use it.
14386         (dwarf2out_begin_function): Likewise.
14387         (push_dw_line_info_entry): New.
14388         (dwarf2out_source_line): Rewrite for new line info tables.
14389         (dwarf2out_init): Remove dead initailizations.
14390
14391 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14392
14393         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
14394         various flags.
14395         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14396         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14397         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14398         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14399         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14400         * opt-functions.awk (flag_init, switch_bit_fields): New.
14401         (switch_flags): Don't handle flags moved to bit-fields.  Don't
14402         generate CL_MISSING_OK or CL_SAVE.
14403         * optc-gen.awk: Update to generate bit-field output as well as
14404         flags field.
14405         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14406         bit-field instead of CL_REJECT_DRIVER flag.
14407         * opts-common.c (generate_canonical_option,
14408         decode_cmdline_option): Use bit-fields instead of CL_* flags.
14409         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14410         instead of CL_REJECT_NEGATIVE flag.
14411         * toplev.c (print_switch_values): Use cl_report bit-field instead
14412         of CL_REPORT flag.
14413
14414 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
14415
14416         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14417         a zero minimum index only if it is redundant.
14418
14419 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
14420
14421         PR rtl-optimization/48381
14422         * ira-color.c (assign_hard_reg): Use hard reg set intersection
14423         instead of ira_class_hard_reg_index for calculating conflicting
14424         hard registers.
14425
14426 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
14427
14428         * cprop.c: Clean up hash table building.
14429         (reg_avail_info): Remove.
14430         (oprs_available_p): Remove.
14431         (record_last_reg_set_info): Remove.
14432         (record_last_set_info): Remove.
14433         (reg_available_p): New function.
14434         (gcse_constant_p): Do not treat unfolded conditions as constants.
14435         (make_set_regs_unavailable): New function.
14436         (hash_scan_set): Simplify with new reg_available_p.
14437         (compute_hash_table_work): Traverse insns stream only once.
14438         Do not compute reg_avail_info. Traverse insns in reverse order.
14439         Record implicit sets after recording explicit sets from the block.
14440
14441 2011-03-31  Michael Matz  <matz@suse.de>
14442
14443         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14444
14445 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
14446
14447         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14448         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14449         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14450         (h8300_mode_dependent_address_p): New function.
14451         (h8300_get_index): Make static.
14452
14453 2011-03-31  Jeff Law  <law@redhat.com>
14454
14455         * reload1.c (elimination_effects): Fix typo in recent change.
14456
14457         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14458         typo potentially leading to null pointer dereference.
14459
14460         * caller-save.c (new_saved_hard_reg): Eliminate return value.
14461         (setup_save_areas): Corresponding changes to avoid useless
14462         assignments.
14463
14464         * jump.c (reversed_comparison_code_parts): Avoid successive return
14465         statements when REVERSE_CONDITION is defined.
14466
14467         * expr.c (expand_assignment): Avoid useless assignments.
14468         (expand_expr_real_1): Likewise.
14469         (expand_expr_real_2): Avoid useless statements.
14470
14471         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14472
14473         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14474
14475         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14476         statements.
14477
14478         * stmt.c (expand_expr_stmt): Avoid useless assignment.
14479
14480 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14481
14482         PR target/47109
14483         * doc/tm.texi.in (TARGET_VERSION): Remove.
14484         * doc/tm.texi: Regenerate.
14485         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14486         * collect2.c (main): Don't use TARGET_VERSION.
14487         * mips-tdump.c (main): Don't use TARGET_VERSION.
14488         * mips-tfile.c (main): Don't use TARGET_VERSION.
14489         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14490         * config/rs6000/vxworksae.h: Remove.
14491         * config/alpha/alpha.h (TARGET_VERSION): Remove.
14492         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14493         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14494         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14495         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14496         * config/arm/arm.h (TARGET_VERSION): Remove.
14497         * config/arm/coff.h (TARGET_VERSION): Remove.
14498         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14499         * config/arm/elf.h (TARGET_VERSION): Remove.
14500         * config/arm/freebsd.h (TARGET_VERSION): Remove.
14501         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14502         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14503         * config/arm/pe.h (TARGET_VERSION): Remove.
14504         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14505         * config/arm/semi.h (TARGET_VERSION): Remove.
14506         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14507         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14508         * config/arm/vxworks.h (TARGET_VERSION): Remove.
14509         * config/avr/avr.h (TARGET_VERSION): Remove.
14510         * config/bfin/bfin.h (TARGET_VERSION): Remove.
14511         * config/fr30/fr30.h (TARGET_VERSION): Remove.
14512         * config/frv/frv.h (TARGET_VERSION): Remove.
14513         * config/h8300/h8300.h (TARGET_VERSION): Remove.
14514         * config/i386/cygwin.h (TARGET_VERSION): Remove.
14515         * config/i386/darwin.h (TARGET_VERSION): Remove.
14516         * config/i386/darwin64.h (TARGET_VERSION): Remove.
14517         * config/i386/djgpp.h (TARGET_VERSION): Remove.
14518         * config/i386/freebsd.h (TARGET_VERSION): Remove.
14519         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14520         * config/i386/gnu.h (TARGET_VERSION): Remove.
14521         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14522         * config/i386/i386elf.h (TARGET_VERSION): Remove.
14523         * config/i386/linux.h (TARGET_VERSION): Remove.
14524         * config/i386/linux64.h (TARGET_VERSION): Remove.
14525         * config/i386/lynx.h (TARGET_VERSION): Remove.
14526         * config/i386/mingw32.h (TARGET_VERSION): Remove.
14527         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14528         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14529         * config/i386/netware.h (TARGET_VERSION): Remove.
14530         * config/i386/nto.h (TARGET_VERSION): Remove.
14531         * config/i386/openbsd.h (TARGET_VERSION): Remove.
14532         * config/i386/vxworks.h (TARGET_VERSION): Remove.
14533         * config/ia64/elf.h (TARGET_VERSION): Remove.
14534         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14535         * config/ia64/hpux.h (TARGET_VERSION): Remove.
14536         * config/ia64/linux.h (TARGET_VERSION): Remove.
14537         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14538         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14539         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14540         * config/lm32/lm32.h (TARGET_VERSION): Remove.
14541         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14542         * config/m32c/m32c.h (TARGET_VERSION): Remove.
14543         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14544         * config/m32r/m32r.h (TARGET_VERSION): Remove.
14545         * config/m68k/linux.h (TARGET_VERSION): Remove.
14546         * config/m68k/m68k.h (TARGET_VERSION): Remove.
14547         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14548         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14549         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14550         * config/mep/mep.h (TARGET_VERSION): Remove.
14551         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14552         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14553         * config/mips/iris6.h (MACHINE_TYPE): Remove.
14554         * config/mips/linux.h (TARGET_VERSION): Remove.
14555         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14556         * config/mips/vxworks.h (TARGET_VERSION): Remove.
14557         * config/mmix/mmix.h (TARGET_VERSION): Remove.
14558         * config/mn10300/linux.h (TARGET_VERSION): Remove.
14559         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14560         * config/pa/pa.h (TARGET_VERSION): Remove.
14561         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14562         * config/picochip/picochip.h (TARGET_VERSION): Remove.
14563         * config/rs6000/aix.h (TARGET_VERSION): Remove.
14564         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14565         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14566         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14567         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14568         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14569         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14570         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14571         * config/rs6000/linux.h (TARGET_VERSION): Remove.
14572         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14573         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14574         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14575         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14576         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14577         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14578         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14579         * config/s390/linux.h (TARGET_VERSION): Remove.
14580         * config/s390/s390.h (TARGET_VERSION): Remove.
14581         * config/s390/tpf.h (TARGET_VERSION): Remove.
14582         * config/score/score.h (TARGET_VERSION): Remove.
14583         * config/sh/linux.h (TARGET_VERSION): Remove.
14584         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14585         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14586         * config/sh/sh.h (TARGET_VERSION): Remove.
14587         * config/sh/sh64.h (TARGET_VERSION): Remove.
14588         * config/sh/superh.h (TARGET_VERSION): Remove.
14589         * config/sh/vxworks.h (TARGET_VERSION): Remove.
14590         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14591         * config/sparc/linux.h (TARGET_VERSION): Remove.
14592         * config/sparc/linux64.h (TARGET_VERSION): Remove.
14593         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14594         TARGET_NAME32, TARGET_NAME): Remove.
14595         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14596         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14597         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14598         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14599         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14600         * config/spu/spu.h (TARGET_VERSION): Remove.
14601         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14602         * config/v850/v850.h (TARGET_VERSION): Remove.
14603         * config/vax/linux.h (TARGET_VERSION): Remove.
14604         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14605         * config/xtensa/elf.h (TARGET_VERSION): Remove.
14606         * config/xtensa/linux.h (TARGET_VERSION): Remove.
14607
14608 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
14609
14610         PR target/48142
14611         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14612         frame-related from frame-unrelated adjustments to the stack pointer.
14613
14614 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
14615
14616         * common.opt (fdebug-types-section): Move earlier.
14617         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14618
14619 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
14620
14621         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14622         var.
14623
14624 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
14625
14626         * tree.h (CASE_CHAIN): Define.
14627         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14628         (gimple_redirect_edge_and_branch): Likewise.
14629
14630 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14631
14632         PR middle-end/48367
14633         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14634         calculation.
14635
14636 2011-03-30  Jeff Law  <law@redhat.com>
14637
14638         * PR bootstrap/48371
14639         * reload1.c (reload): Fix botch in last change.
14640
14641         * reload.h (struct reload): Fix typo introduced in last change.
14642
14643 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
14644
14645         * config/arm/arm.opt (mhard-float, msoft-float): Mark
14646         Undocumented.  Remove help text.
14647         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14648         -mhard-float.
14649
14650 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
14651
14652         * doc/options.texi (NegativeAlias): Document.
14653         (Alias): Mention NegativeAlias.
14654         * opt-functions.awk: Handle NegativeAlias.
14655         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
14656         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14657         * opts.h (CL_NEGATIVE_ALIAS): Define.
14658         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14659         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14660         OPT_mspe_.
14661         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14662         Alias entries.
14663         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14664         mno-spe and mno-isel instead of mspe=no and -misel=no.
14665
14666 2011-03-29  Mark Wielaard  <mjw@redhat.com>
14667
14668         * common.opt (fdebug-types-section): New flag.
14669         * doc/invoke.texi: Document new -fno-debug-types-section flag.
14670         * dwarf2out.c (use_debug_types): New define.
14671         (struct die_struct): Mark die_id with GTY desc use_debug_types.
14672         (print_die): Guard output of type unit signatures using
14673         use_debug_types.
14674         (build_abbrev_table): Replace assert of dwarf_version >= 4
14675         with assert on use_debug_types.
14676         (size_of_die): Likewise.
14677         (unmark_dies): Likewise.
14678         (value_format): Decide AT_ref_external form on use_debug_types.
14679         (output_die): Replace dwarf_version version check guard with
14680         use_debug_types where appropriate.
14681         (modified_type_die): Likewise.
14682         (gen_reference_type_die): Likewise.
14683         (dwarf2out_start_source_file): Likewise.
14684         (dwarf2out_end_source_file): Likewise.
14685         (prune_unused_types_walk_attribs): Likewise.
14686         (dwarf2out_finish): Likewise.
14687
14688 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14689
14690         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14691
14692 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
14693
14694         PR rtl-optimization/48332
14695         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14696         mode of input operand N and modeN to its actual mode.
14697
14698 2011-03-30  Jeff Law  <law@redhat.com>
14699
14700         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14701         define accessor macro.
14702         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14703         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14704         (reg_equiv_init): Likewise.
14705         (reg_equivs_size): New variable.
14706         (reg_equiv_init_size): Remove.
14707         (allocate_initial_values): Move prototype to here from....
14708         * integrate.h (allocate_initial_values): Remove prototype.
14709         * integrate.c: Include reload.h.
14710         (allocate_initial_values): Corresponding changes.
14711         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14712         (fix_reg_equiv_init, no_equiv): Corresponding changes.
14713         (update_equiv_regs): Corresponding changes.
14714         (ira): Corresponding changes.
14715         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14716         (push_secondary_reload): Corresponding changes.
14717         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14718         (make_memloc, find_reloads_address): Corresponding changes.
14719         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14720         (find_reloads_address_1): Corresponding changes.
14721         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14722         (refers_to_regno_for_reload_p): Corresponding changes.
14723         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14724         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14725         * reload1.c: Include ggc.h.
14726         (grow_reg_equivs): New function.
14727         (replace_pseudos_in, reload): Corresponding changes.
14728         (calculate_needs_all_insns, alter_regs): Corresponding changes.
14729         (eliminate_regs_1, elimination_effects): Corresponding changes.
14730         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14731         (delete_output_reload): Likewise.
14732         * caller-save.c (mark_referenced_regs): Corresponding changes.
14733         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14734         * frv/predicates.md (frv_load_operand): Corresponding changes.
14735         * microblaze/microblaze.c (double_memory_operand): Corresponding
14736         changes.
14737         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14738         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
14739         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
14740         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14741         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14742         changes.
14743         * pa/pa.c (emit_move_sequence): Corresponding changes.
14744         * vax/vax.c (nonindexed_address_p): Corresponding changes.
14745
14746 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
14747
14748         PR target/47551
14749         * config/arm/arm.c (coproc_secondary_reload_class): Handle
14750         structure modes.  Don't check neon_vector_mem_operand for
14751         vector or structure modes.
14752
14753 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
14754             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14755
14756         PR target/43590
14757         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14758         operand 1 and reshuffle the operands to match.
14759         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14760
14761 2011-03-30  Christian Schüler  <cschueler@gmx.de>
14762
14763         PR driver/48208
14764         * config/c.opt (F): Added 'Driver' to -F option.
14765
14766         PR driver/48260
14767         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14768           handler function.
14769         * config/darwin.opt: Added '-arch' option.
14770
14771 2011-03-30  Nick Clifton  <nickc@redhat.com>
14772
14773         * config/rx/rx.md: Add peepholes and patterns to combine
14774         extending loads and simple arithmetic instructions.
14775         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
14776         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14777         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
14778         modes to use pre-decrement and post-increment addressing.
14779         (rx_is_restricted_memory_address): Add range checking of REG+INT
14780         addresses.
14781         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
14782         (rx_memory_move_cost): Adjust cost of stores.
14783         (rx_adjust_insn_length): New function.
14784
14785 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
14786
14787         PR c/48305
14788         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14789         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14790         matching arg00/arg01 types.
14791
14792 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
14793
14794         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14795         last_location to UNKNOWN_LOCATION.
14796
14797 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
14798
14799         PR target/48349
14800         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14801         FLOAT_SSE_REGS.
14802
14803 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
14804             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14805
14806         PR bootstrap/48337
14807         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14808         Init(PROCESSOR_V7).
14809         (sparc_cpu): Likewise.
14810         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14811         PROCESSOR_V7.
14812
14813 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
14814
14815         PR target/48336
14816         PR middle-end/48342
14817         PR rtl-optimization/48345
14818         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14819         hard regs for given mode from profitable regs when doing secondary
14820         allocation.
14821
14822 2011-03-29  Jeff Law  <law@redhat.com>
14823
14824         PR bootstrap/48327
14825         * tree-ssa-threadupdate.c (struct redirection_data): Remove
14826         do_not_duplicate field.
14827         (lookup_redirection_data): Corresponding changes.
14828         (create_duplicates): Always create a template block.
14829         (redirect_edges): Remove code which reused the original block
14830         when it was going to become unreachable code.
14831         (thread_block): Don't set do_not_duplicate field.
14832
14833 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
14834
14835         * lto-opts.c (register_user_option_p, lto_register_user_option):
14836         Make type argument unsigned.
14837         * lto-streamer.h (lto_register_user_option): Make type argument
14838         unsigned.
14839         * opth-gen.awk: Make CL_* macros unsigned.
14840         * opts-common.c (find_opt): Make lang_mask argument unsigned.
14841         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14842         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14843         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14844         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14845         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14846         (find_opt): Make lang_mask argument unsigned.
14847
14848 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
14849
14850         PR rtl-optimization/48331
14851         PR rtl-optimization/48334
14852         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14853         for any used algorithm.
14854
14855 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
14856
14857         * ira-conflicts.c (build_object_conflicts): Add unused attribute
14858         to parent_max.
14859
14860 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
14861
14862         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14863         (alpha_option_override): Don't set alpha_sr_alias_set.
14864         (emit_frame_store_1): Use gen_frame_mem rather than calling
14865         set_mem_alias_set.
14866         (alpha_expand_epilogue): Ditto.
14867
14868 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
14869
14870         PR tree-optimization/48290
14871         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
14872         vectorization, check that relevant phis in the basic block after
14873         the inner loop are really inner loop's exit phis.
14874
14875 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
14876
14877         PR debug/48190
14878         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
14879         (cached_dw_loc_list_def): New structure.
14880         (cached_dw_loc_list): New typedef.
14881         (cached_dw_loc_list_table): New variable.
14882         (cached_dw_loc_list_table_hash): New function.
14883         (cached_dw_loc_list_table_eq): Likewise.
14884         (add_location_or_const_value_attribute): Take a bool cache_p.
14885         Cache the list when the parameter is true.
14886         (gen_formal_parameter_die): Update caller.
14887         (gen_variable_die): Likewise.
14888         (dwarf2out_finish): Likewise.
14889         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
14890         while generating debug info for the decl.
14891         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
14892         (dwarf2out_init): Initialize cached_dw_loc_list_table.
14893         (resolve_addr): Cache the result of resolving a chain of
14894         location lists.
14895
14896 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
14897
14898         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
14899         conflict object hard regset nodes have intersecting hard reg sets.
14900
14901         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
14902         after regstat_init_n_sets_and_refs.
14903
14904         * ira.c: Add more comments at the top.
14905         (setup_stack_reg_pressure_class, setup_pressure_classes):
14906         Add comments how we compute the register pressure classes.
14907         (setup_allocno_and_important_classes): Add more comments.
14908         (setup_class_translate_array, reorder_important_classes)
14909         (setup_reg_class_relations): Add comments.
14910
14911         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
14912         start of the file.
14913
14914         * ira-color.c: Add 2011 to the Copyright line.
14915         (assign_hard_reg):  Add more comments.
14916         (improve_allocation): Ditto.
14917
14918         * ira-costs.c: Add 2011 to the Copyright line.
14919         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
14920         comments.
14921         (setup_regno_cost_classes_by_mode): Ditto.
14922
14923         Initial patches from ira-improv branch:
14924
14925         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
14926
14927         * ira-build.c (ira_create_object): Remove initialization of
14928         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
14929         (ira_create_allocno): Remove initialization of
14930         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
14931         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
14932         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14933         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
14934         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
14935         Initialize ALLOCNO_ADD_DATA.
14936         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
14937         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
14938         ALLOCNO_REG.
14939         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
14940         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
14941
14942         * ira.c (ira_reallocate): Remove.
14943         (setup_pressure_classes): Call
14944         ira_init_register_move_cost_if_necessary.  Use
14945         ira_register_move_cost instead of ira_get_register_move_cost.
14946         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
14947         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
14948
14949         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
14950         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14951         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
14952         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
14953         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
14954         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
14955         Fix formatting.
14956         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
14957         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14958         (struct allocno_color_data): New.
14959         (allocno_color_data_t): New typedef.
14960         (allocno_color_data): New definition.
14961         (ALLOCNO_COLOR_DATA): New macro.
14962         (struct object_color_data): New.
14963         (object_color_data_t): New typedef.
14964         (object_color_data): New definition.
14965         (OBJECT_COLOR_DATA): New macro.
14966         (update_copy_costs, calculate_allocno_spill_cost): Call
14967         ira_init_register_move_cost_if_necessary.  Use
14968         ira_register_move_cost instead of ira_get_register_move_cost.
14969         (move_spill_restore, update_curr_costs): Ditto.
14970         (allocno_spill_priority): Make it inline.
14971         (color_pass): Allocate and free allocno_color_dat and object_color_data.
14972         (struct coalesce_data, coalesce_data_t): New.
14973         (allocno_coalesce_data): New definition.
14974         (ALLOCNO_COALESCE_DATA): New macro.
14975         (merge_allocnos, coalesced_allocno_conflict_p): Use
14976         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
14977         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
14978         (coalesce_allocnos): Ditto.
14979         (setup_coalesced_allocno_costs_and_nums): Ditto.
14980         (collect_spilled_coalesced_allocnos): Ditto.
14981         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
14982         (setup_slot_coalesced_allocno_live_ranges): Ditto.
14983         (coalesce_spill_slots): Ditto.
14984         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
14985         free allocno_coalesce_data.
14986
14987         * ira-conflicts.c: Fix formatting.
14988         (process_regs_for_copy): Call
14989         ira_init_register_move_cost_if_necessary.  Use
14990         ira_register_move_cost instead of ira_get_register_move_cost.
14991         (build_object_conflicts): Optimize.
14992
14993         * ira-costs.c (record_reg_classes): Optimize.  Call
14994         ira_init_register_move_cost_if_necessary.  Use
14995         ira_register_move_cost, ira_may_move_in_cost, and
14996         ira_may_move_out_cost instead of ira_get_register_move_cost and
14997         ira_get_may_move_cost.
14998         (record_address_regs): Ditto.
14999         (scan_one_insn): Optimize.
15000         (find_costs_and_classes): Optimize.
15001         (process_bb_node_for_hard_reg_moves): Call
15002         ira_init_register_move_cost_if_necessary.  Use
15003         ira_register_move_cost instead of ira_get_register_move_cost.
15004
15005         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15006         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15007         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15008         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15009         definitions.
15010         (ira_initiate_emit_data, ira_finish_emit_data)
15011         (create_new_allocno): New functions.
15012         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
15013         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15014         Use ira_register_move_cost instead of ira_get_register_move_cost.
15015
15016         * ira-int.h: Fix some comments.
15017         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15018         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15019         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15020         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
15021         add_data.
15022         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
15023         bitfield after mode.  Make hard_regno a short int.  Make
15024         hard_regno short.  Remove first_coalesced_allocno and
15025         next_coalesced_allocno.  Move mem_optimized_dest_p,
15026         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15027         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
15028         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15029         temp, colorable_p.  Add new member add_data.
15030         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15031         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15032         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15033         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15034         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15035         (ALLOCNO_ADD_DATA): New macro.
15036         (ira_emit_data_t): New typedef.
15037         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
15038         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15039         from struct ira_allocno.
15040         (ALLOCNO_EMIT_DATA): New macro.
15041         (ira_allocno_emit_data, allocno_emit_reg): New.
15042         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15043         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15044         (OBJECT_ADD_DATA): New macro.
15045         (ira_reallocate): Remove.
15046         (ira_initiate_emit_data, ira_finish_emit_data): New.
15047         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15048         (ira_init_register_move_cost_if_necessary): New.
15049         (ira_object_conflict_iter_next): Merge into
15050         ira_object_conflict_iter_cond.
15051         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15052
15053         * ira-live.c (process_single_reg_class_operands): Call
15054         ira_init_register_move_cost_if_necessary.  Use
15055         ira_register_move_cost instead of ira_get_register_move_cost.
15056
15057         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
15058
15059         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15060
15061         * ira-costs.c: Fix formatting.
15062         (cost_classes, cost_classes_num): Remove.
15063         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15064         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15065         (cost_classes_del, cost_classes_htab): New.
15066         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15067         (initiate_regno_cost_classes, setup_cost_classes): New.
15068         (setup_regno_cost_classes_by_aclass): New.
15069         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15070         (record_reg_classes): Use regno_cost_classes instead of
15071         cost_classes.  Move checking opposite operand up.
15072         (record_address_regs): Use regno_cost_classes
15073         instead of cost_classes.
15074         (scan_one_insn): Ditto.  Use always general register.
15075         (print_allocno_costs): Use regno_cost_classes instead of
15076         cost_classes.
15077         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
15078         (find_costs_and_classes): Set up cost classes for each registers.
15079         Use also their mode for this.  Use regno_cost_classes instead of
15080         cost_classes.
15081         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15082         cost_classes.
15083         (free_ira_costs, ira_init_costs): Don't use cost_classes.
15084         (ira_costs, ira_set_pseudo_classes): Call
15085         initiate_regno_cost_classes and finish_regno_cost_classes.
15086
15087         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
15088
15089         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15090
15091         * target.def (ira_cover_classes): Remove.
15092
15093         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15094
15095         * doc/tm.texi.in: Ditto.
15096
15097         * ira-conflicts.c: Remove mentioning cover classes from the file.
15098         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
15099         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
15100
15101         * targhooks.c (default_ira_cover_classes): Remove.
15102
15103         * targhooks.h (default_ira_cover_classes): Ditto.
15104
15105         * haifa-sched.c: Remove mentioning cover classes from the file.
15106         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15107         ira_pressure_classes and ira_pressure_classes_num instead of
15108         ira_reg_class_cover_size and ira_reg_class_cover.  Use
15109         sched_regno_pressure_class instead of sched_regno_cover_class.
15110         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15111         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15112
15113         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
15114         classes from the file.
15115         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15116         (struct object_hard_regs, struct object_hard_regs_node): New.
15117         (struct ira_object): New members profitable_hard_regs,
15118         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15119         (struct ira_allocno): Rename cover_class to aclass.  Rename
15120         cover_class_cost and updated_cover_class_cost to class_cost and
15121         updated_class_cost.  Remove splay_removed_p and
15122         left_conflict_size.  Add new members colorable_p.
15123         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15124         (ALLOCNO_COLORABLE_P): New macro.
15125         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15126         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15127         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15128         (OBJECT_...): Rename parameter C to O.
15129         (OBJECT_PROFITABLE_HARD_REGS): New macro.
15130         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15131         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15132         (struct target_ira_int): New members x_ira_max_memory_move_cost,
15133         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15134         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15135         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15136         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
15137         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
15138         x_ira_reg_class_subunion.
15139         (ira_max_memory_move_cost, ira_max_register_move_cost)
15140         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15141         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15142         (ira_important_class_nums, ira_reg_class_superunion): New macros.
15143         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15144         (ira_reg_class_union): Rename to ira_reg_class_subunion.
15145         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15146         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15147         (ira_tune_allocno_costs_and_cover_classes): Rename to
15148         ira_tune_allocno_costs.
15149         (ira_debug_hard_regs_forest): New.
15150         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15151         (ira_object_conflict_iter_next): Fix comments.
15152         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15153         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15154         cover_class to aclass.
15155         (ira_allocate_and_accumulate_costs): Ditto.
15156         (ira_allocate_and_set_or_copy_costs): Ditto.
15157
15158         * opts.c (decode_options): Remove ira_cover_class check.
15159
15160         * ira-color.c: Remove mentioning cover classes from the file.  Use
15161         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15162         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15163         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15164         (splay-tree.h): Remove include.
15165         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15166         before copy_freq_compare_func.
15167         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15168         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15169         New definitions.
15170         (hard_regs_roots, hard_regs_node_vec): Ditto.
15171         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15172         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15173         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15174         (create_new_object_hard_regs_node): Ditto.
15175         (add_new_object_hard_regs_node_to_forest): Ditto.
15176         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15177         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15178         Ditto.
15179         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15180         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15181         (remove_unused_object_hard_regs_nodes): Ditto.
15182         (enumerate_object_hard_regs_nodes): Ditto.
15183         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15184         (object_hard_regs_subnode_t): Ditto.
15185         (struct object_hard_regs_subnode): Ditto.
15186         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15187         (setup_object_hard_regs_subnode_index): Ditto.
15188         (get_object_hard_regs_subnodes_num): Ditto.
15189         (form_object_hard_regs_nodes_forest): Ditto.
15190         (finish_object_hard_regs_nodes_tree): Ditto.
15191         (finish_object_hard_regs_nodes_forest): Ditto.
15192         (allocnos_have_intersected_live_ranges_p): Rename to
15193         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15194         (pseudos_have_intersected_live_ranges_p): Rename to
15195         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15196         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15197         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15198         (update_copy_costs): Remove assert.  Skip cost update if the hard
15199         reg does not belong the class.
15200         (assign_hard_reg): Process only profitable hard regs.
15201         (uncolorable_allocnos_num): Make it scalar.
15202         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15203         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15204         and ira_reg_class_max_nregs.
15205         (bucket_allocno_compare_func): Check frequency first.
15206         (sort_bucket): Add compare function as a parameter.
15207         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15208         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15209         (push_allocno_to_stack): Rewrite for checking new allocno
15210         colorability.
15211         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
15212         (push_only_colorable): Pass new parameter to sort_bucket.
15213         (push_allocno_to_spill): Remove.
15214         (allocno_spill_priority_compare): Make it inline and rewrite.
15215         (splay_tree_allocate, splay_tree_free): Remove.
15216         (allocno_spill_sort_compare): New function.
15217         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
15218         build and use splay tree.  Choose first allocno in uncolorable
15219         allocno bucket to spill.  Remove setting spill cost.
15220         (all_conflicting_hard_regs): Remove.
15221         (setup_allocno_available_regs_num): Check only profitable hard
15222         regs.  Print info about hard regs nodes.
15223         (setup_allocno_left_conflicts_size): Remove.
15224         (put_allocno_into_bucket): Don't call
15225         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
15226         (improve_allocation): New.
15227         (color_allocnos): Call setup_profitable_hard_regs,
15228         form_object_hard_regs_nodes_forest, improve_allocation,
15229         finish_object_hard_regs_nodes_forest.  Setup spill cost.
15230         (print_loop_title): Use pressure classes.
15231         (color_allocnso): Ditto.
15232         (do_coloring): Remove allocation and freeing splay_tree_node_pool
15233         and allocnos_for_spilling.
15234         (ira_sort_regnos_for_alter_reg): Don't setup members
15235         {first,next}_coalesced_allocno.
15236         (color): Remove allocating and freeing removed_splay_allocno_vec.
15237         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15238         prohibited_class_mode_regs.
15239
15240         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
15241         formatting.
15242         (update_allocno_pressure_excess_length): Use pressure classes.
15243         (inc_register_pressure, dec_register_pressure): Check for pressure
15244         class.
15245         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15246         pressure class.  Use ira_reg_class_nregs instead of
15247         ira_reg_class_max_nregs.
15248         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15249         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15250         (single_reg_class): Use ira_reg_class_nregs instead of
15251         ira_reg_class_max_nregs.
15252         (process_bb_node_lives): Use pressure classes.
15253
15254         * ira-emit.c: Remove mentioning cover classes from the file.  Use
15255         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15256         (change_loop): Use pressure classes.
15257         (modify_move_list): Call ira_set_allocno_class instead of
15258         ira_set_allocno_cover_class.
15259
15260         * ira-build.c: Remove mentioning cover classes from the file.  Use
15261         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15262         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
15263         ALLOCNO_UPDATED_CLASS_COST instead of
15264         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15265         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15266         (ira_create_allocno): Remove initialization of
15267         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
15268         ALLOCNO_COLORABLE_P.
15269         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15270         Update conflict regs for the objects.
15271         (create_cap_allocno): Remove assert.  Don't propagate
15272         ALLOCNO_AVAILABLE_REGS_NUM.
15273         (ira_free_allocno_costs): New function.
15274         (finish_allocno): Change a part of code into call of
15275         ira_free_allocno_costs.
15276         (low_pressure_loop_node_p): Use pressure classes.
15277         (object_range_compare_func): Don't compare classes.
15278         (setup_min_max_conflict_allocno_ids): Ditto.
15279
15280         * loop-invariant.c: Remove mentioning cover classes from the file.
15281         Use ira_pressure_classes and ira_pressure_classes_num instead of
15282         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
15283         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15284         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15285         Use reg_allocno_class instead of reg_cover_class.
15286         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15287         STACK_REG_COVER_CLASS.
15288         (get_regno_cover_class): Rename to get_regno_pressure_class.
15289         (move_loop_invariants): Initialize and finalize regstat.
15290
15291         * ira.c: Remove mentioning cover classes from the file.  Add
15292         comments about coloring without cover classes.  Use ALLOCNO_CLASS
15293         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15294         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15295         setup_class_subset_and_memory_move_costs.
15296         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15297         (setup_cover_and_important_classes): Rename to
15298         setup_allocno_and_important_classes.
15299         (setup_class_translate_array): New.
15300         (setup_class_translate): Call it for allocno and pressure classes.
15301         (cover_class_order): Rename to allocno_class_order.
15302         (comp_reg_classes_func): Use ira_allocno_class_translate instead
15303         of ira_class_translate.
15304         (reorder_important_classes): Set up ira_important_class_nums.
15305         (setup_reg_class_relations): Set up ira_reg_class_superunion.
15306         (print_class_cover): Rename to print_classes.  Add parameter.
15307         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15308         Print pressure classes too.
15309         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
15310         setup_reg_subclasses.
15311         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15312         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15313         (setup_prohibited_class_mode_regs): Use
15314         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15315         (clarify_prohibited_class_mode_regs): New function.
15316         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15317         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15318         (ira_init_once): Initialize them.
15319         (free_register_move_costs): Process them.
15320         (ira_init): Move calls of find_reg_classes and
15321         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15322         Call clarify_prohibited_class_mode_regs.
15323         (ira_no_alloc_reg): Remove.
15324         (too_high_register_pressure_p): Use pressure classes.
15325
15326         * sched-deps.c: Remove mentioning cover classes from the file.
15327         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15328         ira_pressure_classes and ira_pressure_classes_num instead of
15329         ira_reg_class_cover_size and ira_reg_class_cover.
15330         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15331         sched_regno_pressure_class instead of sched_regno_cover_class.
15332         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
15333         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15334
15335         * ira.h: Add 2010 to Copyright.
15336         (ira_no_alloc_reg): Remove external.
15337         (struct target_ira): Rename x_ira_hard_regno_cover_class,
15338         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15339         x_ira_class_translate to x_ira_hard_regno_allocno_class,
15340         x_ira_allocno_classes_num, x_ira_allocno_classes, and
15341         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
15342         x_ira_pressure_classes, x_ira_pressure_class_translate, and
15343         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
15344         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
15345         x_ira_no_alloc_regs.
15346         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15347         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15348         ira_allocno_classes_num and ira_allocno_classes.
15349         (ira_class_translate): Rename to ira_allocno_class_translate.
15350         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15351         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15352         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15353         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15354         (ira_no_alloc_regs): New.
15355
15356         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
15357         classes from the file.  Use ALLOCNO_CLASS instead of
15358         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
15359         ALLOCNO_COVER_CLASS_COST.
15360         (regno_cover_class): Rename to regno_aclass.
15361         (record_reg_classes): Use ira_reg_class_subunion instead of
15362         ira_reg_class_union.
15363         (record_address_regs): Check overflow.
15364         (scan_one_insn): Ditto.
15365         (print_allocno_costs): Print total mem cost fore regional allocation.
15366         (print_pseudo_costs): Use REG_N_REFS.
15367         (find_costs_and_classes): Use classes intersected with them on the
15368         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
15369         ira_reg_class_union.  Use ira_allocno_class_translate and
15370         regno_aclass instead of ira_class_translate and regno_cover_class.
15371         Modify code for finding regno_aclass.  Setup preferred classes for
15372         the next pass.
15373         (setup_allocno_cover_class_and_costs): Rename to
15374         setup_allocno_class_and_costs.  Use regno_aclass instead of
15375         regno_cover_class.  Use ira_set_allocno_class instead of
15376         ira_set_allocno_cover_class.
15377         (init_costs, finish_costs): Use regno_aclass instead of
15378         regno_cover_class.
15379         (ira_costs): Use setup_allocno_class_and_costs instead of
15380         setup_allocno_cover_class_and_costs.
15381         (ira_tune_allocno_costs_and_cover_classes): Rename to
15382         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
15383         by processing objects.  Use ira_reg_class_max_nregs instead of
15384         ira_reg_class_nregs.
15385
15386         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15387
15388         * sched-int.h: Remove mentioning cover classes from the file.
15389         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15390
15391         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
15392         classes from the file.
15393         (struct reg_pref): Rename coverclass into allocnoclass.
15394         (reg_cover_class): Rename to reg_allocno_class.
15395
15396         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15397
15398         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15399
15400         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15401
15402         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15403
15404         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15405
15406         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15407
15408         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15409
15410         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15411
15412         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15413
15414         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15415
15416         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15417         (i386_ira_cover_classes): Ditto.
15418
15419         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15420
15421         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15422
15423         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15424
15425         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15426
15427         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15428
15429         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15430
15431         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15432         (mips_ira_cover_classes): Ditto.
15433
15434         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15435
15436         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15437
15438         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15439
15440         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15441
15442         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15443
15444         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15445         (IRA_COVER_CLASSES_VSX): Ditto.
15446
15447         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15448         (rs6000_ira_cover_classes): Ditto.
15449
15450         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15451
15452         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15453
15454         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15455
15456         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15457
15458         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15459
15460         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15461
15462         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15463
15464         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15465
15466         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15467
15468         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15469
15470 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
15471
15472         PR debug/48253
15473         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15474         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15475         dw_fde_unlikely_section_end_label, cold_in_std_section,
15476         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15477         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15478         fields.
15479         (output_fde): Use dw_fde_second_{begin,end} if second is
15480         true, otherwise dw_fde_{begin,end}.
15481         (output_call_frame_info): Test dw_fde_second_begin != NULL
15482         instead of dw_fde_switched_sections.
15483         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15484         fields, initialize new fields.  Initialize in_std_section
15485         unconditionally from the first partition.
15486         (dwarf2out_end_epilogue): Don't override dw_fde_end when
15487         dw_fde_second_begin is non-NULL.
15488         (dwarf2out_switch_text_section): Stop initializing removed
15489         dw_fde_struct fields, initialize new fields, initialize
15490         also dw_fde_end here.  Set dw_fde_switch_cfi even when
15491         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
15492         (struct var_loc_list_def): Add last_before_switch field.
15493         (arange_table, arange_table_allocated, arange_table_in_use,
15494         ARANGE_TABLE_INCREMENT, add_arange): Removed.
15495         (size_of_aranges): Count !in_std_section and !second_in_std_section
15496         hunks in fdes, instead of looking at arange_table_in_use.
15497         (output_aranges): Add aranges_length argument, don't call
15498         size_of_aranges here.  Instead of using aranges_table*
15499         emit ranges for fdes when !in_std_section resp.
15500         !second_in_std_section.
15501         (dw_loc_list): Break ranges crossing section switch.
15502         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
15503         use dw_fde_second_end instead of dw_fde_end as end of last range.
15504         (gen_subprogram_die): Don't call add_arange.  Use
15505         dw_fde_{begin,end} for first partition and if switched
15506         section dw_fde_second_{begin,end} for the second.
15507         (var_location_switch_text_section_1,
15508         var_location_switch_text_section): New functions.
15509         (dwarf2out_begin_function): Initialize cold_text_section even
15510         when function_section () isn't text_section.
15511         (prune_unused_types): Don't walk arange_table.
15512         (dwarf2out_finish): Don't needlessly test
15513         flag_reorder_blocks_and_partition when testing cold_text_section_used.
15514         If info_section_emitted, call size_of_aranges and if it indicates
15515         non-empty .debug_aranges, call output_aranges with the computed
15516         size.  Stop using removed dw_fde_struct fields, use
15517         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15518         for second.
15519
15520         PR debug/48203
15521         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15522         create ENTRY_VALUE if incoming or address of incoming's MEM
15523         is a hard REG.
15524         * dwarf2out.c (mem_loc_descriptor): Don't emit
15525         DW_OP_GNU_entry_value of DW_OP_fbreg.
15526         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15527         on ENTRY_VALUE is able to find the canonical parameter VALUE.
15528         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15529         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15530         ENTRY_VALUE_EXPs.
15531         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15532         is a REG_P or MEM_P with REG_P address, compute hash directly
15533         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15534         (preserve_only_constants): Don't clear VALUES forwaring
15535         ENTRY_VALUE to some other VALUE.
15536
15537 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
15538
15539         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15540         instead of GEN_INT.
15541
15542 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
15543
15544         * cfgexpand.c (expand_gimple_cond): Always set the source location and
15545         block before expanding the statement.
15546         (expand_gimple_stmt_1): Likewise.  Set them here...
15547         (expand_gimple_stmt): ...and not here.  Tidy.
15548         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15549         unknown.
15550
15551 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
15552
15553         * Makefile.in: New rule for cprop.o.
15554         * gcse.c: Move constant/copy propagation to cprop.c.
15555         (compute_local_properties): Only handle expression tables.
15556         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15557         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15558         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15559         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15560         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15561         compute_cprop_data, find_used_regs, try_replace_reg,
15562         find_avail_set, cprop_jump, constprop_register, cprop_insn,
15563         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15564         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15565         find_bypass_set, reg_killed_on_edge, bypass_block,
15566         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15567         execute_rtl_cprop, pass_rtl_cprop): Move to...
15568         * cprop.c: ...here.  New file, constant/copy propagation for RTL
15569         moved from gcse.c to here with minor cleanups in duplicated code.
15570
15571 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
15572
15573         * config/i386/i386.c (flag_opts): Fix a typo in
15574         -mavx256-split-unaligned-store.
15575
15576 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
15577
15578         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15579         LIBCALL_VALUE): Remove macros.
15580         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15581         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15582         (h8300_function_value, h8300_libcall_value,
15583         h8300_function_value_regno_p): New functions.
15584
15585 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
15586
15587         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15588
15589 2011-03-28  Jeff Law  <law@redhat.com>
15590
15591         * tree-ssa-threadupdate.c (redirect_edges): Call
15592         create_edge_and_update_destination_phis as needed.
15593         (create_edge_and_update_destination_phis): Accept new BB argument.
15594         All callers updated.
15595         (thread_block): Do not update the profile when threading around
15596         intermediate blocks.
15597         (thread_single_edge): Likewise.
15598         (determine_bb_domination_status): If BB is not a successor of the
15599         loop header, return NONDOMINATING.
15600         (register_jump_thread): Note when we register a jump thread around
15601         an intermediate block.
15602         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15603         (thread_across_edge): Use it.
15604
15605 2011-03-28  Tristan Gingold  <gingold@adacore.com>
15606
15607         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15608         when for_return is 2.
15609
15610 2011-03-28  Jeff Law  <law@redhat.com>
15611
15612         * var-tracking.c (canonicalize_values_mark): Delete unused
15613         lhs assignment.
15614         (canonicalize_values_star, set_variable_part): Likewise.
15615         (clobber_variable_part, delete_variable_part): Likewise.
15616
15617 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
15618
15619         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15620
15621 2011-03-28  Martin Jambor  <mjambor@suse.cz>
15622
15623         * tree-inline.c (expand_call_inline): Do not check that destination
15624         node is analyzed.
15625         (optimize_inline_calls): Assert that destination node is analyzed.
15626         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15627         not call tree_lowering_passes.
15628         * cgraph.h (cgraph_analyze_function): Declare.
15629         * cgraphunit.c (cgraph_analyze_function): Make public.
15630
15631 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
15632
15633         * config/sparc/sparc-opts.h: New.
15634         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15635         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15636         (sparc_option_override): Store processor_type enumeration rather
15637         than string in cpu_default.  Remove name and enumeration from
15638         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
15639         without using sparc_select.  Use target_flags_explicit instead of
15640         fpu_option_set.
15641         * config/sparc/sparc.h (enum processor_type): Move to
15642         sparc-opts.h.
15643         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15644         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15645         HeaderInclude entry.
15646         (mcpu=, mtune=): Use Var and Enum.
15647         (sparc_processor_type): New Enum and EnumValue entries.
15648
15649 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15650             Iain Sandoe  <iains@gcc.gnu.org>
15651
15652         PR target/48245
15653         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15654
15655 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
15656
15657         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15658         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15659         Insert new statements at it in lieu of STMT.
15660         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15661         * tree-vect-stmts.c (vectorizable_store): Likewise.
15662         (vectorizable_load): Likewise.
15663
15664 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
15665
15666         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15667         (divtf3): Ditto.
15668         (multf3): Ditto.
15669         (subtf3): Ditto.
15670
15671 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15672
15673         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15674         unaligned 256bit load/store.
15675         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15676         (*avx_movdqu<avxmodesuffix>): Likewise.
15677
15678 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15679
15680         PR target/48288
15681         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15682         * config/pa/pa.md (iordi3): Use new predicate in expander.
15683         (iorsi3): Likewise.
15684
15685 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
15686
15687         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
15688         FUNCTION_VALUE_REGNO_P): Remove macros.
15689         * config/mips/mips-protos.h (mips_function_value): Remove.
15690         * config/mips/mips.c (mips_function_value): Rename to...
15691         (mips_function_value_1): ... this. Make static.  Handle receiving
15692         the function type in 'fn_decl_or_type' argument.
15693         (mips_function_value, mips_libcall_value,
15694         mips_function_value_regno_p): New function.
15695         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15696         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15697
15698 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
15699
15700         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15701         and -mavx256-split-unaligned-store.
15702         (ix86_option_override_internal): Split 32-byte AVX unaligned
15703         load/store by default.
15704         (ix86_avx256_split_vector_move_misalign): New.
15705         (ix86_expand_vector_move_misalign): Use it.
15706
15707         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15708         -mavx256-split-unaligned-store.
15709
15710         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15711         256bit load/store.  Generate unaligned store on misaligned memory
15712         operand.
15713         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15714         256bit load/store.
15715         (*avx_movdqu<avxmodesuffix>): Likewise.
15716
15717         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15718         -mavx256-split-unaligned-store.
15719
15720 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
15721
15722         PR target/38598
15723         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15724         Update commentary.
15725
15726 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
15727
15728         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15729         opno arguments with an expand_operand.  Use create_input_operand.
15730         (mips_prepare_builtin_target): Delete.
15731         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15732         functions.
15733         (mips_expand_builtin_direct): Use create_output_operand and
15734         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
15735         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
15736         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15737
15738 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
15739
15740         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15741         function.
15742         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15743
15744 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
15745
15746         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15747         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
15748         basic blocks and call commit_edge_insertions directly.
15749         (fixup_abnormal_edges): Move from here to...
15750         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
15751         on the edges and return whether some have actually been inserted.
15752         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15753         compensation code.
15754
15755 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
15756
15757         PR rtl-optimization/48144
15758         * sel-sched-ir.c (merge_history_vect): Factor out from ...
15759         (merge_expr_data): ... here.
15760         (av_set_intersect): Rename to av_set_code_motion_filter.
15761         Update all callers.  Call merge_history_vect when an expression
15762         is found in both sets.
15763         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15764
15765 2011-03-26  Alan Modra  <amodra@gmail.com>
15766
15767         * config/rs6000/predicates.md (word_offset_memref_op): Handle
15768         cmodel medium addresses.
15769         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15770         64-bit gpr loads and stores.
15771         (rs6000_secondary_reload_ppc64): New function.
15772         * config/rs6000/rs6000-protos.h: Declare it.
15773         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15774
15775 2011-03-26  Alan Modra  <amodra@gmail.com>
15776
15777         PR target/47487
15778         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15779         GNU Go in traceback table.
15780
15781 2011-03-25  Richard Henderson  <rth@redhat.com>
15782
15783         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15784         if there are exactly 6 operands.
15785         (set_storage_via_setmem): Similarly.
15786
15787 2011-03-25  Kai Tietz  <ktietz@redhat.com>
15788
15789         * collect2.c (write_c_file_stat): Handle backslash
15790         as right-hand directory separator.
15791         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15792         checking just for slash.
15793         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15794         instead of checking for trailing slash.
15795         * gcc.c (record_temp_file): Use filename_cmp instead
15796         of strcmp.
15797         (do_spec_1): Likewise.
15798         (replace_outfile_spec_function): Likewise.
15799         (is_directory): Use filename_ncmp instead of strncmp.
15800         (print_multilib_info): Likewise.
15801         * gcov.c (find_source): Use filename_cmp instead
15802         instead of strcmp.
15803         (make_gcov_file_name): Fix order of slash/backslash
15804         checks.
15805         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15806         (add_standard_paths): Likewise.
15807         * mips-tfile.c (saber_stop): Handle backslash.
15808         * prefix.c (update_path): Use filename_ncmp instead of
15809         strncmp.
15810         * profile.c (output_location): Use filename_cmp instead
15811         of strcmp.
15812         * read-md.c (handle_toplevel_file): Handle backslash.
15813         * tlink.c (frob_extension):  Likewise.
15814         * tree-cfg.c (same_line_p): Use filename_cmp instead of
15815         strcmp.
15816         * tree-dump.c (dequeue_and_dump): Handle backslash.
15817         * tree.c (get_file_function_name): Likewise.
15818         * gengtype.c (read_input_list): Likewise.
15819         (get_file_realbasename): Likewise.
15820         (get_output_file_with_visibility): Use filename_cmp
15821         instead of strcmp.
15822
15823 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
15824
15825         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15826         case to VFPv1.
15827
15828 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
15829
15830         * fold-const.c (expr_location_or): New function.
15831         (fold_truth_not_expr): Call it.
15832
15833 2011-03-25  Jeff Law  <law@redhat.com>
15834
15835         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15836         va_end.
15837         * c-family/c-common.c (def_fn_type): Likewise.
15838         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15839         * emit-rtl.c (gen_rtvec): Likewise.
15840         * lto/lto-lang.c (def_fn_type): Likewise.
15841
15842 2011-03-25  Richard Guenther  <rguenther@suse.de>
15843
15844         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15845         also generate copies.
15846         (fini_copy_prop): Handle constant values properly.
15847
15848 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
15849
15850         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15851         mode size instead of bitsize with DWARF2_ADDR_SIZE.
15852         (hash_loc_operands, compare_loc_operands): Handle
15853         DW_OP_GNU_entry_value.
15854
15855 2011-03-25  Kai Tietz  <ktietz@redhat.com>
15856
15857         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15858         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15859         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15860         comment and use macro TARGET_64BIT_MS_ABI instead.
15861         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15862         and change default behavior for 32-bit MS_ABI.
15863         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15864         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15865         32-bit, too.
15866         (ix86_cfun_abi): Likewise.
15867         (ix86_maybe_switch_abi): Adjust comment.
15868         (init_cumulative_args): Check for bit-ness in MS_ABI case.
15869         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15870         instead of checking for SYSV_ABI.
15871         (ix86_nsaved_sseregs): Likewise.
15872         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
15873         to 16 bytes.
15874         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
15875         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
15876         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
15877         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
15878         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
15879
15880 2011-03-25  Richard Guenther  <rguenther@suse.de>
15881
15882         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
15883         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15884         (verify_gimple): Remove.
15885         * tree-cfg.c (verify_gimple_call): Merge verification
15886         from verify_stmts.
15887         (verify_gimple_phi): Merge verification from verify_stmts.
15888         (verify_gimple_label): New function.
15889         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
15890         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15891         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
15892         (verify_stmts): Rename to verify_gimple_in_cfg.
15893         (verify_gimple_in_cfg): New function.
15894         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
15895         * tree-ssa.c (verify_ssa): Likewise.
15896         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
15897
15898 2011-03-25  Richard Guenther  <rguenther@suse.de>
15899
15900         * passes.c (init_optimization_passes): Add FRE pass after
15901         early SRA.
15902
15903 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
15904             Andrew Stubbs  <ams@codesourcery.com>
15905
15906         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
15907         for Cortex-A8.
15908         (arm_movdi_vfp_cortexa8): New pattern.
15909         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
15910         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
15911         instructions when tuning for Cortex-A8.  Set attribute "arch".
15912         * config/arm/arm.md: Move include arm-tune.md up a bit.
15913         (define_attr "arch"): Add "onlya8" and "nota8" values.
15914         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
15915
15916 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
15917
15918         PR bootstrap/48282
15919         Revert:
15920         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
15921
15922         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15923         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
15924         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15925         * passes.c (init_optimization_passes): Move
15926         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15927
15928 2011-03-25  Kai Tietz  <ktietz@redhat.com>
15929
15930         * c-typeck.c (comptypes_internal): Replace target
15931         hook call of comp_type_attributes by version in tree.c file.
15932         * gimple.c (gimple_types_compatible_p_1): Likewise.
15933         * tree-ssa.c (useless_type_conversion_p): Likewise.
15934         * tree.c (build_type_attribute_qual_variant): Likewise.
15935         (attribute_value_equal): New static helper function.
15936         (comp_type_attributes): New function.
15937         (merge_attributes): Use attribute_value_equal for comparison.
15938         (attribute_list_contained): Likewise.
15939         * tree.h (comp_type_attributes): New prototype.
15940
15941 2011-03-25  Richard Guenther  <rguenther@suse.de>
15942
15943         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
15944         of complex types at -O0.
15945         (verify_gimple_assign_binary): Likewise.
15946         (verify_gimple_assign_ternary): Likewise.
15947
15948 2011-03-24  Mark Wielaard  <mjw@redhat.com>
15949
15950         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
15951         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
15952
15953 2011-03-24  Mark Wielaard  <mjw@redhat.com>
15954
15955         PR debug/48041
15956         * dwarf2out.c (output_abbrev_section): Only write table when
15957         abbrev_die_table_in_use > 1.
15958
15959 2011-02-24  Richard Henderson  <rth@redhat.com>
15960
15961         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
15962         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
15963         (alpha_expand_unaligned_load_words): Use extql.
15964         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
15965         (emit_insxl): Handle all modes for consistency.
15966
15967 2011-02-24  Richard Henderson  <rth@redhat.com>
15968
15969         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
15970         (alpha_expand_unaligned_load): Likewise.
15971         (alpha_expand_unaligned_store): Likewise.
15972         (alpha_expand_unaligned_load_words): Likewise.
15973         (alpha_expand_unaligned_store_words): Likewise.
15974         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
15975         (alpha_split_lock_test_and_set_12): Likewise.
15976         (print_operand, alpha_fold_builtin_extxx): Likewise.
15977         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
15978         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
15979         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
15980         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
15981         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
15982         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
15983         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
15984         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
15985         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
15986         (extwl, extll, extql): Similarly.
15987         (inswh, inslh, insqh): Similarly.
15988         (mskbl, mskwl, mskll, mskql): Similarly.
15989         (mskwh, msklh, mskqh): Similarly.
15990
15991 2011-02-24  Richard Henderson  <rth@redhat.com>
15992
15993         * config/alpha/alpha.md (attribute isa): Add er, ner.
15994         (attribute enabled): Handle them.
15995         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
15996
15997 2011-02-24  Richard Henderson  <rth@redhat.com>
15998
15999         * config/alpha/alpha.md (attribute isa): Add vms.
16000         (attribute enabled): Handle it.
16001         (*movsf): Merge *movsf_{nofix,fix,nofp}.
16002         (*movdf): Merge *movdf_{nofix,fix,nofp}.
16003         (*movtf): Rename from *movtf_internal for consistency.
16004         (*movsi): Merge with *movsi_nt_vms.
16005         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16006         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16007         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16008         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16009
16010 2011-02-24  Richard Henderson  <rth@redhat.com>
16011
16012         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16013         (extendqisi2, extendhisi2): Likewise.
16014         (extendqidi2): Simplify BWX/non-BWX expansions.
16015         (extendhidi2): Similarly.
16016
16017 2011-02-24  Richard Henderson  <rth@redhat.com>
16018
16019         * config/alpha/alpha.md (attribute isa): New.
16020         (attribute enabled): New.
16021         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16022         (zero_extendqisi2, zero_extendqidi2): Similarly.
16023         (zero_extendhisi2, zero_extendhidi2): Similarly.
16024         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16025
16026 2011-02-24  Richard Henderson  <rth@redhat.com>
16027
16028         * config/alpha/predicates.md (input_operand): Revert last change;
16029         update comment to mention 32-bit VMS rather than Windows.
16030
16031 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16032
16033         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16034         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
16035         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16036         * passes.c (init_optimization_passes): Move
16037         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16038
16039 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16040
16041         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16042
16043 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16044
16045         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16046         correctly.
16047
16048 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
16049
16050         PR debug/48204
16051         * simplify-rtx.c (simplify_const_unary_operation): Call
16052         real_convert when changing mode class with FLOAT_EXTEND.
16053
16054 2011-03-24  Nick Clifton  <nickc@redhat.com>
16055
16056         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16057         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16058         * config/rx/rx.c (rx_option_override): Set align_jumps,
16059         align_loops and align_labels if not set by the user.
16060         (rx_align_for_label): New function.
16061         (rx_max_skip_for_label): New function.
16062         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16063         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16064         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16065         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16066         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16067
16068 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16069
16070         PR rtl-optimization/48263
16071         * optabs.c (expand_binop_directly): Reinstate convert_modes code
16072         and original commutative_p handling.  Use maybe_gen_insn.
16073
16074 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16075
16076         * reload.c (find_reloads_subreg_address): Add address_reloaded
16077         parameter and return true there if the full address has been
16078         reloaded.
16079         (find_reloads_toplev): Pass address_reloaded flag.
16080         (find_reloads_address_1): Don't use address_reloaded parameter.
16081
16082 2011-03-24  Jeff Law  <law@redhat.com>
16083
16084         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16085         unused variable "ann".
16086         (remove_unused_locals): Likewise.
16087
16088         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16089         statement.
16090
16091         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16092         after it is freed.
16093
16094 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16095
16096         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16097         for invalid symbolic addresses.
16098         (s390_secondary_reload): Don't use s390_check_symref_alignment for
16099         larl operands.
16100
16101 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16102
16103         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16104         the argument in calls to fold_truth_not_expr.
16105
16106 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16107
16108         * tree.c (record_node_allocation_statistics): New function.
16109         (make_node_stat, copy_node_stat, build_string): Call it.
16110         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16111         (build1_stat, build_omp_clause): Likewise.
16112
16113 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16114
16115         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16116         last commit.
16117
16118 2011-03-24  Richard Guenther  <rguenther@suse.de>
16119
16120         PR tree-optimization/48271
16121         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16122         blocks that still exist.
16123
16124 2011-03-24  Richard Guenther  <rguenther@suse.de>
16125
16126         PR tree-optimization/48270
16127         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16128         not free datarefs before ddrs.
16129
16130 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16131
16132         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16133         from the address built for a reference with variable offset.
16134
16135 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16136
16137         PR target/48237
16138         * config/i386/i386.md (*movdf_internal_rex64): Do not split
16139         alternatives that can be handled with movq or movabsq insn.
16140         (*movdf_internal): Disable for !TARGET_64BIT.
16141         (*movdf_internal_nointeger): Ditto.
16142         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16143
16144 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16145
16146         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16147         (FUNCTION_ARG_ADVANCE): Likewise.
16148         * tm.texi.in: Change references to them to hook references.
16149         * tm.texi: Regenerate.
16150         * targhooks.c (default_function_arg): Eliminate check for target macro.
16151         (default_function_incoming_arg): Likewise.
16152         (default_function_arg_advance): Likewise.
16153         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16154         (function_arg_advance): Likewise.
16155         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16156
16157 2011-03-24  Richard Guenther  <rguenther@suse.de>
16158
16159         PR middle-end/48269
16160         * tree-object-size.c (addr_object_size): Do not double-account
16161         for MEM_REF offsets.
16162
16163 2011-03-24  Diego Novillo  <dnovillo@google.com>
16164
16165         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16166         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16167         (lto_input_data_block): Move from lto-opts.c.  Make extern.
16168         Update all users.
16169         (lto_input_string): Rename from input_string.  Make extern.
16170         Update all users.
16171         * lto-streamer-out.c (lto_output_string_with_length): Rename from
16172         output_string_with_length.
16173         Output 0 to indicate a non-NULL string.  Update all callers to
16174         not emit 0.
16175         (lto_output_string): Rename from output_string.  Make extern.
16176         Update all users.
16177         (lto_output_decl_state_streams): Make extern.
16178         (lto_output_decl_state_refs): Make extern.
16179         * lto-streamer.h (lto_input_string): Declare.
16180         (lto_input_data_block): Declare.
16181         (lto_output_string): Declare.
16182         (lto_output_string_with_length): Declare.
16183         (lto_output_decl_state_streams): Declare.
16184         (lto_output_decl_state_refs): Declare.
16185
16186 2011-03-24  Richard Guenther  <rguenther@suse.de>
16187
16188         PR tree-optimization/46562
16189         * tree.c (build_invariant_address): New function.
16190         * tree.h (build_invariant_address): Declare.
16191         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16192         a renamed function moved ...
16193         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16194         Take valueization callback parameter.
16195         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16196         * gimple-fold.h: New file.
16197         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16198         (ccp_fold, fold_const_aggregate_ref,
16199         fold_ctor_reference, fold_nonarray_ctor_reference,
16200         fold_array_ctor_reference, fold_string_cst_ctor_reference,
16201         get_base_constructor): Move ...
16202         * gimple-fold.c: ... here.
16203         (gimple_fold_stmt_to_constant_1): New function
16204         split out from ccp_fold.  Take a valueization callback parameter.
16205         Valueize all operands.
16206         (gimple_fold_stmt_to_constant): New wrapper function.
16207         (fold_const_aggregate_ref_1): New function split out from
16208         fold_const_aggregate_ref.  Take a valueization callback parameter.
16209         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16210         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16211         invariant POINTER_PLUS_EXPRs to invariant form.
16212         (vn_valueize): New function.
16213         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16214         * tree-vrp.c (vrp_valueize): New function.
16215         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16216         to fold statements to constants.
16217         * tree-ssa-pre.c (eliminate): Properly guard propagation of
16218         function declarations.
16219         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16220         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16221
16222 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16223
16224         * config/h8300/predicates.md (jump_address_operand): Fix register
16225         mode check.
16226
16227 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
16228
16229         * doc/invoke.texi (max-stores-to-sink): Document.
16230         * params.h (MAX_STORES_TO_SINK): Define.
16231         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16232         if either vectorization or if-conversion is disabled.
16233         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16234         tree-vect-data-refs.c vect_equal_offsets.
16235         (dr_equal_offsets_p): New function.
16236         (find_data_references_in_bb): Remove static.
16237         * tree-data-ref.h (find_data_references_in_bb): Declare.
16238         (dr_equal_offsets_p): Likewise.
16239         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16240         (vect_drs_dependent_in_basic_block): Update calls to
16241         vect_equal_offsets.
16242         (vect_check_interleaving): Likewise.
16243         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16244         (cond_if_else_store_replacement): Rename to...
16245         (cond_if_else_store_replacement_1): ... this.  Change arguments and
16246         documentation.
16247         (cond_if_else_store_replacement): New function.
16248         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16249         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16250
16251 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
16252
16253         PR target/46934
16254         * config/arm/arm.md (casesi): Use the gen_int_mode() function
16255         to subtract lower bound instead of GEN_INT().
16256
16257 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
16258
16259         PR other/48179
16260         PR other/48221
16261         PR other/48234
16262         * doc/extend.texi (Alignment): Move section to match order in TOC.
16263         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16264         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16265
16266 2011-03-23  Jeff Law  <law@redhat.com>
16267
16268         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16269         before removing the edge.
16270
16271         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16272         it may have been freed by redirect_branch_edge or
16273         redirect_edge_succ_nodup.
16274
16275 2011-03-23  Richard Guenther  <rguenther@suse.de>
16276
16277         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16278         (check_va_list_escapes): Likewise.
16279         (check_all_va_list_escapes): Likewise.
16280
16281 2011-03-23  Richard Guenther  <rguenther@suse.de>
16282
16283         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16284         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16285         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16286         (alias.o): Likewise.
16287         (ipa-type-escape.o): Remove.
16288         (ipa-struct-reorg.o): Likewise.
16289         (GTFILES): Remove ipa-struct-reorg.c.
16290         * alias.c: Do not include ipa-type-escape.h.
16291         * tree-ssa-alias.c: Likewise.
16292         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16293         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16294         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16295         and ipa-type-escape passes.
16296         * tree-pass.h (pass_ipa_type_escape): Remove.
16297         (pass_ipa_struct_reorg): Likewise.
16298         * ipa-struct-reorg.h: Remove.
16299         * ipa-struct-reorg.c: Likewise.
16300         * ipa-type-escape.h: Likewise.
16301         * ipa-type-escape.c: Likewise.
16302         * doc/invoke.texi (-fipa-struct-reorg): Remove.
16303         (--param struct-reorg-cold-struct-ratio): Likewise.
16304         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16305         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16306         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16307
16308 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16309
16310         * config/s390/2084.md: Enable all insn reservations also for z9_ec
16311         cpu attribute value.
16312         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16313         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16314         * config/s390/s390.c (processor_flags_table): New constant array.
16315         (s390_handle_arch_option): Remove.
16316         (s390_handle_option): Remove s390_handle_arch_option invocations
16317         and OPT_mwarn_framesize_ handling.
16318         (s390_option_override): Remove s390_handle_arch_option invocation.
16319         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16320         warnings.
16321         * config/s390/s390.md (cpu attribute): Add z9_ec value.
16322         * config/s390/s390.opt (s390_tune, s390_arch)
16323         (march=): Replace s390_arch_option enum and values with
16324         processor_type.  Set variable name to s390_arch.  Set
16325         initialization value.
16326         (mtune=): Replace s390_arch_option with processor_type.  Set
16327         variable name to s390_tune.  Set initialization value.
16328
16329 2011-03-23  Julian Brown  <julian@codesourcery.com>
16330
16331         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16332         accesses which are not naturally aligned.
16333
16334 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16335
16336         PR target/47553
16337         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16338
16339 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16340
16341         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16342         parameter from "int" to "enum insn_code".
16343         (expand_operand_type): New enum.
16344         (expand_operand): New structure.
16345         (create_expand_operand): New function.
16346         (create_fixed_operand, create_output_operand): Likewise
16347         (create_input_operand, create_convert_operand_to): Likewise.
16348         (create_convert_operand_from, create_address_operand): Likewise.
16349         (create_integer_operand): Likewise.
16350         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16351         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16352         (expand_insn, expand_jump_insn): Likewise.
16353         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16354         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16355         (expand_movstr, expand_builtin___clear_cache): Likewise.
16356         (expand_builtin_lock_release): Likewise.
16357         * explow.c (allocate_dynamic_stack_space): Likewise.
16358         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
16359         and use the default handling in that case.
16360         * expmed.c (check_predicate_volatile_ok): Delete.
16361         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16362         (emit_cstore): Likewise.
16363         * expr.c (emit_block_move_via_movmem): Likewise.
16364         (set_storage_via_setmem, expand_assignment): Likewise.
16365         (emit_storent_insn, try_casesi): Likewise.
16366         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
16367         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16368         (expand_vec_shift_expr, expand_binop_directly): Likewise.
16369         (expand_twoval_unop, expand_twoval_binop): Likewise.
16370         (expand_unop_direct, emit_indirect_jump): Likewise.
16371         (emit_conditional_move, vector_compare_rtx): Likewise.
16372         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16373         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16374         (expand_sync_lock_test_and_set): Likewise.
16375         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
16376         (emit_unop_insn): Likewise.
16377         (expand_copysign_absneg): Change icode to an insn_code.
16378         (create_convert_operand_from_type): New function.
16379         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16380         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16381         (expand_insn, expand_jump_insn): Likewise.
16382         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16383         than const_int_operand for operand 2.
16384
16385 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16386
16387         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16388         if possible.
16389
16390 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16391
16392         * emit-rtl.c (emit_pattern_before_noloc): New function.
16393         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16394         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16395         (emit_pattern_after_noloc): New function.
16396         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16397         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16398
16399 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16400
16401         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16402         (__ffsDI2): Likewise.
16403
16404 2011-03-22  Richard Henderson  <rth@redhat.com>
16405
16406         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16407         of !TARGET_ABI_OPEN_VMS.
16408         (alpha_trampoline_init, alpha_start_function): Likewise.
16409         (alpha_expand_epilogue, alpha_file_start): Likewise.
16410         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16411         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16412         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16413         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16414         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16415
16416 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16417
16418         * config/s390/s390-opts.h: New.
16419         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16420         s390_arch_flags, s390_warn_framesize, s390_stack_size,
16421         s390_stack_guard): Remove.
16422         (s390_handle_arch_option): Return void.  Take enum
16423         s390_arch_option value instead of string and searching array.
16424         (s390_handle_option): Don't assert that global structures are in
16425         use.  Access variables via opts pointer.  Use error_at.  Don't use
16426         sscanf for -mstack-guard= or -mstack-size=.  Update call to
16427         s390_handle_arch_option.
16428         (s390_option_override): Update call to s390_handle_arch_option.
16429         (s390_emit_prologue): Use %d format for s390_stack_size in
16430         diagnostic.  Use %wd for HOST_WIDE_INT.
16431         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16432         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16433         * config/s390/s390.opt (config/s390/s390-opts.h): New
16434         HeaderInclude entry.
16435         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16436         s390_arch_flags, s390_warn_framesize): New Variable entries.
16437         (s390_arch_option): New Enum and EnumValue entries.
16438         (march=): Use Enum instead of Var.
16439         (mstack-guard=, mstack-size=): Use UInteger and Var.
16440         (mtune=): Use Enum.
16441
16442 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16443
16444         * config/score/score.c (score_handle_option): Don't assert that
16445         global structures are in use.  Access target_flags via opts
16446         pointer.  Use value of -march= option to determine target_flags
16447         settings.
16448         * config/score/score.opt (march=): Use Enum.
16449         (score_arch): New Enum and EnumValue entries.
16450
16451 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16452
16453         * config/mep/mep.c (option_mtiny_specified): Remove.
16454         (mep_option_override): Move register handling for -mivc2 from
16455         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
16456         instead of option_mtiny_specified.
16457         (mep_handle_option): Access target_flags via opts pointer.  Don't
16458         assert that global structures are in use.  Defer part of -mivc2
16459         handling and move it to mep_option_override.
16460         * config/mep/mep.opt (IVC2): New Mask entry.
16461         (mivc2): Use Var and Defer instead of Mask.
16462
16463 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16464
16465         * config/v850/v850-opts.h: New.
16466         * config/v850/v850.c (small_memory): Replace with
16467         small_memory_physical_max array.  Make that array static const.
16468         (v850_handle_memory_option): Take integer value of argument.  Take
16469         gcc_options pointer, option text and location.  Return void.
16470         Update for changes to small memory structures.
16471         (v850_handle_option): Access target_flags via opts pointer.  Don't
16472         assert that global structures are in use.  Update calls to
16473         v850_handle_memory_option.
16474         (v850_encode_data_area): Update references to small memory settings.
16475         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16476         (enum small_memory_type): Move to v850-opts.h.
16477         * config/v850/v850.opt (config/v850/v850-opts.h): New
16478         HeaderInclude entry.
16479         (small_memory_max): New Variable entry.
16480         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
16481         (mtda, mzda): Likewise.
16482
16483 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16484
16485         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16486         pointer.  Don't assert that global structures are in use.
16487
16488 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16489
16490         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16491         via opts pointer.  Don't assert that global structures are in use.
16492
16493 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16494
16495         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16496         (munix=93): Use Var.
16497         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16498         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16499         * config/pa/pa-opts.h: New.
16500         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16501         (pa_handle_option): Don't assert that global structures are in
16502         use.  Access target_flags via opts pointer.  Don't handle
16503         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16504         OPT_munix_98 here.
16505         (pa_option_override): Handle deferred OPT_mfixed_range_.
16506
16507 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16508
16509         * config/mn10300/mn10300-opts.h: New.
16510         * config/mn10300/mn10300.c (mn10300_processor,
16511         mn10300_tune_string): Remove.
16512         (mn10300_handle_option): Don't assert that global structures are
16513         in use.  Access mn10300_processor via opts pointer.  Don't handle
16514         OPT_mtune_ here.
16515         * config/mn10300/mn10300.h (enum processor_type): Move to
16516         mn10300-opts.h.
16517         (mn10300_processor): Remove.
16518         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16519         HeaderInclude entry.
16520         (mn10300_processor): New Variable entry.
16521         (mtune=): Use Var.
16522
16523 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16524
16525         * config/microblaze/microblaze.c: Don't include opts.h.
16526         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16527         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16528         (mno-clearbss): Use Var and Warn.
16529
16530 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16531
16532         * config/m32r/m32r-opts.h: New.
16533         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16534         (m32r_handle_option): Don't assert that global structures are in
16535         use.  Access target_flags and m32r_cache_flush_func via opts
16536         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
16537         OPT_mno_flush_trap here.
16538         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16539         include of m32r-opts.h.
16540         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16541         HeaderInclude entry.
16542         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16543         (mmodel=): Use Enum and Var.
16544         (m32r_model): New Enum and EnumValue entries.
16545         (mno-flush-trap): Use Var.
16546         (msdata=): Use Enum and Var.
16547         (m32r_sdata): New Enum and EnumValue entries.
16548
16549 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16550
16551         * config/m32c/m32c.c: Don't include opts.h.
16552         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16553         m32c_handle_option): Remove.
16554         (m32c_option_override): Check global_options_set.x_target_memregs
16555         instead of target_memregs_set.
16556         * config/m32c/m32c.h (target_memregs): Remove.
16557         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16558         variable.
16559
16560 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16561
16562         * config/iq2000/iq2000-opts.h: New.
16563         * config/iq2000/iq2000.c: Don't include opts.h.
16564         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16565         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16566         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16567         HeaderInclude entry.
16568         (iq2000_tune): New Variable entry.
16569         (march=): Add comment.  Use Enum.
16570         (iq2000_arch): New Enum and EnumValue entries.
16571         (mcpu=): Use Enum and Var.
16572         (iq2000_tune): New Enum and EnumValue entries.
16573
16574 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16575
16576         * config/ia64/ia64-opts.h: New.
16577         * config/ia64/ia64.c (ia64_tune): Remove.
16578         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16579         here.  Use error_at.
16580         (ia64_option_override): Handle deferred OPT_mfixed_range_.
16581         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16582         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16583         HeaderInclude entry.
16584         (ia64_tune): New Variable entry.
16585         (mfixed-range=): Use Defer and Var.
16586         (mtune=): Use Enum and Var.
16587         (ia64_tune): New Enum and EnumValue entries.
16588
16589 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16590
16591         * config/frv/frv-opts.h: New.
16592         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16593         frv-opts.h.
16594         (frv_cpu_type): Remove.
16595         * config/frv/frv.c: Don't include opts.h.
16596         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16597         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16598         (frv_cpu_type): New Variable entry.
16599         (frv_cpu): New Enum and EnumValue entries.
16600
16601 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16602
16603         * config/cris/cris.c (cris_handle_option): Access target_flags via
16604         opts pointer.  Don't assert that global structures are in use.
16605         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16606         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16607
16608 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16609
16610         * config/bfin/bfin-opts.h: New.
16611         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16612         bfin_si_revision, bfin_workarounds): Remove.
16613         (bfin_cpus): Make static const.
16614         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16615         not bfin_lib_id_given.
16616         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
16617         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16618         pointer. Use error_at.  Don't assert that global structures are in use.
16619         * config/bfin/bfin.h: Include bfin-opts.h.
16620         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16621         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16622         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16623         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16624         entries.
16625
16626 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16627
16628         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16629         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16630         or -msoft-float here.
16631         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16632         -msoft-float and -mhard-float.
16633         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
16634         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16635         msoft-float.
16636         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16637         -msoft-float.
16638         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16639         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16640         not mhard-float.
16641         (LIBGCC_SPEC): Don't handle -msoft-float.
16642         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16643         -mhard-float.
16644         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16645         msoft-float.
16646         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16647         -mfloat-abi=*, not -msoft-float and -mhard-float.
16648         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16649         -msoft-float.
16650         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16651         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16652         mhard-float and msoft-float.
16653         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16654         mfloat-abi=soft in comments, not mhard-float and msoft-float.
16655         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16656         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16657         mhard-float.
16658         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16659         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16660         msoft-float.
16661         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16662         not mhard-float.
16663         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16664         not msoft-float.
16665
16666 2011-03-22  Richard Henderson  <rth@redhat.com>
16667
16668         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16669         TARGET_ABI_WINDOWS_NT.
16670         (alpha_output_function_end_prologue): Likewise.
16671         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16672         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16673         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16674         (trap, *movsi_nt_vms): Likewise.
16675         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16676         (*tablejump_osf_nt_internal): Remove.
16677         * config/alpha/predicates.md (input_operand): Only test Pmode.
16678
16679 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16680
16681         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16682         via opts pointer.  Use error_at.  Don't assert that global
16683         structures are in use.
16684
16685 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16686
16687         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16688         (ix86_handle_option): Access ix86_isa_flags and
16689         ix86_isa_flags_explicit via opts pointer.  Don't assert that
16690         global structures are in use.
16691         (ix86_function_specific_save, ix86_function_specific_restore):
16692         Update ix86_isa_flags_explicit field name.
16693         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
16694         (ix86_isa_flags_explicit): Rename TargetSave entry to
16695         x_ix86_isa_flags_explicit.
16696
16697 2011-03-22  Richard Henderson  <rth@redhat.com>
16698
16699         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16700         (alpha_option_override, direct_return): Likewise.
16701         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16702         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16703         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16704         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16705         (alpha_expand_epilogue, alpha_end_function): Likewise.
16706         (alpha_init_libfuncs): Likewise.
16707         (struct machine_function): Remove unicosmk members.
16708         (print_operand) ['t']: Remove.
16709         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16710         unicosmk_output_module_name, unicosmk_output_common,
16711         current_section_align, unicosmk_output_text_section_asm_op,
16712         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16713         unicosmk_section_type_flags, unicosmk_unique_section,
16714         unicosmk_asm_named_section, unicosmk_insert_attributes,
16715         unicosmk_output_align, unicosmk_defer_case_vector,
16716         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16717         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16718         unicosmk_output_ssib, unicosmk_add_call_info_word,
16719         unicosmk_extern_head, unicosmk_output_default_externs,
16720         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16721         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16722         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16723         * config/alpha/alpha-protos.h: Update.
16724         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16725         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16726         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16727         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16728         (*mulsi_se, mulvsi3): Likewise.
16729         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16730         (*divmodsi_internal, call, call_value, realign): Likewise.
16731         (moddi3, umoddi3): Likewise; remove duplicate expander.
16732         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16733         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16734         (*movdi_nofix): Remove r/U alternative.
16735         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16736         * config/alpha/constraints.md ("U"): Remove.
16737         * config/alpha/predicates.md (call_operand"): Don't test
16738         TARGET_ABI_UNICOSMK.
16739
16740 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16741
16742         * target.def (handle_option): Take gcc_options and
16743         cl_decoded_option pointers and location_t.
16744         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16745         * doc/tm.texi: Regenerate.
16746         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16747         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16748         * lto-opts.c (lto_reissue_options): Generate option structure for
16749         targetm.handle_option call.
16750         * opts.c (target_handle_option): Update call to
16751         targetm.handle_option.  Remove assertions about values now passed
16752         down to hook.
16753         * targhooks.c (default_target_handle_option): New.
16754         * targhooks.h (default_target_handle_option): Declare.
16755         * config/alpha/alpha.c: Include opts.h.
16756         (alpha_handle_option): Update to new hook interface.
16757         * config/arm/arm.c: Include opts.h.
16758         (arm_handle_option): Update to new hook interface.
16759         * config/arm/t-arm (arm.o): Update dependencies.
16760         * config/bfin/bfin.c: Include opts.h.
16761         (bfin_handle_option): Update to new hook interface.
16762         * config/cris/cris.c: Include opts.h.
16763         (cris_handle_option): Update to new hook interface.
16764         * config/frv/frv.c: Include opts.h.
16765         (frv_handle_option): Update to new hook interface.
16766         * config/i386/i386.c: Include opts.h.
16767         (ix86_handle_option): Update to new hook interface.
16768         (ix86_valid_target_attribute_inner_p): Generate option structure
16769         for call to ix86_handle_option.
16770         * config/i386/t-i386 (i386.o): Update dependencies.
16771         * config/ia64/ia64.c: Include opts.h.
16772         (ia64_handle_option): Update to new hook interface.
16773         * config/ia64/t-ia64 (ia64.o): Update dependencies.
16774         * config/iq2000/iq2000.c: Include opts.h.
16775         (iq2000_handle_option): Update to new hook interface.
16776         * config/m32c/m32c.c: Include opts.h.
16777         (m32c_handle_option): Update to new hook interface.
16778         * config/m32r/m32r.c: Include opts.h.
16779         (m32r_handle_option): Update to new hook interface.
16780         * config/m68k/m68k.c: Include opts.h.
16781         (m68k_handle_option): Update to new hook interface.
16782         * config/mep/mep.c: Include opts.h.
16783         (mep_handle_option): Update to new hook interface.
16784         * config/microblaze/microblaze.c: Include opts.h.
16785         (microblaze_handle_option): Update to new hook interface.
16786         * config/mips/mips.c: Include opts.h.
16787         (mips_handle_option): Update to new hook interface.
16788         * config/mn10300/mn10300.c: Include opts.h.
16789         (mn10300_handle_option): Update to new hook interface.
16790         * config/pa/pa.c: Include opts.h.
16791         (pa_handle_option): Update to new hook interface.
16792         * config/pdp11/pdp11.c: Include opts.h.
16793         (pdp11_handle_option): Update to new hook interface.
16794         * config/rs6000/rs6000.c: Include opts.h.
16795         (rs6000_handle_option): Update to new hook interface.
16796         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16797         * config/rx/rx.c: Include opts.h.
16798         (rx_handle_option): Update to new hook interface.
16799         * config/s390/s390.c: Include opts.h.
16800         (s390_handle_option): Update to new hook interface.
16801         * config/score/score.c: Include opts.h.
16802         (score_handle_option): Update to new hook interface.
16803         * config/sh/sh.c: Include opts.h.
16804         (sh_handle_option): Update to new hook interface.
16805         * config/sparc/sparc.c: Include opts.h.
16806         (sparc_handle_option): Update to new hook interface.
16807         * config/v850/v850.c: Include opts.h.
16808         (v850_handle_option): Update to new hook interface.
16809
16810 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16811
16812         * gcc.c (driver_unknown_option_callback): Only permit and save
16813         unknown -Wno- options.
16814         (driver_wrong_lang_callback): Save options directly instead of via
16815         driver_unknown_option_callback.
16816
16817 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
16818
16819         * combine.c (simplify_set): Try harder to find the best CC mode when
16820         simplifying a nested COMPARE on the RHS.
16821
16822 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16823
16824         * config/alpha/gnu.h: Remove.
16825         * config/arc: Remove directory.
16826         * config/arm/netbsd.h: Remove.
16827         * config/arm/t-pe: Remove.
16828         * config/crx: Remove directory.
16829         * config/i386/netbsd.h: Remove.
16830         * config/m68hc11: Remove directory.
16831         * config/m68k/uclinux-oldabi.h: Remove.
16832         * config/mcore/mcore-pe.h: Remove.
16833         * config/mcore/t-mcore-pe: Remove.
16834         * config/netbsd-aout.h: Remove.
16835         * config/rs6000/gnu.h: Remove.
16836         * config/sh/sh-symbian.h: Remove.
16837         * config/sh/symbian-base.c: Remove.
16838         * config/sh/symbian-c.c: Remove.
16839         * config/sh/symbian-cxx.c: Remove.
16840         * config/sh/symbian-post.h: Remove.
16841         * config/sh/symbian-pre.h: Remove.
16842         * config/sh/t-symbian: Remove.
16843         * config/svr3.h: Remove.
16844         * config/vax/netbsd.h: Remove.
16845         * config.build: Don't handle i[34567]86-*-pe.
16846         * config.gcc: Remove handling of deprecations for most deprecated
16847         targets.
16848         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16849         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16850         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16851         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16852         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16853         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16854         Remove cases.
16855         * config.host: Don't handle i[34567]86-*-pe.
16856         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16857         (ASM_SPEC32): Don't handle -mcall-gnu.
16858         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16859         -mcall-gnu.
16860         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16861         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16862         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16863         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16864         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16865         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16866         conditional on SYMBIAN.
16867         * configure.ac: Don't handle powerpc*-*-gnu*.
16868         * configure: Regenerate.
16869         * doc/extend.texi (interrupt attribute): Don't mention CRX.
16870         * doc/install-old.texi (m6811, m6812): Don't mention.
16871         * doc/install.texi (arc-*-elf*): Don't document multilib option.
16872         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
16873         (m68k-uclinuxoldabi): Don't mention.
16874         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
16875         Remove.
16876         (-mcall-gnu): Remove.
16877         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
16878         families): Remove constraint documentation.
16879
16880 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
16881
16882         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
16883         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
16884         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
16885
16886 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16887
16888         PR target/48226
16889         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
16890         vector when peeking at the next token for vector, don't expand the
16891         keywords.
16892
16893 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
16894
16895         * config/avr/avr-protos.h (expand_epilogue): Change prototype
16896         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
16897         * config/avr/avr.c (init_cumulative_args)
16898         (avr_function_arg_advance): Use it.
16899         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
16900         sibcall epilogues.
16901         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
16902         (avr_function_ok_for_sibcall): ...this new function.
16903         (avr_lookup_function_attribute1): New static Function.
16904         (avr_naked_function_p, interrupt_function_p)
16905         (signal_function_p, avr_OS_task_function_p)
16906         (avr_OS_main_function_p): Use it.
16907         * config/avr/avr.md ("sibcall", "sibcall_value")
16908         ("sibcall_epilogue"): New expander.
16909         ("*call_insn", "*call_value_insn"): New insn.
16910         ("call_insn", "call_value_insn"): Remove
16911         ("call", "call_value", "epilogue"): Change expander to handle
16912         sibling calls.
16913
16914 2011-03-21  Nick Clifton  <nickc@redhat.com>
16915
16916         * doc/invoke.texi (Overall Options): Move closing brace to end of
16917         options list.
16918         (Optimization Options): Add missing @gol.
16919         (Directory Options): Likewise.
16920         (i386 and x86-64 Options): Likewise.
16921         (RS6000 and PowerPC Options): Likewise.
16922         (i386 and x86-64 Windows Options): Likewise.
16923         (V850 Options): Add text missing from descriptions.
16924
16925 2011-03-22  Richard Henderson  <rth@redhat.com>
16926
16927         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
16928         (avr_incoming_return_addr_rtx): New.
16929         (emit_push_byte): New.
16930         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
16931         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
16932         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
16933         (emit_pop_byte): New.
16934         (expand_epilogue): Use it.  Pop frame pointer by bytes.
16935         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
16936         (INCOMING_RETURN_ADDR_RTX): New.
16937         (INCOMING_FRAME_SP_OFFSET): New.
16938         (ARG_POINTER_CFA_OFFSET): New.
16939         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
16940         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
16941         (pophi): Remove.
16942
16943         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
16944
16945 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16946
16947         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16948         (FUNCTION_ARG_ADVANCE): Likewise.
16949         * tm.texi.in: Change references to them to hook references.
16950         * tm.texi: Regenerate.
16951         * targhooks.c (default_function_arg): Eliminate check for target
16952         macro.
16953         (default_function_incoming_arg): Likewise.
16954         (default_function_arg_advance): Likewise.
16955         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16956         (function_arg_advance): Likewise.
16957         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16958
16959 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16960
16961         * tree.c (build_call_1): New function.
16962         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
16963
16964 2011-03-22  Richard Guenther  <rguenther@suse.de>
16965
16966         PR tree-optimization/48228
16967         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
16968         for single-arg PHIs.
16969
16970 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
16971
16972         PR rtl-optimization/48143
16973         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
16974         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
16975         sse2_cvtps2pd): Likewise.
16976
16977 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16978
16979         * recog.c (canonicalize_change_group): Use validate_unshare_change.
16980
16981 2011-03-22  Richard Guenther  <rguenther@suse.de>
16982
16983         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
16984         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
16985         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
16986         and REALIGN_LOAD_EXPR.
16987         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
16988         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
16989         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
16990         DOT_PROD_EXPR case ...
16991         (expand_expr_real_2): ... here.
16992         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
16993         and REALIGN_LOAD_EXPR.
16994         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
16995         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
16996         (vect_create_epilog_for_reduction): Likewise.
16997         (vectorizable_reduction): Likewise.
16998         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
16999         * tree-vect-stmts.c (vectorizable_load): Likewise.
17000
17001 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
17002
17003         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17004
17005 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17006
17007         * config/s390/s390.c (s390_delegitimize_address): Fix offset
17008         handling for PLTOFF/GOTOFF.
17009
17010 2011-03-22  Nick Clifton  <nickc@redhat.com>
17011
17012         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17013         trailing backslash from the end of the macro definition.
17014
17015 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17016
17017         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17018         and PLT unspecs.
17019
17020 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
17021
17022         * expr.h (prepare_operand): Move to...
17023         * optabs.h (prepare_operand): ...here and change the insn code
17024         parameter from "int" to "enum insn_code".
17025         (insn_operand_matches): Declare.
17026         * expr.c (init_expr_target): Use insn_operand_matches.
17027         (compress_float_constant): Likewise.
17028         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17029         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17030         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
17031         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17032         Likewise.
17033         (gen_cond_trap): Likewise.
17034         (prepare_operand): Likewise.  Change icode to an insn_code.
17035         (insn_operand_matches): New function.
17036         * reload.c (find_reloads_address_1): Use insn_operand_matches.
17037         * reload1.c (gen_reload): Likewise.
17038         * targhooks.c (default_secondary_reload): Likewise.
17039
17040 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17041
17042         * config/alpha/alpha.md (unspec): New define_c_enum.
17043         (unspecv): Ditto.
17044
17045 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17046
17047         PR debug/48214
17048         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17049         between a call and its CALL_ARG_LOCATION note.
17050
17051 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
17052
17053         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17054
17055 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17056
17057         PR c/42544
17058         PR c/48197
17059         * c-common.c (shorten_compare): If primopN is first sign-extended
17060         to opN and then zero-extended to result type, set primopN to opN.
17061
17062 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
17063
17064         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17065         for barrier handlers.
17066
17067 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17068
17069         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17070         UNSPEC constants to be in the unspec enumeration, and redefine
17071         all UNSPECV constants to be in the unspecv enumeration, so that
17072         dumps print which unspec/unspec_volatile this is.
17073         * config/rs6000/vector.md (UNSPEC_*): Ditto.
17074         * config/rs6000/paired.md (UNSPEC_*): Ditto.
17075         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17076         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17077         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17078
17079         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17080         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17081         UNSPECV_LWSYNC, since these are used as unspec_volatile.
17082         * config/rs6000/sync.md (isync, lwsync): Ditto.
17083
17084 2011-03-21  Richard Guenther  <rguenther@suse.de>
17085
17086         * params.def (lto-min-partition): Fix typo.
17087
17088 2011-03-21  Richard Guenther  <rguenther@suse.de>
17089
17090         PR c/47939
17091         * c-decl.c (grokdeclarator): Drop to the main variant only
17092         for array types.  Drop flag_gen_aux_info check.
17093
17094 2011-03-21  Richard Guenther  <rguenther@suse.de>
17095
17096         PR translation/47911
17097         * params.def (lto-partitions): Fix typo.
17098         (lto-min-partition): Fix wording.
17099
17100 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
17101
17102         * config/rs6000/t-freebsd: Remove duplication from file.
17103
17104 2011-03-21  Richard Guenther  <rguenther@suse.de>
17105
17106         PR middle-end/47661
17107         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17108
17109 2011-03-21  Richard Guenther  <rguenther@suse.de>
17110
17111         PR lto/48210
17112         * params.def (lto-partitions): Require at least 1 partition.
17113
17114 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17115
17116         * gthr-solaris.h: Remove.
17117         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17118         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17119         (LIB_SPEC): Likewise.
17120         * config/sol2.opt (threads): Remove.
17121         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17122         (sparc*-*-solaris2*): Likewise.
17123         * configure.ac (enable_threads): Enable solaris support.
17124         * configure: Regenerate.
17125         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17126         * doc/install.texi (Configuration, --enable-threads=lib): Remove
17127         solaris.
17128
17129 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17130
17131         * config.gcc: Obsolete *-*-solaris2.8*.
17132         * doc/install.texi (Specific, *-*-solaris2*): Document it.
17133
17134 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17135
17136         PR bootstrap/48135
17137         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17138         reference.  Solaris 8 perl works.
17139
17140 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17141
17142         PR bootstrap/48135
17143         * doc/install.texi (Prerequisites): Move jar etc. up.
17144         Explain support library version requirements.
17145
17146 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17147
17148         PR bootstrap/48135
17149         * doc/install.texi (Prerequisites): Move Perl to build
17150         requirements.  Always necessary on Solaris 2 with Sun ld.
17151
17152 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17153
17154         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17155         binutils 2.21.
17156         (Specific, i?86-*-solaris2.[89]): Likewise.
17157         (Specific, i?86-*-solaris2.10): Likewise.
17158         (Specific, mips-sgi-irix6): Likewise.
17159         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17160         Update for binutils 2.21.
17161
17162 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17163
17164         * configure.ac (gcc_cv_lto_plugin): Fix typo.
17165         Allow -fuse-linker-plugin for non-default plugin linker.
17166         * configure: Regenerate.
17167
17168 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17169
17170         PR bootstrap/48167
17171         * gengtype.c (files_rules): Added rule for cp/parser.h.
17172
17173 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17174
17175         PR target/48213
17176         * config/s390/s390.c (s390_delegitimize_address): Don't call
17177         lowpart_subreg if orig_x has BLKmode.
17178
17179 2011-03-21  Kai Tietz  <ktietz@redhat.com>
17180
17181         PR target/12171
17182         * doc/plugins.texi: Adjust documentation for plugin register_callback.
17183         * tree.h (attribute_spec): Add new member affects_type_identity.
17184         * attribs.c (empty_attribute_table): Adjust attribute_spec
17185         initializers.
17186         * config/alpha/alpha.c: Likewise.
17187         * config/arc/arc.c: Likewise.
17188         * config/arm/arm.c: Likewise.
17189         * config/avr/avr.c: Likewise.
17190         * config/bfin/bfin.c: Likewise.
17191         * config/crx/crx.c: Likewise.
17192         * config/darwin.h: Likewise.
17193         * config/h8300/h8300.c: Likewise.
17194         * config/i386/cygming.h: Likewise.
17195         * config/i386/i386.c: Likewise.
17196         * config/ia64/ia64.c: Likewise.
17197         * config/m32c/m32c.c: Likewise.
17198         * config/m32r/m32r.c: Likewise.
17199         * config/m68hc11/m68hc11.c: Likewise.
17200         * config/m68k/m68k.c: Likewise.
17201         * config/mcore/mcore.c: Likewise.
17202         * config/mep/mep.c: Likewise.
17203         * config/microblaze/microblaze.c: Likewise.
17204         * config/mips/mips.c: Likewise.
17205         * config/rs6000/rs6000.c: Likewise.
17206         * config/rx/rx.c: Likewise.
17207         * config/sh/sh.c: Likewise.
17208         * config/sol2.h: Likewise.
17209         * config/sparc/sparc.c: Likewise.
17210         * config/spu/spu.c: Likewise.
17211         * config/stormy16/stormy16.c: Likewise.
17212         * config/v850/v850.c: Likewise.
17213
17214 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17215
17216         * simplify-rtx.c (simplify_binary_operation_1): Handle
17217         (xor (and A B) C) case when B and C are both constants.
17218
17219 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
17220
17221         * tree-dfa.c (add_referenced_var): Fix typo in comment.
17222
17223 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
17224
17225         PR bootstrap/48168
17226         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17227
17228 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
17229
17230         PR rtl-optimization/48156
17231         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17232         assume df and df_lr are not NULL.
17233
17234 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17235
17236         PR debug/48023
17237         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17238         between a call and its CALL_ARG_LOCATION note.
17239
17240 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
17241
17242         PR debug/48178
17243         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17244         between a call and its corresponding CALL_ARG_LOCATION note.
17245
17246 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
17247
17248         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17249         instead of loop. Use HARD_REGISTER_NUM_P predicate.
17250         * haifa-sched.c (setup_ref_regs): Ditto.
17251         * caller-save.c (add_used_regs_1): Ditto.
17252         * dse.c (look_for_hardregs): Ditto.
17253         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17254         * sched-rgn.c (check_live_1): Ditto.
17255
17256 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17257
17258         * c-decl.c (diagnose_mismatched_decls): Give an error for
17259         redefining a typedef with variably modified type.
17260
17261 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17262
17263         * c-decl.c (grokfield): Don't allow typedefs for structures or
17264         unions with no tag by default.
17265         * doc/extend.texi (Unnamed Fields): Update.
17266
17267 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
17268
17269         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17270         Rewrite using indirect functions.
17271         (lwp_slwpcb): Ditto.
17272         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17273         (avx_vinsertf128<mode>): Ditto.
17274
17275 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17276
17277         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17278         unspecs.
17279
17280 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17281
17282         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17283         splitting between a call and its corresponding CALL_ARG_LOCATION note.
17284
17285 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17286
17287         PR rtl-optimization/48170
17288         * gcse.c (hoist_code): Remove bogus asserts.
17289
17290 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
17291
17292         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17293         computation for prologue/epilogue.
17294
17295 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17296
17297         * Makefile.in (check-consistency): Remove.
17298
17299 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
17300
17301         PR debug/48176
17302         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17303         arange_table_in_use is 0, but either text_section_used or
17304         cold_text_section_used is true.  Don't call it if
17305         !info_section_emitted.
17306
17307 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
17308
17309         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17310         FUNCTION_VALUE_REGNO_P): Remove.
17311         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17312         Remove.
17313         * config/avr/avr.c (avr_ret_register): Make static inline.
17314         (avr_function_value_regno_p): New function.
17315         (avr_libcall_value): Make static. Add 'func' argument.
17316         (avr_function_value): Make static. Rename 'func' argument to
17317         'fn_decl_or_type', forward it to avr_libcall_value. Call
17318         avr_ret_register function instead of RET_REGISTER macro.
17319         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17320
17321 2011-03-18  Jason Merrill  <jason@redhat.com>
17322
17323         PR c++/23372
17324         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17325
17326 2011-03-18  Richard Guenther  <rguenther@suse.de>
17327
17328         * doc/install.texi (--enable-gold): Remove.
17329         (--with-plugin-ld): Document.
17330         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17331
17332 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
17333
17334         PR middle-end/47790
17335         * expr.c (optimize_bitfield_assignment_op): Revamp to work
17336         again after expansion changes.
17337
17338 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
17339
17340         * combine.c (try_combine): Do simplification only call of
17341         subst() on i2 even when i1 is present. Update comments.
17342
17343 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17344
17345         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17346         and UNSPEC_PCREL_SYMOFF.
17347
17348 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17349
17350         * config/s390/s390.md: Use define_c_enum for the unspec constant
17351         definitions.
17352
17353 2011-03-18  Richard Henderson  <rth@redhat.com>
17354             Jakub Jelinek  <jakub@redhat.com>
17355
17356         PR bootstrap/48161
17357         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17358         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17359
17360 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17361
17362         PR middle-end/47725
17363         * combine.c (cant_combine_insn_p): Don't check zero/sign
17364         extended hard registers.
17365
17366 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17367
17368         PR middle-end/47725
17369         * combine.c (cant_combine_insn_p): Check zero/sign extended
17370         hard registers.
17371
17372 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
17373
17374         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17375         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17376         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17377         Change return type to bool.
17378         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17379
17380 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17381
17382         PR debug/48163
17383         * var-tracking.c (prepare_call_arguments): If CALL target
17384         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17385         pc instead of looking it up using cselib_lookup and use
17386         Pmode for it if x has VOIDmode.
17387         * dwarf2out.c (gen_subprogram_die): If also both first and
17388         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17389
17390         PR debug/48163
17391         * function.c (assign_parms): For data.passed_pointer parms
17392         use MEM of data.entry_parm instead of data.entry_parm itself
17393         as DECL_INCOMING_RTL.
17394         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17395         also when passed and declared mode is the same, DECL_RTL
17396         is a MEM with pseudo as address and DECL_INCOMING_RTL is
17397         a MEM too.
17398
17399 2011-03-16  Jeff Law  <law@redhat.com>
17400
17401         PR rtl-optimization/37273
17402         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17403         handle them like argument loads from stack slots.  Do not double
17404         count memory for memory constants and argument loads from stack slots.
17405
17406 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17407
17408         PR debug/48160
17409         * var-tracking.c (prepare_call_arguments): Check SUBREG.
17410
17411 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17412
17413         PR target/48171
17414         * config/i386/i386.opt: Add Save to -mavx and -mfma.
17415
17416 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17417
17418         PR bootstrap/48153
17419         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17420         if dwarf_strict.
17421         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17422         Clear call_arg_locations and call_arg_loc_last always.
17423
17424         PR middle-end/48152
17425         * var-tracking.c (prepare_call_arguments): If argument needs to be
17426         passed by reference, adjust argtype and mode.
17427
17428 2011-03-17  Richard Guenther  <rguenther@suse.de>
17429
17430         PR middle-end/48134
17431         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17432         a value make sure to fold the statement.
17433
17434 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
17435
17436         PR target/43872
17437         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17438         return condition with !cfun->calls_alloca.
17439
17440 2011-03-17  Richard Guenther  <rguenther@suse.de>
17441
17442         PR bootstrap/48148
17443         * lto-cgraph.c (input_overwrite_node): Clear the abstract
17444         origin for decls in other ltrans units.
17445         (input_varpool_node): Likewise.
17446
17447 2011-03-17  Richard Guenther  <rguenther@suse.de>
17448
17449         PR middle-end/48165
17450         * tree-object-size.c (compute_object_offset): Properly return
17451         the offset operand of MEM_REFs as sizetype.
17452
17453 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17454
17455         PR rtl-optimization/48141
17456         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17457         * dse.c: Include params.h.
17458         (active_local_stores_len): New variable.
17459         (add_wild_read, dse_step1): Clear it when setting active_local_stores
17460         to NULL.
17461         (record_store, check_mem_read_rtx): Decrease it when removing
17462         from the chain.
17463         (scan_insn): Likewise.  Increase it when adding to chain, if it
17464         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17465         set active_local_stores to NULL before the addition.
17466         * Makefile.in (dse.o): Depend on $(PARAMS_H).
17467
17468         PR rtl-optimization/48141
17469         * dse.c (record_store): If no positions are needed in an insn
17470         that cannot be deleted, at least unchain it from active_local_stores.
17471
17472 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
17473
17474         PR debug/47510
17475         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17476         (lookup_type_die_strip_naming_typedef): ... here.
17477         (get_context_die): Use it.
17478         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17479         the anonymous struct named by the naming typedef.
17480
17481 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17482
17483         PR target/48154
17484         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17485         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17486
17487 2011-03-16  Jeff Law  <law@redhat.com>
17488
17489         * tree-vrp.c (identify_jump_threads): Slightly simplify type
17490         check for operands of conditional.  Allow type to be a pointer.
17491
17492 2011-03-16  Richard Guenther  <rguenther@suse.de>
17493
17494         PR tree-optimization/48149
17495         * fold-const.c (fold_binary_loc): Fold
17496         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17497
17498 2011-03-16  Richard Guenther  <rguenther@suse.de>
17499
17500         PR tree-optimization/26134
17501         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17502         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17503         (non_rewritable_mem_ref_base): Handle complex type component
17504         accesses, constrain offsets for vector and complex extracts
17505         more properly.
17506
17507 2011-03-16  Richard Guenther  <rguenther@suse.de>
17508
17509         PR tree-optimization/48146
17510         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17511         operands avoiding the need for renaming.
17512
17513 2011-03-16  Richard Guenther  <rguenther@suse.de>
17514
17515         * gimple-fold.c (maybe_fold_reference): Open-code relevant
17516         constant folding.  Move MEM_REF canonicalization first.
17517         Rely on fold_const_aggregate_ref for initializer folding.
17518         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17519
17520 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
17521
17522         PR middle-end/48136
17523         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17524         arg0/arg1 or their arguments are always fold converted to matching
17525         types.
17526
17527         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17528         to nargs.
17529
17530 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17531
17532         PR lto/46944
17533         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17534         Handle in-tree gold.
17535         (ld_vers): Extract binutils version for gold.
17536         (gcc_cv_ld_hidden): Handle gold here.
17537         (gcc_cv_lto_plugin): Determine level of linker plugin support.
17538         * configure: Regenerate.
17539         * config.in: Regenerate.
17540         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17541         -fuse-linker-plugin otherwise.
17542         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
17543         (LINK_COMMAND_SPEC): Use it.
17544         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17545
17546 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
17547
17548         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17549         * calls.c: Remove debug.h include.
17550         (emit_call_1): Don't call virtual_call_token debug hook.
17551         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17552         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17553         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17554         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17555         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17556         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17557         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17558         dwarf2out_virtual_call): Remove.
17559         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17560         copy_call_info and virtual_call hooks.
17561         (dwarf2out_init): Don't initialize vcall_insn_table,
17562         debug_dcall_section and debug_vcall_section.
17563         (prune_unused_types): Don't mark nodes from dcall_table.
17564         (dwarf2out_finish): Don't output dcall or vcall tables.
17565         * final.c (final_scan_insn): Don't call direct_call or
17566         virtual_call debug hooks.
17567         * debug.h (struct gcc_debug_hooks): Remove direct_call,
17568         virtual_call_token, copy_call_info and virtual_call hooks.
17569         (debug_nothing_uid): Remove prototype.
17570         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17571         copy_call_info and virtual_call hooks.
17572         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17573         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17574         * debug.c (do_nothing_debug_hooks): Likewise.
17575         (debug_nothing_uid): Remove.
17576         * doc/invoke.texi (-fenable-icf-debug): Remove.
17577         * common.opt (-fenable-icf-debug): Likewise.
17578
17579         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17580         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17581         call's MEM.  Handle functions returning aggregate through a hidden
17582         first pointer.  For virtual calls add clobbered pc to call arguments
17583         chain.
17584         * dwarf2out.c (gen_subprogram_die): Emit
17585         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17586         can't be emitted.
17587
17588         PR debug/45882
17589         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17590         * rtl.h (ENTRY_VALUE_EXP): Define.
17591         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17592         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17593         * print-rtl.c (print_rtx): Likewise.
17594         * gengtype.c (adjust_field_rtx_def): Likewise.
17595         * var-tracking.c (vt_add_function_parameter): Adjust
17596         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17597         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17598         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17599         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17600         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17601
17602         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17603         Call var_location debug hook even on CALL_INSNs.
17604         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17605         * rtl.def (ENTRY_VALUE): New.
17606         * dwarf2out.c: Include cfglayout.h.
17607         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17608         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17609         (struct call_arg_loc_node): New type.
17610         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17611         tail_call_site_count): New variables.
17612         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17613         DW_TAG_GNU_call_site_parameter.
17614         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17615         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17616         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17617         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17618         and DW_AT_GNU_all_source_call_sites.
17619         (mem_loc_descriptor): Handle ENTRY_VALUE.
17620         (add_src_coords_attributes): Don't add enything if
17621         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17622         (dwarf2out_abstract_function): Save and clear call_arg_location,
17623         call_site_count and tail_call_site_count around dwarf2out_decl call.
17624         (gen_call_site_die): New function.
17625         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17626         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17627         (dwarf2out_function_decl): Clear call_arg_locations,
17628         call_arg_loc_last, set call_site_count and tail_call_site_count
17629         to -1 and free block_map.
17630         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17631         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
17632         followed by any real instructions.
17633         (dwarf2out_begin_function): Set call_site_count and
17634         tail_call_site_count to 0.
17635         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17636         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17637         attempt to force a DIE for it and worst case remove the attribute.
17638         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17639         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17640         the decl itself.
17641         * var-tracking.c: Include tm_p.h.
17642         (vt_stack_adjustments): For calls call note_register_arguments.
17643         (argument_reg_set): New variable.
17644         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17645         ensure the VALUE is resolved.
17646         (call_arguments): New variable.
17647         (prepare_call_arguments): New function.
17648         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17649         (struct expand_loc_callback_data): Add ignore_cur_loc field.
17650         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17651         always use the best expression.
17652         (vt_expand_loc): Add ignore_cur_loc argument.
17653         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17654         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17655         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17656         note for all calls.
17657         (vt_add_function_parameter): Use cselib_lookup_from_insn.
17658         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17659         argument.  Don't call cselib_preserve_only_values and
17660         cselib_reset_table.
17661         (note_register_arguments): New function.
17662         (vt_initialize): Compute argument_reg_set.  Call
17663         vt_add_function_parameters before processing basic blocks instead of
17664         afterwards.  For calls call prepare_call_arguments before calling
17665         cselib_process_insn.
17666         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17667         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17668         (var-tracking.o): Depend on $(TM_P_H).
17669         * cfglayout.h (insn_scope): New prototype.
17670         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17671         * cfglayout.c (insn_scope): No longer static.
17672         * insn-notes.def (CALL_ARG_LOCATION): New.
17673         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17674         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17675         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17676         nothing for DECL_EXTERNAL BLOCK_VARS.
17677
17678 2011-03-16  Alan Modra  <amodra@gmail.com>
17679
17680         PR target/45844
17681         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17682         create invalid offset address for vsx splat insn.
17683         * config/rs6000/predicates.md (splat_input_operand): New.
17684         * config/rs6000/vsx.md (vsx_splat_*): Use it.
17685
17686 2011-03-15  Xinliang David Li  <davidxl@google.com>
17687
17688         PR c/47837
17689         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17690         (normalize_preds): New function.
17691         (is_use_properly_guarded): Normalize def predicates.
17692
17693 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17694
17695         PR target/46788
17696         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17697         in the output template.
17698
17699 2011-03-15  Richard Guenther  <rguenther@suse.de>
17700
17701         PR middle-end/47650
17702         * tree-pretty-print.c (dump_function_declaration): Properly
17703         dump unprototyped and varargs function types.
17704
17705 2011-03-15  Richard Guenther  <rguenther@suse.de>
17706
17707         PR tree-optimization/13954
17708         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17709         and friends.
17710
17711 2011-03-15  Richard Guenther  <rguenther@suse.de>
17712
17713         PR tree-optimization/48037
17714         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17715         selects into BIT_FIELD_REFs.
17716         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17717         vector select.
17718
17719 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
17720
17721         PR tree-optimization/48129
17722         * builtins.c (fold_builtin_snprintf): Convert to type of
17723         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17724         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17725
17726 2011-03-15  Richard Guenther  <rguenther@suse.de>
17727
17728         PR tree-optimization/41490
17729         * tree-ssa-dce.c (propagate_necessity): Handle returns without
17730         value but with VUSE.
17731         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17732         return statements.
17733         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17734         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17735         * tree-tailcall.c (find_tail_calls): Ignore returns.
17736
17737 2011-03-15  Richard Guenther  <rguenther@suse.de>
17738
17739         PR middle-end/48031
17740         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17741         or variable-indexed array accesses when in gimple form.
17742
17743 2011-03-15  Richard Guenther  <rguenther@suse.de>
17744
17745         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
17746
17747 2011-03-15  Alan Modra  <amodra@gmail.com>
17748
17749         PR target/48032
17750         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17751         presume symbol_refs without a symbol_ref_decl are suitably
17752         aligned, nor other trees we may see here.  Handle anchor symbols.
17753         (legitimate_constant_pool_address_p): Comment.  Add mode param.
17754         Check cmodel=medium addresses.  Adjust all calls.
17755         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17756         creating cmodel=medium optimized access to locals.
17757         * config/rs6000/constraints.md (R): Pass QImode to
17758         legitimate_constant_pool_address_p.
17759         * config/rs6000/predicates.md (input_operand): Pass mode to
17760         legitimate_constant_pool_address_p.
17761         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17762         Update prototype.
17763
17764 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17765
17766         PR target/48053
17767         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17768         64-bit constants being loaded into registers other than GPRs such
17769         as loading 0 into a VSX register.
17770
17771 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17772
17773         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
17774
17775 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
17776
17777         PR middle-end/47917
17778         * builtins.c (fold_builtin_snprintf): New function.
17779         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17780         (fold_builtin_4): Likewise.
17781
17782         PR middle-end/38878
17783         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17784         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
17785         and C - X == X also strip nops from +/-/p+ operand.
17786         When optimizing -X == C, fold C to arg0's type.
17787
17788         PR debug/47946
17789         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17790         emit it as add_AT_int instead of add_AT_unsigned.
17791
17792 2011-03-14  Tom Tromey  <tromey@redhat.com>
17793
17794         * unwind-dw2.c: Include sys/sdt.h if it exists.
17795         (_Unwind_DebugHook): Use STAP_PROBE2.
17796         * config.in, configure: Rebuild.
17797         * configure.ac: Check for sys/sdt.h.
17798
17799 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
17800
17801         * config/i386/i386.md (ROUND_FLOOR): New constant.
17802         (ROUND_CEIL): Ditto.
17803         (ROUND_TRUNC): Ditto.
17804         (ROUND_MXCSR): Ditto.
17805         (ROUND_NO_EXC): Ditto.
17806         (rint<mode>2): Use new defines instead of numerical constants.
17807         (floor<mode>2): Ditto.
17808         (ceil<mode>2): Ditto.
17809         (btrunc<mode>2): Ditto.
17810         * config/i386/i386-builtin-types.def: Define ROUND function type
17811         aliases.
17812         * config/i386/i386.c (enum ix86_builtins): Add
17813         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17814         (struct builtin_description): Add
17815         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17816         (ix86_expand_sse_round): New static function.
17817         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17818         function types.
17819         (ix86_builtin_vectorized_function): Handle
17820         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17821
17822 2011-03-14  Tom Tromey  <tromey@redhat.com>
17823
17824         * c-parser.c (c_parser_asm_string_literal): Clear
17825         warn_overlength_strings.
17826
17827 2011-03-14  Tom Tromey  <tromey@redhat.com>
17828
17829         * c-parser.c (disable_extension_diagnostics): Save
17830         warn_overlength_strings.
17831         (restore_extension_diagnostics): Restore warn_overlength_strings.
17832
17833 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
17834
17835         * BASE-VER: Change to 4.7.0.
17836
17837 2011-03-14  Richard Guenther  <rguenther@suse.de>
17838
17839         PR middle-end/48098
17840         * tree.c (build_vector_from_val): Adjust assert to requirements
17841         and reality.
17842
17843 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
17844
17845         PR bootstrap/48102
17846         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
17847
17848 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
17849
17850         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
17851         terms of target_flags_explicit. Adjust copyright year.
17852
17853         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17854         * config/rs6000/t-freebsd: New file. Add override for
17855         LIB2FUNCS_EXTRA.
17856
17857 2011-03-13  Chris Demetriou  <cgd@google.com>
17858
17859         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17860         (-fno-diagnostics-show-option): this, to reflect current default.
17861         (-Werror=): Update text about -fno-diagnostics-show-option.
17862
17863 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
17864
17865         PR target/48053
17866         * config/rs6000/predicates.md (easy_vector_constant_add_self,
17867         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17868         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17869         mode is not V2DImode or V2DFmode.
17870         (vspltis_constant): Do not handle V2DImode and V2DFmode.
17871         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
17872         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17873         registers to 0.
17874         (movdi_internal64): Likewise.
17875
17876 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
17877
17878         PR tree-optimization/47127
17879         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
17880         parameter.
17881         (set_cloog_options): Same.
17882         (scop_to_clast): Same.
17883         (print_clast_stmt): Do not call cloog_state_malloc and
17884         cloog_state_free.
17885         (print_generated_program): Same.
17886         (gloog): Same.
17887         * graphite-clast-to-gimple.h (cloog_state): Declared.
17888         (scop_to_clast): Adjust declaration.
17889         * graphite.c (cloog_state): Defined here.
17890         (graphite_initialize): Call cloog_state_malloc.
17891         (graphite_finalize): Call cloog_state_free.
17892
17893 2011-03-11  Jason Merrill  <jason@redhat.com>
17894
17895         * attribs.c (lookup_attribute_spec): Take const_tree.
17896         * tree.h: Adjust.
17897
17898 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
17899
17900         * config/sparc/sparc.c (sparc_option_override): Use
17901         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
17902
17903 2011-03-11  Richard Guenther  <rguenther@suse.de>
17904
17905         PR tree-optimization/48067
17906         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
17907         multiplication result will be only used once on the target
17908         stmt.
17909
17910 2011-03-11  Richard Guenther  <rguenther@suse.de>
17911
17912         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
17913
17914 2011-03-11  Richard Guenther  <rguenther@suse.de>
17915
17916         PR lto/48073
17917         * tree.c (find_decls_types_r): Do not walk types only reachable
17918         from IDENTIFIER_NODEs.
17919
17920 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
17921
17922         PR middle-end/48044
17923         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
17924         all vnode->force_output nodes as needed.
17925
17926 2011-03-11  Jason Merrill  <jason@redhat.com>
17927
17928         PR c++/48069
17929         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
17930         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
17931
17932 2011-03-11  Martin Jambor  <mjambor@suse.cz>
17933
17934         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
17935         cgraph_node.
17936
17937 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
17938
17939         PR tree-optimization/48063
17940         * ipa-inline.c (cgraph_decide_inlining): Don't try to
17941         inline functions called once if !tree_can_inline_p (node->callers).
17942
17943 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
17944
17945         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
17946         extra_objs.
17947         * config/score/score3.c: Delete.
17948         * config/score/score3.h: Delete.
17949         * config/score/mul-div.S: Delete.
17950         * config/score/sfp-machine.h: Add new file.
17951         * config/score/constraints.md: Add new file.
17952         * config/score/t-score-softfp: Add new file.
17953         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
17954         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
17955         (score7_extra_constraint): Delete.
17956         (score7_option_override): Remove unused code.
17957         * config/score/score.c: Remove score3 and score5 define and code.
17958         * config/score/score.h: Remove score3 and score5 define and code.
17959         * config/score/score.md: Remove score3 template and unusual insn.
17960         * config/score/score.opt: Remove score3 and score5 options.
17961
17962 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17963
17964         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
17965         when _HPUX_SOURCE is defined.
17966         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
17967
17968 2011-03-10  Jason Merrill  <jason@redhat.com>
17969
17970         PR c++/48029
17971         * stor-layout.c (layout_type): Don't set structural equality
17972         on arrays of incomplete type.
17973         * tree.c (type_hash_eq): Handle comparing them properly.
17974
17975 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17976
17977         PR debug/48043
17978         * config/s390/s390.c (s390_delegitimize_address): Make sure the
17979         result mode matches original rtl mode.
17980
17981 2011-03-10  Nick Clifton  <nickc@redhat.com>
17982
17983         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
17984         (andsi3, andsi3_flags): Fix timings for three operand alternative.
17985
17986 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
17987
17988         PR rtl-optimization/47866
17989         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
17990         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
17991         if target wasn't scalar.
17992         * function.c (assign_stack_temp_for_type): Assert that neither
17993         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
17994         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
17995         macro.
17996         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
17997
17998 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17999
18000         * config/s390/s390-protos.h (s390_label_align): New prototype.
18001         * config/s390/s390.c (s390_label_align): New function.
18002         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18003
18004 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
18005
18006         PR target/47755
18007         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18008         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
18009         (output_vec_const_move): Ditto.
18010
18011 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
18012
18013         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18014         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18015         * config/mips/mips.c (mips_preferred_reload_class): Make static.
18016         Change 'rclass' argument and result type to reg_class_t.
18017         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18018
18019 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
18020
18021         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18022         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18023         (TARGET_MEMORY_MOVE_COST): Define.
18024         (avr_register_move_cost, avr_memory_move_cost): New Functions.
18025
18026 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
18027
18028         PR debug/47881
18029         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18030         removed anything.
18031
18032         PR tree-optimization/48022
18033         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18034         for EQ/NE_EXPR.
18035
18036 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
18037
18038         PR debug/47991
18039         * var-tracking.c (find_use_val): Return NULL for
18040         cui->sets && cui->store_p BLKmode MEMs.
18041
18042 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
18043
18044         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18045         Remove.
18046         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18047         xstormy16_print_operand_address): Remove.
18048         * config/stormy16/stormy16.c (xstormy16_print_operand,
18049         xstormy16_print_operand_address): Make static.
18050         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18051
18052 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
18053
18054         PR target/47862
18055         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18056         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18057         before definition.
18058
18059 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
18060
18061         PR bootstrap/48000
18062         * cfgloopmanip.c (fix_bb_placements): Return immediately
18063         if FROM is BASE_LOOP's header.
18064
18065 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
18066
18067         * gimplify.c (gimplify_function_tree): Fix building calls
18068         to __builtin_return_address.
18069
18070 2011-03-07  Alan Modra  <amodra@gmail.com>
18071
18072         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18073         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18074         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18075         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18076         return_mode args.
18077         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18078         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18079         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18080         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18081         * config/rs6000/rs6000.c
18082         (rs6000_elf_end_indicate_exec_stack): Rename to..
18083         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
18084         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
18085         (rs6000_file_start): ..here.
18086         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18087         file scope variables.
18088         (call_ABI_of_interest): New function.
18089         (init_cumulative_args): Set above vars when function return value
18090         is a float, vector, or small struct.
18091         (rs6000_function_arg_advance_1): Likewise for function args.
18092         (rs6000_va_start): Set rs6000_passes_float if variable arg function
18093         references float args.
18094
18095 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
18096
18097         * doc/cfg.texi: Remove "See" before @ref.
18098         * doc/invoke.texi: Likewise.
18099
18100 2011-03-05  Jason Merrill  <jason@redhat.com>
18101
18102         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18103
18104 2011-03-05  Anthony Green  <green@moxielogic.com>
18105
18106         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18107
18108 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
18109
18110         PR rtl-optimization/47899
18111         * cfgloopmanip.c (fix_bb_placements): Fix first argument
18112         to flow_loop_nested_p when moving the loop upward.
18113
18114 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
18115
18116         PR target/47719
18117         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
18118
18119 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
18120
18121         PR tree-optimization/47967
18122         * ipa-cp.c (build_const_val): Return NULL instead of creating
18123         VIEW_CONVERT_EXPR for mismatching sizes.
18124         (ipcp_create_replace_map): Return NULL if build_const_val failed.
18125         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18126         give up on versioning.
18127
18128 2011-03-05  Alan Modra  <amodra@gmail.com>
18129
18130         PR target/47986
18131         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18132         full cmodel medium/large lo_sum + high addresses.
18133
18134 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18135
18136         * config/s390/s390.c (s390_decompose_address): Reject non-literal
18137         pool references in UNSPEC_LTREL_OFFSET.
18138
18139 2011-03-04  Jan Hubicka  <jh@suse.cz>
18140
18141         PR lto/47497
18142         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18143         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18144         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18145         Add node pointers.
18146         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18147         cgraph_add_thunk): Add node pointers.
18148         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18149         associated to right node.
18150         (input_node): Update use of cgraph_same_body_alias
18151         and cgraph_add_thunk.
18152
18153 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18154
18155         * config/i386/i386.opt (mprefer-avx128): New flag.
18156         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18157         modes when the flag -mprefer-avx128 is on.
18158
18159 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
18160
18161         * dwarf2out.c (compare_loc_operands): Fix address handling.
18162
18163 2011-03-04  Alan Modra  <amodra@gmail.com>
18164
18165         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18166
18167 2011-03-04  Richard Guenther  <rguenther@suse.de>
18168
18169         PR middle-end/47968
18170         * expmed.c (extract_bit_field_1): Prefer vector modes that
18171         vec_extract patterns can handle.
18172
18173 2011-03-04  Richard Guenther  <rguenther@suse.de>
18174
18175         PR middle-end/47975
18176         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18177
18178 2011-03-04  Richard Henderson  <rth@redhat.com>
18179
18180         * explow.c (emit_stack_save): Remove 'after' parameter.
18181         (emit_stack_restore): Likewise.
18182         * expr.h: Update to match.
18183         * builtins.c, calls.c, stmt.c: Likewise.
18184         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18185         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18186         * function.c (expand_function_end): Insert the emit_stack_save
18187         sequence before parm_birth_insn instead of after.
18188
18189 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
18190
18191         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18192         (ssse3_pmaddubsw128): Ditto.
18193         (ssse3_pmaddubsw): Ditto.
18194
18195 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
18196
18197         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18198
18199 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
18200
18201         PR c/47963
18202         * gimplify.c (omp_add_variable): Only call omp_notice_variable
18203         on TYPE_SIZE_UNIT if it is a DECL.
18204
18205         PR debug/47283
18206         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18207         first operand is not is_gimple_mem_ref_addr, try to fold it.
18208         If the operand still isn't is_gimple_mem_ref_addr, clear
18209         MEM_EXPR on op0.
18210
18211 2011-03-03  Richard Guenther  <rguenther@suse.de>
18212
18213         PR middle-end/47283
18214         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18215         match comment.
18216         (refs_may_alias_p_1): For release branches return true if
18217         we are confused by our input.
18218
18219 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18220
18221         * config/s390/s390.c (s390_function_value): Rename to ...
18222         (s390_function_and_libcall_value): ... this.
18223         (s390_function_value): New function.
18224         (s390_libcall_value): New function.
18225         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18226         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18227         target macro definitions.
18228         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18229
18230 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
18231
18232         * config/i386/freebsd64.h (CC1_SPEC): Define.
18233         * config/i386/linux64.h (CC1_SPEC): Define.
18234         * config/i386/x86-64.h (CC1_SPEC): Don't define.
18235
18236 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
18237
18238         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18239         Remove.
18240         * config/stormy16/stormy16.c: Include reload.h.
18241         (xstormy16_memory_move_cost): New function.
18242         (TARGET_MEMORY_MOVE_COST): Define.
18243
18244 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
18245
18246         PR rtl-optimization/47925
18247         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18248         with side effects.  Remove the more-specific check for volatile asms.
18249
18250 2011-03-02  Alan Modra  <amodra@gmail.com>
18251
18252         PR target/47935
18253         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18254         toc relative addresses for valid offsets.
18255
18256 2011-03-01  Richard Guenther  <rguenther@suse.de>
18257
18258         PR tree-optimization/47890
18259         * tree-vect-loop.c (get_initial_def_for_induction): Set
18260         related stmt properly.
18261
18262 2011-03-01  Richard Guenther  <rguenther@suse.de>
18263
18264         PR lto/47924
18265         * lto-streamer.c (lto_record_common_node): Also register
18266         the canonical type.
18267
18268 2011-03-01  Richard Guenther  <rguenther@suse.de>
18269
18270         PR lto/46911
18271         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18272         Do not stream DECL_ABSTRACT_ORIGIN.
18273         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18274         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18275         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18276         Do not stream DECL_ABSTRACT_ORIGIN.
18277         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18278         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18279
18280 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
18281
18282         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18283         FUNCTION_VALUE_REGNO_P): Remove.
18284         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18285         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18286         Add 'outgoing' argument.
18287         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18288         function.
18289         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18290         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18291
18292 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
18293
18294         PR debug/28047
18295         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18296         (lookup_filename): Likewise.
18297         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18298
18299 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
18300             Jakub Jelinek  <jakub@redhat.com>
18301
18302         PR middle-end/47893
18303         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18304         (assign_stack_local_1): Change last argument type to int.
18305         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18306         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
18307         don't record padding space into frame_space_list nor use those areas.
18308         (assign_stack_local): Adjust caller.
18309         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18310         of assign_stack_local, pass 0 as last argument.
18311         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18312         callers.
18313
18314 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
18315
18316         PR debug/47283
18317         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18318         Use target address_mode and pointer_mode hooks instead of hardcoded
18319         Pmode and ptr_mode.  Handle some simple cases of extending if
18320         POINTERS_EXTEND_UNSIGNED < 0.
18321         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18322         Call convert_debug_memory_address.
18323         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18324         convert_debug_memory_address.
18325
18326         PR middle-end/46790
18327         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18328         * configure: Regenerated.
18329         * config.in: Regenerated.
18330         * varasm.c (default_function_section): Return NULL
18331         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18332
18333 2011-02-28  Martin Jambor  <mjambor@suse.cz>
18334
18335         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18336         the description to match the printed values.
18337
18338 2011-02-28  Richard Guenther  <rguenther@suse.de>
18339
18340         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18341         of the copied scope tree.
18342
18343 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18344
18345         * doc/extend.texi (Function Attributes): Avoid deeply (and
18346         wrongly) nested tables.
18347
18348 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18349
18350         PR middle-end/47903
18351         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18352         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18353         r isn't op0 nor op1.
18354
18355 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18356
18357         * config/avr/avr.md: Remove magic comment for emacs.
18358
18359 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18360
18361         PR target/45261
18362         * config/avr/avr.c (avr_option_override): Use error on bad options.
18363         (avr_help): New function.
18364         (TARGET_HELP): Define.
18365
18366 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
18367
18368         PR target/42240
18369         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18370         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18371
18372 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
18373
18374         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18375         (ARM Options): Ditto.
18376         (i386 and x86-64 Options): Ditto.
18377         (RX Options): Ditto.
18378         (SPARC Options): Ditto.
18379
18380 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
18381
18382         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18383         FreeBSD 6 and later.  Generally use cpu generic.
18384
18385 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
18386
18387         * doc/cpp.texi: Update copyright years.
18388
18389 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
18390
18391         PR target/46898
18392         * config/lm32/lm32.md (ashrsi3): Added needed variable.
18393
18394 2011-02-25  Jon Beniston  <jon@beniston.com>
18395
18396         PR target/46898
18397         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18398         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18399         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18400         (lm32_block_move_inline): Add type cast to remove warning.
18401         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18402         (gen_int_relational): Move declarations to start of function.
18403
18404 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
18405
18406         PR tree-optimization/45470
18407         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18408         can throw internally only.
18409         * tree-vect-stmts.c (vectorizable_call): Likewise.
18410
18411 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
18412
18413         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18414         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18415         * config/stormy16/stormy16-protos.h
18416         (xstormy16_preferred_reload_class): Remove.
18417         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18418         static. Change 'rclass' argument and return type to reg_class_t.
18419         (TARGET_PREFERRED_RELOAD_CLASS,
18420         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18421
18422 2011-02-24  Richard Guenther  <rguenther@suse.de>
18423
18424         * lto-streamer-in.c (input_bb): Do not find referenced vars
18425         in debug statements.
18426
18427 2011-02-23  Jason Merrill  <jason@redhat.com>
18428
18429         * common.opt (fabi-version): Document v5 and v6.
18430
18431 2011-02-23  Richard Guenther  <rguenther@suse.de>
18432
18433         PR tree-optimization/47849
18434         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18435
18436 2011-02-23  Jie Zhang  <jie@codesourcery.com>
18437
18438         * opts-common.c (decode_cmdline_option): Print empty string
18439         argument as "" in decoded->orig_option_with_args_text.
18440         * gcc.c (execute): Print empty string argument as ""
18441         in the verbose output.
18442         (do_spec_1): Keep empty string argument.
18443
18444 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
18445
18446         * config.gcc: Declare score-* and crx-* obsolete.
18447
18448 2011-02-23  Jie Zhang  <jie@codesourcery.com>
18449
18450         PR rtl-optimization/47763
18451         * web.c (web_main): Ignore naked clobber when replacing register.
18452
18453 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
18454
18455         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18456         Remove.
18457
18458 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18459
18460         PR doc/47848
18461         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18462
18463 2011-02-22  Mike Stump  <mikestump@comcast.net>
18464
18465         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18466         assembler.
18467         * configure: Regenerate.
18468
18469 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
18470
18471         PR rtl-optimization/46002
18472         * ira-color.c (update_copy_costs): Change class intersection
18473         test to reg_class_contents[] test of 'hard_regno'.
18474
18475 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
18476
18477         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18478         than Driver option.
18479         * config/hpux11.opt (mt): Likewise.
18480         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18481         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18482         * config/vax/elf.opt (mno-asm-pic): Likewise.
18483         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18484
18485 2011-02-21  Mike Stump  <mikestump@comcast.net>
18486
18487         PR target/47822
18488         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18489         tree so we can get save the type.
18490         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18491         for CFString instead of trying to use past the end of the builtins.
18492         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18493         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18494         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18495         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18496         Rename to darwin_builtin_cfstring.
18497         (darwin_init_cfstring_builtins): Return the built type.
18498
18499 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
18500
18501         PR target/47840
18502         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18503         (_mm256_insert_epi64): Use _mm_insert_epi64.
18504
18505 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
18506
18507         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18508         * config/stormy16/stormy16-protos.h
18509         (xstormy16_mode_dependent_address_p): Remove.
18510         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18511         Make static. Change return type to bool. Change argument type to
18512         const_rtx. Remove dead code.
18513         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18514
18515 2011-02-21  Richard Guenther  <rguenther@suse.de>
18516
18517         PR lto/47820
18518         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18519         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18520         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18521         TUs context.
18522         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18523         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18524
18525 2011-02-20  Richard Guenther  <rguenther@suse.de>
18526
18527         PR lto/47822
18528         * tree.c (free_lang_data_in_decl): Clean builtins from
18529         the TU decl BLOCK_VARS.
18530
18531 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
18532
18533         PR debug/47620
18534         PR debug/47630
18535         * haifa-sched.c (fix_tick_ready): Skip tick computation
18536         for debug insns.
18537
18538 2011-02-19  Richard Guenther  <rguenther@suse.de>
18539
18540         PR lto/47647
18541         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18542         Remove lazy BLOCK_VARS streaming.
18543         (lto_input_ts_block_tree_pointers): Likewise.
18544         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18545
18546 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
18547
18548         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18549
18550 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
18551
18552         * config/i386/biarch32.h, config/i386/mach.h,
18553         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18554
18555 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
18556
18557         PR target/47800
18558         * config/i386/i386.md (peephole2 for shift and plus): Use
18559         operands[1] original mode in the first insn.
18560
18561 2011-02-18  Mike Stump  <mikestump@comcast.net>
18562
18563         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18564
18565 2011-02-18  Jan Hubicka  <jh@suse.cz>
18566
18567         PR middle-end/47788
18568         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18569         to zero when the function is not inlinable at all.
18570
18571 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18572
18573         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18574         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18575         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18576         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18577         * config/pa/t-pa64: Likewise.
18578         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18579
18580 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18581
18582         PR driver/47787
18583         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18584
18585 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18586
18587         PR target/47792
18588         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18589
18590 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
18591
18592         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18593         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18594         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18595         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18596         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18597         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18598         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18599         m32r_load_postinc_p, m32r_store_preinc_predec_p,
18600         m32r_legitimate_address_p): New functions.
18601         * config/m32r/constraints.md (constraint "S"): Don't use
18602         STORE_PREINC_PREDEC_P.
18603         (constraint "U"): Don't use LOAD_POSTINC_P.
18604
18605 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
18606
18607         PR rtl-optimization/46178
18608         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18609         compute ira_hard_regno_cover_class[].
18610
18611 2011-02-18  Richard Guenther  <rguenther@suse.de>
18612
18613         PR lto/47798
18614         * lto-streamer.h (lto_global_var_decls): Declare.
18615         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18616         statics for global var processing.
18617
18618 2011-02-18  Richard Guenther  <rguenther@suse.de>
18619
18620         PR tree-optimization/47737
18621         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18622         edge dominance check.
18623
18624 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18625
18626         PR debug/47780
18627         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18628         avoid invalid rtx sharing.
18629
18630 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
18631
18632         * doc/cpp.texi (Obsolete Features): Add background on the
18633         origin of assertions.
18634
18635 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
18636
18637         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
18638         objc_abi == 2.
18639         * config/darwin.c (output_objc_section_asm_op): Added support for
18640         ABI v1 and v2.
18641         (is_objc_metadata): New.
18642         (darwin_objc2_section): New.
18643         (darwin_objc1_section): New.
18644         (machopic_select_section): Added support for ABI v1 and v2.
18645         (darwin_emit_objc_zeroed): New.
18646         (darwin_output_aligned_bss): Detect objc metadata and treat it
18647         appropriately.
18648         (darwin_asm_output_aligned_decl_common): Same.
18649         (darwin_asm_output_aligned_decl_local): Same.
18650         * config/darwin-sections.def: Updated for ABI v1 and v2.
18651         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18652         compiling Objective-C code for the NeXT runtime, default to using
18653         ABI version 0 for 32-bit, and version 2 for 64-bit.
18654
18655 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18656
18657         * common.opt (optimize_fast): New Variable.
18658         * opts.c (default_options_optimization): Use opts->x_optimize_fast
18659         instead of local variable ofast.
18660
18661 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
18662
18663         * doc/invoke.texi (fobjc-abi-version): Documented.
18664         (fobjc-nilcheck): Documented.
18665         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18666         version.
18667
18668 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18669
18670         PR driver/47390
18671         * common.opt (export-dynamic): New Driver option.
18672         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18673
18674 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18675
18676         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18677
18678 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
18679             Jan Hubicka  <jh@suse.cz>
18680
18681         PR debug/47106
18682         PR debug/47402
18683         * cfgexpand.c (account_used_vars_for_block): Remove.
18684         (estimated_stack_frame_size): Use referenced vars.
18685         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18686         that were referenced in the original function.  Test src_fn
18687         rather than cfun.  Drop redundant get_var_ann.
18688         (setup_one_parameter): Drop redundant get_var_ann.
18689         (declare_return_variable): Likewise.
18690         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18691         (copy_arguments_for_versioning): Drop redundant get_var_ann.
18692         * ipa-inline.c (compute_inline_parameters): Do not compute
18693         disregard_inline_limits here.
18694         (compute_inlinable_for_current, pass_inlinable): New.
18695         (pass_inline_parameters): Require PROP_referenced_vars.
18696         * cgraphunit.c (cgraph_process_new_functions): Don't run
18697         compute_inline_parameters explicitly unless function is in SSA form.
18698         (cgraph_analyze_function): Set .disregard_inline_limits.
18699         * tree-sra.c (convert_callers): Compute inliner parameters
18700         only for functions already in SSA form.
18701
18702 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18703
18704         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18705         -mlittle-endian-data.
18706
18707 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
18708
18709         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18710         -mno-fpu, not -fpu and -no-fpu.
18711         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18712         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18713
18714 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
18715
18716         PR target/43653
18717         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18718         input reload with PLUS RTX.
18719
18720 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18721
18722         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18723         of InverseVar(MDMX).
18724
18725 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18726
18727         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18728         --m4-340.
18729
18730 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18731
18732         * config/mn10300/mn10300.opt (mno-crt0): New.
18733
18734 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18735
18736         * config/m68k/uclinux.opt (static-libc): New Driver option.
18737
18738 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18739
18740         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18741
18742 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
18743
18744         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18745         %{muser-extend-enabled}.
18746
18747 2011-02-16  Richard Guenther  <rguenther@suse.de>
18748
18749         PR tree-optimization/47738
18750         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18751         the TODO from tree_predictive_commoning.
18752
18753 2011-02-15  Jeff Law  <law@redhat.com>
18754
18755         Revert
18756         2011-01-25  Jeff Law  <law@redhat.com>
18757
18758         PR rtl-optimization/37273
18759         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18760         handle them like argument loads from stack slots.  Do not double
18761         count memory for memory constants and argument loads from stack slots.
18762
18763 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18764
18765         PR middle-end/47725
18766         * combine.c (cant_combine_insn_p): Revert the last change.
18767
18768 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
18769
18770         PR target/47755
18771         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18772         mode for vector constants.  Remove code that checks for TImode.
18773
18774 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18775
18776         PR debug/47106
18777         PR debug/47402
18778         * cgraph.h (compute_inline_parameters): Return void.
18779         * ipa-inline.c (compute_inline_parameters): Adjust.
18780
18781 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18782
18783         PR debug/47106
18784         PR debug/47402
18785         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18786         rather than decl.
18787         * cfgexpand.c (estimated_stack_frame_size): Likewise.
18788         * ipa-inline.c (compute_inline_parameters): Adjust.
18789
18790 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18791
18792         PR debug/47106
18793         PR debug/47402
18794         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18795         Adjust all users.  Pass FN to...
18796         * tree-flow-inline.h (first_referenced_var): ... this.  Add
18797         fn argument.
18798         * ipa-struct-reorg.c: Adjust.
18799         * tree-dfa.c: Adjust.
18800         * tree-into-ssa.c: Adjust.
18801         * tree-sra.c: Adjust.
18802         * tree-ssa-alias.c: Adjust.
18803         * tree-ssa-live.c: Adjust.
18804         * tree-ssa.c: Adjust.
18805         * tree-ssanames.c: Adjust.
18806         * tree-tailcall.c: Adjust.
18807
18808 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
18809
18810         PR debug/47106
18811         PR debug/47402
18812         * tree-flow.h (referenced_var_lookup): Add fn parameter.
18813         Adjust all callers.
18814         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18815         * tree-flow-inline.h: Adjust.
18816         * gimple-pretty-print.c: Adjust.
18817         * tree-into-ssa.c: Adjust.
18818         * tree-ssa.c: Adjust.
18819         * cfgexpand.c: Adjust.
18820
18821 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
18822
18823         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18824         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18825         (EXTRA_CONSTRAINT): Delete.
18826         * config/iq2000/constraints.md: New file.
18827         * config/iq2000/iq2000.md: Include it.
18828         (define_insn ""): Delete.
18829         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18830         unsupported constraint letters from patterns.
18831         (call_value, call_value_internal1): Likewise.
18832         (call_value_multiple_internal1): Likewise.
18833
18834 2011-02-15  Nick Clifton  <nickc@redhat.com>
18835
18836         * config/mn10300/mn10300.c: Include tm-constrs.h.
18837         (struct liw_data): New data structure describing an LIW candidate
18838         instruction.
18839         (extract_bundle): Use struct liw_data.  Allow small integer
18840         operands for some instructions.
18841         (check_liw_constraints): Use struct liw_data.  Remove swapped
18842         parameter.  Add comments describing the checks.  Fix bug when
18843         assigning the source of liw1 to the source of liw2.
18844         (liw_candidate): Delete.  Code moved into extract_bundle.
18845         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
18846         before swapping.
18847         * config/mn10300/predicates.md (liw_operand): New predicate.
18848         Allows registers and small integer constants.
18849         * config/mn10300/constraints.md (O): New constraint.  Accetps
18850         integers in the range -8 to +7 inclusive.
18851         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18852         for moving a small integer into a register.  Give this alternative
18853         LIW attributes.
18854         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18855         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18856         using the J,K,L and M constraints,
18857         (liw): Remove SI mode on second operands to allow for HI and QI
18858         mode values.
18859         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
18860         instruction.
18861
18862 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18863
18864         PR middle-end/47725
18865         * combine.c (cant_combine_insn_p): Check zero/sign extended
18866         hard registers.
18867
18868 2011-02-15  Richard Guenther  <rguenther@suse.de>
18869
18870         PR tree-optimization/47743
18871         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
18872         for a non-type-compatible VN lookup bail out.
18873
18874 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
18875
18876         * config/fr30/constraints.md: New file.
18877         * config/fr30/fr30.md: Include it.
18878         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
18879         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18880         (EXTRA_CONSTRAINT): Delete.
18881
18882 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
18883
18884         * config/frv/constraints.md: New file.
18885         * config/frv/predicates.md: Include it.
18886         * config/frv/frv.c (reg_class_from_letter): Delete.
18887         (frv_option_override): Don't initialize it.
18888         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
18889         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
18890         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
18891         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18892         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
18893         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18894         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
18895         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
18896         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
18897         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
18898         (REG_CLASS_FROM_CONSTRAINT): Delete.
18899
18900 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
18901
18902         PR middle-end/47581
18903         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
18904         if frame size is 0 in a leaf function.
18905
18906 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18907
18908         PR pch/14940
18909         * config/alpha/host-osf.c: New file.
18910         * config/alpha/x-osf: New file.
18911         * config.host (alpha*-dec-osf*): Use it.
18912
18913 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
18914
18915         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18916         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
18917         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
18918         (rx_mode_dependent_address_p): ...this. Make static. Change argument
18919         type to const_rtx.
18920         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18921
18922 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
18923
18924         * config/stormy16/constraints.md: New file.
18925         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
18926         Use satisfies_constraint_Q and satisfies_constraint_R.
18927         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
18928         Delete.
18929         (xstormy16_legitiamte_address_p): Declare.
18930         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
18931         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18932         (EXTRA_CONSTRAINT): Delete.
18933         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18934         Un-staticize.
18935         (xstormy16_extra_constraint_p): Delete.
18936
18937 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
18938
18939         PR tree-optimization/46494
18940         * loop-unroll.c (split_edge_and_insert): Adjust comment.
18941         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
18942         (pass_rtl_loop_done): Add TODO_verify_flow.
18943         * fwprop.c (pass_rtl_fwprop): Likewise.
18944         * modulo-sched.c (pass_sms): Likewise.
18945         * tree-ssa-dom.c (pass_dominator): Likewise.
18946         * tree-ssa-loop-ch.c (pass_ch): Likewise.
18947         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
18948         (pass_tree_loop_done): Likewise.
18949         * tree-ssa-pre.c (execute_pre): Likewise.
18950         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18951         * tree-ssa-sink.c (pass_sink_code): Likewise.
18952         * tree-vrp.c (pass_vrp): Likewise.
18953
18954 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
18955
18956         * config/v850/constraints.md: New file.
18957         * config/v850/v850.md: Include it.
18958         * config/v850/predicates.md (reg_or_0_operand): Use
18959         satisfies_constraint_G.
18960         (special_symbolref_operand): Use satisfies_constraint_K.
18961         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
18962         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
18963         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
18964         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18965         (EXTRA_CONSTRAINT): Delete.
18966         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
18967         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
18968         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
18969
18970 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
18971
18972         PR target/47696
18973         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
18974         description.
18975
18976 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
18977
18978         * config/mcore/constraints.md: New file.
18979         * config/mcore/mcore.md: Include it.
18980         * config/mcore/mcore.c (reg_class_from_letter): Delete.
18981         * config/mcore/mcore.h (reg_class_from_letter): Delete.
18982         (REG_CLASS_FROM_LETTER): Delete.
18983         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
18984         insn_const_int_ok_for_constraint.
18985         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
18986         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
18987         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18988         (EXTRA_CONSTRAINT): Delete.
18989
18990 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18991
18992         PR ada/41929
18993         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
18994         (IS_SIGHANDLER): Define.
18995         (sparc64_is_sighandler): New function, split off from
18996         sparc64_fallback_frame_state.
18997         (sparc_is_sighandler): New function, split off from
18998         sparc_fallback_frame_state.
18999         (sparc64_fallback_frame_state): Merge with ...
19000         (sparc_fallback_frame_state): ... this into ...
19001         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
19002         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
19003         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
19004         stack instead of hardcoded offsets.
19005
19006 2011-02-14  Andriy Gapon  <avg@freebsd.org>
19007
19008         PR target/45808
19009         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19010
19011 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19012
19013         * configure: Regenerate.
19014
19015 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
19016
19017         PR driver/45731
19018         * gcc.c (asm_options): Correct spec matching --target-help.
19019
19020 2011-02-12  Martin Jambor  <mjambor@suse.cz>
19021
19022         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19023         to gimple call error.
19024
19025 2011-02-12  Mike Stump  <mikestump@comcast.net>
19026
19027         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19028         comments in backslash regions.
19029
19030 2011-02-12  Mike Stump  <mikestump@comcast.net>
19031             Jakub Jelinek  <jakub@redhat.com>
19032             Iain Sandoe  <iains@gcc.gnu.org>
19033
19034         PR target/47324
19035         * dwarf2out.c (output_cfa_loc): When required, apply the
19036         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19037         (output_loc_sequence): Likewise.
19038         (output_loc_operands_raw): Likewise.
19039         (output_loc_sequence_raw): Likewise.
19040         (output_cfa_loc): Likewise.
19041         (output_loc_list): Suppress register number adjustment when
19042         calling output_loc_sequence()
19043         (output_die): Likewise.
19044
19045 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
19046
19047         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19048         Remove macros.
19049         * config/xtensa/xtensa.c (xtensa_register_move_cost,
19050         xtensa_memory_move_cost): New functions.
19051         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19052
19053 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
19054
19055         PR lto/47225
19056         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19057         in the current directory.
19058         * configure: Rebuilt.
19059
19060 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19061
19062         * config/darwin.c (darwin_override_options): Add a hunk missed
19063         from the commit of r168571.  Trim comment line lengths and
19064         correct indents of the preceding block.
19065
19066 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19067
19068         * gcc.c (driver_handle_option): Concatenate the argument to -F with
19069         the switch.
19070
19071 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19072
19073         * common.opt (nostartfiles): New Driver option.
19074
19075 2011-02-11  Xinliang David Li  <davidxl@google.com>
19076
19077         PR tree-optimization/47707
19078         * tree-chrec.c (convert_affine_scev): Keep type precision.
19079
19080 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
19081
19082         PR tree-optimization/47420
19083         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19084
19085 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
19086
19087         PR rtl-optimization/47614
19088         * rtl.h (check_for_inc_dec): Declare.
19089         * dse.c (check_for_inc_dec): Externalize...
19090         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19091         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19092
19093 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19094
19095         PR driver/47678
19096         * gcc.c (main): Do not compile inputs if there were errors in
19097         option handling.
19098         * opts-common.c (read_cmdline_option): Check for wrong language
19099         after other error checks.
19100
19101 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
19102
19103         * cgraph.c: Fix comment typos.
19104         * cgraph.h: Likewise.
19105         * cgraphunit.c: Likewise.
19106         * ipa-cp.c: Likewise.
19107         * ipa-inline.c: Likewise.
19108         * ipa-prop.c: Likewise.
19109         * ipa-pure-const.c: Likewise.
19110         * ipa-ref.c: Likewise.
19111         * ipa-reference.c: Likewise.
19112
19113 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19114
19115         PR debug/47684
19116         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19117
19118 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19119
19120         PR testsuite/47400
19121         * doc/sourcebuild.texi (Require Support): Document
19122         dg-require-ascii-locale.
19123
19124 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
19125
19126         * doc/lto.texi (Write summary): Fix missing parentheses.
19127
19128 2011-02-10  DJ Delorie  <dj@redhat.com>
19129
19130         * config/m32c/m32c.c (m32c_option_override): Disable
19131         -fcombine-stack-adjustments until flag value tracking and compare
19132         optimization can be rewritten.
19133
19134 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
19135
19136         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19137         PROCESSOR_POWER7.
19138         (PROCESSOR_DEFAULT64): Likewise.
19139
19140 2011-02-10  Richard Henderson  <rth@redhat.com>
19141
19142         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19143         change from 2011-02-03.
19144         * config/rx/rx.c (flags_from_code): Likewise.
19145         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19146         is valid, n/pz otherwise.
19147         (rx_select_cc_mode): Return CCmode if Y is not zero.
19148
19149 2011-02-10  Richard Guenther  <rguenther@suse.de>
19150
19151         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19152
19153 2011-02-10  Richard Guenther  <rguenther@suse.de>
19154
19155         PR tree-optimization/47677
19156         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19157
19158 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
19159
19160         PR target/47665
19161         * combine.c (make_compound_operation): Only change shifts into
19162         multiplication for SCALAR_INT_MODE_P.
19163
19164 2011-02-10  Jie Zhang  <jie@codesourcery.com>
19165
19166         PR testsuite/47622
19167         Revert
19168         2011-02-05  Jie Zhang  <jie@codesourcery.com>
19169         PR debug/42631
19170         * web.c (entry_register): Don't clobber the number of the
19171         first uninitialized reference in used[].
19172
19173 2011-02-09  Richard Guenther  <rguenther@suse.de>
19174
19175         PR tree-optimization/47664
19176         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19177         all edges again.
19178
19179 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
19180
19181         PR target/46481
19182         PR target/47032
19183         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19184         PROCESSOR_POWER7.
19185         (PROCESSOR_DEFAULT64): Same.
19186         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19187
19188 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19189
19190         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19191
19192 2011-02-09  Martin Jambor  <mjambor@suse.cz>
19193
19194         PR middle-end/45505
19195         * tree-sra.c (struct access): New flags grp_scalar_read and
19196         grp_scalar_write.  Changed description of assignment read and write
19197         flags.
19198         (dump_access): Dump new flags, reorder all of them.
19199         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19200         to detect multiple scalar reads.
19201         (analyze_access_subtree): Use the new scalar read write flags instead
19202         of the old flags.  Adjusted comments.
19203
19204 2011-02-08  DJ Delorie  <dj@redhat.com>
19205
19206         PR target/47548
19207         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19208         patterns.
19209
19210 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19211
19212         * config/m68k/uclinux.opt: New.
19213         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19214
19215 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19216
19217         * config/cris/elf.opt (sim): New Driver option.
19218
19219 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19220
19221         * config/xtensa/elf.opt: New.
19222         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19223
19224 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19225
19226         * config/vax/elf.opt: New.
19227         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19228
19229 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19230
19231         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19232
19233 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19234
19235         * config/gnu-user.opt: New.
19236         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19237         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19238         *-*-uclinux*): Use gnu-user.opt.
19239
19240 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
19241
19242         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19243         * config/i386/gnu.h (CPP_SPEC): Likewise.
19244
19245 2011-02-08  Ian Lance Taylor  <iant@google.com>
19246
19247         * common.opt (fcx-limited-range): Add SetByCombined flag.
19248         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19249         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19250         (fassociative-math, freciprocal-math): Likewise.
19251         (funsafe-math-optimizations): Likewise.
19252         * opth-gen.awk: Handle SetByCombined.
19253         * optc-gen.awk: Likewise.
19254         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19255         (set_unsafe_math_optimizations_flags): Likewise.
19256         * doc/options.texi (Option properties): Document SetByCombined.
19257
19258 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19259
19260         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19261         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19262         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19263         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19264         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19265
19266 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
19267
19268         PR tree-optimization/46834
19269         PR tree-optimization/46994
19270         PR tree-optimization/46995
19271         * graphite-sese-to-poly.c (used_outside_reduction): New.
19272         (detect_commutative_reduction): Call used_outside_reduction.
19273         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19274         translate_scalar_reduction_to_array only when at least one
19275         loop-phi/close-phi tuple has been detected.
19276
19277 2011-02-08  Richard Guenther  <rguenther@suse.de>
19278
19279         PR middle-end/47639
19280         * tree-vect-generic.c (expand_vector_operations_1): Update
19281         stmts here ...
19282         (expand_vector_operations): ... not here.  Cleanup EH info
19283         and the CFG if required.
19284
19285 2011-02-08  Richard Guenther  <rguenther@suse.de>
19286
19287         PR tree-optimization/47641
19288         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19289         require type compatibility.
19290
19291 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19292
19293         * gimple-low.c (lower_function_body): Don't remove the location of
19294         the return statement here.
19295         (lower_gimple_return): Do it here instead but only if the return
19296         statement is actually used twice.
19297
19298 2011-02-08  Richard Guenther  <rguenther@suse.de>
19299
19300         PR tree-optimization/47632
19301         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19302         unused up_to_stmt parameter, return whether cfg-cleanup is
19303         necessary, remove EH info properly.
19304         (forward_propagate_into_gimple_cond): Adjust caller.
19305         (forward_propagate_into_cond): Likewise.
19306         (forward_propagate_comparison): Likewise.
19307         (tree_ssa_forward_propagate_single_use_vars): Make
19308         forward_propagate_comparison case similar to the two others.
19309
19310 2011-02-08  Nick Clifton  <nickc@redhat.com>
19311
19312         * config/mn10300/mn10300.opt (mliw): New command line option.
19313         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19314         (liw_bundling): New automaton.
19315         (liw): New attribute.
19316         (liw_op): New attribute.
19317         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19318         (movsi_internal): Add LIW attributes.
19319         (andsi3): Likewise.
19320         (iorsi3): Likewise.
19321         (xorsi3): Likewise.
19322         (addsi3): Separate register and immediate alternatives.
19323         Add LIW attributes.
19324         (subsi3): Likewise.
19325         (cmpsi): Likewise.
19326         (aslsi3): Likewise.
19327         (lshrsi3): Likewise.
19328         (ashrsi3): Likewise.
19329         (liw): New pattern.
19330         * config/mn10300/mn10300.c (liw_op_names): New
19331         (mn10300_print_operand): Handle 'W' operand descriptor.
19332         (extract_bundle): New function.
19333         (check_liw_constraints): New function.
19334         (liw_candidate): New function.
19335         (mn10300_bundle_liw): New function.
19336         (mn10300_reorg): New function.
19337         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19338         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19339         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19340         __LIW__ or __NO_LIW__.
19341         * doc/invoke.texi: Describe the -mliw command line option.
19342
19343 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19344
19345         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19346         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19347         pthread_mutex_unlock): Remove.
19348         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19349         * config/pa/t-pa64: Likewise.
19350         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19351         shared libc if not linking against libpthread.
19352         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19353
19354 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
19355
19356         PR target/47558
19357         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19358         on 10.6 and later to ensure that we always use the unwinder from
19359         the system.  Only add -no_compact_unwind when tarteting darwin
19360         10.6 or later.
19361
19362 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
19363
19364         PR target/46997
19365         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19366         (vec_interleave_lowv2sf): Ditto.
19367         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19368         (vec_extract_oddv2sf): Ditto.
19369
19370 2011-02-07  Mike Stump  <mikestump@comcast.net>
19371
19372         PR target/42333
19373         Add __ieee_divdc3 entry point.
19374         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19375         entry point.
19376         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19377         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19378         * config/darwin.c (darwin_rename_builtins): Add.
19379         * config/darwin-protos.h (darwin_rename_builtins): Add.
19380
19381 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
19382
19383         PR target/47636
19384         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19385         for the condition.
19386
19387 2011-02-07  Mike Stump  <mikestump@comcast.net>
19388
19389         * config/darwin.opt (mmacosx-version-min): Update default OS version.
19390
19391 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
19392
19393         PR target/47534
19394         * config/avr/libgcc.S (exit): Move .endfunc
19395
19396 2011-02-07  Richard Guenther  <rguenther@suse.de>
19397
19398         PR tree-optimization/47615
19399         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19400         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19401         (run_scc_vn): Initialize it.
19402         (visit_reference_op_load): Use it.
19403         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19404
19405 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19406
19407         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19408         DImode trapping arithmetic libfuncs.
19409
19410 2011-02-07  Richard Guenther  <rguenther@suse.de>
19411
19412         PR tree-optimization/47621
19413         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19414         two duplicates ...
19415         (execute_update_addresses_taken): ... here.  Make it more
19416         conservative in what we accept.
19417
19418 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
19419
19420         * config/sparc/freebsd.h (ASM_SPEC): Define.
19421         * config/sparc/vxworks.h (ASM_SPEC): Define.
19422
19423 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
19424
19425         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19426
19427 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
19428
19429         * doc/invoke.texi: Remove reference to compiler internals from
19430         user documentation.
19431
19432         * reg-notes.def: Remove REG_VALUE_PROFILE.
19433         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19434
19435 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
19436
19437         PR middle-end/47610
19438         * varasm.c (default_section_type_flags): If decl is NULL,
19439         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19440
19441 2011-02-05  Jie Zhang  <jie@codesourcery.com>
19442
19443         PR debug/42631
19444         * web.c (entry_register): Don't clobber the number of the
19445         first uninitialized reference in used[].
19446
19447 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
19448
19449         PR tree-optimization/46194
19450         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19451         (build_classic_dist_vector_1): Do not represent classic distance
19452         vectors when the access functions are variating in different loops.
19453
19454 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19455
19456         * config/mips/iris6.opt: New.
19457         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19458
19459 2011-02-04  Richard Henderson  <rth@redhat.com>
19460             Steve Ellcey  <sje@cup.hp.com>
19461
19462         PR target/46997
19463         * config/ia64/predicates.md (mux1_brcst_element): New.
19464         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19465         * config/ia64/ia64.c (ia64_unpack_assemble): New.
19466         (ia64_unpack_sign): New.
19467         (ia64_expand_unpack): Rewrite using new routines.
19468         (ia64_expand_widen_sum): Ditto.
19469         (ia64_expand_dot_prod_v8qi): Ditto.
19470         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19471         routines, add endian check.
19472         (pmpy2_even): Rename from pmpy2_r, add endian check.
19473         (pmpy2_odd): Rename from pmpy2_l, add endian check.
19474         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19475         (vec_widen_smult_hi_v4hi): Ditto.
19476         (vec_widen_umult_lo_v4hi): Ditto.
19477         (vec_widen_umult_hi_v4hi): Ditto.
19478         (mulv2si3): Change endian checks.
19479         (sdot_prodv4hi): Rewrite with new calls.
19480         (udot_prodv4hi): New.
19481         (vec_pack_ssat_v4hi): Add endian check.
19482         (vec_pack_usat_v4hi): Ditto.
19483         (vec_pack_ssat_v2si): Ditto.
19484         (max1_even): Rename from max1_r, add endian check.
19485         (max1_odd): Rename from max1_l, add endian check.
19486         (*mux1_rev): Format change.
19487         (*mux1_mix): Ditto.
19488         (*mux1_shuf): Ditto.
19489         (*mux1_alt): Ditto.
19490         (*mux1_brcst_v8qi): Use new predicate.
19491         (vec_extract_evenv8qi): Remove endian check.
19492         (vec_extract_oddv8qi): Ditto.
19493         (vec_interleave_lowv4hi): Format change.
19494         (vec_interleave_highv4hi): Ditto.
19495         (mix2_even): Rename from mix2_r, add endian check.
19496         (mix2_odd): Rename from mux2_l, add endian check.
19497         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19498         (vec_extract_evenodd_helper): Format change.
19499         (vec_extract_evenv4hi): Remove endian check.
19500         (vec_extract_oddv4hi): Remove endian check.
19501         (vec_interleave_lowv2si): Format change.
19502         (vec_interleave_highv2si): Format change.
19503         (vec_initv2si): Remove endian check.
19504         (vecinit_v2si): Add endian check.
19505         (reduc_splus_v2sf): Add endian check.
19506         (reduc_smax_v2sf): Ditto.
19507         (reduc_smin_v2sf): Ditto.
19508         (vec_initv2sf): Remove endian check.
19509         (fpack): Add endian check.
19510         (fswap): Add endian check.
19511         (vec_interleave_highv2sf): Add endian check.
19512         (vec_interleave_lowv2sf): Add endian check.
19513         (fmix_lr): Add endian check.
19514         (vec_setv2sf): Format change.
19515         (*vec_extractv2sf_0_be): Use shift to extract operand.
19516         (*vec_extractv2sf_1_be): New.
19517         (vec_pack_trunc_v4hi): Add endian check.
19518         (vec_pack_trunc_v2si): Format change.
19519
19520 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
19521
19522         PR inline-asm/23200
19523         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
19524         do bb, locus and block comparison and disallow loads if it is not set.
19525         (stmt_is_replaceable_p): New function.
19526         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19527         callers.
19528         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19529         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19530         SSA_NAME_DEF_STMT.
19531         * tree-flow.h (stmt_is_replaceable_p): New prototype.
19532
19533 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19534
19535         * config/rs6000/xilinx.opt: New.
19536         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19537
19538 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19539
19540         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19541
19542 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
19543
19544         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19545         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19546         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19547         secondary_reload_info, xtensa_secondary_reload): Remove.
19548         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19549         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19550         (xtensa_preferred_reload_class): Make static. Change return and
19551         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19552         Use CONST_DOUBLE_P predicate.
19553         (xtensa_preferred_output_reload_class): New function.
19554         (xtensa_secondary_reload): Make static.
19555
19556 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
19557
19558         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19559         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19560         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19561
19562 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19563
19564         PR middle-end/31490
19565         * output.h (SECTION_RELRO): Define.
19566         (SECTION_MACH_DEP): Adjust.
19567         (get_variable_section): New prototype.
19568         * varpool.c (varpool_finalize_named_section_flags): New function.
19569         (varpool_assemble_pending_decls): Call it.
19570         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19571         * cgraphunit.c (cgraph_output_in_order): Call
19572         varpool_finalize_named_section_flags.
19573         * varasm.c (get_section): Allow section flags conflicts between
19574         relro and read-only sections if the section hasn't been declared yet.
19575         Set SECTION_OVERRIDE after diagnosing section type conflict.
19576         (get_variable_section): No longer static.
19577         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19578         readonly sections that need relocations.
19579         (decl_readonly_section_1): New function.
19580         (decl_readonly_section): Use it.
19581
19582         Revert:
19583         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
19584                     Steve Ellcey  <sje@cup.hp.com>
19585
19586         PR middle-end/31490
19587         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19588         if section attribute used.
19589
19590 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19591
19592         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19593         * config/darwin.c (SECTION_NO_ANCHOR): Define.
19594         (darwin_init_sections): Remove assertion.
19595
19596 2011-02-03  Nick Clifton  <nickc@redhat.com>
19597
19598         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19599         lt and ge.
19600         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19601         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19602         instead of "n" and "pz".
19603         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19604         CC_FLAG_S.
19605
19606 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19607
19608         PR target/47312
19609         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19610         fma, expand FMA_EXPR as fma{,f,l} call.
19611
19612         PR lto/47274
19613         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19614         copy them into a unsigned char variable and pass address of it to
19615         lto_output_data_stream.
19616
19617         PR target/47564
19618         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19619         around backend_init_target and lang_dependent_init_target calls.
19620         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19621         (verify_cgraph_node): Don't call set_cfun here.  Use
19622         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19623         Set error_found for incorrectly represented calls to thunks.
19624
19625 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
19626
19627         PR debug/43092
19628         PR rtl-optimization/43494
19629         * rtl.h (for_each_inc_dec_fn): New type.
19630         (for_each_inc_dec): Declare.
19631         * rtlanal.c (struct for_each_inc_dec_ops): New type.
19632         (for_each_inc_dec_find_inc_dec): New fn.
19633         (for_each_inc_dec_find_mem): New fn.
19634         (for_each_inc_dec): New fn.
19635         * dse.c (struct insn_size): Remove.
19636         (replace_inc_dec, replace_inc_dec_mem): Remove.
19637         (emit_inc_dec_insn_before): New fn.
19638         (check_for_inc_dec): Use it, along with for_each_inc_dec.
19639         (canon_address): Pass mem modes to cselib_lookup.
19640         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
19641         (cselib_lookup_from_insn): Likewise.
19642         (cselib_subst_to_values): Likewise.
19643         * cselib.c (find_slot_memmode): New var.
19644         (cselib_find_slot): New fn.  Use it instead of
19645         htab_find_slot_with_hash everywhere.
19646         (entry_and_rtx_equal_p): Use find_slot_memmode.
19647         (autoinc_split): New fn.
19648         (rtx_equal_for_cselib_p): Rename and implement in terms of...
19649         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
19650         Deal with autoinc.  Special-case recursion into MEMs.
19651         (cselib_hash_rtx): Likewise.
19652         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
19653         address and MEM modes.
19654         (cselib_subst_to_values): Add memmode, pass it on.
19655         Deal with autoinc.
19656         (cselib_lookup): Add memmode argument, pass it on.
19657         (cselib_lookup_from_insn): Add memmode.
19658         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19659         (struct cselib_record_autoinc_data): New.
19660         (cselib_record_autoinc_cb): New fn.
19661         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
19662         mode to cselib_lookup.  Reset autoinced REGs here instead of...
19663         (cselib_process_insn): ... here.
19664         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19665         to cselib_lookup.
19666         (add_uses): Likewise, also to cselib_subst_to_values.
19667         (add_stores): Likewise.
19668         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
19669         cselib_subst_to_values.
19670         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
19671         * gcse.c (do_local_cprop): Adjusted.
19672         * postreload.c (reload_cse_simplify_set): Adjusted.
19673         (reload_cse_simplify_operands): Adjusted.
19674         * sel-sched-dump (debug_mem_addr_value): Pass mode.
19675
19676 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
19677
19678         PR tree-optimization/45122
19679         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19680         unsafe assumptions when there's more than one loop exit.
19681
19682 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19683
19684         PR target/47272
19685         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19686         Document using vector double with the load/store builtins, and
19687         that the load/store builtins always use Altivec instructions.
19688
19689         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19690         to use altivec memory instructions, even on VSX.
19691         (vector_altivec_store_<mode>): Ditto.
19692
19693         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19694         function.
19695
19696         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19697         V2DF, V2DI support to load/store overloaded builtins.
19698
19699         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19700         altivec load/store builtins for V2DF/V2DI types.
19701
19702         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19703         set avoid indexed addresses on power6 if -maltivec.
19704         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19705         vector_altivec_load/vector_altivec_store builtins.
19706         (altivec_expand_st_builtin): Ditto.
19707         (altivec_expand_builtin): Add VSX memory builtins.
19708         (rs6000_init_builtins): Add V2DI types to internal types.
19709         (altivec_init_builtins): Add support for V2DF/V2DI altivec
19710         load/store builtins.
19711         (rs6000_address_for_altivec): Insure memory address is appropriate
19712         for Altivec.
19713
19714         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19715         vec_vsx_ld and vec_vsx_st.
19716         (vsx_store_<mode>): Ditto.
19717
19718         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19719         variables to hold long long types for VSX vector memory builtins.
19720         (RS6000_BTI_unsigned_long_long): Ditto.
19721         (long_long_integer_type_internal_node): Ditti.
19722         (long_long_unsigned_type_internal_node): Ditti.
19723
19724         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19725         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19726         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19727
19728         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19729         short cuts.
19730         (vec_vsx_st): Ditto.
19731
19732 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
19733
19734         * config/pa/pa-hpux10.opt: New.
19735         * config/hpux11.opt (pthread): New Driver option.
19736         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19737         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19738
19739 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
19740
19741         * config/ia64/vms.opt: New.
19742         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19743
19744 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
19745
19746         PR target/47580
19747         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19748         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19749         generator functions.
19750         (vsx_floatuns<VSi><mode>2): Ditto.
19751         (vsx_fix_trunc<mode><VSi>2): Ditto.
19752         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19753
19754 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
19755
19756         * config/i386/djgpp.opt (posix): New Driver option.
19757
19758 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
19759
19760         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19761         Move to the unsupported targets list.
19762
19763 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
19764
19765         PR rtl-optimization/47525
19766         * df-scan.c: Update copyright years.
19767         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19768         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19769
19770 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19771
19772         * config/i386/sysv4.h (TARGET_VERSION): Remove.
19773         (SUBTARGET_RETURN_IN_MEMORY): Remove.
19774         (ASM_OUTPUT_ASCII): Remove.
19775         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19776
19777 2011-02-02  Jeff Law  <law@redhat.com>
19778
19779         PR middle-end/47543
19780         * reload.c (find_reloads_address): Handle reg+d address where both
19781         components are invalid by reloading the entire address.
19782
19783 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
19784             Richard Guenther  <rguenther@suse.de>
19785
19786         PR tree-optimization/40979
19787         PR bootstrap/47044
19788         * passes.c (init_optimization_passes): After LIM call copy_prop
19789         and DCE to clean up.
19790         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19791
19792 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
19793
19794         PR tree-optimization/47576
19795         PR tree-optimization/47555
19796         * doc/invoke.texi (scev-max-expr-complexity): Documented.
19797         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19798         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19799         * tree-scalar-evolution.c (follow_ssa_edge): Use
19800         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19801
19802 2011-02-02  Richard Guenther  <rguenther@suse.de>
19803
19804         PR tree-optimization/47566
19805         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19806
19807 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
19808
19809         PR debug/47106
19810         PR debug/47402
19811         * tree-inline.c (declare_return_variable): Remove unused caller
19812         variable.
19813
19814         PR debug/47106
19815         PR debug/47402
19816         * tree-flow-inline.h (clear_is_used, is_used_p): New.
19817         * cfgexpand.c (account_used_vars_for_block): Use them.
19818         * tree-nrv.c (tree_nrv): Likewise.
19819         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19820         (dump_scope_block): Likewise.
19821         (remove_unused_locals): Likewise.
19822
19823         PR debug/47106
19824         PR debug/47402
19825         * tree-inline.c (declare_return_variable): Add result decl to
19826         local decls only once.
19827         * gimple-low.c (record_vars_into): Mark newly-created variables
19828         as referenced.
19829
19830 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
19831
19832         PR debug/47498
19833         PR debug/47501
19834         PR debug/45136
19835         PR debug/45130
19836         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19837         debug insns.
19838         (no_real_insns_p, schedule_block, set_priorities): Drop special
19839         treatment of boundary debug insns.
19840         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19841         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19842         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19843         (BOUNDARY_DEBUG_INSN_P): Likewise.
19844         (SCHEDULE_DEBUG_INSN_P): Likewise.
19845         * sched-rgn.c (init_ready_list): Drop special treatment of
19846         boundary debug insns.
19847         * final.c (rest_of_clean_state): Clear notes' BB.
19848
19849 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19850
19851         * config/openbsd.opt (assert=): New Driver option.
19852
19853 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19854
19855         * config/i386/nto.opt: New.
19856         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19857
19858 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19859
19860         * config/i386/netware.opt: New.
19861         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19862
19863 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19864
19865         * config/interix.opt (posix): New Driver option.
19866
19867 2011-02-01  DJ Delorie  <dj@redhat.com>
19868
19869         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19870
19871         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
19872         class for A0/A1.
19873
19874 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
19875
19876         PR tree-optimization/47561
19877         * toplev.c (process_options): Print the Graphite flags.  Add
19878         flag_loop_flatten to the list of options requiring Graphite.
19879
19880 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19881
19882         * config/i386/cygming.opt (posix): New Driver option.
19883
19884 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19885
19886         * config/arm/vxworks.opt: New.
19887         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
19888
19889 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
19890
19891         * config/alpha/elf.opt: New.
19892         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
19893         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
19894
19895 2011-02-01  Richard Guenther  <rguenther@suse.de>
19896
19897         PR tree-optimization/47559
19898         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
19899         store-motion on references that can throw.
19900
19901 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
19902
19903         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
19904         * tree-pass.h (TDF_CSELIB): New macro.
19905         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
19906         cselib_lookup): Check for it rather than for TDF_DETAILS.
19907
19908 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
19909
19910         PR driver/47547
19911         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
19912         is HOST_BIT_BUCKET.
19913
19914         * opts.c (finish_options): Don't add x_aux_base_name if it is
19915         HOST_BIT_BUCKET.
19916
19917 2011-02-01  Richard Guenther  <rguenther@suse.de>
19918
19919         PR tree-optimization/47555
19920         Revert
19921         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
19922
19923         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19924
19925 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
19926
19927         PR gcc/46692
19928         * config/lm32/t-lm32: Add multilib for all CPU options.
19929
19930 2011-02-01  Richard Guenther  <rguenther@suse.de>
19931
19932         PR tree-optimization/47541
19933         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19934         sure to have a field at offset zero.
19935
19936 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
19937
19938         * config/arc/arc.opt (EB, EL): New Driver options.
19939
19940 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
19941
19942         * config/alpha/osf5.opt: New.
19943         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
19944
19945 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
19946
19947         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
19948
19949 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
19950
19951         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
19952         -floop-interchange.
19953         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
19954         is an alias of -floop-interchange and that it requires the
19955         Graphite infrastructure.
19956         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
19957         flag_loop_interchange based on the value of flag_tree_loop_linear.
19958
19959 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
19960             Richard Guenther  <rguenther@suse.de>
19961
19962         PR tree-optimization/47538
19963         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
19964         type instead of r1type, except for comparisons.  For right
19965         shifts and comparisons punt if there are mismatches in
19966         sizetype vs. non-sizetype types.
19967
19968 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19969
19970         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19971         avx_runtime.
19972
19973 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19974
19975         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
19976         version number.
19977         * configure: Regenerate.
19978
19979 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19980
19981         * configure.ac (gcc_cv_ld_static_option): Define.
19982         (gcc_cv_ld_dynamic_option): Define.
19983         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
19984         instead.
19985         (HAVE_LD_STATIC_DYNAMIC): Update message.
19986         (LD_STATIC_OPTION): Define.
19987         (LD_DYNAMIC_OPTION): Define.
19988         * configure: Regenerate.
19989         * config.in: Regenerate.
19990         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
19991         HAVE_LD_STATIC_DYNAMIC]: Use them.
19992
19993 2011-01-31  Nick Clifton  <nickc@redhat.com>
19994
19995         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
19996         registers inside interrupt handlers if the handler is not a leaf
19997         function.
19998
19999 2011-01-31  Nick Clifton  <nickc@redhat.com>
20000
20001         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20002         reg_renumber returning an INVALID_REGNUM.
20003
20004 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
20005
20006         PR libgcj/44341
20007         * doc/install.texi: Document host options discarded when cross
20008         configuring target libraries.
20009
20010 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
20011
20012         Reverted:
20013         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20014         PR debug/45136
20015         PR debug/45130
20016         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20017         debug insns.
20018         (no_real_insns_p, schedule_block, set_priorities): Drop special
20019         treatment of boundary debug insns.
20020         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20021         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20022         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20023         (BOUNDARY_DEBUG_INSN_P): Likewise.
20024         (SCHEDULE_DEBUG_INSN_P): Likewise.
20025         * sched-rgn.c (init_ready_list): Drop special treatment of
20026         boundary debug insns.
20027         * final.c (rest_of_clean-state): Clear notes' BB.
20028
20029 2011-01-31  Alan Modra  <amodra@gmail.com>
20030
20031         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20032         toc relative expressions as we do in print_operand_address.
20033
20034 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
20035
20036         * doc/extend.texi: Follow spelling conventions.
20037         * doc/invoke.texi: Fix a typo.
20038
20039 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
20040
20041         * config/hpux11.opt: New.
20042         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20043         ia64*-*-hpux*): Use hpux11.opt.
20044
20045 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
20046
20047         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20048         to tmake_file.
20049
20050 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20051
20052         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20053         support sites.
20054
20055 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20056
20057         * doc/install.texi (Binaries): Remove outdated reference for
20058         Motorola 68HC11/68HC12 downloads.
20059
20060 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20061
20062         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20063         Drepper's paper.
20064
20065 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
20066
20067         PR bootstrap/47147
20068         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20069         used by NetBSD.
20070
20071 2011-01-28  Ahmad Sharif  <asharif@google.com>
20072
20073         * value-prof.c (check_counter): Corrected error message.
20074
20075 2011-01-29  Jie Zhang  <jie@codesourcery.com>
20076
20077         * config/arm/arm.c (arm_legitimize_reload_address): New.
20078         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20079         arm_legitimize_reload_address.
20080         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20081
20082 2011-01-28  Ian Lance Taylor  <iant@google.com>
20083
20084         * godump.c (go_define): Ignore macros whose definitions include
20085         two adjacent operands.
20086
20087 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
20088
20089         PR target/42894
20090         * varasm.c (force_const_mem): Store copy of x in desc->constant
20091         instead of x itself.
20092         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20093         itself into REG_EQUAL note.
20094
20095 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
20096
20097         * config/freebsd.opt (posix, rdynamic): New Driver options.
20098
20099 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20100
20101         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20102         -Bstatic/-Bdynamic.
20103         * configure: Regenerate.
20104
20105 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
20106
20107         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20108         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20109
20110 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
20111
20112         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20113         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20114         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20115         (s390_preferred_reload_class): Make static. Change return and
20116         'rclass' argument type to reg_class_t.
20117
20118 2011-01-27  Jan Hubicka  <jh@suse.cz>
20119
20120         PR middle-end/46949
20121         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20122         (process_function_and_variable_attributes): Check defined weakrefs.
20123
20124 2011-01-27  Martin Jambor  <mjambor@suse.cz>
20125
20126         PR tree-optimization/47228
20127         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20128         build_ref_for_offset.
20129
20130 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20131
20132         * config/spu/spu-elf.h (ASM_SPEC): Remove.
20133
20134 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
20135
20136         PR rtl-optimization/46856
20137         * postreload.c (reload_combine_recognize_const_pattern): Do not
20138         separate cc0 setter and user on cc0 targets.
20139
20140 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
20141
20142         PR c/43082
20143         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20144         passed a VOID_TYPE expression, immediately emit an error and
20145         return error_mark_node.
20146
20147 2011-01-26  Jeff Law  <law@redhat.com>
20148
20149         PR rtl-optimization/47464
20150         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20151         rather than may_trap_p as needed.
20152
20153 2011-01-26  DJ Delorie  <dj@redhat.com>
20154
20155         PR rtl-optimization/46878
20156         * combine.c (insn_a_feeds_b): Check for the implicit cc0
20157         setter/user dependency as well.
20158
20159 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
20160
20161         PR rtl-optimization/44469
20162         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20163         after removing trivially dead basic blocks.
20164
20165 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20166
20167         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20168         * config/frv/frv.h (LINK_SPEC): Likewise.
20169         * config/i386/netware.h (LINK_SPEC): Likewise.
20170         * config/m68k/linux.h (ASM_SPEC): Likewise.
20171         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20172         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20173         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
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
20178 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20179
20180         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20181         * config/frv/frv.h (ASM_SPEC): Likewise.
20182         * config/m68k/linux.h (ASM_SPEC): Likewise.
20183         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20184         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20185         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20186         * config/sparc/linux.h (ASM_SPEC): Likewise.
20187         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20188         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20189
20190 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20191
20192         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20193         * config/frv/frv.h (LINK_SPEC): Likewise.
20194         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20195
20196 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20197
20198         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20199         * config/frv/frv.h (ASM_SPEC): Likewise.
20200         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20201         * config/m68k/linux.h (ASM_SPEC): Likewise.
20202         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20203         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20204         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20205         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20206         * config/sparc/linux.h (ASM_SPEC): Likewise.
20207         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20208         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20209         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20210
20211 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
20212
20213         PR target/46997
20214         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20215         (*mux2): Ditto.
20216         (vec_extract_evenodd_help): Ditto.
20217         (vec_extract_evenv4hi): Ditto.
20218         (vec_extract_oddv4hi): Ditto.
20219         (vec_interleave_lowv2si): Ditto.
20220         (vec_interleave_highv2si): Ditto.
20221         (vec_extract_evenv2si): Ditto.
20222         (vec_extract_oddv2si: Ditto.
20223         (vec_pack_trunc_v2si): Ditto.
20224
20225 2011-01-22  Jan Hubicka  <jh@suse.cz>
20226
20227         PR target/47237
20228         * cgraph.h (cgraph_local_info): New field can_change_signature.
20229         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20230         signature can change.
20231         (ipcp_estimate_growth): Call sequence simplify only if calle signature
20232         can change.
20233         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20234         (cgraph_function_versioning): We can not change signature of functions
20235         that don't allow that.
20236         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20237         (lto_input_node): Likewise.
20238         * ipa-inline.c (compute_inline_parameters): Compute
20239         local.can_change_signature.
20240         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20241         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20242         functions that can not change signature.
20243         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20244         init_cumulative_args): Do not use local calling conventions
20245         for functions that can not change signature.
20246
20247 2011-01-22  Jan Hubicka  <jh@suse.cz>
20248
20249         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20250
20251 2011-01-26  Richard Guenther  <rguenther@suse.de>
20252
20253         PR tree-optimization/47190
20254         * cgraphunit.c (process_common_attributes): New function.
20255         (process_function_and_variable_attributes): Use it.
20256
20257 2011-01-26  Richard Guenther  <rguenther@suse.de>
20258
20259         PR lto/47423
20260         * cgraphbuild.c (record_eh_tables): Record reference to personality
20261         function.
20262
20263 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
20264
20265         PR debug/45454
20266         * sel-sched.c (moveup_expr): Don't let debug insns prevent
20267         non-debug insns from moving up.
20268
20269 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20270
20271         PR target/40125
20272         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20273         t-dlldir{,-x} fragment for build and add it to tmake_file.
20274         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20275         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20276         * config/i386/t-dlldir: New file.
20277         (SHLIB_DLLDIR): Define.
20278         * config/i386/t-dlldir-x: New file.
20279         (SHLIB_DLLDIR): Define.
20280         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20281         (SHLIB_INSTALL): Use it.
20282
20283 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
20284
20285         PR target/47246
20286         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20287         lower bound of the allowed Thumb-2 coprocessor load/store
20288         index range to -256. Add explaining comment.
20289
20290 2011-01-25  Ian Lance Taylor  <iant@google.com>
20291
20292         * godump.c (go_define): Improve lexing of macro expansion to only
20293         accept expressions which match Go spec.
20294
20295 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20296
20297         PR c++/43601
20298         * tree.c (handle_dll_attribute): Handle it.
20299         * doc/extend.texi (@item dllexport): Mention it.
20300         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20301
20302 2011-01-25  Ian Lance Taylor  <iant@google.com>
20303
20304         PR tree-optimization/26854
20305         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20306         (decl_jump_unsafe): Move higher in file, with no other change.
20307         (bind): Set has_jump_unsafe_decl if appropriate.
20308         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20309         (check_earlier_gotos): Likewise.
20310         (c_check_switch_jump_warnings): Likewise.
20311
20312 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
20313
20314         * doc/invoke.texi (Warning Options): Add missing hyphen.
20315         (-fprofile-dir): Minor grammatical fixes.
20316         (-fbranch-probabilities): Likewise.
20317
20318 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20319
20320         PR debug/45136
20321         PR debug/45130
20322         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20323         debug insns.
20324         (no_real_insns_p, schedule_block, set_priorities): Drop special
20325         treatment of boundary debug insns.
20326         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20327         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20328         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20329         (BOUNDARY_DEBUG_INSN_P): Likewise.
20330         (SCHEDULE_DEBUG_INSN_P): Likewise.
20331         * sched-rgn.c (init_ready_list): Drop special treatment of
20332         boundary debug insns.
20333         * final.c (rest_of_clean-state): Clear notes' BB.
20334
20335 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20336
20337         * Makefile.in (LAMBDA_H): Removed.
20338         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20339         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20340         lambda-trans.o, and tree-loop-linear.o.
20341         (lto-symtab.o): Remove dependence on LAMBDA_H.
20342         (tree-loop-linear.o): Remove rule.
20343         (lambda-mat.o): Same.
20344         (lambda-trans.o): Same.
20345         (lambda-code.o): Same.
20346         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20347         (tree-vect-slp.o): Same.
20348         * hwint.h (gcd): Moved here.
20349         (least_common_multiple): Same.
20350         * lambda-code.c: Removed.
20351         * lambda-mat.c: Removed.
20352         * lambda-trans.c: Removed.
20353         * lambda.h: Removed.
20354         * tree-loop-linear.c: Removed.
20355         * lto-symtab.c: Do not include lambda.h.
20356         * omega.c (gcd): Removed.
20357         * passes.c (init_optimization_passes): Remove pass_linear_transform.
20358         * tree-data-ref.c (print_lambda_vector): Moved here.
20359         (lambda_vector_copy): Same.
20360         (lambda_matrix_copy): Same.
20361         (lambda_matrix_id): Same.
20362         (lambda_vector_first_nz): Same.
20363         (lambda_matrix_row_add): Same.
20364         (lambda_matrix_row_exchange): Same.
20365         (lambda_vector_mult_const): Same.
20366         (lambda_vector_negate): Same.
20367         (lambda_matrix_row_negate): Same.
20368         (lambda_vector_equal): Same.
20369         (lambda_matrix_right_hermite): Same.
20370         * tree-data-ref.h: Do not include lambda.h.
20371         (lambda_vector): Moved here.
20372         (lambda_matrix): Same.
20373         (dependence_level): Same.
20374         (lambda_transform_legal_p): Removed declaration.
20375         (lambda_collect_parameters): Same.
20376         (lambda_compute_access_matrices): Same.
20377         (lambda_vector_gcd): Same.
20378         (lambda_vector_new): Same.
20379         (lambda_vector_clear): Same.
20380         (lambda_vector_lexico_pos): Same.
20381         (lambda_vector_zerop): Same.
20382         (lambda_matrix_new): Same.
20383         * tree-flow.h (least_common_multiple): Removed declaration.
20384         * tree-parloops.c (lambda_trans_matrix): Moved here.
20385         (LTM_MATRIX): Same.
20386         (LTM_ROWSIZE): Same.
20387         (LTM_COLSIZE): Same.
20388         (LTM_DENOMINATOR): Same.
20389         (lambda_trans_matrix_new): Same.
20390         (lambda_matrix_vector_mult): Same.
20391         (lambda_transform_legal_p): Same.
20392         * tree-pass.h (pass_linear_transform): Removed declaration.
20393         * tree-ssa-loop.c (tree_linear_transform): Removed.
20394         (gate_tree_linear_transform): Removed.
20395         (pass_linear_transform): Removed.
20396         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20397         flag_loop_interchange.
20398
20399 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20400
20401         PR tree-optimization/47265
20402         PR tree-optimization/47443
20403         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20404         if name still has some uses.
20405
20406 2011-01-25  Martin Jambor  <mjambor@suse.cz>
20407
20408         PR tree-optimization/47382
20409         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20410         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20411
20412 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
20413
20414         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20415         sjlj_except_unwind_info.
20416
20417 2011-01-25  Richard Guenther  <rguenther@suse.de>
20418
20419         PR tree-optimization/47426
20420         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20421         visible functions results escape.
20422
20423 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20424
20425         PR target/45701
20426         * config/arm/arm.c (any_sibcall_uses_r3): New function.
20427         (arm_get_frame_offsets): Use it.
20428
20429 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20430             Jakub Jelinek  <jakub@redhat.com>
20431
20432         PR tree-optimization/47271
20433         * tree-if-conv.c (bb_postdominates_preds): New.
20434         (if_convertible_bb_p): Call bb_postdominates_preds.
20435         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20436         (predicate_scalar_phi): Call bb_postdominates_preds.
20437
20438 2011-01-25  Nick Clifton  <nickc@redhat.com>
20439
20440         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20441         * config/rx/rx.c (rx_function_value): Likewise.
20442         (rx_promote_function_mode): Likewise.
20443         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20444         in order to make it legitimate.
20445         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20446         make sure that the first operand is the same as the result register.
20447         (addsi3_unspec): Delete.
20448         (subdi3): Do not accept immediate operands.
20449         (subdi3_internal): Likewise.
20450
20451 2011-01-25  Jeff Law  <law@redhat.com>
20452
20453         PR rtl-optimization/37273
20454         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20455         handle them like argument loads from stack slots.  Do not double
20456         count memory for memory constants and argument loads from stack slots.
20457
20458 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20459
20460         PR tree-optimization/47427
20461         PR tree-optimization/47428
20462         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20463         coalesce if the new root var would be TREE_READONLY.
20464
20465 2011-01-25  Richard Guenther  <rguenther@suse.de>
20466
20467         PR middle-end/47414
20468         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20469         correct type for TBAA.
20470
20471 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20472
20473         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20474         (close_phi_written_to_memory): Call for_each_index with
20475         dr_indices_valid_in_loop.
20476
20477 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20478
20479         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20480         when it is initialized.
20481
20482 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20483
20484         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20485         call to graphite_find_data_references_in_stmt.
20486         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20487         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
20488         call to graphite_find_data_references_in_stmt.
20489         (analyze_drs_in_stmts): Same.
20490         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20491         in which the scalar analysis of indices is performed.
20492         (create_data_ref): Same.  Update call to dr_analyze_indices.
20493         (find_data_references_in_stmt): Update call to create_data_ref.
20494         (graphite_find_data_references_in_stmt): Same.
20495         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20496         declaration.
20497         (create_data_ref): Same.
20498         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20499         call to create_data_ref.
20500
20501 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20502
20503         * graphite-sese-to-poly.c (build_poly_scop): Move
20504         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20505
20506 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20507
20508         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20509         VAR_DECL, PARM_DECL, and RESULT_DECL.
20510
20511 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20512
20513         * graphite-dependences.c (reduction_dr_1): Allow several reductions
20514         in a reduction PBB.
20515         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20516         that have already been marked as PBB_IS_REDUCTION.
20517
20518 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20519
20520         * graphite-scop-detection.c (same_close_phi_node): New.
20521         (remove_duplicate_close_phi): New.
20522         (make_close_phi_nodes_unique): New.
20523         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20524
20525 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20526
20527         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20528         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20529         of both data references to be the same.
20530
20531 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20532
20533         * graphite-dependences.c (build_lexicographical_constraint): Remove
20534         the gdim parameter.
20535         (build_lexicographical_constraint): Adjust call to
20536         ppl_powerset_is_empty.
20537         (dependence_polyhedron): Same.
20538         (graphite_legal_transform_dr): Same.
20539         (graphite_carried_dependence_level_k): Same.
20540         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20541         parameter.
20542         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20543
20544 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20545
20546         * graphite-sese-to-poly.c
20547         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20548         (close_phi_written_to_memory): New.
20549         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20550         and unshare_expr.
20551
20552 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20553
20554         * doc/install.texi: Update the expected version number of PPL to 0.11.
20555         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20556         #if PPL_VERSION_MINOR < 11.
20557
20558 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20559
20560         * graphite-dependences.c: Include graphite-cloog-util.h.
20561         (new_poly_ddr): Inlined into dependence_polyhedron.
20562         (free_poly_ddr): Moved close by new_poly_ddr.
20563         (dependence_polyhedron_1): Renamed dependence_polyhedron.
20564         Early return NULL when ppl_powerset_is_empty returns true.
20565         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
20566         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
20567         (graphite_legal_transform_dr): Call new_poly_ddr.
20568         (graphite_carried_dependence_level_k): Same.
20569         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
20570         (dot_transformed_deps_stmt_1): Removed.
20571         (dot_deps_stmt_1): Call dot_deps_stmt_2.
20572         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
20573         (dot_deps_1): Call dot_deps_2.
20574         * Makefile.in (graphite-dependences.o): Add missing dependence on
20575         graphite-cloog-util.h.
20576
20577 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20578
20579         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20580         (build_lexicographical_constraint): Same.
20581         (dependence_polyhedron_1): Same.
20582         (graphite_legal_transform_dr): Same.
20583         (graphite_carried_dependence_level_k): Same.
20584         * graphite-ppl.c (ppl_powerset_is_empty): New.
20585         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20586         * tree-data-ref.c (dump_data_reference): Print the basic block index.
20587
20588 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20589
20590         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20591         the "a followed by b" relation and document it.
20592
20593 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20594
20595         * graphite-dependences.c (build_lexicographical_constraint): Stop the
20596         iteration when the bag of constraints is empty.
20597
20598 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20599
20600         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20601
20602 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20603
20604         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20605         nest and two loop depths as parameters.
20606         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20607         lst_perfect_nestify.
20608
20609 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20610
20611         * graphite-dependences.c (print_pddr): Call
20612         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20613
20614 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20615
20616         * graphite-ppl.c (debug_gmp_value): New.
20617         * graphite-ppl.h (debug_gmp_value): Declared.
20618
20619 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
20620
20621         * doc/install.texi: Document availability of cloog-0.16.
20622
20623 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
20624
20625         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20626         invalid postdominance info.
20627
20628 2011-01-24  Jan Hubicka  <jh@suse.cz>
20629
20630         PR c/21659
20631         * doc/extend.texi (weak pragma): Drop claim that it must
20632         appear before definition.
20633         * varasm.c (merge_weak, declare_weak): Only sanity check
20634         that DECL is not output at a time it is declared weak.
20635
20636 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
20637
20638         * machmode.def: Fixed comments.
20639
20640 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
20641
20642         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20643
20644 2011-01-24  Paul Koning  <ni1d@arrl.net>
20645
20646         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
20647         WORDS_BIG_ENDIAN.
20648
20649 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
20650
20651         PR target/46519
20652         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20653         (block_info): Add scanned and prev.
20654         (move_or_delete_vzeroupper_2): Return if the basic block
20655         has been scanned and the upper 128bit state is unchanged
20656         from the last scan.
20657         (move_or_delete_vzeroupper_1): Return true if the exit
20658         state is changed.
20659         (move_or_delete_vzeroupper): Visit basic blocks using the
20660         work-list based algorithm based on vt_find_locations in
20661         var-tracking.c.
20662
20663         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20664
20665 2011-01-24  Nick Clifton  <nickc@redhat.com>
20666
20667         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20668         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20669         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
20670         then define __v850e1__.
20671         * doc/invoke.texi: Document -mv850es.
20672
20673 2011-01-24  Richard Henderson  <rth@redhat.com>
20674
20675         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20676         compound unordered comparisons.
20677         * config/rx/rx.c (rx_split_fp_compare): Remove.
20678         * config/rx/rx-protos.h: Update.
20679         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20680         (cbranchsf4): Don't call rx_split_fp_compare.
20681         (*cbranchsf4): Use rx_split_cbranch.
20682         (*cmpsf): Don't accept "i" constraint.
20683         (*conditional_branch): Only valid after reload.
20684         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
20685
20686 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20687
20688         PR target/47385
20689         * config/rs6000/altivec.md (vector constant splitters): Add
20690         support for creating vector single precision constants if -mvsx is
20691         used and we would create the constant using Altivec primitives.
20692
20693 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
20694             Richard Sandiford  <rdsandiford@googlemail.com>
20695
20696         PR rtl-optimization/47166
20697         * reload1.c (emit_reload_insns): Disable the spill_reg_store
20698         mechanism for PRE_MODIFY and POST_MODIFY.
20699         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20700         reloadreg.
20701
20702 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
20703
20704         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
20705
20706 2011-01-22  Jan Hubicka  <jh@suse.cz>
20707
20708         PR lto/47333
20709         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20710
20711 2011-01-22  Jan Hubicka  <jh@suse.cz>
20712
20713         PR tree-optimization/43884
20714         PR lto/44334
20715         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
20716         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20717
20718 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
20719
20720         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20721         * config/s390/s390.c (s390_register_move_cost,
20722         s390_memory_move_cost): New.
20723         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20724
20725 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20726
20727         PR middle-end/47401
20728         * except.c (sjlj_assign_call_site_values): Move setting the
20729         crtl->uses_eh_lsda flag to ...
20730         (sjlj_mark_call_sites): ... here.
20731         (sjlj_emit_function_enter): Support NULL dispatch label.
20732         (sjlj_build_landing_pads): In a function with no landing pads
20733         that still has must-not-throw regions, generate code to register
20734         a personality function with empty LSDA.
20735
20736 2011-01-21  Richard Henderson  <rth@redhat.com>
20737
20738         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20739
20740         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20741
20742         * compare-elim.c: New file.
20743         * Makefile.in (OBJS-common): Add it.
20744         (compare-elim.o): New.
20745         * common.opt (fcompare-elim): New.
20746         * opts.c (default_options_table): Add OPT_fcompare_elim.
20747         * tree-pass.h (pass_compare_elim_after_reload): New.
20748         * passes.c (init_optimization_passes): Add it.
20749         * recog.h: Protect against re-inclusion.
20750         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20751         * doc/invoke.texi (-fcompare-elim): Document it.
20752         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20753         * doc/tm.texi: Rebuild.
20754
20755 2011-01-22  Nick Clifton  <nickc@redhat.com>
20756
20757         * config/rx/rx.md (cstoresf4): Pass comparison operator to
20758         rx_split_fp_compare.
20759
20760 2011-01-22  Nick Clifton  <nickc@redhat.com>
20761
20762         * config/rx/rx.md (UNSPEC_CONST): New.
20763         (deallocate_and_return): Wrap the amount popped off the stack in
20764         an UNSPEC_CONST in order to stop it being rejected by
20765         -mmax-constant-size.
20766         (pop_and_return): Add a "(return)" rtx.
20767         (call): Drop the immediate operand.
20768         (call_internal): Likewise.
20769         (call_value): Likewise.
20770         (call_value_internal): Likewise.
20771         (sibcall_internal): Likewise.
20772         (sibcall_value_internal): Likewise.
20773         (sibcall): Likewise.  Generate an explicit call using
20774         sibcall_internal.
20775         (sibcall_value): Likewise.
20776         (mov<>): FAIL if a constant operand is not legitimate.
20777         (addsi3_unpsec): New pattern.
20778
20779         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
20780         (ok_for_max_constant): New function.
20781         (gen_safe_add): New function.
20782         (rx_expand_prologue): Use gen_safe_add.
20783         (rx_expand_epilogue): Likewise.
20784         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
20785         UNSPEC CONSTs.
20786
20787 2011-01-21  Jeff Law  <law@redhat.com>
20788
20789         PR tree-optimization/47053
20790         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20791         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20792         statements are deleted.
20793         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
20794         is nonempty, then purge dead edges and cleanup the CFG.
20795
20796 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
20797
20798         PR debug/47402
20799         Temporarily revert:
20800         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
20801         PR debug/47106
20802         * tree-dfa.c (create_var_ann): Mark variable as used.
20803
20804 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
20805
20806         PR middle-end/45566
20807         * except.c (convert_to_eh_region_ranges): Emit queued no-region
20808         notes from other section in hot/cold partitioning even if
20809         last_action is -3.  Increment call_site_base.
20810
20811         PR rtl-optimization/47366
20812         * fwprop.c (forward_propagate_into): Return bool.  If
20813         any changes are made, -fnon-call-exceptions is used and
20814         REG_EH_REGION note is present, call purge_dead_edges
20815         and return true if it purged anything.
20816         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20817         any EH edges were purged.
20818
20819 2011-01-21  Jeff Law  <law@redhat.com>
20820
20821         PR rtl-optimization/41619
20822         * caller-save.c (setup_save_areas): Break out code to determine
20823         which hard regs are live across calls by examining the reload chains
20824         so that it is always used.
20825         Eliminate code which checked REG_N_CALLS_CROSSED.
20826
20827 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
20828
20829         PR tree-optimization/47355
20830         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20831         NOP has non-debug uses beyond PHIs in new_bb.
20832
20833 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
20834
20835         PR debug/47106
20836         * cfgexpand.c (account_used_vars_for_block): Only account vars
20837         that are annotated as used.
20838         (estimated_stack_frame_size): Don't set TREE_USED.
20839         * tree-dfa.c (create_var_ann): Mark variable as used.
20840
20841 2011-01-21  Richard Guenther  <rguenther@suse.de>
20842
20843         PR middle-end/47395
20844         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20845
20846 2011-01-21  Richard Guenther  <rguenther@suse.de>
20847
20848         PR tree-optimization/47365
20849         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20850         (vn_reference_lookup_pieces): Adjust.
20851         (vn_reference_lookup): Likewise.
20852         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20853         (vn_reference_lookup_3): Only look through kills if in
20854         VN_WALKREWRITE mode.
20855         (vn_reference_lookup_pieces): Adjust.
20856         (vn_reference_lookup): Likewise.
20857         (visit_reference_op_load): Likewise.
20858         (visit_reference_op_store): Likewise.
20859         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20860         (compute_avail): Likewise.
20861         (eliminate): Likewise.
20862
20863 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
20864
20865         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20866         DECL_IGNORED_P non-reg vars if they are used.
20867
20868         PR tree-optimization/47391
20869         * varpool.c (const_value_known_p): Return false if
20870         decl is volatile.
20871
20872 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
20873
20874         PR bootstrap/47215
20875         * config/i386/i386.c (ix86_local_alignment): Handle
20876         case for va_list_type_node is nil.
20877         (ix86_canonical_va_list_type): Likewise.
20878
20879 2011-01-21  Alan Modra  <amodra@gmail.com>
20880
20881         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
20882         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
20883
20884 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20885
20886         * config/arm/arm.md (define_attr type): Rename f_load
20887         and f_store to f_fpa_load and f_fpa_store. Update.
20888         (write_conflict): Deal with rename fallout.
20889         (*push_fp_multi): Likewise.
20890         * config/arm/fpa.md (f_load): Use f_fpa_load.
20891         (f_store): Use f_fpa_store.
20892         (*movsf_fpa): Likewise.
20893         (*movdf_fpa): Likewise.
20894         (*movxf_fpa): Likewise.
20895         (*thumb2_movsf_fpa): Likewise.
20896         (*thumb2_movdf_fpa): Likewise.
20897         (*thumb2_movxf_fpa): Likewise.
20898         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
20899         f_loadd and f_stored.
20900         (*thumb2_movdi_vfp): Likewise.
20901         (*thumb2_movsf_vfp): Fix attribute to f_loads.
20902         (*thumb2_movsi_vfp): Likewise.
20903         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
20904         Use f_loads instead of f_load.
20905         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
20906
20907 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
20908
20909         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20910         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
20911         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20912         (xtensa_mode_dependent_address_p): New function.
20913         (constantpool_address_p): Make static. Change return type to bool.
20914         Change argument type to const_rtx. Use CONST_INT_P predicate.
20915
20916 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
20917
20918         PR debug/46583
20919         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
20920
20921 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
20922
20923         PR debug/47283
20924         * cfgexpand.c (expand_debug_expr): Instead of generating
20925         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
20926         etc. handling.
20927
20928 2011-01-20  Richard Guenther  <rguenther@suse.de>
20929
20930         PR middle-end/47370
20931         * tree-inline.c (remap_gimple_op_r): Recurse manually for
20932         the pointer operand of MEM_REFs.
20933
20934 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
20935
20936         PR tree-optimization/46130
20937         * ipa-split.c (consider_split): If return_bb contains non-virtual
20938         PHIs other than for retval or if split_function would not adjust it,
20939         refuse to split.
20940
20941 2011-01-20  Richard Guenther  <rguenther@suse.de>
20942
20943         PR tree-optimization/47167
20944         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
20945         Revert previous change, only avoid enumeral type changes.
20946
20947 2011-01-19  Mike Stump  <mikestump@comcast.net>
20948
20949         * doc/tm.texi.in (BRANCH_COST): Englishify.
20950         * doc/tm.texi (BRANCH_COST): Likewise.
20951
20952 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
20953
20954         PR c++/47291
20955         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
20956         (gen_scheduled_generic_parms_dies): New functions.
20957         (gen_struct_or_union_type_die): Schedule template parameters DIEs
20958         generation for the end of CU compilation.
20959         (dwarf2out_finish): Generate template parameters DIEs here.
20960
20961 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
20962
20963         PR debug/46240
20964         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
20965         debug bind stmt on merge edges.
20966
20967 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
20968
20969         PR debug/47079
20970         PR debug/46724
20971         * function.c (instantiate_expr): Instantiate incoming rtl of
20972         implicit arguments, and recurse on VALUE_EXPRs.
20973         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
20974         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
20975
20976 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
20977
20978         * c-parser.c (c_parser_for_statement): Initialize
20979         collection_expression.
20980
20981 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20982
20983         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
20984
20985 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20986
20987         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
20988         (LINK_SHLIB_SPEC): Don't use %(link_path).
20989         (SUBTARGET_EXTRA_SPECS): Remove link_path.
20990
20991 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20992
20993         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
20994         (NO_SHARED_LIB_SUPPORT): Remove.
20995         (LINK_SHLIB_SPEC): Remove one conditional definition.
20996
20997 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
20998
20999         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21000         %{call_shared}.
21001         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21002         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21003         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21004         %{call_shared} and conditionals on these options not being passed.
21005         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21006         %{call_shared}.
21007
21008 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21009
21010         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21011         simplify.
21012
21013         * ipa-split.c: Spelling fixes.
21014
21015 2011-01-19  Richard Henderson  <rth@redhat.com>
21016
21017         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21018         (*mulsi3): Likewise.
21019
21020         * longlong.h [__mn10300__] (count_leading_zeros): New.
21021         [__mn10300__] (umul_ppmm, smul_ppmm): New.
21022         [__mn10300__] (add_ssaaaa, subddmmss): New.
21023         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21024         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21025
21026 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21027
21028         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21029
21030 2011-01-19  Richard Henderson  <rth@redhat.com>
21031
21032         * config/mn10300/mn10300.md (addsi3_flags): New.
21033         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21034         (subsi3_flags, subc_internal, subdi3): New.
21035         (subdi3_internal, *subdi3_degenerate): New.
21036         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21037
21038         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21039         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21040         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
21041         * config/mn10300/mn10300-protos.h: Update.
21042         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21043         (return_ret): Likewise.  Rename from return_internal_regs.
21044         (return_internal): Remove.
21045
21046         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21047         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21048         (mn10300_legitimate_constant_p): Likewise.
21049         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21050         (mn10300_frame_size): New.
21051         (mn10300_expand_prologue): Use it.
21052         (mn10300_expand_epilogue): Likewise.
21053         (mn10300_initial_offset): Likewise.
21054         * config/mn10300/mn10300-protos.h: Update.
21055         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21056         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21057         (prologue, epilogue, return_internal): Tidy output code.
21058         (mn10300_store_multiple_operation, return): Likewise.
21059         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21060         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21061         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21062         (load_pic, am33_load_pic): New.
21063         (mn10300_load_pic0, mn10300_load_pic1): New.
21064
21065         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21066         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21067         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21068         (cc_flags_for_mode, cc_flags_for_code): New.
21069         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21070         overflow flag is not valid.  Validate that the flags we need
21071         for the comparison are valid.
21072         (mn10300_output_cmp): Remove.
21073         (mn10300_output_add): New.
21074         (mn10300_select_cc_mode): Use cc_flags_for_code.
21075         (mn10300_split_cbranch): New.
21076         (mn10300_match_ccmode): New.
21077         (mn10300_split_and_operand_count): New.
21078         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21079         to the function.
21080         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21081         (addsi3): ... here.  Use mn10300_output_add.
21082         (*addsi3_flags): New.
21083         (*am33_subsi3, *mn10300_subsi3): Merge...
21084         (subsi3): ... here.  Use attribute isa.
21085         (*subsi3_flags): New.
21086         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
21087         when possible.
21088         (*am33_andsi3, *mn10300_andsi3): Merge...
21089         (andsi3): ... here.
21090         (*andsi3_flags): New.
21091         (andsi3 splitters): New.
21092         (*am33_iorsi3, *mn10300_iorsi3): Merge...
21093         (iorsi3): ... here.
21094         (*iorsi3_flags): New.
21095         (*am33_xorsi3, *mn10300_xorsi3): Merge...
21096         (xorsi3): ... here.
21097         (*xorsi3_flags): New.
21098         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21099         (one_cmplsi2): ... here.
21100         (*one_cmplsi2_flags): New.
21101         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
21102         instead of "dax" in constraints.  Use mn10300_split_cbranch.
21103         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
21104         use matching constraints to eliminate a self-comparison.
21105         (*integer_conditional_branch): Rename from integer_conditional_branch.
21106         Use int_mode_flags to match CC_REG.
21107         (*cbranchsi4_btst, *btstsi): New.
21108         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
21109         mn10300_split_cbranch.
21110         (*am33_cmpsf): Rename from am33_cmpsf.
21111         (*float_conditional_branch): Rename from float_conditional_branch.
21112         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21113         (zero_extendqisi2): ... here.
21114         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21115         (zero_extendhisi2): ... here.
21116         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21117         (extendqisi2): ... here.
21118         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21119         (extendhisi2): ... here.
21120         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21121         (ashlsi3): ... here.
21122         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21123         (lshrsi3): ... here.
21124         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21125         (ashrsi3): ... here.
21126         (consecutive add peephole): Remove.
21127         * config/mn10300/predicates.md (label_ref_operand): New.
21128         (int_mode_flags): New.
21129         (CCZN_comparison_operator): New.
21130
21131         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21132         (throughput_42_latency_43): New reservation.
21133         (mulsidi3, umulsidi3): New expanders.
21134         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
21135         the MDR register to allocation; separately allocate the low and
21136         high parts of the DImode result.
21137         (umulsidi3_internal): Similarly.
21138         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21139         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
21140         (udivsi3, umodsi3): Remove.
21141         (udivmodsi4, divmodsi4): New expanders.
21142         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
21143         (*divmodsi4): Simiarly.
21144         (ext_internal): New.
21145
21146         * config/mn10300/constraints.md ("z"): New constraint.
21147         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21148         (FIXED_REGISTERS): Don't fix MDR.
21149         (CALL_USED_REGSITERS): Reformat nicely.
21150         (REG_ALLOC_ORDER): Add MDR.
21151         (enum regclass): Add MDR_REGS.
21152         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21153         (IRA_COVER_CLASSES): Add MDR_REGS.
21154         (REGNO_REG_CLASS): Handle MDR_REG.
21155         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21156         (mn10300_register_move_cost): Likewise.
21157         * config/mn10300/mn10300.md (MDR_REG): New.
21158         (*movsi_internal): Handle moves to/from MDR_REGS.
21159
21160         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21161         POST_MODIFY.
21162         (mn10300_secondary_reload): Tidy combination reload classes.
21163         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21164         addresses for AM33.  Allow symbolic offsets for reg+imm.
21165         (mn10300_regno_in_class_p): New.
21166         (mn10300_legitimize_reload_address): New.
21167         * config/mn10300/mn10300.h (enum reg_class): Remove
21168         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21169         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
21170         SP_OR_GENERAL_REGS.
21171         (REG_CLASS_NAMES): Update to match.
21172         (REG_CLASS_CONTENTS): Likewise.
21173         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21174         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21175         (REGNO_IN_RANGE_P): Remove.
21176         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21177         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21178         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21179         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21180         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21181         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21182         (REGNO_GENERAL_P): New.
21183         (HAVE_POST_MODIFY_DISP): New.
21184         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21185         (LEGITIMIZE_RELOAD_ADDRESS): New.
21186         * config/mn10300/mn10300-protos.h: Update.
21187
21188         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21189         DATA_REGS for AM33 stack-pointer destination.
21190         (mn10300_preferred_output_reload_class): Likewise.
21191         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21192         into a form appropriate for ...
21193         (TARGET_SECONDARY_RELOAD): New.
21194         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21195         * config/mn10300/mn10300-protos.h: Update.
21196         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21197         reload_insi; use the "A" constraint for the scratch; handle AM33
21198         moves of sp to non-address registers.
21199
21200         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21201         (*movqi_internal): ... here.
21202         (*am33_movhi, *mn10300_movhi): Merge into...
21203         (*movhi_internal): ... here.
21204         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
21205         as the source/destination of moves from/to SP.
21206         (movsf): Only allow for AM33-2.
21207         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21208         any integer constant constraint.  Only allow for AM33-2.  Tidy
21209         all of the alternative outputs.
21210         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21211         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
21212         for MN103.
21213         (udivsi3, umodsi3): New patterns for MN103 only.
21214
21215 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
21216
21217         * doc/tm.texi.in: Spell out that a lack of register class unions
21218         can lead to ICEs.
21219         * doc/tm.texi: Regenerate.
21220
21221 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21222
21223         PR rtl-optimization/47337
21224         * dce.c (check_argument_store): New function.
21225         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
21226
21227         PR tree-optimization/47290
21228         * tree-eh.c (infinite_empty_loop_p): New function.
21229         (cleanup_empty_eh): Use it.
21230
21231 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
21232
21233         PR target/46997
21234         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21235         (a64_expand_widen_sum): Ditto.
21236         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21237         (vec_extract_evenodd_help): Ditto.
21238         (vec_extract_evenv4hi): Ditto.
21239         (vec_extract_oddv4hi): Ditto.
21240         (vec_extract_evenv2si): Ditto.
21241         (vec_extract_oddv2si): Ditto.
21242         (vec_extract_evenv2sf): Ditto.
21243         (vec_extract_oddv2sf): Ditto.
21244         (vec_pack_trunc_v4hi: Ditto.
21245         (vec_pack_trunc_v2si): Ditto.
21246         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21247         (vec_interleave_highv8qi): Ditto.
21248         (mix1_r): Ditto.
21249         (vec_extract_oddv8qi): Ditto.
21250         (vec_interleave_lowv4hi): Ditto.
21251         (vec_interleave_highv4hi): Ditto.
21252         (vec_interleave_lowv2si): Ditto.
21253         (vec_interleave_highv2si): Ditto.
21254
21255 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21256
21257         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21258         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21259         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
21260         (pa_c_mode_for_suffix): New.
21261         (TARGET_EXPAND_BUILTIN): Define.
21262         (TARGET_C_MODE_FOR_SUFFIX): Define.
21263         (pa_builtins): Define.
21264         (pa_init_builtins): Register __float128 type and init new support
21265         builtins.
21266         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21267         * config/pa/quadlib.c (_U_Qfcopysign): New.
21268
21269 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
21270
21271         PR middle-end/46894
21272         * explow.c (allocate_dynamic_stack_space): Do not assume more than
21273         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21274         are defined.
21275
21276 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21277
21278         PR tree-optimization/47179
21279         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21280         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21281
21282 2011-01-18  Richard Guenther  <rguenther@suse.de>
21283
21284         PR rtl-optimization/47216
21285         * emit-rtl.c: Include tree-flow.h.
21286         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21287         of replicating it with different semantics.
21288         * Makefile.in (emit-rtl.o): Adjust.
21289
21290 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21291
21292         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21293         (cortex_a9_dp): Handle neon types correctly.
21294
21295 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
21296
21297         PR rtl-optimization/47299
21298         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21299         subtarget.  Use normal multiplication if both operands are constants.
21300         * expmed.c (expand_widening_mult): Don't try to optimize constant
21301         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
21302         before using it.
21303
21304 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21305
21306         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
21307         spacing after 'e.g.', typos, comma, hyphenation.
21308
21309 2011-01-17  Richard Henderson  <rth@redhat.com>
21310
21311         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21312         (rx_restricted_mem_operand): New.
21313         (rx_shift_operand): Use register_operand.
21314         (rx_source_operand, rx_compare_operand): Likewise.
21315         * config/rx/rx.md (addsi3_flags): New expander.
21316         (adddi3): Rewrite as expander.
21317         (adc_internal, *adc_flags, adddi3_internal): New patterns.
21318         (subsi3_flags): New expander.
21319         (subdi3): Rewrite as expander.
21320         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21321
21322         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21323         (rx_init_builtins): Remove sat builtin.
21324         (rx_expand_builtin): Likewise.
21325         * config/rx/rx.md (ssaddsi3): New.
21326         (*sat): Rename from sat.  Represent the CC_REG input.
21327
21328         * config/rx/predicates.md (rshift_operator): New.
21329         * config/rx/rx.c (rx_expand_insv): Remove.
21330         * config/rx/rx-protos.h: Update.
21331         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
21332         operand to the canonical position.
21333         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21334         (*bitclr, *bitclr_in_memory): Similarly.
21335         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21336         (insv): Retain the zero_extract in the expansion.
21337
21338         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21339         (bswaphi2, bitinvert, revw): Likewise.
21340
21341         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21342         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21343         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21344         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21345         (bitset, bitset_in_memory): Likewise.
21346         (bitinvert, bitinvert_in_memory): Likewise.
21347         (bitclr, bitclr_in_memory): Likewise.
21348         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21349         (rx_strend, rx_cmpstrn): Likewise.
21350         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
21351         (bitop peep2 patterns): Remove.
21352
21353         * config/rx/rx.c (rx_match_ccmode): New.
21354         * config/rx/rx-protos.h: Update.
21355         * config/rx/rx.md (abssi2): Clobber, don't set flags.
21356         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21357         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21358         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21359         (fix_truncsfsi2, floatsisf2): Likewise.
21360         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21361         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21362         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21363         (*subsi3_flags, *xorsi3_flags): New.
21364
21365         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21366
21367         * config/rx/rx.c (rx_print_operand): Remove workaround for
21368         unsplit comparison operations.
21369
21370         * config/rx/rx.md (movsicc): Split after reload.
21371         (*movsicc): Merge *movsieq and *movsine via match_operator.
21372         (*stcc): New pattern.
21373
21374         * config/rx/rx.c (rx_float_compare_mode): Remove.
21375         * config/rx/rx.h (rx_float_compare_mode): Remove.
21376         * config/rx/rx.md (cstoresi4): Split after reload.
21377         (*sccc): New pattern.
21378
21379         * config/rx/predicates.md (label_ref_operand): New.
21380         (rx_z_comparison_operator): New.
21381         (rx_zs_comparison_operator): New.
21382         (rx_fp_comparison_operator): New.
21383         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21384         Validate that the flags are set properly for the comparison.
21385         (rx_gen_cond_branch_template): Remove.
21386         (rx_cc_modes_compatible): Remove.
21387         (mode_from_flags): New.
21388         (flags_from_code): Rename from flags_needed_for_conditional.
21389         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21390         (rx_select_cc_mode): Likewise.
21391         (rx_split_fp_compare): New.
21392         (rx_split_cbranch): New.
21393         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21394         (*cbranchsi4): Use match_operator and rx_split_cbranch.
21395         (*cbranchsf4): Similarly.
21396         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
21397         match_operator and rx_split_cbranch.
21398         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21399         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
21400         (*cmpsi): Rename from cmpsi.
21401         (*tstsi): Rename from tstsi.
21402         (*cmpsf): Rename from cmpsf; use CC_Fmode.
21403         (*conditional_branch): Rename from conditional_branch.
21404         (*reveresed_conditional_branch): Remove.
21405         (b<code>): Remove expander.
21406         * config/rx/rx-protos.h: Update.
21407
21408         * config/rx/rx.c (rx_compare_redundant): Remove.
21409         * config/rx/rx.md (cmpsi): Don't use it.
21410         * config/rx/rx-protos.h: Update.
21411
21412         * config/rx/rx-modes.def (CC_F): New mode.
21413         * config/rx/rx.c (rx_select_cc_mode): New.
21414         * config/rx/rx.h (SELECT_CC_MODE): Use it.
21415         * config/rx/rx-protos.h: Update.
21416
21417 2011-01-17  Richard Henderson  <rth@redhat.com>
21418
21419         * except.c (dump_eh_tree): Fix stray ; after for statement.
21420
21421 2011-01-17  Richard Guenther  <rguenther@suse.de>
21422
21423         PR tree-optimization/47313
21424         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21425         handling before copying the body.  Properly deal with
21426         by-reference result in SSA form.
21427
21428 2011-01-17  Ian Lance Taylor  <iant@google.com>
21429
21430         PR target/47219
21431         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21432         (struct_value_alias_set): Don't define.
21433         (sparc_option_override): Don't set sparc_sr_alias_set and
21434         struct_value_alias_set.
21435         (save_or_restore_regs): Use gen_frame_mem rather than calling
21436         set_mem_alias_set.
21437         (sparc_struct_value_rtx): Likewise.
21438
21439 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
21440
21441         PR target/47318
21442         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21443         (_mm_maskstore_pd): Likewise.
21444         (_mm_maskload_ps): Likewise.
21445         (_mm_maskstore_ps): Likewise.
21446         (_mm256_maskload_pd): Change mask to __m256i.
21447         (_mm256_maskstore_pd): Likewise.
21448         (_mm256_maskload_ps): Likewise.
21449         (_mm256_maskstore_ps): Likewise.
21450
21451         * config/i386/i386-builtin-types.def: Updated.
21452         (ix86_expand_special_args_builtin): Likewise.
21453
21454         * config/i386/i386.c (bdesc_special_args): Update
21455         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21456         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21457         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21458         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21459
21460         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21461         Use <avxpermvecmode> on mask register.
21462         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21463
21464 2011-01-17  Olivier Hainque  <hainque@adacore.com>
21465             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21466             Eric Botcazou  <ebotcazou@adacore.com>
21467
21468         PR target/46655
21469         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21470         if <= USHRT_MAX in 32-bit mode.
21471
21472 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21473
21474         * doc/install.texi (Configuration, Specific): Wrap long
21475         lines in examples.  Allow line wrapping in long options
21476         and URLs where beneficial for PDF output.
21477
21478 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
21479
21480         * config/mips/mips.c (mips_classify_symbol): Don't return
21481         SYMBOL_PC_RELATIVE for nonlocal labels.
21482
21483 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21484
21485         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21486
21487 2011-01-15  Jan Hubicka  <jh@suse.cz>
21488
21489         PR tree-optimization/47276
21490         * ipa.c (function_and_variable_visibility): Do not try to mark alias
21491         declarations as needed.
21492
21493 2011-01-15  Martin Jambor  <mjambor@suse.cz>
21494
21495         * common.opt (fdevirtualize): New flag.
21496         * doc/invoke.texi (Option Summary): Document it.
21497         * opts.c (default_options_table): Add devirtualize flag.
21498         * ipa-prop.c (detect_type_change): Return immediately if
21499         devirtualize flag is not set.
21500         (detect_type_change_ssa): Likewise.
21501         (compute_known_type_jump_func): Likewise.
21502         (ipa_analyze_virtual_call_uses): Likewise.
21503
21504 2011-01-14  Martin Jambor  <mjambor@suse.cz>
21505
21506         PR tree-optimization/45934
21507         PR tree-optimization/46302
21508         * ipa-prop.c (type_change_info): New type.
21509         (stmt_may_be_vtbl_ptr_store): New function.
21510         (check_stmt_for_type_change): Likewise.
21511         (detect_type_change): Likewise.
21512         (detect_type_change_ssa): Likewise.
21513         (compute_complex_assign_jump_func): Check for dynamic type change.
21514         (compute_complex_ancestor_jump_func): Likewise.
21515         (compute_known_type_jump_func): Likewise.
21516         (compute_scalar_jump_functions): Likewise.
21517         (ipa_analyze_virtual_call_uses): Likewise.
21518         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21519
21520 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21521
21522         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21523         * config/i386/i386.opt (msse5): New Alias.
21524
21525 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21526
21527         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21528         * config/sparc/linux64.h (CC1_SPEC): Likewise.
21529         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21530         * config/sparc/sparc.h (CC1_SPEC): Likewise.
21531
21532 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21533
21534         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21535         -mcpu options.
21536         * config/sparc/linux64.h (CC1_SPEC): Likewise.
21537         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21538         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21539         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21540         Likewise.
21541         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21542
21543 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21544
21545         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21546
21547 2011-01-14  Mike Stump  <mikestump@comcast.net>
21548
21549         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21550         * config/fr30/fr30.md: Likweise
21551         (movsi_push): Likewise.
21552         (movsi_pop): Likewise.
21553         (enter_func): Likewise.
21554         * config/moxie/moxie.md (movsi_push): Likewise.
21555         (movsi_pop): Likewise.
21556
21557 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21558
21559         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21560         %{no_archive} %{exact_version}.
21561         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21562         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21563         %{no_archive} %{exact_version}.
21564         * config/mips/openbsd.h (LINK_SPEC): Likewise.
21565         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21566         * config/mips/vxworks.h: Likewise.
21567
21568 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21569
21570         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21571
21572 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21573
21574         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21575         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21576
21577 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21578
21579         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21580         -nodefaultlib.
21581
21582 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21583
21584         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21585         for mcpu not cpu.
21586         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21587         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21588         not cpu.
21589         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21590         Don't handle -shlib.
21591
21592 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21593
21594         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21595         (CC1_SPEC): Don't handle -profile.
21596
21597 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21598
21599         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21600         * config/mips/mips.h (CC1_SPEC): Likewise.
21601
21602 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21603
21604         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21605         * config/mips/mips.h (CC1_SPEC): Likewise.
21606
21607 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21608
21609         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21610         * config/m32r/linux.h (LINK_SPEC): Likewise.
21611         * config/mips/linux.h (LINK_SPEC): Likewise.
21612         * config/mips/linux64.h (LINK_SPEC): Likewise.
21613         * config/sparc/linux.h (LINK_SPEC): Likewise.
21614         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21615         LINK_SPEC): Likewise.
21616         * config/xtensa/linux.h (LINK_SPEC): Likewise.
21617
21618 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21619
21620         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21621         %{version:-v}.
21622         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21623
21624 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21625
21626         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21627         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21628
21629 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21630
21631         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21632
21633 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21634
21635         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21636         supports -Bstatic/-Bdynamic.
21637         * configure: Regenerate.
21638
21639 2011-01-14  Jan Hubicka  <jh@suse.cz>
21640             Jack Howarth  <howarth@bromo.med.uc.edu>
21641
21642         PR target/46037
21643         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21644         when checking debug_info_level. Test write_symbols instead of
21645         debug_hooks->var_location when setting flag_var_tracking_uninit.
21646
21647 2011-01-14  Richard Guenther  <rguenther@suse.de>
21648
21649         PR tree-optimization/47179
21650         * target.def (ref_may_alias_errno): New target hook.
21651         * targhooks.h (default_ref_may_alias_errno): Declare.
21652         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21653         (default_ref_may_alias_errno): New function.
21654         * target.h (struct ao_ref_s): Declare.
21655         * tree-ssa-alias.c: Include target.h.
21656         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21657         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21658         (targhooks.o): Likewise.
21659         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21660         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21661
21662 2011-01-14  Richard Guenther  <rguenther@suse.de>
21663
21664         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
21665
21666 2011-01-14  Richard Guenther  <rguenther@suse.de>
21667
21668         PR tree-optimization/47280
21669         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21670         return CFG changes.
21671         (tree_ssa_forward_propagate_single_use_vars): Deal with
21672         CFG changes from associate_plusminus.
21673
21674 2011-01-14  Richard Guenther  <rguenther@suse.de>
21675
21676         PR middle-end/47281
21677         Revert
21678         2011-01-11  Richard Guenther  <rguenther@suse.de>
21679
21680         PR tree-optimization/46076
21681         * tree-ssa.c (useless_type_conversion_p): Conversions from
21682         unprototyped to empty argument list function types are useless.
21683
21684 2011-01-14  Richard Guenther  <rguenther@suse.de>
21685
21686         PR tree-optimization/47286
21687         * tree-ssa-structalias.c (new_var_info): Register variables are global.
21688
21689 2011-01-14  Martin Jambor  <mjambor@suse.cz>
21690
21691         PR middle-end/46823
21692         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21693
21694 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
21695
21696         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21697         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21698         * config/xtensa/xtensa.c (xtensa_libcall_value,
21699         xtensa_function_value_regno_p): New functions.
21700         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21701
21702 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
21703
21704         PR c++/47213
21705         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21706         PE specific hook.
21707         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21708         New function prototype.
21709         * config/i386/winnt.c (i386_pe_assemble_visibility):
21710         Warn only if attribute was specified by user.
21711
21712 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
21713
21714         PR target/47251
21715         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21716         floating point.
21717         (floatunsdidf2_fcfidu): Ditto.
21718
21719 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21720
21721         * config/s390/s390.c (print_operand_address): Replace 'error' with
21722         'output_operand_lossage'.
21723         (print_operand): Likewise.
21724
21725 2011-01-13  Jeff Law  <law@redhat.com>
21726
21727         PR rtl-optimization/39077
21728         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21729         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21730         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21731         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21732         * gcse.c (prune_insertions_deletions): New function.
21733         (compute_pre_data): Use it.
21734
21735 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
21736
21737         PR debug/PR46973
21738         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21739         static function.
21740         (prune_unused_types_mark): Use it.
21741
21742 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
21743
21744         PR rtl-optimization/45352
21745         * sel-sched.c: Update copyright years.
21746         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
21747         in the advancing loop when we have issued issue_rate insns.
21748
21749 2011-01-12  Richard Henderson  <rth@redhat.com>
21750
21751         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21752         (TARGET_MD_ASM_CLOBBERS): New.
21753
21754         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21755         (TARGET_DELEGITIMIZE_ADDRESS): New.
21756
21757         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21758         (clzsi2, *bsch): New patterns.
21759
21760         * config/mn10300/mn10300.md (INT): New mode iterator.
21761         (*mov<INT>_clr): New pattern, and peep2 to generate it.
21762
21763         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21764         flag_split_wide_types.
21765
21766         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21767         (mn10300_trampoline_init): Rewrite without a template, an immediate
21768         load and a direct branch.
21769         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21770
21771 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
21772
21773         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21774         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21775         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21776         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21777
21778 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
21779
21780         PR debug/47209
21781         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21782         of type.
21783
21784 2011-01-12  Jan Hubicka  <jh@suse.cz>
21785
21786         PR driver/47244
21787         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21788         (PLUGIN_COND_CLOSE): New macro.
21789         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21790
21791 2011-01-12  Richard Guenther  <rguenther@suse.de>
21792
21793         PR lto/47259
21794         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21795         register variables in a MEM_REF.
21796
21797 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
21798
21799         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21800         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21801         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21802         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21803         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21804         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21805         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21806         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21807         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21808         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21809         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21810         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21811         * config/gnu-user.h: New.  Copied from linux.h.
21812         (LINUX_TARGET_STARTFILE_SPEC): Rename to
21813         GNU_USER_TARGET_STARTFILE_SPEC.
21814         (LINUX_TARGET_ENDFILE_SPEC): Rename to
21815         GNU_USER_TARGET_ENDFILE_SPEC.
21816         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21817         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21818         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21819         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21820         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21821         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21822         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21823         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21824         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21825         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21826         * config/arm/linux-eabi.h (CC1_SPEC): Use
21827         GNU_USER_TARGET_CC1_SPEC.
21828         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21829         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21830         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21831         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21832         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21833         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21834         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21835         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21836
21837 2011-01-12  Richard Guenther  <rguenther@suse.de>
21838
21839         PR other/46946
21840         * doc/invoke.texi (ffast-math): Document it is turned on
21841         with -Ofast.
21842
21843 2011-01-12  Jan Hubicka  <jh@suse.cz>
21844
21845         PR tree-optimization/47233
21846         * opts.c (common_handle_option): Disable ipa-reference with profile
21847         feedback.
21848
21849 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21850
21851         * c-parser.c (c_parser_objc_at_property_declaration): Improved
21852         error message.
21853
21854 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
21855
21856         * c-parser.c (c_lex_one_token): Updated and reindented some
21857         comments.  No changes in code.
21858
21859 2011-01-11  Ian Lance Taylor  <iant@google.com>
21860
21861         * godump.c (go_output_var): Don't output the variable if there is
21862         already a type with the same name.
21863
21864 2011-01-11  Ian Lance Taylor  <iant@google.com>
21865
21866         * godump.c (go_format_type): Don't generate float80.
21867
21868 2011-01-11  Richard Henderson  <rth@redhat.com>
21869
21870         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21871         declaration.  Rewrite for both speed and size.
21872         (mn10300_address_cost_1): Remove.
21873         (mn10300_register_move_cost): New.
21874         (mn10300_memory_move_cost): New.
21875         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
21876         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
21877         extensions, shifts, BSWAP, CLZ.
21878         (mn10300_wide_const_load_uses_clr): Remove.
21879         (TARGET_REGISTER_MOVE_COST): New.
21880         (TARGET_MEMORY_MOVE_COST): New.
21881         * config/mn10300/mn10300-protos.h: Update.
21882         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
21883
21884         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
21885         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
21886         * config/mn10300/mn10300-protos.h: Update.
21887         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
21888         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
21889         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
21890         (*test_int_bitfield, *test_byte_bitfield): Remove.
21891         (*bit_test, *subreg_bit_test): Remove.
21892         * config/mn10300/predicates.md (const_8bit_operand): Remove.
21893
21894         * config/mn10300/constraints.md ("c"): Rename from "A".
21895         ("A", "D"): New constraint letters.
21896         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
21897         (fmssf4, fnmasf4, fnmssf4): Likewise.
21898
21899         * config/mn10300/mn10300.md (isa): New attribute.
21900         (enabled): New attribute.
21901
21902         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
21903         (abssf2, negsf2): Define only for hardware fp.
21904         (sqrtsf2): Reformat.
21905         (addsf3, subsf3, mulsf3): Merge expander and insn.
21906
21907         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
21908         (DEBUGGER_AUTO_OFFSET): Remove.
21909         (DEBUGGER_ARG_OFFSET): Remove.
21910
21911         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
21912         Emit register stores with the same offsets as the hardware.
21913         (mn10300_store_multiple_operation): Don't check that the register
21914         save offsets are monotonic.
21915         * config/mn10300/mn10300-protos.h: Update.
21916
21917         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
21918
21919         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
21920         in terms of the value on the stack, not the MDR register.
21921
21922 2011-01-11  Jan Hubicka  <jh@suse.cz>
21923
21924         PR lto/45721
21925         PR lto/45375
21926         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
21927         (symbol_alias_set_destroy, symbol_alias_set_contains,
21928         propagate_aliases_backward): Declare.
21929         * lto-streamer-out.c (struct sets): New sturcture.
21930         (trivally_defined_alias): New function.
21931         (output_alias_pair_p): Rewrite.
21932         (output_unreferenced_globals): Fix output of alias pairs.
21933         (produce_symtab): Likewise.
21934         * ipa.c (function_and_variable_visibility): Set weak alias destination
21935         as needed in lto.
21936         * varasm.c (symbol_alias_set_t): Remove.
21937         (symbol_alias_set_destroy): Export.
21938         (propagate_aliases_forward, propagate_aliases_backward): New functions
21939         based on ...
21940         (compute_visible_aliases): ... this one; remove.
21941         (trivially_visible_alias): New
21942         (trivially_defined_alias): New.
21943         (remove_unreachable_alias_pairs): Rewrite.
21944         (finish_aliases_1): Reorganize code checking if alias is defined.
21945         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
21946         in LTO mode.
21947
21948 2011-01-11  Richard Guenther  <rguenther@suse.de>
21949
21950         PR tree-optimization/46076
21951         * tree-ssa.c (useless_type_conversion_p): Conversions from
21952         unprototyped to empty argument list function types are useless.
21953
21954 2011-01-11  Richard Guenther  <rguenther@suse.de>
21955
21956         PR middle-end/45235
21957         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
21958         volatile MEMs as MEM_READONLY_P.
21959
21960 2011-01-11  Richard Guenther  <rguenther@suse.de>
21961
21962         PR tree-optimization/47239
21963         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
21964
21965 2011-01-11  Jeff Law  <law@redhat.com>
21966
21967         PR tree-optimization/47086
21968         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
21969         IVs from statements that might throw.
21970
21971 2011-01-10  Jan Hubicka  <jh@suse.cz>
21972
21973         PR lto/45375
21974         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
21975
21976 2011-01-10  Jan Hubicka  <jh@suse.cz>
21977
21978         PR lto/45375
21979         * profile.c (read_profile_edge_counts): Ignore profile inconistency
21980         when correcting profile.
21981
21982 2011-01-10  Jan Hubicka  <jh@suse.cz>
21983
21984         PR lto/46083
21985         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
21986         DECL_FINI_PRIORITY.
21987         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
21988         Restore DECL_FINI_PRIORITY.
21989
21990 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21991
21992         * doc/gimple.texi: Fix quoting of multi-word return values in
21993         @deftypefn statements.  Ensure presence of return value.  Wrap
21994         overlong @deftypefn lines.
21995         (is_gimple_operand, is_gimple_min_invariant_address): Remove
21996         descriptions of removed functions.
21997         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
21998         of multi-word return value in @deftypefn statement.
21999
22000 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22001
22002         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22003         (Conditional Expressions, Logical Operators)
22004         (Statement and operand traversals): Do not indent smallexample
22005         code.  Fix duplicate function argument in example.
22006
22007 2011-01-10  Jeff Law  <law@redhat.com>
22008
22009         PR tree-optimization/47141
22010         * ipa-split.c (split_function): Handle case where we are
22011         returning a value and the return block has a virtual operand phi.
22012
22013 2011-01-10  Jan Hubicka  <jh@suse.cz>
22014
22015         PR tree-optimization/47234
22016         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22017         (pass_feedback_split_functions): Declare.
22018         * passes.c (init_optimization_passes): Add ipa-split as subpass of
22019         tree-profile.
22020         * ipa-split.c (gate_split_functions): Update comments; disable
22021         split-functions for profile_arc_flag and branch_probabilities.
22022         (gate_feedback_split_functions): New function.
22023         (execute_feedback_split_functions): New function.
22024         (pass_feedback_split_functions): New global var.
22025
22026 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22027
22028         PR lto/46760
22029         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22030         calling gimple_call_set_cannot_inline.
22031
22032 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
22033
22034         * config/darwin-sections.def: Remove unused section.
22035
22036 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
22037
22038         PR c++/47218
22039         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22040
22041 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
22042
22043         PR objc/47232
22044         * c-parser.c (c_parser_declaration_or_fndef): Improved
22045         error message.
22046
22047 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
22048
22049         * config/i386/winnt.c (i386_pe_start_function): Make sure
22050         to switch back to function's section.
22051
22052 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
22053
22054         PR gcc/46902
22055         PR testsuite/46912
22056         * plugin.c: Move include of dlfcn.h from here...
22057         * system.h: ... to here.
22058
22059 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22060
22061         * doc/cpp.texi (C++ Named Operators): Fix markup for header
22062         file name.
22063         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22064         two extra empty pages in PDF output.
22065
22066 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
22067
22068         PR objc/47078
22069         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22070         for error recovery purposes behave as if it was not specified so
22071         that the default type is usd.
22072
22073 2011-01-07  Jan Hubicka  <jh@suse.cz>
22074
22075         PR tree-optmization/46469
22076         * ipa.c (function_and_variable_visibility): Clear needed flags on
22077         nodes with external decls; handle weakrefs merging correctly.
22078
22079 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
22080
22081         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22082         not false.
22083
22084 2011-01-07  Jan Hubicka  <jh@suse.cz>
22085
22086         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22087         and no longer claim that gold is required for linker plugin.
22088         * configure: Regenerate.
22089         * gcc.c (PLUGIN_COND): New macro.
22090         (LINK_COMMAND_SPEC): Use it.
22091         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22092         * config.in (HAVE_LTO_PLUGIN): New.
22093         * configure.ac (--with-lto-plugin): New parameter; autodetect
22094         HAVE_LTO_PLUGIN.
22095
22096 2011-01-07  Jan Hubicka  <jh@suse.cz>
22097
22098         PR tree-optimization/46367
22099         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22100         when we can update original.
22101         (cgraph_mark_inline_edge): Sanity check.
22102         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22103
22104 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22105
22106         * config/spu/spu.h (ASM_COMMENT_START): Define.
22107
22108 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
22109
22110         PR driver/42445
22111         * gcc.c (%>S): New.
22112         (SWITCH_KEEP_FOR_GCC): Likewise.
22113         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22114         (do_spec_1): Handle "%>".
22115
22116         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22117
22118 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
22119
22120         PR target/47201
22121         * config/i386/i386.c (ix86_delegitimize_address): If
22122         simplify_gen_subreg fails, return orig_x.
22123
22124         PR bootstrap/47187
22125         * value-prof.c (gimple_stringop_fixed_value): Handle
22126         lhs of the call properly.
22127
22128 2011-01-07  Jan Hubicka  <jh@suse.cz>
22129
22130         PR lto/45375
22131         * lto-opt.c (lto_reissue_options): Set flag_shlib.
22132
22133 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22134
22135         * target.def (function_switched_text_sections): New hook.
22136         * doc/tm.texi: Regenerated.
22137         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22138         * final.c (default_function_switched_text_sections): New.
22139         (final_scan_insn): Call function_switched_text_sections when a
22140         mid-function section change occurs.
22141         * output.h (default_function_switched_text_sections): Declare.
22142         * config/darwin-protos.h (darwin_function_switched_text_sections):
22143         Likewise.
22144         * config/darwin.c (darwin_function_switched_text_sections): New.
22145         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22146
22147 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22148
22149         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
22150         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
22151         the secondary code fragment when outputting for DWARF == 2.
22152
22153 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
22154
22155         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22156         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22157         Remove.
22158         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22159         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22160
22161 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22162
22163         PR debug/46704
22164         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22165         when it is not empty.
22166
22167 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
22168
22169         Bobcat Enablement
22170         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22171         (case ${target}): Add btver1.
22172         * config/i386/driver-i386.c (host_detect_local_cpu): Let
22173         -march=native recognize btver1 processors.
22174         * config/i386/i386-c.c (ix86_target_macros_internal): Add
22175         btver1 def_and_undef
22176         * config/i386/i386.c (struct processor_costs btver1_cost): New
22177         btver1 cost table.
22178         (m_BTVER1): New definition.
22179         (m_AMD_MULTIPLE): Includes m_BTVER1.
22180         (initial_ix86_tune_features): Add btver1 tune.
22181         (processor_target_table): Add btver1 entry.
22182         (static const char *const cpu_names): Add btver1 entry.
22183         (software_prefetching_beneficial_p): Add btver1.
22184         (ix86_option_override_internal): Add btver1 instruction sets.
22185         (ix86_issue_rate): Add btver1.
22186         (ix86_adjust_cost): Add btver1.
22187         * config/i386/i386.h (TARGET_BTVER1): New definition.
22188         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22189         (enum processor_type): Add PROCESSOR_BTVER1.
22190         * config/i386/i386.md (define_attr "cpu"): Add btver1.
22191
22192 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22193
22194         PR target/43309
22195         * config/i386/i386.c (legitimize_tls_address)
22196         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22197         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22198         (tls_initial_exec_64_sun): New pattern.
22199
22200 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
22201
22202         * doc/invoke.texi (Overall Options): Improve wording and markup
22203         of the description of -wrapper.
22204
22205 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22206
22207         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22208         rdynamic, threads): New Driver options.
22209
22210 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22211
22212         PR target/38118
22213         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22214         if coming from .tdata.
22215         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22216
22217 2011-01-06  Jan Hubicka  <jh@suse.cz>
22218
22219         PR lto/47188
22220         * collect2.c (main): Do not enable LTOmode when plugin is active.
22221
22222 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22223
22224         PR other/45915
22225         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22226         --version output if supported.
22227         * configure: Regenerate.
22228
22229 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22230
22231         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22232         Driver options.
22233
22234 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
22235
22236         PR c/47150
22237         * c-convert.c (convert): When converting a complex expression
22238         other than COMPLEX_EXPR to a different complex type, ensure
22239         c_save_expr is called instead of save_expr, unless in_late_binary_op.
22240         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22241         when converting COMPLEX_TYPE.
22242
22243 2011-01-06  Ira Rosen  <irar@il.ibm.com>
22244
22245         PR tree-optimization/47139
22246         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22247         only the last reduction value is used outside the loop.  Update
22248         documentation.
22249
22250 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
22251
22252         * config/rtems.opt: New.
22253         * config.gcc (*-*-rtems*): Use rtems.opt.
22254
22255 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
22256
22257         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22258         processors do not support 3DNow instructions.
22259
22260 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22261
22262         * config/spu/spu.c (spu_option_override): Set parameter
22263         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22264
22265 2011-01-05  Jan Hubicka  <jh@suse.cz>
22266
22267         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22268         at the command line.
22269
22270 2011-01-05  Martin Jambor  <mjambor@suse.cz>
22271
22272         PR lto/47162
22273         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22274         deltas on streamed outgoing edges.
22275         (output_node_opt_summary): Output info for outgoing edges only when
22276         the node is in new parameter set.
22277         (output_cgraph_opt_summary): New parameter set, passed to the two
22278         aforementioned functions.  Update its forward declaration and its
22279         callee too.
22280
22281 2011-01-05  Tom Tromey  <tromey@redhat.com>
22282
22283         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22284         operator to c_finish_omp_atomic.
22285         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22286         (build_unary_op): Update.
22287         (build_modify_expr): Update.
22288         (build_asm_expr): Update.
22289
22290 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22291
22292         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22293         newly inserted insns.
22294         (pad_bb): Likewise.
22295         (spu_emit_branch_hint): Likewise.
22296         (insert_hbrp_for_ilb_runout): Likewise.
22297         (spu_machine_dependent_reorg): Call df_finish_pass after
22298         schedule_insns returns.
22299
22300 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22301
22302         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22303
22304 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22305
22306         PR tree-optimization/47005
22307         * tree-sra.c (struct access): Add 'non_addressable' bit.
22308         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22309         (decide_one_param_reduction): Return 0 if the parameter is passed by
22310         reference and one of the accesses in the group is non_addressable.
22311
22312 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22313
22314         PR tree-optimization/47056
22315         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22316         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
22317         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
22318
22319 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22320
22321         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22322         initializer.  Skip view conversions from aggregate types.
22323
22324 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
22325
22326         PR bootstrap/47055
22327         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22328
22329 2011-01-04  Philipp Thomas  <pth@suse.de>
22330
22331         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22332         obvious typo.
22333
22334 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22335
22336         * function.c (thread_prologue_and_epilogue_insns): Do not crash
22337         on empty epilogue sequences.
22338
22339 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
22340
22341         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22342         non-static): New Driver options.
22343
22344 2011-01-04  Jie Zhang  <jie@codesourcery.com>
22345
22346         PR driver/47137
22347         * gcc.c (default_compilers[]): Set combinable field to 0
22348         for all assembly languages.
22349
22350 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
22351
22352         * config/mips/loongson3a.md: New file.
22353         * config/mips/mips.md: Include loongson3a.md.
22354         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22355         TUNE_LOONGSON_3A.
22356
22357 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22358
22359         PR middle-end/47017
22360         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22361         instead of convert_memory_address_addr_space on the base expression.
22362
22363 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22364
22365         * config/spu/spu.c (spu_option_override): Update error text
22366         for bad -march= / -mtune= values.
22367
22368 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22369
22370         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22371         if branch-hint optimization will be performed.
22372
22373 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22374
22375         PR tree-optimization/47148
22376         * ipa-split.c (split_function): Convert arguments to
22377         DECL_ARG_TYPE if possible.
22378
22379         PR tree-optimization/47155
22380         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22381         when computing uns.
22382
22383         PR rtl-optimization/47157
22384         * combine.c (try_combine): If undobuf.other_insn becomes
22385         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22386         and set *new_direct_jump_p too.
22387
22388 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22389
22390         PR tree-optimization/47021
22391         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22392
22393 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22394
22395         * gcc.c (process_command): Update copyright notice dates.
22396         * gcov.c (print_version): Likewise.
22397         * gcov-dump.c (print_version): Likewise.
22398         * mips-tfile.c (main): Likewise.
22399         * mips-tdump.c (main): Likewise.
22400
22401 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22402
22403         PR tree-optimization/46801
22404         * tree-sra.c (type_internals_preclude_sra_p): Check whether
22405         aggregate fields start at byte boundary instead of the bit-field flag.
22406
22407 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22408
22409         PR driver/47137
22410         * gcc.c (main): Revert revision 168407.
22411
22412 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22413
22414         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22415
22416 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22417
22418         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22419         vector optab to expand vector/scalar shift, update gimple to vector.
22420
22421 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22422
22423         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22424         a thunk.
22425
22426 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22427
22428         PR tree-optimization/46984
22429         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22430         HOST_WIDE_INT.
22431         (cgraph_create_indirect_edge): Fixed line length.
22432         (cgraph_indirect_call_info): Declare.
22433         (cgraph_make_edge_direct) Update declaration.
22434         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22435         (cgraph_create_indirect_edge): Use it.
22436         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
22437         callees.
22438         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22439         the new thunk_delta representation.
22440         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22441         HOST_WIDE_INT.
22442         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22443         (ipa_read_indirect_edge_info): Likewise.
22444         * lto-cgraph.c (output_edge_opt_summary): New function.
22445         (output_node_opt_summary): Call it on all outgoing edges.
22446         (input_edge_opt_summary): New function.
22447         (input_node_opt_summary): Call it on all outgoing edges.
22448
22449 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
22450
22451         PR driver/47137
22452         * gcc.c (main): Don't check have_o when settting combine_inputs.
22453
22454 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
22455
22456         * regrename.c: Add general comment describing the pass.
22457         (struct du_head): Remove 'length' field.
22458         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22459         (regrename_optimize): Do not sort chains.  Rework comments, add others.
22460         Force renaming to the preferred class (if any) in the first pass and do
22461         not consider registers that belong to it in the second pass.
22462         (create_new_chain): Do not set 'length' field.
22463         (scan_rtx_reg): Likewise.
22464
22465 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
22466
22467         PR tree-optimization/47140
22468         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22469         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22470         to bit_value_binop.
22471
22472         PR rtl-optimization/47028
22473         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22474         parm_birth_insn instead of at the beginning of first bb.
22475
22476 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
22477
22478         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22479         Remove the word "see" before "@pxref".
22480         * doc/rtl.texi: Remove the word "see" before "@pxref".
22481
22482 2011-01-01  Jan Hubicka  <jh@suse.cz>
22483
22484         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22485         memory.
22486
22487 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
22488
22489         PR target/38662
22490         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22491
22492 \f
22493 Copyright (C) 2011 Free Software Foundation, Inc.
22494
22495 Copying and distribution of this file, with or without modification,
22496 are permitted in any medium without royalty provided the copyright
22497 notice and this notice are preserved.