]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
builtins.c (fold_builtin_expect): See through the cast from truthvalue_type_node...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
be31603a
KT
12011-07-20 Kai Tietz <ktietz@redhat.com>
2
3 * builtins.c (fold_builtin_expect): See through the cast
4 from truthvalue_type_node to long.
5
c36193c6
MM
62011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7
8 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9 where we can use them from the standard and altivec instruction
10 sets, instead of always using the 3 operand VSX forms that require
11 the destination to overlap one of the inputs.
12 (vsx_fms*): Ditto.
13 (vsx_fnma*): Ditto.
14 (vsx_fnms*): Ditto.
15
16 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
17 for DF types.
18 (fmsdf4_fpr): Ditto.
19 (nfmadf4_fpr): Ditto.
20 (nfmsdf4_fpr): Ditto.
21
02aec184
SL
222011-07-20 Sandra Loosemore <sandra@codesourcery.com>
23
24 * genrecog.c (make_insn_sequence): Correct position numbering
25 when filtering out match_scratch and match_dup.
26
f8ecf734
RG
272011-07-20 Richard Guenther <rguenther@suse.de>
28
29 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
30 against already removed statements.
31 (forward_propagate_into_comparison): Remove dead defining stmts.
32 (forward_propagate_into_gimple_cond): Likewise.
33 (forward_propagate_into_cond): Simplify.
34 (ssa_forward_propagate_and_combine): Handle changed cfg from
35 forward_propagate_into_comparison.
36 * tree-ssa-phiopt.c (conditional_replacement): Use proper
37 locations for newly built statements.
38
73451ae7
GJL
392011-07-20 Georg-Johann Lay <avr@gjlay.de>
40
41 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
42
c4100a35
AK
432011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
44
45 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
46 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
47
dca412a1
RG
482011-07-20 Richard Guenther <rguenther@suse.de>
49
50 PR middle-end/18908
51 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
52 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
53 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
54
73d7e266
VM
552011-07-20 Vladimir Makarov <vmakarov@redhat.com>
56
57 * config/frv/frv.c (frv_register_move_cost): Define explicitly
58 costs for subclasses of GR_REGS.
59
5e27a6d4
UB
602011-07-20 Uros Bizjak <ubizjak@gmail.com>
61
62 PR target/49780
63 * config/i386/predicates.md (no_seg_addres_operand): No more special.
64 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
65 of DImode hard registers in base.
66 (ix86_legitimate_address_p): Allow SImode and DImode base and index
67 registers.
68
74d8fa44
RG
692011-07-20 Richard Guenther <rguenther@suse.de>
70
5e27a6d4 71 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
72 (unify_nodes): Deal with that.
73 (solve_graph): Likewise.
74
b0e43da8
CLT
752011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
76
77 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
78 canonicalize left operand from ZERO_EXTEND to AND.
79
a8c44c52
AS
802011-07-20 Anatoly Sokolov <aesok@post.ru>
81
82 * target.def (class_max_nregs): New hook.
83 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
84 * doc/tm.texi: Regenerate.
85 * targhooks.c (default_class_max_nregs): New function.
86 * targhooks.h (default_class_max_nregs): Declare.
87 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
88 x_ira_reg_class_min_nregs arrays to unsigned char.
89 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
90 hook instead of CLASS_MAX_NREGS macro.
91 * reginfo.c (restore_register_info): Ditto.
92 * ira-conflicts.c (process_regs_for_copy): Use
93 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
94 Change type rclass and aclass vars to reg_class_t.
95 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
96 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
97 reg_class_t.
98 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
99 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
100
101 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
102 * config/i386/i386.c (ix86_class_max_nregs): New function.
103 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
104 instead of CLASS_MAX_NREGS macro.
105 (TARGET_CLASS_MAX_NREGS): Define.
106 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
107 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
108 * config/avr/avr.c (class_max_nregs): Remove function.
109 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
110 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
111 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
112 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
113 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
114 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
115 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
116 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
117 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
118 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
119 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
120 * config/score/score.h (CLASS_MAX_NREGS): Remove.
121 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
122 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
123 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
124
fd811f03
EB
1252011-07-19 Eric Botcazou <ebotcazou@adacore.com>
126
127 * cif-code.def (OVERWRITABLE): Fix typo and move around.
128 (TARGET_OPTIMIZATION_MISMATCH): Delete.
129 (EH_PERSONALITY): Fix typo.
130 (NON_CALL_EXCEPTIONS): Fix message.
131 (OPTIMIZATION_MISMATCH): Adjust message.
132 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
133
78767fd9
ILT
1342011-07-19 Ian Lance Taylor <iant@google.com>
135
136 * doc/install.texi (Configuration): Document
137 --enable-build-poststage1-with-cxx.
138
0baeec1b
RM
1392011-07-19 Robert Millan <rmh@gnu.org>
140
141 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
142 (GLIBC_DYNAMIC_LINKER): Remove.
143
144 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
145 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
146 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
147 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
148 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
149 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
150
151 * config/mips/linux.h: Remove everything except for ...
152 (GLIBC_DYNAMIC_LINKER): ... this macro.
153
154 * config/mips/linux64.h: Remove everything except for ...
155 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
156 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
157 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
158 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
159 (GNU_USER_LINK_EMULATIONN32): New macros.
160
5e27a6d4
UB
161 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
162 Use the new headers.
0baeec1b 163
754c3d5d
RS
1642011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
165
166 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
167 Add offset_known_p and size_known_p fields.
168 (MEM_OFFSET_KNOWN_P): Update accordingly.
169 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
170 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
171 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
172 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
173 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
174 (init_emit_regs): Likewise.
175
527210c4
RS
1762011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
177
178 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
179 (MEM_OFFSET): Change from returning an rtx to returning a
180 HOST_WIDE_INT.
181 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
182 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
183 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
184 (clear_mem_offset): Declare.
185 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
186 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
187 MEM_OFFSET to get a HOST_WIDE_INT offset.
188 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
189 (adjust_offset_for_component_ref): Take a bool "known_p"
190 parameter and a HOST_WIDE_INT "offset" parameter.
191 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
192 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
193 than an rtx. Use clear_mem_offset to clear the offset.
194 * cfgcleanup.c (merge_memattrs): Likewise.
195 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
196 * function.c (assign_parm_find_stack_rtl): Likewise.
197 (assign_parm_setup_stack): Likewise.
198 * print-rtl.c (print_rtx): Likewise.
199 * reload.c (find_reloads_subreg_address): Likewise.
200 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
201 * var-tracking.c (INT_MEM_OFFSET): Likewise.
202 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
203 (get_mem_align_offset): Likewise.
204 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
205 (clear_mem_offset): New function.
206 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
207 offset rather than an rtx. Assume both the expressio and offset
208 are available.
209 (r10k_needs_protection_p_1): Update accordingly, checking the
210 expression and offset availability here instead.
211
f5541398
RS
2122011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
213
214 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
215 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
216 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
217 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
218 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
219 (clear_mem_size): Declare.
220 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
221 (clear_mem_size): New function.
222 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
223 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
224 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
225 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
226 to clear the size.
227 (nonoverlapping_memrefs_p): Likewise.
228 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
229 (expand_builtin_init_trampoline): Likewise.
230 * calls.c (compute_argument_addresses): Likewise.
231 * cfgcleanup.c (merge_memattrs): Likewise.
232 * dce.c (find_call_stack_args): Likewise.
233 * dse.c (record_store, scan_insn): Likewise.
234 * dwarf2out.c (dw_sra_loc_expr): Likewise.
235 * expr.c (emit_block_move_hints): Likewise.
236 * function.c (assign_parm_find_stack_rtl): Likewise.
237 * print-rtl.c (print_rtx): Likewise.
238 * reload.c (find_reloads_subreg_address): Likewise.
239 * rtlanal.c (may_trap_p_1): Likewise.
240 * var-tracking.c (track_expr_p): Likewise.
241 * varasm.c (assemble_trampoline_template): Likewise.
242 * config/arm/arm.c (arm_print_operand): Likewise.
243 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
244 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
245 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
246 (expand_constant_setmem_prologue): Likewise.
247 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
248 * config/rs6000/rs6000.c (expand_block_move): Likewise.
249 (adjacent_mem_locations): Likewise.
250 * config/s390/s390.c (s390_expand_setmem): Likewise.
251 (s390_expand_insv): Likewise.
252 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
253 (*extendqi<mode>2_short_displ): Likewise.
254 * config/sh/sh.c (expand_block_move): Likewise.
255 * config/sh/sh.md (extv, extzv): Likewise.
256
f12144dd
RS
2572011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
258
259 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
260 (mem_attrs_htab_eq): ...here.
261 (find_mem_attrs): Replace with...
262 (set_mem_attrs): ...this function. Take a mem_attrs structure
263 rather than individual fields.
264 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
265 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
266 (set_mem_size, change_address, adjust_address_1, offset_address)
267 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
268 Update accordingly.
269
1c3f523e
RS
2702011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
271
272 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
273 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
274 Provide a dummy definition of MEM_ADDR_SPACE for generators.
275 (target_rtl): Add x_mode_mem_attrs.
276 (mode_mem_attrs): New macro.
277 (get_mem_attrs): New function.
278 * emit-rtl.c (get_mem_attrs): Rename to...
279 (find_mem_attrs): ...this.
280 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
281 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
282 (set_mem_size, change_address, adjust_address_1, offset_address)
283 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
284 Update accordingly.
285 (init_emit_regs): Initialize mode_mem_attrs.
286
3046b1a9
RG
2872011-07-19 Richard Guenther <rguenther@suse.de>
288
289 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
290 TRUTH_*_EXPR handling.
291 * tree-ssa-operands.c (get_expr_operands): Likewise.
292 * tree-ssa-pre.c (fully_constant_expression): Likewise.
293 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
294 Likewise.
295 (is_and_or_or): Likewise.
296 (is_norm_cond_subset_of): Likewise.
297
5d49b6a7
RG
2982011-07-19 Richard Guenther <rguenther@suse.de>
299
300 * tree.h (fold_build_pointer_plus_loc): New helper function.
301 (fold_build_pointer_plus_hwi_loc): Likewise.
302 (fold_build_pointer_plus): Define.
303 (fold_build_pointer_plus_hwi): Likewise.
304 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
305 (fold_builtin_memory_op): Likewise.
306 (fold_builtin_stpcpy): Likewise.
307 (fold_builtin_memchr): Likewise.
308 (fold_builtin_strstr): Likewise.
309 (fold_builtin_strchr): Likewise.
310 (fold_builtin_strrchr): Likewise.
311 (fold_builtin_strpbrk): Likewise.
312 (fold_builtin_strcat): Likewise.
313 (expand_builtin_memory_chk): Likewise.
314 (fold_builtin_memory_chk): Likewise.
315 * c-typeck.c (build_unary_op): Likewise.
316 * cgraphunit.c (thunk_adjust): Likewise.
317 * fold-const.c (build_range_check): Likewise.
318 (fold_binary_loc): Likewise.
319 * omp-low.c (extract_omp_for_data): Likewise.
320 (expand_omp_for_generic): Likewise.
321 (expand_omp_for_static_nochunk): Likewise.
322 (expand_omp_for_static_chunk): Likewise.
323 * tree-affine.c (add_elt_to_tree): Likewise.
324 * tree-data-ref.c (split_constant_offset_1): Likewise.
325 * tree-loop-distribution.c (generate_memset_zero): Likewise.
326 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
327 * tree-predcom.c (ref_at_iteration): Likewise.
328 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
329 (add_to_parts): Likewise.
330 (create_mem_ref): Likewise.
331 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
332 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
333 (number_of_iterations_le): Likewise.
334 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
335 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
336 (vect_create_addr_base_for_vector_ref): Likewise.
337 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
338 (vect_create_cond_for_alias_checks): Likewise.
339 * tree-vrp.c (extract_range_from_assert): Likewise.
340 * config/alpha/alpha.c (alpha_va_start): Likewise.
341 (alpha_gimplify_va_arg_1): Likewise.
342 * config/i386/i386.c (ix86_va_start): Likewise.
343 (ix86_gimplify_va_arg): Likewise.
344 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
345 * config/mep/mep.c (mep_expand_va_start): Likewise.
346 (mep_gimplify_va_arg_expr): Likewise.
347 * config/mips/mips.c (mips_va_start): Likewise.
348 (mips_gimplify_va_arg_expr): Likewise.
349 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
350 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
351 (rs6000_gimplify_va_arg): Likewise.
352 * config/s390/s390.c (s390_va_start): Likewise.
353 (s390_gimplify_va_arg): Likewise.
354 * config/sh/sh.c (sh_va_start): Likewise.
355 (sh_gimplify_va_arg_expr): Likewise.
356 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
357 * config/spu/spu.c (spu_va_start): Likewise.
358 (spu_gimplify_va_arg_expr): Likewise.
359 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
360 Likewise.
361 (xstormy16_gimplify_va_arg_expr): Likewise.
362 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
363 (xtensa_gimplify_va_arg_expr): Likewise.
364
d906fd7f
RG
3652011-07-19 Richard Guenther <rguenther@suse.de>
366
367 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
368 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
369 handling.
370
371 PR middle-end/18908
372 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
373 result of BIT_*_EXPR to bitfield precision.
374
1b14d815
RS
3752011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
376
377 PR tree-optimization/49742
378 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
379 as a potential write.
380
d906fd7f
RG
3812011-07-19 Richard Guenther <rguenther@suse.de>
382
383 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
384 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
385 (forward_propagate_comparison): Simplify, remove obsolete code.
386
53020648
RG
3872011-07-19 Richard Guenther <rguenther@suse.de>
388
389 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
390 BIT_XOR_EXPR, same as the RTL expander does.
391 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
392 (verify_gimple_assign_unary): Likewise.
393 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
394 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
395 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
396
b8b2b009
JJ
3972011-07-19 Jakub Jelinek <jakub@redhat.com>
398
399 PR tree-optimization/49768
400 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
401 if offset is smaller than bitoffset, but offset+size is bigger
402 than bitoffset.
403
338f655d
IR
4042011-07-19 Ira Rosen <ira.rosen@linaro.org>
405
406 PR tree-optimization/49771
407 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
408 zero step, set segment length to the size of the data-ref's type.
409
310bc633
MJ
4102011-07-18 Martin Jambor <mjambor@suse.cz>
411
412 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
413 comments.
414 (ipcp_values_pool): Declare.
415 (ipcp_sources_pool): Likewise.
416 (ipcp_lattice): Changed to forward declaration.
417 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
418 cannot_devirtualize.
419 (ipa_node_params): New fields descriptors, lattices, known_vals,
420 clone_for_all_contexts and node dead, removed fields params and
421 count_scale.
422 (ipa_set_param_count): Removed.
423 (ipa_get_param_count): Made to work with descriptors vector.
424 (ipa_get_param): Updated.
425 (ipa_param_cannot_devirtualize_p): Removed.
426 (ipa_param_types_vec_empty): Likewise.
427 (ipa_set_param_used): New function.
428 (ipa_get_param_used): Updated to use descriptors vector.
429 (ipa_func_list): Removed.
430 (ipa_init_func_list): Removed declaration.
431 (ipa_push_func_to_list_1): Likewise.
432 (ipa_pop_func_from_list): Likewise.
433 (ipa_push_func_to_list): Removed.
434 (ipa_lattice_from_jfunc): Remove declaration.
435 (ipa_get_jf_pass_through_result): Declare.
436 (ipa_get_jf_ancestor_result): Likewise.
437 (ipa_value_from_jfunc): Likewise.
438 (ipa_get_lattice): Update.
439 (ipa_lat_is_single_const): New function.
440 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
441 (ipa_init_func_list): Likewise.
442 (ipa_pop_func_from_list): Likewise.
443 (ipa_get_param_decl_index): Fix coding style.
444 (count_formal_params): Removed.
445 (count_formal_params_1): Renamed to count_formal_params.
446 (ipa_populate_param_decls): Update to use descriptors vector.
447 (ipa_initialize_node_params): Likewise.
448 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
449 (ipa_analyze_params_uses): Likewise.
450 (ipa_free_node_params_substructures): Likewise and free also lattices
451 and known values.
452 (duplicate_array): Removed.
453 (ipa_edge_duplication_hook): Add the new edge to the list of edge
454 clones.
455 (ipa_node_duplication_hook): Update to use new lattices.
456 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
457 (ipa_free_all_structures_after_iinln): Likewise.
458 (ipa_write_node_info): Update to use new lattices.
459 (ipa_read_node_info): Likewise.
460 (ipa_get_jf_pass_through_result): New function.
461 (ipa_get_jf_ancestor_result): Likewise.
462 (ipa_value_from_jfunc): Likewise.
463 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
464 * ipa-cp.c: Reimplemented.
465 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
466 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
467 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
468 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
469 * doc/invoke.texi (devirt-type-list-size): Removed description.
470 (ipa-cp-value-list-size): Added description.
471
6774a66f
RH
4722011-07-18 Richard Henderson <rth@redhat.com>
473
474 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
475 before calling create_basic_block.
476
8b316874
JJ
4772011-07-18 Jakub Jelinek <jakub@redhat.com>
478
479 PR middle-end/49675
480 * tree.c (build_common_builtin_nodes): Register
481 __builtin_return_address, __cyg_profile_func_enter
482 and __cyg_profile_func_exit.
483
9f68560b
RH
4842011-07-18 Richard Henderson <rth@redhat.com>
485
486 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
487 (add_labels_and_missing_jumps): ... here.
488 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
489
03126412
UB
4902011-07-18 Uros Bizjak <ubizjak@gmail.com>
491
492 PR target/47744
493 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
494 of DImode hard registers in PLUS address chains.
495
fbf80ef7
RO
4962011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
497
498 PR bootstrap/49769
499 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
500 (alpha*-*-freebsd*): Likewise.
501 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
502 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
503 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
504 crtprec80.o, crtfastmath.o to extra_parts for all targets.
505 (ia64*-*-elf*): Remove extra_parts.
506 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
507 (sparc64-*-linux*): Likewise.
508 (sparc64-*-freebsd*): Likewise.
509
510 Revert:
511 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
512 (ia64*-*-linux*): Likewise.
513 (mips64*-*-linux*): Likewise.
514 (mips*-*-linux*): Likewise.
515
daf633ba
DE
5162011-07-18 David Edelsohn <dje.gcc@gmail.com>
517
518 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
519
4b4455e5
RG
5202011-07-18 Richard Guenther <rguenther@suse.de>
521
522 * gimplify.c (gimplify_expr): Use input_location, not saved_location
523 when building new trees.
524
e002c7cb
RG
5252011-07-18 Richard Guenther <rguenther@suse.de>
526
527 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
528 expansion result to bitfield precision if required.
529
e44dbbe1
RO
5302011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
531
532 * config.gcc (i[3456x]86-*-netware*): Remove.
533
534 * gthr-nks.h: Remove.
535 * configure.ac (enable_threads): Remove nks.
536 * configure: Regenerate.
537
538 * config/i386/i386.c (ix86_encode_section_info): Remove netware
539 reference.
540 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
541 <netware.h> reference.
542
543 * config/i386/netware-libgcc.c,
544 gcc/config/i386/netware-libgcc.def,
545 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
546 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
547 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
548 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
549
550 * doc/extend.texi (Function Attributes,
551 callee_pop_aggregate_return): Remove i?86-netware reference.
552 * doc/install.texi (Configuration, --enable-threads): Remove nks.
553
fd862017
JDA
5542011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
555
556 PR target/49746
557 Revert:
558 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
559
560 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
561 patterns.
562
1ff24749
EB
5632011-07-17 Eric Botcazou <ebotcazou@adacore.com>
564
565 PR middle-end/49732
566 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
567
a4a2c37d
MK
5682011-07-16 Matthias Klose <doko@ubuntu.com>
569
570 * doc/install.texi: Document --enable-static-libjava.
571
ea6136a2
RH
5722011-07-15 Richard Henderson <rth@redhat.com>
573
574 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
575 Replace all three arguments by returning a VEC of edges.
576 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
577 pointers and counts.
578 (fix_edges_for_rarely_executed_code): Merge ...
579 (rest_of_handle_partition_blocks): ... into...
580 (partition_hot_cold_basic_blocks): ... here. Return todo items if
581 any work was performed.
582 (pass_partition_blocks): Clear todo_flags_finish.
583
6545e33e
PC
5842011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
585 Jakub Jelinek <jakub@redhat.com>
586 Jonathan Wakely <jwakely.gcc@gmail.com>
587
588 PR libstdc++/49745
589 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
590 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
591
6feeed06
JM
5922011-07-15 Jason Merrill <jason@redhat.com>
593
594 PR testsuite/49741
595 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
596 rather than --tool_opts.
597
44762055
BS
5982011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
599
600 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 601 corresponding gtype.state.
44762055 602
1be0310c
JDA
6032011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
604
605 PR target/49723
606 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
607
12c5ffe5
EB
6082011-07-15 Eric Botcazou <ebotcazou@adacore.com>
609
610 PR target/48220
611 * doc/md.texi (Standard Names): Document window_save.
612 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
613 expand_debug_expr and expand_debug_source_expr. If the target has
614 a window_save instruction, adjust the ENTRY_VALUE_EXP.
615 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
616 SSA_NAME_VAR is a parameter.
617 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
618 * var-tracking.c (parm_reg_t): New type and associated vector type.
619 (windowed_parm_regs): New variable.
620 (adjust_insn): If the target has a window_save instruction and this
621 is the instruction, make its effect on parameter registers explicit.
622 (next_non_note_insn_var_location): New function.
623 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
624 (vt_add_function_parameter): If the target has a window_save insn,
625 adjust the incoming RTL and record that in windowed_parm_regs.
626 (vt_finalize): Free windowed_parm_regs.
627
bcead286
BS
6282011-07-15 Bernd Schmidt <bernds@codesourcery.com>
629
630 * doc/invoke.texi (C6X Options): New section.
631 * doc/md.texi (TI C6X family): New section.
632 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
633 tic6x-*-uclinux.
634 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
635 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
636 Provide C6X definitions.
637 * config/c6x/c6x.md: New file.
638 * config/c6x/constraints.md: New file.
639 * config/c6x/predicates.md: New file.
640 * config/c6x/c6x-sched.md.in: New file.
641 * config/c6x/c6x-sched.md: New file.
642 * config/c6x/gensched.sh: New file.
643 * config/c6x/c6x-mult.md.in: New file.
644 * config/c6x/genmult.sh: New file.
645 * config/c6x/c6x-mult.md: New file.
646 * config/c6x/sync.md: New file.
647 * config/c6x/c6x-protos.h: New file.
648 * config/c6x/sfp-machine.h: New file.
649 * config/c6x/c6x.c: New file.
650 * config/c6x/c6x.h: New file.
651 * config/c6x/crti.s: New file.
652 * config/c6x/crtn.s: New file.
653 * config/c6x/lib1funcs.asm: New file.
654 * config/c6x/c6x-modes.def: New file.
655 * config/c6x/genopt.sh: New file.
656 * config/c6x/c6x.opt: New file.
657 * config/c6x/c6x-tables.opt: New file.
658 * config/c6x/c6x-opts.h: New file.
659 * config/c6x/c6x-isas.def: New file.
660 * config/c6x/elf.h: New file.
661 * config/c6x/elf-common.h: New file.
662 * config/c6x/uclinux-elf.h: New file.
663 * config/c6x/t-c6x: New file.
664 * config/c6x/t-c6x-elf: New file.
665 * config/c6x/t-c6x-uclinux: New file.
666 * config/c6x/t-c6x-softfp: New file.
667 * config/c6x/gtd.c: New file.
668 * config/c6x/gtf.c: New file.
669 * config/c6x/ltd.c: New file.
670 * config/c6x/ltf.c: New file.
671 * config/c6x/ged.c: New file.
672 * config/c6x/gef.c: New file.
673 * config/c6x/led.c: New file.
674 * config/c6x/lef.c: New file.
675 * config/c6x/eqd.c: New file.
676 * config/c6x/eqf.c: New file.
677 * config/c6x/libgcc-c6xeabi.ver: New file.
678
aef0e7a8
BS
679 Revert
680 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
681 PR rtl-optimization/11320
682 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
683 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
684 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
685 current_sched_info->compute_jump_reg_dependencies. Record which
686 registers are used and which registers are set by the jump.
687 Clear deps->reg_conditional_sets after a barrier.
688 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
689 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
690 (init_deps): Initialize reg_conditional_sets.
691 (free_deps): Clear reg_conditional_sets.
692 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
693 Mark registers live on entry of the fallthrough block and conditionally
694 set as set by the jump. Mark registers live on entry of non-fallthrough
695 blocks as used by the jump.
696 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
697 Mark new parameters as unused.
698
9bed2f0d
AP
6992011-07-14 Andrew Pinski <pinskia@gmail.com>
700
701 PR tree-opt/49309
702 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
703 Use fold_build2_loc instead of build2.
704 Use the correct type for the new tree.
705
1f88caaa
BS
7062011-07-14 Bernd Schmidt <bernds@codesourcery.com>
707
708 PR rtl-optimization/11320
709 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
710 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
711
d772f97c 7122011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 713
d772f97c
GJL
714 PR target/49487
715 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
716 of REG.
717 (*rotw<mode>): Use const_int_operand for operand2.
718 Use match_scatch for operand3.
719 (*rotb<mode>): Ditto
720 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
721
1a5d20a4
RG
7222011-07-14 Richard Guenther <rguenther@suse.de>
723
724 PR tree-optimization/49651
725 * tree-ssa-structalias.c (get_constraint_for_1): Properly
726 handle dereferences with subvariables.
727
5fbcc0ed
RG
7282011-07-14 Richard Guenther <rguenther@suse.de>
729
730 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
731 (fold_stmt_1): Do it here directly on gimple and as a first thing.
732
fbf3fee2
RG
7332011-07-14 Richard Guenther <rguenther@suse.de>
734
735 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
736 not bool_var when folding bool_var != 1 or bool_var == 0.
737
b953c2b8
BS
7382011-07-14 Bernd Schmidt <bernds@codesourcery.com>
739
740 * haifa-sched.c (schedule_insns): Remove outdated comment.
741 (schedule_block): When computing a known value for TODO_SPEC,
742 just set it rather than using logical operations.
743 (try_ready): Likewise. Use a local variable rather than a
744 pointer to TODO_SPEC. Reorder an if statement to move the
745 easy case to the then block.
746 * sched-deps.c (dep_spec_p): New static function.
747 (update_dep): Use it to decide whether to call
748 change_spec_dep_to_hard.
749 (get_back_and_forw_lists): Use it.
750 (sd_resolve_dep): Likewise.
751 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
752 (haifa_note_mem_dep): Likewise.
753 (check_dep): Likewise.
754 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
755 (sched_free_deps): Free in two passes.
756
1f098f07
RS
7572011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
758
759 PR middle-end/49736
760 * expr.c (all_zeros_p): Undo bogus part of last change.
761
73059910
MK
7622011-07-14 Matthias Klose <doko@ubuntu.com>
763
764 * doc/extend.texi (optimize attribute): Fix typo.
765
bd5d002e
RG
7662011-07-14 Richard Guenther <rguenther@suse.de>
767
768 * gimplify.c (gimplify_expr): Only do required conversions.
769
eb1dcdff
GJL
7702011-07-14 Georg-Johann Lay <avr@gjlay.de>
771
772 PR target/43746
773 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
774 i.e. use default_elf_select_section.
775 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
776 (READONLY_DATA_SECTION_ASM_OP): Remove.
777 (TARGET_ASM_NAMED_SECTION): Move from here...
778 * config/avr/avr.c: ...to here.
03126412 779 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
780 (avr_asm_named_section): Make static.
781
d31fb329
RO
7822011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
783
784 PR bootstrap/49739
03126412
UB
785 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
786 and crtfastmath.o for Linux/x86.
d31fb329 787
26965010
BS
7882011-07-14 Bernd Schmidt <bernds@codesourcery.com>
789
790 * haifa-sched.c: Include "hashtab.h"
791 (sched_no_dce): New global variable.
792 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
793 SHADOW_P): New macros.
794 (last_clock_var, cycle_issued_insns): Move declarations.
795 (must_backtrack): New static variable.
796 (struct delay_pair): New structure.
797 (delay_htab, delay_htab_i2): New static variables.
798 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
799 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
800 functions.
801 (dep_cost_1): If delay pairs exist, try to look up the insns and
802 use the correct pair delay if we find them.
803 (rank-for_schedule): Tweak priority for insns that must be scheduled
804 soon to avoid backtracking.
805 (queue_insn): Detect conditions which force backtracking.
806 (ready_add): Likewise.
807 (struct sched_block_state): Add member shadows_only_p.
808 (struct haifa_save_data): New structure.
809 (backtrack_queue): New static variable.
810 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
811 unschedule_insns_until, restore_last_backtrack_point,
812 free_topmost_backtrack_point, free_backtrack_queue,
813 estimate_insn_tick, estimate_shadow_tick): New functions.
814 (prune_ready_list): New arg shadows_only_p. All callers changed.
815 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 816 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
817 (verify_shadows): New function.
818 (schedule_block): Add machinery to enable backtracking.
819 (sched_init): Take sched_no_dce into account when setting
820 DF_LR_RUN_DCE.
821 (free_delay_pairs): New function.
822 (init_h_i_d): Initialize INSN_EXACT_TICK.
823 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
824 * sched-deps.c (sd_unresolve_dep): New function.
825 * sched-int. (struct haifa_sched_info): New fields save_state
826 and restore_state.
827 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
828 feeds_backtrack_insn and shadow_p.
829 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
830 (sched_no_dce): Declare variable.
831 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
832 sd_unresolve_dep): Declare functions.
833 * modulo-sched.c (sms_sched_info): Clear the two new fields.
834 * sched-rgn.c (rgn_const_sched_info): Likewise.
835 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
836 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
837 (ebb_sched_info): Add them for the two new fields.
838 (add_deps_for_risky_insns): Call add_delay_dependencies.
839
1db75f6c
MM
8402011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
841
842 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
843 Rename -mr11.
844 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
845 (rs6000_call_indirect_aix): Ditto.
846 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
847 (call_indirect_aix<ptrsize>_internal): Ditto.
848 (call_indirect_aix<ptrsize>_nor11): Ditto.
849 (call_indirect_aix<ptrsize>_internal2): Ditto.
850 (call_value_indirect_aix<ptrsize>): Ditto.
851 (call_value_indirect_aix<ptrsize>_internal): Ditto.
852 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
853 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
854 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
855
e2995714
JM
8562011-07-13 Jason Merrill <jason@redhat.com>
857
858 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
859
4dfe3ad5
UW
8602011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
861
862 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
863 * config/spu/spu.md ("clrsb<mode>2"): New expander.
864
dddc6762
TS
8652011-07-13 Thomas Schwinge <thomas@schwinge.name>
866
867 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
868 * configure: Regenerate.
869
b4d80e56
UW
8702011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
871
872 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
873 (asm_file_start): Remove.
874 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
875 free_bb_for_insn around code that modifies insns before
876 restarting df analysis.
877
9e34e53f
RO
8782011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
879
880 PR target/49541
03126412 881 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
882 (LINK_SPEC): ... here.
883
51564684
BS
8842011-07-13 Bernd Schmidt <bernds@codesourcery.com>
885
886 * haifa-sched.c (struct sched_block_state): New.
887 (schedule_block): Move some local variables into such a structure.
888
b3fe1584
RO
8892011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
890
891 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
892 * config/i386/t-crtpc: Remove.
893 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
894 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
895 tmake_file.
896 (x86_64-*-darwin*): Likewise.
897 (i[34567]86-*-linux*): Likewise.
898 (x86_64-*-linux*): Likewise.
899
900 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
901 Handle -mpc32, -mpc64, -mpc80.
902
35d8090d
RO
9032011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
904
905 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
906 * config/alpha/t-crtfm: Remove.
907 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
908 * config/i386/t-crtfm: Remove.
909 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
910 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
911 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
912 * config/sparc/t-crtfm: Remove.
913
914 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
915 (alpha*-*-freebsd*): Likewise.
916 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
917 (x86_64-*-darwin*): Likewise.
918 (i[34567]86-*-linux*): Likewise.
919 (x86_64-*-linux*): Likewise.
920 (x86_64-*-mingw*): Likewise.
921 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
922 (ia64*-*-freebsd*): Likewise.
923 (ia64*-*-linux*): Likewise.
924 (mips64*-*-linux*): Likewise.
925 (mips*-*-linux*): Likewise.
926 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
927 (sparc64-*-linux*): Likewise.
928 (sparc64-*-freebsd*): Likewise.
929
e141542e
RO
9302011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
931
932 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
933 * config/darwin-crt3.c: Move to ../libgcc/config.
934 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
935 ($(T)crt3$(objext)): Remove.
936 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
937 ($(T)crt2$(objext)): Remove.
938 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
939 (powerpc64-*-darwin*): Likewise.
940
72fbc381
L
9412011-07-13 H.J. Lu <hongjiu.lu@intel.com>
942
03126412 943 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
944
945 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
946 (addsi_1_zext): This.
947
727a65e6
BS
9482011-07-13 Bernd Schmidt <bernds@codesourcery.com>
949
950 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
951 * doc/tm.texi: Regenerate.
73451ae7 952 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
953 * varasm.c (mergeable_string_section, mergeable_constant_section):
954 Use it. Allocate name with alloca.
955
cb77b6cf
L
9562011-07-13 H.J. Lu <hongjiu.lu@intel.com>
957
958 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
959
36fc3799
RS
9602011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
961
962 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
963 overlap check.
964
953d0c90
RS
9652011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
966
967 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
968 (count_type_elements): Delete.
969 (complete_ctor_at_level_p): Declare.
970 * expr.c (flexible_array_member_p): New function, split out from...
971 (count_type_elements): ...here. Make static. Replace allow_flexarr
972 parameter with for_ctor_p. When for_ctor_p is true, return the
973 number of elements that should appear in the top-level constructor,
974 otherwise return an estimate of the number of scalars.
975 (categorize_ctor_elements): Replace p_must_clear with p_complete.
976 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
977 (complete_ctor_at_level_p): New function, borrowing union logic
978 from old categorize_ctor_elements_1.
979 (mostly_zeros_p): Return true if the constructor is not complete.
980 (all_zeros_p): Update call to categorize_ctor_elements.
981 * gimplify.c (gimplify_init_constructor): Update call to
982 categorize_ctor_elements. Don't call count_type_elements.
983 Unconditionally prevent clearing for variable-sized types,
984 otherwise rely on categorize_ctor_elements to detect
985 incomplete initializers.
986
9111c715
RG
9872011-07-13 Richard Guenther <rguenther@suse.de>
988
989 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
990 the final type is integral.
991
a19af9c4
BS
9922011-07-13 Bernd Schmidt <bernds@codesourcery.com>
993
994 * sched-int.h (struct _dep): Add member cost.
995 (DEP_COST, UNKNOWN_DEP_COST): New macros.
996 * sched-deps.c (init_dep_1): Initialize DEP_COST.
997 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
998 (sched_change_pattern): Reset it for dependent insns.
999
2d1efe2d
RO
10002011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1001
1002 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1003 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1004 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1005 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1006 (CRT0_S, MCRT0_S): Remove.
1007 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1008 Remove.
1009 (s-crt0): Remove.
1010 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1011
e84a58ff
EB
10122011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1013
1014 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1015 on the next line.
1016 * emit-rtl.c (push_to_sequence): Likewise.
1017 * haifa-sched.c (max_issue): Likewise.
1018 * matrix-reorg.c (add_allocation_site): Likewise.
1019 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1020 * reload.c (alternative_allows_const_pool_ref): Likewise.
1021 * sched-rgn.c (rgn_add_block): Likewise.
1022 (rgn_fix_recovery_cfg): Likewise.
1023 * tree.c (attribute_list_contained): Likewise.
1024
3a4ffde6
UB
10252011-07-12 Uros Bizjak <ubizjak@gmail.com>
1026
1027 * config/i386/i386.c: Tidy processor feature bitmasks.
1028 (m_P4_NOCONA): New.
1029
10b75750
AP
10302011-07-12 Andrew Pinski <pinskia@gmail.com>
1031
1032 PR rtl-opt/49474
1033 * cprop.c (find_implicit_sets): Correct the condition.
1034
4f42d714
RH
10352011-07-12 Richard Henderson <rth@redhat.com>
1036
1037 PR target/49713
1038 * dwarf2out.h (dwarf_frame_regnum): Remove.
1039 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1040 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1041 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1042 (execute_dwarf2_frame): Initialize them.
1043 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1044 users of the macros with the variables.
1045 (expand_builtin_dwarf_sp_column): Revert last change.
1046 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1047 result of DWARF_FRAME_REGNUM into a local variable.
1048
3a5e4ad6
RH
10492011-07-12 Richard Henderson <rth@redhat.com>
1050
1051 PR target/49714
1052 * config/i386/i386.c (x86_output_mi_thunk): Use
1053 machopic_indirect_call_target instead of machopic_indirection_name
1054 directly.
1055
9e9bd455
LG
10562011-07-12 Laurent GUERBY <laurent@guerby.net>
1057 Eric Botcazou <ebotcazou@adacore.com>
1058
1059 * prefix.h: Wrap up in extern "C" block.
1060
4d652a18
HJ
10612011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1062
1063 AMD bdver2 Enablement
1064 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1065 (case ${target}): Add bdver2.
1066 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1067 -march=native recognize bdver2 processors.
1068 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1069 bdver2 def_and_undef
1070 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1071 bdver2 cost table.
1072 (m_BDVER2): New definition.
1073 (m_AMD_MULTIPLE): Includes m_BDVER2.
1074 (initial_ix86_tune_features): Add bdver2 tuning.
1075 (processor_target_table): Add bdver2 entry.
1076 (static const char *const cpu_names): Add bdver2 entry.
1077 (ix86_option_override_internal): Add bdver2 instruction sets.
1078 (ix86_issue_rate): Add bdver2.
1079 (ix86_adjust_cost): Add bdver2.
1080 (has_dispatch): Add bdver2.
1081 * config/i386/i386.h (TARGET_BDVER2): New definition.
1082 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1083 (enum processor_type): Add PROCESSOR_BDVER2.
1084 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1085 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1086 description.
1087
5756d08c
RH
10882011-07-12 Richard Henderson <rth@redhat.com>
1089
1090 PR target/49714
1091 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1092 destination address in memory on some paths.
1093
123148b5
BS
10942011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1095
1096 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1097 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1098 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1099 * function.c (locate_and_pad_parm): Take it into account.
1100 * target.def (function_arg_round_boundary): New hook.
1101 * targhooks.c (default_function_arg_round_boundary): New function.
1102 * targhooks.h (default_function_arg_round_boundary): Declare.
1103 * doc/tm.texi: Regenerate.
1104
b7a83ad8
RG
11052011-07-12 Richard Guenther <rguenther@suse.de>
1106
1107 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1108 Do not perform no-op changes.
1109
12c4ecb1
RS
11102011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1111
1112 * config/arm/predicates.md (neon_struct_operand): Make a normal
1113 predicate.
1114 (neon_struct_or_register_operand): New predicate.
1115 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1116 with neon_struct_or_register_operand.
1117 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1118 neon_struct_operand instead of memory_operand.
1119
ab079773
MJ
11202011-07-12 Martin Jambor <mjambor@suse.cz>
1121
1122 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1123 * cgraph.c (cgraph_get_node_or_alias): Removed.
1124 (change_decl_assembler_name): Changed all calls to
1125 cgraph_get_node_or_alias to a call to cgraph_get_node.
1126 (cgraph_make_decl_local): Likewise.
1127 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1128 * varasm.c (default_binds_local_p_1): Likewise.
1129 (decl_binds_to_current_def_p): Likewise.
1130
d5fed62d
JJ
11312011-07-12 Jakub Jelinek <jakub@redhat.com>
1132
1133 PR tree-optimization/49712
1134 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1135
c0b6224a
BS
11362011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1137
1138 * genautomata.c (add_arc): Return void. All callers changed.
1139 (make_automaton): Remove dead code.
1140
7263c6d7
RH
11412011-07-11 Richard Henderson <rth@redhat.com>
1142
1143 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1144 (DW_FRAME_POINTER_REGNUM): New.
1145 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1146 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1147 (dwf_regno): New.
1148 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1149 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1150 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1151 Use it.
1152 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1153 * dwarf2out.h (dwarf_frame_regnum): New.
1154 (struct cfa_loc): Document the domain of the reg member.
1155
f9610d20
UB
11562011-07-11 Uros Bizjak <ubizjak@gmail.com>
1157
1158 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1159 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1160
96ae7458
JJ
11612011-07-11 Jakub Jelinek <jakub@redhat.com>
1162
1163 PR debug/49676
1164 * dwarf2out.c (int_shift_loc_descriptor): New function.
1165 (int_loc_descriptor): If shorter, emit i as
1166 (i >> shift), shift, DW_OP_shl for suitable shift value.
1167 Similarly, try to optimize large negative values using
1168 DW_OP_neg of a positive value if shorter.
1169 (size_of_int_shift_loc_descriptor): New function.
1170 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1171 changes.
1172 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1173 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1174 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1175 is shorter.
1176 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1177 addend as added DW_OP_plus if it is shorter.
1178
feffaec4
RO
11792011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1182 (DTORS_SECTION_ASM_OP): Define.
1183
2d8d5935
RO
11842011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1185
1186 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1187 * config/t-dfprules: Move to ../libgcc/config.
1188 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1189 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1190 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1191 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1192 Likewise.
1193 (i[34567]86-*-cygwin*): Likewise.
1194 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1195 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1196 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1197 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1198 D64PBIT_FUNCS, D128PBIT_FUNCS.
1199
dcc95c20
RG
12002011-07-11 Richard Guenther <rguenther@suse.de>
1201
1202 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1203 translate the source value-range through the conversion chain.
1204
28164eed
RS
12052011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1206
1207 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1208
f3054223
AL
12092011-07-11 Arthur Loiret <aloiret@debian.org>
1210
1211 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1212 a bi-arch compiler defaulting to 31-bit. In this case:
1213 (tmake_file): Add s390/t-linux64.
1214 * doc/install.texi: Add s390-linux to the list of targets supporting
1215 --enable-targets=all.
1216
bd5ab709
AL
12172011-07-11 Arthur Loiret <aloiret@debian.org>
1218 Matthias Klose <doko@debian.org>
1219
1220 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1221 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1222 (tm_file): Add mips/linux64.h.
1223 (tmake_file): Add mips/t-linux64.
1224 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1225 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1226 instead of hardcoded mabi=n32.
1227 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1228 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1229 convention.
1230
d3b7e946
AK
12312011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1232
1233 * passes.c (init_optimization_passes): Add invariant motion pass
1234 after induction variable optimization.
1235
7e4ec472 12362011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1237
7e4ec472
GJL
1238 PR target/39633
1239 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1240 offsets 1..5 set cc0 in a usable way.
1241
0e65e631
RG
12422011-07-11 Romain Geissler <romain.geissler@gmail.com>
1243
1244 * tree.h (call_expr_arg): Remove.
1245 (call_expr_argp): Likewise.
1246
18970372
EB
12472011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1248
1249 * config/sparc/sparc.md (save_register_window_1): Rename to...
1250 (window_save): ...this.
1251 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1252 (emit_window_save): ...this.
1253 (sparc_expand_prologue): Adjust to above renaming.
1254
9e419e38
L
12552011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1258 of movabs for x32.
1259
3db72de3
RH
12602011-07-10 Richard Henderson <rth@redhat.com>
1261
1262 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1263 run final, instead of emitting text directly.
1264
a1f91bca
L
12652011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1266
1267 * config/i386/i386.c (ix86_option_override_internal): Turn on
1268 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1269 small PIC models for TARGET_X32.
1270
a50023f9
HPN
12712011-07-10 Hans-Peter Nilsson <hp@axis.com>
1272
9a0b29f0
HPN
1273 PR target/49684
1274 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1275 $(LIBGCC2_CFLAGS).
1276
a50023f9
HPN
1277 PR bootstrap/49680
1278 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1279 stray notes and debug insns by using prev_nonnote_nondebug_insn
1280 instead of PREV_INSN.
1281
948d330e
RH
12822011-07-09 Richard Henderson <rth@redhat.com>
1283
1284 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1285 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1286 * dwarf2out.c: ... here.
1287 (output_all_cfis): Remove.
1288 (dwarf2out_switch_text_section): Use output_cfis directly.
1289 (size_of_locs): Export.
1290 (output_loc_sequence, output_loc_sequence_raw): Export.
1291 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1292 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1293 output_cfa_loc_raw): Move to ...
1294 * dwarfcfi.c: ... here.
1295 * dwarf2out.h: Update decls.
1296
db42e39d
RH
12972011-07-09 Richard Henderson <rth@redhat.com>
1298
1299 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1300 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1301 * dwarf2cfi.c: ... here.
1302 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1303 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1304 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1305 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1306 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1307
a8e5c0e7
RH
13082011-07-09 Richard Henderson <rth@redhat.com>
1309
1310 * dwarf2cfi.c (cie_return_save): New.
1311 (queue_reg_save): Use compare_reg_or_pc.
1312 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1313 (dwarf2out_frame_debug_expr): Likewise.
1314 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1315 (initial_return_save): Likewise.
1316 (execute_dwarf2_frame): Save and restore initial return save from
1317 the cie to the fde.
1318 * config/mips/mips.c (mips_frame_set): Remove special case for
1319 DWARF_FRAME_RETURN_COLUMN.
1320
4a8ee122
RH
13212011-07-09 Richard Henderson <rth@redhat.com>
1322
1323 * dwarf2cfi.c (lookup_cfa): Remove.
1324 (execute_dwarf2_frame): Assert queues are empty on entry.
1325 Setup initial cfa directly, not via lookup_cfa.
1326 Don't clear args_size state here.
1327
3edb53aa
RH
13282011-07-09 Richard Henderson <rth@redhat.com>
1329
1330 * dwarf2cfi.c (add_cfi_vec): New.
1331 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1332 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1333 (execute_dwarf2_frame): Set add_cfi_vec.
1334
ded49a7f
RH
13352011-07-09 Richard Henderson <rth@redhat.com>
1336
1337 * defaults.h (ASM_COMMENT_START): Move here...
1338 * dwarf2asm.c: ... from here.
1339 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1340 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1341 * varasm.c: Likewise.
1342
45fba6d1
RH
13432011-07-09 Richard Henderson <rth@redhat.com>
1344
1345 PR debug/49686
1346 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1347 (create_cfi_notes): ... do it here instead.
1348
5b696ba2
JJ
13492011-07-09 Jakub Jelinek <jakub@redhat.com>
1350
1351 PR debug/49676
1352 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1353 (address_of_int_loc_descriptor): Use it.
f9610d20 1354 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 1355
8662b2ba
RH
13562011-07-09 Richard Henderson <rth@redhat.com>
1357
1358 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1359 (prologue, epilogue): New.
1360 (return, *rts): New.
1361 (blockage, setd, seti): New.
1362 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1363 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1364 (pdp11_saved_regno): New.
1365 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1366 generate rtl instead of text.
1367 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1368 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1369 * config/pdp11/pdp11-protos.h: Update.
1370
28b21ebb
RH
13712011-07-09 Richard Henderson <rth@redhat.com>
1372
1373 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1374 try to insert an rtl prologue here.
1375 (rs6000_output_function_epilogue): Similarly.
1376 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1377 satisfy !TARGET_SCHED_PROLOG.
1378 (epilogue, sibcall_epilogue): Likewise.
1379
0a222ba7
EB
13802011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1381
1382 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1383 (FP_REG_P): Delete.
1384 (IN_OR_GLOBAL_P): Likewise.
1385
2fda8e14
JM
13862011-07-08 Jason Merrill <jason@redhat.com>
1387
4063e61b
JM
1388 PR c++/45437
1389 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1390 compound assignment.
1391
2fda8e14
JM
1392 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1393 * cgraph.h: Declare it.
1394 * ipa.c (function_and_variable_visibility): Make sure thunks
1395 have the right visibility.
1396
830f11fe
RH
13972011-07-08 Richard Henderson <rth@redhat.com>
1398
1399 PR bootstrap/49680
1400 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1401 any tablejump vector.
1402
965b2557
RH
1403 PR bootstrap/49680
1404 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1405 end of the prologue.
1406
70db9095
JJ
14072011-07-08 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR target/49621
1410 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 1411 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
1412 * config/rs6000/vector.md (vector_select_<mode>,
1413 vector_select_<mode>_uns): Change second operand of NE to
1414 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1415 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1416 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1417 zero_constant of the corresponding vector mode.
1418 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1419 Likewise.
1420
e92c5020
SP
14212011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1422
1423 * graphite-dependences.c (build_alias_set_powerset): Remove
1424 continue from loop, add one more assert.
1425
3e4f8484 14262011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1427
3e4f8484
GJL
1428 PR target/46779
1429 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1430 In particular, allow 8-bit values in r28 and r29.
1431 (avr_hard_regno_scratch_ok): Disallow any register that might be
1432 part of the frame pointer.
1433 (avr_hard_regno_rename_ok): Same.
1434 (avr_legitimate_address_p): Don't allow SUBREGs.
1435
0094f21b
JB
14362011-07-08 Julian Brown <julian@codesourcery.com>
1437
1438 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1439 big-endian mode.
1440 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1441 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1442 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1443 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1444 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1445 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1446 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1447 registers in big-endian mode.
1448
9ae60101
BS
14492011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1450
1451 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1452 in terms of another.
1453 (write_attr_value): Write a cast if necessary.
1454
c0a6a1ef
BS
1455 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1456 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1457 (REG_WORDS_BIG_ENDIAN): Document.
1458 * doc/tm.texi: Regenerate.
1459 * reload.c (operands_match_p): Take it into account.
1460 (reload_adjust_reg_for_mode): Likewise.
1461 * rtlanal.c (subreg_get_info): Likewise.
1462
b862187a
RG
14632011-07-08 Richard Guenther <rguenther@suse.de>
1464
1465 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1466 folding.
1467
e8e8c74b
KT
14682011-07-08 Kai Tietz <ktietz@redhat.com>
1469
1470 * fold-const.c (fold_truth_andor): Factored out truth_andor
1471 label from fold_binary as function.
1472 (fold_binary_loc): Replace truth_andor lable
1473 by function fold_truth_andor.
1474
6c3cb698
KY
14752011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1476
1477 PR middle-end/49519
1478 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1479 check if address is stored in register. If so - give up.
1480 (check_sibcall_argument_overlap_1): Do not perform check of
1481 overlapping when it is call to address.
1482
7d8d6d73 14832011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 1484
7d8d6d73
GJL
1485 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1486 of magic '31'.
1487
69660a70
BS
14882011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1489
1490 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1491 GET_MODE_BITSIZE where appropriate.
1492 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1493 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1494 expand_float, expand_fix): Likewise.
1495 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1496 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1497 * stor-layout.c (get_mode_bounds): Likewise.
1498 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1499 Likewise.
1500 * convert.c (convert_to_integer): Likewise.
1501 * expmed.c (expand_shift_1): Likewise.
1502
86cdf393
BS
1503 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1504 a bitsize.
1505
0d44736e
BS
1506 * optabs.c (expand_binop): Tighten conditions for doubleword
1507 expansions.
f9610d20 1508 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
1509 * stor-layout.c (get_best_mode): Skip modes that have lower
1510 precision than bitsize.
1511 * recog.c (simplify_while_replacing): Assert that bitsize and
1512 precision are the same.
1513
2c50b2c3
RO
15142011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1515
1516 * Makefile.in (LIBGCOV): Remove.
1517 (libgcc.mvars): Remove LIBGCOV.
1518 * libgov.c: Move to ../libgcc.
1519
a039d7c2
RO
15202011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1521
1522 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1523
e923ef41
MJ
15242011-07-08 Martin Jambor <mjambor@suse.cz>
1525
1526 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1527 is too big for total scalarization.
1528
b709e189
RH
15292011-07-07 Richard Henderson <rth@redhat.com>
1530
1531 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1532 (DBX_DEBUGGING_INFO): Undef.
1533
2867fa7c
RH
15342011-07-07 Richard Henderson <rth@redhat.com>
1535
1536 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1537 Handle some opcodes specially for debugging.
1538 * print-rtl.c: Include dwarf2out.h
1539 (print_rtx): Handle NOTE_INSN_CFI.
1540 * Makefile.in (print-rtl.o): Update.
1541
7644b3c7
RH
15422011-07-07 Richard Henderson <rth@redhat.com>
1543
1544 * tree-pass.h (pass_dwarf2_frame): Declare.
1545 * passes.c (init_optimization_passes): Add it.
1546 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1547 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1548 make static, do not call add_cfis_to_fde.
1549 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1550 dwarf2out_frame_init): Merge into...
1551 (execute_dwarf2_frame): ... here. New function.
1552 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1553 saved_do_cfi_asm to a tri-state variable.
1554 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1555 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1556 if it has yet to be done. Don't call dwarf2cfi_function_init.
1557 * dwarf2out.h, debug.h: Update decls.
1558 * final.c (final_start_function): Don't call
1559 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1560 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1561 * toplev.c (lang_dependent_init): Likewise.
1562
a518b996
RH
15632011-07-07 Richard Henderson <rth@redhat.com>
1564
1565 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1566 FDE_TABLE_INCREMENT): Replace with...
1567 (fde_vec): ... this, a new vector.
1568 (current_fde): Remove. Replace all users with cfun->fde.
1569 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1570 (size_of_aranges, dwarf2out_finish): Likewise.
1571 (dwarf2out_alloc_current_fde): Break out from ...
1572 (dwarf2out_begin_prologue): ... here.
1573 (dwarf2out_frame_init): Remove.
1574 * dwarf2cfi.c: Update all users of current_fde.
1575 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1576 * dwarf2out.h: Update decls.
1577 (dw_fde_node): Add fde_index member.
1578 * function.h (struct function): Add fde member.
1579
89e25f95
BS
15802011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1581 Richard Henderson <rth@redhat.com>
1582
1583 * dwarf2cfi.c (add_cfi): Remove.
1584 (dwarf2out_cfi_label): Remove force argument. Only generate the
1585 label name.
1586 (add_fde_cfi): Simplify the different code paths.
1587 (add_cie_cfi): New.
1588 (old_cfa, old_cfa_remember): New.
1589 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1590 (last_reg_save_label): Remove.
1591 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1592 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1593 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1594 dwarf2out_frame_debug_cfa_expression,
1595 dwarf2out_frame_debug_cfa_restore,
1596 dwarf2out_frame_debug_cfa_window_save,
1597 dwarf2out_frame_debug_expr): Remove label parameter.
1598 (cfi_label_required_p, add_cfis_to_fde): New.
1599 (dwarf2out_frame_debug_after_prologue): New.
1600 (dwarf2cfi_frame_init): Initialize old_cfa.
1601 (dwarf2out_frame_debug_restore_state): Likewise.
1602 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1603 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1604 * final.c (final_start_function): Call
1605 dwarf2out_frame_debug_after_prologue.
1606
bc5612ed
BS
16072011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1608 Richard Henderson <rth@redhat.com>
1609
1610 * dwarf2cfi.c (cfi_insn): New.
1611 (dwarf2out_cfi_label): Don't emit cfi label here.
1612 (add_fde_cfi): Create a NOTE_INSN_CFI.
1613 (dwarf2out_frame_debug): Setup cfi_insn.
1614 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1615 (dwarf2out_cfi_begin_epilogue): Make static.
1616 (dwarf2out_frame_debug_restore_state): Make static.
1617 * dwarf2out.c (output_cfi_directive): Make static.
1618 (dwarf2out_emit_cfi): New.
1619 * dwarf2out.h: Update.
1620 * final.c (final): Remove CFI notes.
1621 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1622 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1623 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1624 * insn-notes.def (NOTE_INSN_CFI): New.
1625 (NOTE_INSN_CFI_LABEL): New.
1626 * rtl.h (union rtunion_def): Add rt_cfi member.
1627 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1628
647a1567
RH
16292011-07-07 Richard Henderson <rth@redhat.com>
1630
1631 * dwarf2cfi.c: New file.
1632 * Makefile.in (OBJS): Add it.
1633 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1634 * gengtype.c (open_base_files): Include dwarf2out.h.
1635 * coretypes.h (enum var_init_status): Move from ...
1636 * rtl.h: ... here.
1637 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1638 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1639 expand_builtin_dwarf_sp_column, init_return_column_size,
1640 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1641 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1642 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1643 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1644 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1645 compute_barrier_args_size, dwarf2out_args_size,
1646 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1647 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1648 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1649 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1650 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1651 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1652 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1653 dwarf2out_frame_debug_cfa_expression,
1654 dwarf2out_frame_debug_cfa_restore,
1655 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1656 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1657 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1658 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1659 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1660 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1661 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1662 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1663 dw_loc_descr_node): Move to dwarf2out.h.
1664 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1665 mem_loc_descriptor): Export.
1666 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
1667 (dwarf2out_frame_init): Extract CIE generation code to
1668 dwarf2cfi_frame_init.
1669
b286d9ed
EB
16702011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1671
1672 PR target/49660
1673 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1674 MASK_V8PLUS, remove commented out flag and reorder.
1675
c4603e7c
JJ
16762011-07-07 Jakub Jelinek <jakub@redhat.com>
1677
1678 PR c/49644
1679 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1680 one non-complex and one complex argument, call c_save_expr on both
1681 operands.
1682
81361831
MJ
16832011-07-07 Martin Jambor <mjambor@suse.cz>
1684
1685 PR middle-end/49495
1686 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1687 (verify_cgraph_node): Some functinality moved to
1688 verify_edge_corresponds_to_fndecl, call it.
1689
1e4b2746
JM
16902011-07-07 Joseph Myers <joseph@codesourcery.com>
1691
1692 * config.gcc (*local*): Remove.
1693 * doc/install-old.texi: Don't mention local configurations.
1694
d7ff1e11
JJ
16952011-07-07 Jakub Jelinek <jakub@redhat.com>
1696
1697 PR debug/49522
1698 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1699 referencing debug insns that have been reset.
1700 (dead_debug_insert_before): Don't assert reg is non-NULL,
1701 instead return immediately if it is NULL.
1702
2492731a
JM
17032011-07-07 Joseph Myers <joseph@codesourcery.com>
1704
f9610d20 1705 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 1706
9d9c740d
BS
17072011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1708
1709 * hw-doloop.c: New file.
1710 * hw-doloop.h: New file.
1711 * Makefile.in (OBJS): Add hw-doloop.o.
1712 (hw-doloop.o): New rule.
1713 ($(obj_out_file)): Add hw-doloop.h dependency.
1714 * config/bfin/bfin.c: Include "hw-doloop.h".
1715 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1716 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1717 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
1718 type changed to hwloop_info. Return bool, true if the loop was
1719 successfully optimized. Remove code that was moved to
1720 hw-doloop.c, and adjust other parts.
1721 (hwloop_fail): New static function, containing parts that used
1722 to be in bfin_optimize_loop.
1723 (bfin_discover_loop, bfin_discover_loops, free_loops,
1724 bfin_reorder_loops): Remove.
1725 (hwloop_pattern_reg): New static function.
1726 (bfin_doloop_hooks): New variable.
1727 (bfin_reorg_loops): Remove most code, call reorg_loops.
1728 * config/bfin/bfin.md (doloop_end splitter): Also enable if
1729 loop counter is a memory_operand.
1730
f0ea7581
L
17312011-07-07 H.J. Lu <hongjiu.lu@intel.com>
1732
f9610d20 1733 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
1734
1735 * configure.ac: Mention x86-64 for --with-multilib-list.
1736 * configure: Regenerated.
1737
1738 * config/i386/gnu-user64.h (SPEC_64): Support x32.
1739 (SPEC_32): Likewise.
1740 (ASM_SPEC): Likewise.
1741 (LINK_SPEC): Likewise.
1742 (TARGET_THREAD_SSP_OFFSET): Likewise.
1743 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
1744 (SPEC_X32): New.
1745
1746 * config/i386/i386.h (TARGET_X32): New.
1747 (TARGET_LP64): New.
1748 (LONG_TYPE_SIZE): Likewise.
1749 (POINTER_SIZE): Likewise.
1750 (POINTERS_EXTEND_UNSIGNED): Likewise.
1751 (OPT_ARCH64): Support x32.
1752 (OPT_ARCH32): Likewise.
1753
1754 * config/i386/i386.opt (mx32): New.
1755
1756 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
1757 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1758 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
1759 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1760
1761 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
1762 (BIONIC_DYNAMIC_LINKERX32): Likewise.
1763 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
1764
1765 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
1766
f9610d20 1767 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
1768
1769 * doc/invoke.texi: Document -mx32.
1770
38460025
RS
17712011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1772
1773 * doc/invoke.texi (mwords-little-endian): Deprecate.
1774 * config/arm/arm.opt (mwords-little-endian): Likewise.
1775 * config/arm/arm.c (arm_option_override): Warn about the deprecation
1776 of -mwords-little-endian.
1777
3f125532
RS
17782011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1779
1780 * reload1.c (choose_reload_regs): Use mode sizes to check whether
1781 an old reload register completely defines the required value.
1782
bbc210ab
RG
17832011-07-07 Richard Guenther <rguenther@suse.de>
1784
1785 * fold-const.c (fold_unary_loc): Do not strip sign-changes
1786 for NEGATE_EXPR.
1787
29c5134a
RG
17882011-07-07 Richard Guenther <rguenther@suse.de>
1789
1790 * tree-vrp.c (simplify_conversion_using_ranges): New function.
1791 (simplify_stmt_using_ranges): Call it.
1792
0816a42a
KT
17932011-07-07 Kai Tietz <ktietz@redhat.com>
1794
1795 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
1796 (lookup_logical_inverted_value): Likewise.
1797 (simplify_bitwise_binary_1): Likewise.
1798 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
1799
3ce9f090
JM
18002011-07-07 Joseph Myers <joseph@codesourcery.com>
1801
1802 * gcc.c (%[Spec]): Don't document.
1803 (struct spec_list): Update comment.
1804 (do_spec_1): Don't handle %[Spec].
1805 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
1806
41dfca87
JM
18072011-07-07 Joseph Myers <joseph@codesourcery.com>
1808
1809 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
1810 default based on TARGET_ASM_NAMED_SECTION.
1811 * common/common-target.def (have_named_sections): Default to true.
1812 * common/config/default-common.c: Don't include tm.h.
1813 * common/config/picochip/picochip-common.c
1814 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
1815 * common/config/m32c/m32c-common.c: Remove.
1816 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
1817 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1818 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1819 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 1820 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
1821 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1822 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 1823
19c44640
JJ
18242011-07-07 Jakub Jelinek <jakub@redhat.com>
1825
1826 PR middle-end/49640
f9610d20
UB
1827 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
1828 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 1829
891a2e42
RO
18302011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1831
1832 PR libmudflap/49550
1833 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
1834
fbdd5d87
RO
18352011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1836
1837 PR target/39150
1838 * configure.ac (gcc_cv_as_hidden): Also accept
1839 x86_64-*-solaris2.1[0-9]*.
1840 (gcc_cv_as_cfi_directive): Likewise.
1841 (gcc_cv_as_comdat_group_group): Likewise.
1842 (set_have_as_tls): Likewise.
1843 * configure: Regenerate.
1844 * config.gcc (i[34567]86-*-solaris2*): Also handle
1845 x86_64-*-solaris2.1[0-9]*.
1846 * config.host (i[34567]86-*-solaris2*): Likewise.
1847 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
1848 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
1849 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
1850 (TARGET_LD_EMULATION): Use it.
1851 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
1852 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
1853 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
1854 (ASM_CPU64_DEFAULT_SPEC): Define.
1855 (ASM_CPU_SPEC): Use %(asm_cpu_default).
1856 (ASM_SPEC): Redefine.
1857 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
1858 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 1859 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
1860 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
1861 configuration.
1862 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
1863
fcf7471a
RO
18642011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1865
1866 * config/sol2.h (ASM_SPEC): Split into ...
1867 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
1868 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
1869 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
1870 (ASM_SPEC): Use ASM_SPEC_BASE.
1871 * config/sparc/sol2.h (ASM_SPEC): Redefine.
1872
1e6a67d1 18732011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1874
1e6a67d1
GJL
1875 * config/avr/avr.md (*reload_insi): Change predicate #1 to
1876 const_int_operand. Ditto for peep2 producing this insn.
1877 Add argument to output_reload_insisf call.
1878 (*movsi,*movsf): Add argument to output_movsisf call.
1879 (*reload_insf): New insn and new peep2 to produce it.
1880 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1881 (output_reload_insisf): Change prototype.
1882 * config/avr/avr.c (avr_asm_len): New function.
1883 (output_reload_insisf): Rewrite.
1884 (output_movsisf): Change prototype. output_reload_insisf for
1885 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
1886 (adjust_insn_length): Add argument to output_movsisf and
1887 output_reload_insisf call.
1888
6a4bdc79
BS
18892011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1890
1891 * emit-rtl.c (paradoxical_subreg_p): New function.
1892 * rtl.h (paradoxical_subreg_p): Declare.
1893 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
1894 apply_distributive_law, simplify_comparison, simplify_set): Use it.
1895 * cse.c (record_jump_cond, cse_insn): Likewise.
1896 * expr.c (force_operand): Likewise.
1897 * rtlanal.c (num_sign_bit_copies1): Likewise.
1898 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
1899 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
1900 (push_reload): Use precision to check for paradoxical subregs.
1901 * expmed.c (extract_bit_field_1): Likewise.
1902
46c9550f
BS
1903 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
1904 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
1905 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
1906 simplify_set, simplify_logical, expand_compound_operation,
1907 make_extraction, force_to_mode, if_then_else_cond, extended_count,
1908 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
1909 record_value_for_reg): Likewise.
1910 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
1911 * simplify-rtx. c (simplify_unary_operation_1,
1912 simplify_binary_operation_1, simplify_const_relational_operation):
1913 Likewise.
1914
5511bc5a
BS
1915 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
1916 instead of GET_MODE_BITSIZE where appropriate.
1917 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
1918 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
1919 init_num_sign_bit_copies_in_rep): Likewise.
1920 * cse.c (fold_rtx, cse_insn): Likewise.
1921 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
1922 * simplify-rtx.c (simplify_unary_operation_1,
1923 simplify_const_unary_operation, simplify_binary_operation_1,
1924 simplify_const_binary_operation, simplify_ternary_operation,
1925 simplify_const_relational_operation, simplify_subreg): Likewise.
1926 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
1927 simplify_if_then_else, simplify_set, expand_compound_operation,
1928 expand_field_assignment, make_extraction, if_then_else_cond,
1929 make_compound_operation, force_to_mode, make_field_assignment,
1930 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
1931 extended_count, try_widen_shift_mode, simplify_shift_const_1,
1932 simplify_comparison, record_promoted_value, simplify_compare_const,
1933 record_dead_and_set_regs_1): Likewise.
1934
d58c1a38
BS
1935 Revert:
1936 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
1937 shift_truncation_mask hook instead of performing modulo by width.
1938 Compare against mode precision, not bitsize.
d58c1a38 1939 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 1940 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 1941
76594d53
MM
19422011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1943
1944 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
1945 declaration.
1946 (rs6000_save_toc_in_prologue_p): Ditto.
1947
1948 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
1949 up the static chain (r11) during indirect function calls.
1950 (-msave-toc-indirect): New undocumented debug switch.
1951
1952 * config/rs6000/rs6000.c (struct machine_function): Add
1953 save_toc_in_prologue field to note whether the prologue needs to
1954 save the TOC value in the reserved stack location.
1955 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
1956 to save the TOC in the prologue, do so.
1957 (rs6000_trampoline_init): Don't allow creating AIX style
1958 trampolines if -mno-r11 is in effect.
1959 (rs6000_call_indirect_aix): New function to create AIX style
1960 indirect calls, adding support for -mno-r11 to suppress loading
1961 the static chain, and saving the TOC in the prologue instead of
1962 the call body.
1963 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
1964 TOC in the prologue.
1965
1966 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
1967 register numbers.
1968 (TOC_REGNUM): Ditto.
1969 (STATIC_CHAIN_REGNUM): Ditto.
1970 (ARG_POINTER_REGNUM): Ditto.
1971 (SFP_REGNO): Delete, unused.
1972 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
1973 function descriptor offsets.
1974 (TOC_SAVE_OFFSET_64BIT): Ditto.
1975 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
1976 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
1977 (AIX_FUNC_DESC_SC_32BIT): Ditto.
1978 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
1979 (ptrload): New mode attribute for the appropriate load of a pointer.
1980 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
1981 (call_indirect_aix64): Ditto.
1982 (call_value_indirect_aix32): Ditto.
1983 (call_value_indirect_aix64): Ditto.
1984 (call_indirect_nonlocal_aix32_internal): Ditto.
1985 (call_indirect_nonlocal_aix32): Ditto.
1986 (call_indirect_nonlocal_aix64_internal): Ditto.
1987 (call_indirect_nonlocal_aix64): Ditto.
1988 (call): Rewrite AIX indirect function calls. Add support for
1989 eliminating the static chain, and for moving the save of the TOC
1990 to the function prologue.
1991 (call_value): Ditto.
1992 (call_indirect_aix<ptrsize>): Ditto.
1993 (call_indirect_aix<ptrsize>_internal): Ditto.
1994 (call_indirect_aix<ptrsize>_internal2): Ditto.
1995 (call_indirect_aix<ptrsize>_nor11): Ditto.
1996 (call_value_indirect_aix<ptrsize>): Ditto.
1997 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1998 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1999 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2000 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2001 (call_nonlocal_aix64): Ditto.
2002
2003 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2004 -mno-r11 documentation.
2005
49d6830d
JW
20062011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2007
2008 PR other/49658
2009 * doc/extend.texi (Compound Literals): Fix typo.
2010
c884924f
JG
20112011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2012
f9610d20 2013 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 2014
bf588455
BS
20152011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2016
2017 * configure.ac (plugin-version.h): Generate
2018 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2019 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2020 macros.
2021
2022 * configure: Regenerate.
2023
2024 * doc/plugins.texi (Building GCC plugins): Mention
2025 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2026
d0edd768
BS
20272011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2028
2029 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2030 * combine.c (make_extraction, gen_lowpart_or_truncate,
2031 apply_distributive_law, simplify_comparison,
2032 reg_truncated_to_mode, record_truncated_value): Use it.
2033 * cse.c (notreg_cost): Likewise.
2034 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2035 * expr.c (convert_move, convert_modes): Likewise.
2036 * optabs.c (expand_binop, expand_unop): Likewise.
2037 * postreload.c (move2add_last_label): Likewise.
2038 * regmove.c (optimize_reg_copy_3): Likewise.
2039 * rtlhooks.c (gen_lowpart_general): Likewise.
2040 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2041
e5cabdfb
JM
20422011-07-06 Joseph Myers <joseph@codesourcery.com>
2043
2044 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2045
2d0c270f
BS
20462011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2047
2048 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2049 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2050 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2051 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
2052 simplify_const_binary_operation, simplify_const_relational_operation):
2053 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
2054 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2055 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2056 simplify_shift_const_1, simplify_comparison): Likewise.
2057 * expr.c (convert_modes): Likewise.
2058 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 2059 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
2060 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2061
f9c08345
BS
2062 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2063
6d6c9525
RG
20642011-07-06 Richard Guenther <rguenther@suse.de>
2065
2066 PR tree-optimization/49645
2067 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2068 register variables.
2069 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2070 in type qualification here ...
2071 (copy_reference_ops_from_ref): ... not here.
2072 (vn_reference_lookup_3): ... or here.
2073 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2074 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2075
d1a6ec10
ILT
20762011-07-06 Ian Lance Taylor <iant@google.com>
2077
2078 * doc/install.texi (Configuration): It's
2079 --enable-gnu-indirect-function, not --enable-indirect-function.
2080
ff3e08af
BS
20812011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2082
2083 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
2084 shift_truncation_mask hook instead of performing modulo by width.
2085 Compare against mode precision, not bitsize.
ff3e08af 2086 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 2087 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 2088
a369b639
L
20892011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2090
2091 PR middle-end/47383
2092 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2093 address computation and convert to address_mode if needed.
2094
1a072294
RG
20952011-07-06 Richard Guenther <rguenther@suse.de>
2096
2097 * tree.c (build_common_tree_nodes_2): Merge with
2098 build_common_tree_nodes.
2099 * tree.h (build_common_tree_nodes): Adjust prototype.
2100 (build_common_tree_nodes_2): Remove.
2101 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2102 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2103
f2c3a8ce
JJ
21042011-07-05 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR tree-optimization/49618
2107 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2108 t recurse on the decl.
2109 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2110 return true if expr isn't known to be defined in current
2111 TU or some other LTO partition.
2112
3aa439ed
MM
21132011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2114
2115 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2116 override CASE_VALUES_THRESHOLD.
2117
2118 * stmt.c (toplevel): Include params.h.
2119 (case_values_threshold): Use the --param case-values-threshold
2120 value if non-zero, otherwise use machine dependent value.
2121 (expand_case): Use case_values_threshold.
2122
2123 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2124
2125 * doc/invoke.texi (--param case-values-threshold): Document.
2126
49956667
RH
21272011-07-05 Richard Henderson <rth@redhat.com>
2128
2129 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2130 (dwarf2out_flush_queued_reg_saves): Make static.
2131 (dwarf2out_reg_save): Remove.
2132 (dwarf2out_return_save): Remove.
2133 (dwarf2out_return_reg): Remove.
2134 (dwarf2out_reg_save_reg): Remove.
2135 (dwarf2out_def_cfa): Merge into ...
2136 (dwarf2out_frame_init): ... here.
2137 * dwarf2out.h, tree.h: Remove declarations as necessary.
2138
9f2ff8e5
RH
21392011-07-05 Richard Henderson <rth@redhat.com>
2140
c2b40eba
RH
2141 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2142 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2143 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2144 the alloc insn.
2145
7d3c6cd8
RH
2146 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2147 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2148 (process_epilogue): Don't call dwarf2out_def_cfa.
2149
5f740973
RH
2150 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2151 indicate the return address save.
2152 (process_cfa_register): Likewise.
2153
a1880147
RH
2154 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2155 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2156
9f2ff8e5
RH
2157 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2158 for ar.pfs save at alloc insn.
2159
ddc6e7d6
RH
21602011-07-05 Richard Henderson <rth@redhat.com>
2161
2162 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2163 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2164 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2165 stack pointer save.
2166 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2167 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2168 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2169 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2170
a3515605
RH
21712011-07-05 Richard Henderson <rth@redhat.com>
2172
2173 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2174 VUNSPEC_* constants here instead of via define_constants.
2175 (VUNSPEC_PEM): New constant.
2176 (procedure_entry_mask): New insn.
2177 (prologue): New expander.
2178 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2179 (vax_expand_prologue): Rename from vax_output_function_prologue;
2180 emit rtl instead of text.
2181 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2182 (print_operand): Add 'x' prefix.
2183
a7adbbcb
L
21842011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2185
2186 PR middle-end/47715
2187 * calls.c (precompute_register_parameters): Promote the function
2188 argument before checking non-legitimate constant.
2189
cec11ec4
SP
21902011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2191
2192 PR tree-optimization/47654
2193 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2194 (lst_do_strip_mine_loop): Return an int.
2195 (lst_do_strip_mine): Same.
2196 (scop_do_strip_mine): Same.
2197 (scop_do_block): Loop blocking should strip-mine at least two loops.
2198 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2199 (scop_do_interchange): Same.
2200 * graphite-poly.h (scop_do_interchange): Update declaration.
2201 (scop_do_strip_mine): Same.
2202
9b0d314a
SP
22032011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2204
2205 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2206 (precision_for_interval): Removed.
2207 (gcc_type_for_interval): Use mpz_sizeinbase.
2208
81d6d080
SP
22092011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2210
2211 * graphite-ppl.h (value_max): Correct computation of max.
2212
369e3430
SP
22132011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2214
2215 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2216
fce5dddd
RG
22172011-07-05 Richard Guenther <rguenther@suse.de>
2218
2219 * c-decl.c (c_init_decl_processing): Defer building common
2220 tree nodes to c_common_nodes_and_builtins.
2221
12037899
RL
22222011-07-05 Razya Ladelsky <razya@il.ibm.com>
2223
2224 PR tree-optimization/49580
f9610d20 2225 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 2226 the loop's number of iterations.
f9610d20
UB
2227 * tree-parloops.c (transform_to_exit_first_loop): Add the
2228 handling of the loop's number of iterations before the call
12037899 2229 to gimple_duplicate_sese_tail.
28b21ebb 2230 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
2231 condition stmt to the preheader instead of iters_bb.
2232
509a31f8
L
22332011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2234
2235 PR rtl-optimization/47449
2236 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2237 register nor zero/sign extended hard register.
2238
39becbac
RG
22392011-07-05 Richard Guenther <rguenther@suse.de>
2240
2241 PR tree-optimization/49518
2242 PR tree-optimization/49628
2243 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2244 irrelevant and invariant data-references.
2245 (vect_analyze_data_ref_access): For invariant loads clear the
2246 group association.
2247
15923c25
JJ
22482011-07-04 Jakub Jelinek <jakub@redhat.com>
2249
af421d9c
JJ
2250 PR rtl-optimization/49619
2251 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2252 pass VOIDmode as op0_mode to recursive call, and return temp even
2253 when different from tor, just if it is not IOR of the original
2254 PLUS arguments.
2255
707f9919
JJ
2256 PR rtl-optimization/49472
2257 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2258 negating MULT, negate the second operand instead of first.
2259 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
2260 a NEG and the other is MULT, don't attempt to optimize by negation
2261 of the MULT operand if it only moves the NEG operation around.
707f9919 2262
15923c25
JJ
2263 PR debug/49602
2264 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2265 get_current_def return value if it can't be trusted to be
2266 the current value of the variable in the current bb.
2267
0d5e0c1b
UB
22682011-07-04 Uros Bizjak <ubizjak@gmail.com>
2269
2270 PR target/49600
2271 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2272 general register to memory for !TARGET_INTER_UNIT_MOVES.
2273
db297e20
GJL
22742011-07-04 Georg-Johann Lay <avr@gjlay.de>
2275
2276 PR target/44643
2277 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2278 instead of TREE_READONLY.
2279
f451d14d
GJL
22802011-07-04 Georg-Johann Lay <avr@gjlay.de>
2281
2282 * doc/extend.texi (AVR Built-in Functions): Update documentation
2283 of __builtin_avr_fmul*.
0d5e0c1b 2284 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
2285 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2286 * config/avr/avr.md (fmul): Rename to fmul_insn.
2287 (fmuls): Rename to fmuls_insn.
2288 (fmulsu): Rename to fmulsu_insn.
2289 (fmul,fmuls,fmulsu): New expander.
2290 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2291 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2292 * config/avr/libgcc.S (__fmul): New function.
2293 (__fmuls): New function.
2294 (__fmulsu,__fmulsu_exit): New function.
2295
30f1e6de
RG
22962011-07-04 Richard Guenther <rguenther@suse.de>
2297
2298 PR tree-optimization/49615
2299 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2300 basic-block index check.
2301
6dab9931
GJL
23022011-07-04 Georg-Johann Lay <avr@gjlay.de>
2303
2304 * longlong.h (count_leading_zeros, count_trailing_zeros,
2305 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2306 resp. 64.
2307
b5066d8b
IR
23082011-07-03 Ira Rosen <ira.rosen@linaro.org>
2309
2310 PR tree-optimization/49610
2311 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2312 a basic block.
2313
bc712852
EB
23142011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2315 Olivier Hainque <hainque@adacore.com>
2316 Nicolas Setton <setton@adacore.com>
2317
2318 * tree.h (TYPE_ARTIFICIAL): New flag.
2319 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2320 the DIE of the type if it is artificial.
2321 (gen_array_type_die): Likewise.
2322 (gen_enumeration_type_die): Likewise.
2323 (gen_struct_or_union_type_die): Likewise.
2324 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2325 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2326
8b1bdcc5
JJ
23272011-07-01 Jakub Jelinek <jakub@redhat.com>
2328
2329 * tree-object-size.c (pass_through_call): Handle
2330 BUILT_IN_ASSUME_ALIGNED.
2331
06e88d73
MJ
23322011-07-01 Martin Jambor <mjambor@suse.cz>
2333
2334 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2335
6bbec3e1
L
23362011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2337
2338 PR middle-end/48016
2339 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2340 for stack save area.
2341 * function.c (expand_function_start): Likewise.
2342
e8fdf1cd
RG
23432011-07-01 Richard Guenther <rguenther@suse.de>
2344
2345 PR middle-end/49596
2346 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2347 may have unknown refs.
2348
80d3dd38
KT
23492011-07-01 Kai Tietz <ktietz@redhat.com>
2350
2351 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2352
179fc656
RO
23532011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2354
2355 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2356 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2357 (Specific, mips-sgi-irix6): Likewise.
2358
14a393a3
RO
23592011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2360
2361 PR libmudflap/49549
2362 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2363
3aecd443
JJ
23642011-07-01 Jakub Jelinek <jakub@redhat.com>
2365
2366 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2367 [idx]= and [idx1 ... idx2]= before initializers if needed for
2368 array initializers.
2369
7474f719
CL
23702011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2371
2372 * config.gcc (score-*-elf): Remove score7.o.
2373 * config/score/t-score-elf: Likewise.
2374 * config/score/score.c: Merge score7 to score.c and
2375 remove forwarding functions.
2376 * config/score/score7.c: Deleted.
2377 * config/score/score7.h: Deleted.
2378
ab70d825
RG
23792011-07-01 Richard Guenther <rguenther@suse.de>
2380
2381 PR tree-optimization/49603
0d5e0c1b 2382 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 2383
1ac93f10
MJ
23842011-06-30 Martin Jambor <mjambor@suse.cz>
2385
2386 * tree-sra.c (struct access): Rename total_scalarization to
2387 grp_total_scalarization
2388 (completely_scalarize_var): New function.
2389 (sort_and_splice_var_accesses): Set total_scalarization in the
2390 representative access.
2391 (analyze_access_subtree): Propagate total scalarization accross the
2392 tree, no holes in totally scalarized trees, simplify coverage
2393 computation.
2394 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2395 of completely_scalarize_record.
2396
97f309c3
RH
23972011-06-30 Richard Henderson <rth@redhat.com>
2398
2399 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2400 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2401 * config/i386/i386.c: Don't include dwarf2out.h.
2402 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2403 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2404 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2405 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2406 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2407
ef284364
RH
24082011-06-30 Richard Henderson <rth@redhat.com>
2409
2410 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2411 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2412 * final.c (final_scan_insn): Look for it, and invoke
2413 dwarf2out_frame_debug before the insn if found.
2414
c8412f97
RH
24152011-06-30 Richard Henderson <rth@redhat.com>
2416
2417 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2418 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2419
e3f903d8
RH
24202011-06-30 Richard Henderson <rth@redhat.com>
2421
2422 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2423 Define a vector of this type.
2424 (regs_saved_in_regs): Use a VEC.
2425 (num_regs_saved_in_regs): Remove.
2426 (compare_reg_or_pc): New.
2427 (record_reg_saved_in_reg): Split out from...
2428 (dwarf2out_flush_queued_reg_saves): ... here.
2429 (clobbers_queued_reg_save): Update for VEC.
2430 (reg_saved_in): Likewise.
2431 (dwarf2out_frame_debug_init): Likewise.
2432 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2433 (dwarf2out_frame_debug_cfa_register): Likewise.
2434
e2c9010a
EB
24352011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2436
2437 PR tree-optimization/49572
2438 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2439 type of the RHS instead of that of the LHS for the expression type.
2440
dbb07bbc
EB
24412011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2442
2443 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2444 unconditionally.
2445
1565af08
RG
24462011-06-30 Richard Guenther <rguenther@suse.de>
2447
2448 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2449 * tree-ssa-structalias.c (create_variable_info_for): Do not
2450 add initial constraints for non-var-decls. Properly handle
2451 globals in other ltrans partitions.
2452 (intra_create_variable_infos): Manually create constraints for
2453 the fake no-alias parameter.
2454 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2455 and assert there are no clones.
2456
42373e0b
RG
24572011-06-30 Richard Guenther <rguenther@suse.de>
2458
2459 PR tree-optimization/46787
2460 * tree-data-ref.c (dr_address_invariant_p): Remove.
2461 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 2462 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
2463 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2464 invariant loads.
2465
7aa62ea1
MJ
24662011-06-30 Martin Jambor <mjambor@suse.cz>
2467
2468 PR tree-optimization/49094
2469 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2470 (build_accesses_from_assign): Use it.
2471
f60f32b3
JJ
24722011-06-30 Jakub Jelinek <jakub@redhat.com>
2473
d9048d16
JJ
2474 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2475 handling of BUILT_IN_ASSUME_ALIGNED.
2476
f60f32b3
JJ
2477 PR debug/49364
2478 * dwarf2out.c (output_abbrev_section): Don't return early
2479 if abbrev_die_table_in_use is 1.
2480 (dwarf2out_finish): Instead don't call output_abbrev_section
2481 nor emit abbrev_section_label in that case.
2482
7cce15d4
NC
24832011-06-30 Nick Clifton <nickc@redhat.com>
2484
2485 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2486 for the V850E.
2487
ce7e54ff
JJ
24882011-06-30 Jakub Jelinek <jakub@redhat.com>
2489
2490 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2491 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2492
83197f37
IR
24932011-06-30 Ira Rosen <ira.rosen@linaro.org>
2494
2495 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2496 both pattern and original statements if necessary.
2497 (vect_transform_loop): Likewise.
2498 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2499 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2500 Mark the pattern statement only if the original statement doesn't
2501 have its own uses.
2502 (process_use): Call vect_mark_relevant with additional parameter.
2503 (vect_mark_stmts_to_be_vectorized): Likewise.
2504 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2505 (vect_analyze_stmt): Handle both pattern and original statements
2506 if necessary.
2507 (vect_transform_stmt): Don't store vectorized pattern statement
2508 in the original statement.
2509 (vect_is_simple_use_1): Use related pattern statement only if the
2510 original statement is irrelevant.
2511 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2512
dbb07bbc 25132011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 2514
dbb07bbc
EB
2515 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2516 option.
2517 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2518 entry.
5c0d88e6
CF
2519 (TARGET_AVX128_OPTIMAL): New definition.
2520 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2521 X86_TUNE_AVX128_OPTIMAL entry.
2522 (ix86_option_override_internal): Enable the generation
2523 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2524 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2525 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2526
931050d0
EB
25272011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2528
2529 PR tree-optimization/49539
2530 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2531 names by means of stmt_references_abnormal_ssa_name.
2532 (associate_plusminus): Call can_propagate_from before propagating
2533 from definition statements.
2534 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2535
dfedbe40
RG
25362011-06-29 Richard Guenther <rguenther@suse.de>
2537
2538 * doc/invoke.texi: Document -scev dump modifier.
2539 * tree-pass.h (TDF_SCEV): New dump flag.
2540 * tree-dump.c (dump_option_value_in): Add scev.
2541 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2542 * tree-scalar-evolution.c: Likewise.
2543
3a86cfeb
NS
25442011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2545
2546 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2547 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
2548 (__gnu_unwind_pr_common): Reconstruct additional indirection
2549 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 2550
f3678bfb
UW
25512011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2552
2553 PR rtl-optimization/49114
2554 * reload.c (struct replacement): Remove SUBREG_LOC member.
2555 (push_reload): Do not set it.
2556 (push_replacement): Likewise.
2557 (subst_reload): Remove dead code.
2558 (copy_replacements): Remove assertion.
2559 (copy_replacements_1): Do not handle SUBREG_LOC.
2560 (move_replacements): Likewise.
2561 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2562 Detect subregs via recursive descent instead of via SUBREG_LOC.
2563
433ba0a5 25642011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2565
433ba0a5
GJL
2566 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2567 default_encode_section_info.
2568
73f6eabc
RS
25692011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2570
2571 PR tree-optimization/49545
2572 * builtins.c (get_object_alignment_1): Update function comment.
2573 Do not use DECL_ALIGN for functions, but test
2574 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2575 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2576 for functions here.
2577 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2578
a0f33d3a
JJ
25792011-06-29 Jakub Jelinek <jakub@redhat.com>
2580
2581 PR debug/49567
0d5e0c1b
UB
2582 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2583 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 2584
946c8b23 25852011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2586
946c8b23 2587 PR target/34734
0d5e0c1b 2588 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
2589 about uninitialized data attributed 'progmem' from here...
2590 (avr_encode_section_info): ...to this new function.
2591 (TARGET_ENCODE_SECTION_INFO): New define.
2592 (avr_section_type_flags): For data in ".progmem.data", remove
2593 section flag SECTION_WRITE.
2594
9a63dee4 25952011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2596
9a63dee4
GJL
2597 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2598 _xmulhisi3_exit.
2599 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2600 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2601 (__umulhisi3): Ditto.
2602 * config/avr/avr.md (mulhisi3): New insn expender.
2603 (umulhisi3): New insn expender.
2604 (*mulhisi3_call): New insn.
2605 (*umulhisi3_call): New insn.
2606
4374ce45
JM
26072011-06-28 Joseph Myers <joseph@codesourcery.com>
2608
2609 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2610
94759030
RH
26112011-06-28 Richard Henderson <rth@redhat.com>
2612
2613 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2614 all code and arguments that handled pushes. Update all callers.
2615
d018b46e
RH
26162011-06-28 Richard Henderson <rth@redhat.com>
2617
2618 * config/arm/arm.c (arm_output_function_prologue): Don't call
2619 thumb1_output_function_prologue.
2620 (arm_expand_prologue): Avoid dead store.
2621 (number_of_first_bit_set): Use ctz_hwi.
2622 (thumb1_emit_multi_reg_push): New.
2623 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2624 to emit the entire prologue as rtl.
2625 (thumb1_output_interwork): Split out from
2626 thumb1_output_function_prologue.
2627 (thumb1_output_function_prologue): Remove.
2628 (arm_attr_length_push_multi): Handle thumb1.
2629 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2630 (prologue_thumb1_interwork): New.
2631 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2632 * config/arm/predicates.md (push_mult_memory_operand): New.
2633
97269a23
EB
26342011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2635
2636 * config/sparc/sync.md (*stbar): Delete.
2637 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2638
4a9206ce
EB
26392011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2640
2641 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2642
6138f9bd
RO
26432011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2644
2645 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2646 (TARGET_64BIT_DEFAULT): Define.
2647 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2648 of tm_file.
2649 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2650
a7d0d30f
JM
26512011-06-28 Joseph Myers <joseph@codesourcery.com>
2652
2653 * common.opt (in_lto_p): New Variable entry.
2654 * flags.h (in_lto_p): Move to common.opt.
2655 * gcc.c: Include params.h.
2656 (set_option_handlers): Also use common_handle_option and
2657 target_handle_option.
0d5e0c1b 2658 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
2659 * opts.c (debug_type_names): Move from toplev.c.
2660 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
2661 (common_handle_option): Return early in the driver for some options.
2662 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2663 opts pointer.
a7d0d30f
JM
2664 * toplev.c (in_lto_p): Move to common.opt.
2665 (debug_type_names): Move to opts.c.
2666 * Makefile.in (OBJS): Remove opts.o.
2667 (OBJS-libcommon-target): Add opts.o.
2668 (gcc.o): Update dependencies.
2669
420863a9
KT
26702011-06-28 Kai Tietz <ktietz@redhat.com>
2671
0d5e0c1b 2672 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 2673
0498a2be
RR
26742011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2675
2676 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2677 with '=' constraint modifier.
2678 (*divdf3_vfp): Likewise.
2679 ("*mulsf3_vfp"): Likewise.
2680 ("*muldf3_vfp"): Likewise.
2681 ("*mulsf3negsf_vfp"): Likewise.
2682 ("*muldf3negdf_vfp"): Likewise.
2683
4a68b724
NC
26842011-06-28 Nick Clifton <nickc@redhat.com>
2685
2686 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2687 relaxation when performing an incremental link.
2688
72a32729
KT
26892011-06-28 Kai Tietz <ktietz@redhat.com>
2690
2691 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2692 within BB from last to first.
2693
88a00ef7
JM
26942011-06-28 Joseph Myers <joseph@codesourcery.com>
2695
2696 * genattr-common.c: New. Based on genattr.c.
2697 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2698 (MOSTLYCLEANFILES): Add insn-attr-common.h.
2699 (opts.o): Update dependencies.
2700 (.PRECIOUS): Add insn-attr-common.h.
2701 (simple_rtl_generated_h): Add insn-attr-common.h.
2702 (build/genattr-common.o): New.
2703 (genprogrtl): Add attr-common.
2704 * genattr.c (main): Include insn-attr-common.h. Don't generate
2705 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 2706 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 2707
880962ac
GJL
27082011-06-28 Georg-Johann Lay <avr@gjlay.de>
2709
4a68b724 2710 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 2711 avr-*-* and avr-*-rtems* targets.
4a68b724 2712
880962ac
GJL
2713 * config/avr/elf.h: New file.
2714 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2715 (TARGET_ASM_SELECT_SECTION): Define.
2716 (INIT_SECTION_ASM_OP): Undefine.
2717 (FINI_SECTION_ASM_OP): Undefine.
2718 (READONLY_DATA_SECTION_ASM_OP): Undefine.
2719 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2720 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2721 * config/avr/avr.h:
2722 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2723 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2724 (MAX_OFILE_ALIGNMENT): Move to elf.h.
2725 (STRING_LIMIT): Move to elf.h.
2726 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2727 (ASM_DECLARE_OBJECT_NAME): Remove.
2728 (ESCAPES): Remove.
2729 (ASM_OUTPUT_SKIP): Remove.
2730 (DWARF2_DEBUGGING_INFO): Remove.
2731 (OBJECT_FORMAT_ELF): Remove.
2732 (USER_LABEL_PREFIX): Remove.
2733 (ASM_OUTPUT_EXTERNAL): Remove.
2734 (ASM_OUTPUT_ASCII): Remove.
2735 (TYPE_ASM_OP): Remove.
2736 (SIZE_ASM_OP): Remove.
2737 (WEAK_ASM_OP): Remove.
2738 (STRING_ASM_OP): Remove.
2739 (SET_ASM_OP): Remove.
2740 (ASM_WEAKEN_LABEL): Remove.
2741 (TYPE_OPERAND_FMT): Remove.
2742 (ASM_DECLARE_FUNCTION_SIZE): Remove.
2743 (ASM_FINISH_DECLARE_OBJECT): Remove.
2744 (NO_DOLLAR_IN_LABEL): Remove.
2745 (ASM_GENERATE_INTERNAL_LABEL): Remove.
2746 (ASM_OUTPUT_CASE_LABEL): Remove.
2747 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
2748 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
2749 (gas_output_ascii): Remove.
2750 (gas_output_limited_string): Remove.
2751 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
2752 * config/avr/avr-protos.h
2753 (gas_output_ascii): Remove prototye.
2754 (gas_output_limited_string): Remove prototype.
2755
a1b5eb93
RE
27562011-06-27 Richard Earnshaw <rearnsha@arm.com>
2757
2758 PR target/48637
2759 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
2760 asm operands.
2761
310e71a8
JH
27622011-06-27 Jan Hubicka <jh@suse.cz>
2763
4a9206ce
EB
2764 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
2765 node instead of references in node.
310e71a8 2766
171da07a
RH
27672011-06-27 Richard Henderson <rth@redhat.com>
2768
2769 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
2770 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
2771 inside ifdef.
2772
dc2a58da
JJ
27732011-06-27 Jakub Jelinek <jakub@redhat.com>
2774
56300785
JJ
2775 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
2776
45d439ac
JJ
2777 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
2778 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
2779 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
2780 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
2781 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
2782 (evaluate_stmt, execute_fold_all_builtins): Handle
2783 BUILT_IN_ASSUME_ALIGNED.
2784 * tree-ssa-dce.c (propagate_necessity): Likewise.
2785 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2786 call_may_clobber_ref_p_1): Likewise.
2787 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
2788 (expand_builtin_assume_aligned): New function.
2789 * doc/extend.texi (__builtin_assume_aligned): Document.
2790
dc2a58da
JJ
2791 PR debug/49544
2792 * cselib.c (promote_debug_loc): If cselib_preserve_constants
2793 and l has two DEBUG_INSN owned locs instead of just one, adjust
2794 the second location's setting_insn too.
2795
0d72f628
RO
27962011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2797
2798 PR libmudflap/38738
2799 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
2800
bebd619e
NC
28012011-06-27 Nick Clifton <nickc@redhat.com>
2802
0d5e0c1b
UB
2803 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
2804 bit position of highest bit set into a count of the high zero bits.
bebd619e 2805
353b39fa
EB
28062011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2807
2808 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
2809
a7af037b
EB
28102011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2811
2812 PR lto/48492
2813 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
2814 to a NULL parent.
2815
1c86160a
RG
28162011-06-27 Richard Guenther <rguenther@suse.de>
2817
2818 PR tree-optimization/49394
2819 * passes.c (execute_one_pass): Restore current_pass after
2820 applying IPA transforms.
2821
5da49a9d
KT
28222011-06-27 Kai Tietz <ktietz@redhat.com>
2823
2824 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
2825 out of type precision after operation.
0d5e0c1b
UB
2826 (find_bswap): Take for limit value the integer auto-promotion
2827 into account.
5da49a9d 2828
9242213f
EB
28292011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2830
2831 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
2832 forward scan as well.
2833
db8b22ef
TG
28342011-06-27 Tristan Gingold <gingold@adacore.com>
2835
2836 PR target/44241
2837 * config/vms/vms-protos.h: New file.
2838 * config/vms/vms-crtlmap.map: New file.
2839 * config/vms/vms.c: New file.
2840 * config/vms/make-crtlmap.awk: New file.
2841 * config/vms/vms-crtl.h: File removed.
2842 * config/vms/vms-crtl-64.h: File removed.
2843 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
2844 * config/alpha/vms64.h: Do not include vms-crtl-64.h
2845 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
2846 clear some builtins on VMS. Calls vms_patch_builtins.
2847 (avms_asm_output_external): Remove.
2848 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
2849 (struct crtl_name_spec): Remove
2850 (DO_CTRL_NAMES): Remove.
2851 * config/ia64/vms.h (struct crtl_name_spec): Remove
2852 (DO_CTRL_NAMES): Remove.
2853 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
2854 clear some builtins on VMS. Calls vms_patch_builtins.
2855 (ia64_asm_output_external): Remove DO_CRTL_NAME.
2856 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 2857 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 2858
b213221d
TG
28592011-06-27 Tristan Gingold <gingold@adacore.com>
2860
2861 * config/alpha/alpha.c (alpha_end_function): Always generate .end
2862 directive on VMS.
2863
157b9300
EB
28642011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2865
2866 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
2867 the function receives nonlocal gotos.
2868
ccbf5bb4
RG
28692011-06-27 Richard Guenther <rguenther@suse.de>
2870
2871 PR tree-optimization/49536
2872 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
2873 For non-scalar inner types use a scalar type according to
2874 the scalar inner mode.
2875
fe4cd14b
RG
28762011-06-27 Richard Guenther <rguenther@suse.de>
2877
2878 PR tree-optimization/49365
2879 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
2880
afc3f22f
RS
28812011-06-27 Richard Guenther <rguenther@suse.de>
2882
2883 PR tree-optimization/49169
2884 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
2885 the alignment of function decls.
2886
92590751 28872011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
2888
2889 PR target/47997
2890 * config/darwin.c (darwin_mergeable_string_section): Place string
2891 constants in '.cstring' rather than '.const' when CF/NSStrings are
2892 active.
2893
605354f3
EB
28942011-06-26 Eric Botcazou <ebotcazou@adacore.com>
2895
2896 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
2897 (emit_save_register_window): Likewise.
2898 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
2899 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
2900 Swap back %o7/%i7 in register naming.
2901
0e9197f5
IS
29022011-06-25 Iain Sandoe <iains@gcc.gnu.org>
2903
2904 PR driver/49371
2905 * config/darwin.c (darwin_override_options): Improve warning when
2906 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
2907 is given with fpie/fPIE.
2908 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
2909 * config/darwin9.h (PIE_SPEC): New.
53461199 2910
605354f3 29112011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
2912
2913 * timevar.c (timevar_print): Increase width for display of timevar
2914 name.
2915
f796c438
JJ
29162011-06-24 Jakub Jelinek <jakub@redhat.com>
2917
2918 PR c++/46400
2919 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
2920 instead of TYPE_CHAIN for chain_next for types.
2921
a7289eaf
RH
29222011-06-24 Richard Henderson <rth@redhat.com>
2923
2924 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
2925 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
2926 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
2927 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
2928 (sparc_flat_expand_prologue): Emit individual instructions
2929 instead of one of the above.
2930
c4b9a87e
ER
29312011-06-24 Easwaran Raman <eraman@google.com>
2932
2933 PR rtl-optimization/49429
2934 PR target/49454
2935 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
2936 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
2937 used to copy y into x.
2938 * calls.c (initialize_argument_information): Mark
2939 an argument addressable if it is passed by invisible reference.
2940 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
2941 if it is passed by reference.
2942
5ac6c59e
L
29432011-06-24 H.J. Lu <hongjiu.lu@intel.com>
2944
2945 PR rtl-optimization/49504
2946 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
2947 subtraction of a pointer in Pmode if pointers extend unsigned.
2948 (num_sign_bit_copies1): Likewise.
5ac6c59e 2949
b807e627
MJ
29502011-06-24 Martin Jambor <mjambor@suse.cz>
2951
2952 PR tree-optimizations/49516
2953 * tree-sra.c (sra_modify_assign): Choose the safe path for
2954 aggregate copies if we also did scalar replacements.
2955
9a1ea4b9
RR
29562011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2957
2958 PR target/49335
2959 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 2960 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 2961
949cfd0a
AK
29622011-06-24 Andi Kleen <ak@linux.intel.com>
2963
2964 * tree-sra.c (type_internals_preclude_sra_p): Add msg
2965 parameter. Split up ifs and report reason in *msg.
2966 (reject): Add.
2967 (find_var_candiate): Add msg variable.
2968 Split up ifs and report reason to reject.
2969 (find_param_candidates): Add msg variable.
2970 Pass msg to type_internals_preclude_sra_p.
2971
49e9c661 29722011-06-23 Jeff Law <law@redhat.com>
ad3577df 2973
b0c11403
JL
2974 PR middle-end/48770
2975 * reload.h (reload): Change to return a bool.
2976 * ira.c (ira): If requested by reload, run a fast DCE pass after
2977 reload has completed. Fix comment typo.
2978 * reload1.c (need_dce): New file scoped static.
2979 (reload): Set reload_completed here. Return whether or not a DCE
2980 pass after reload is needed.
2981 (delete_dead_insn): Set need_dce as needed.
2982
ad3577df
JL
2983 PR middle-end/49465
2984 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
2985 to detect threading through joiner block. If there was already
2986 an edge to the new target, then do not change the PHI nodes.
2987
7cf64710
JJ
29882011-06-23 Jakub Jelinek <jakub@redhat.com>
2989
2990 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
2991 get_pointer_alignment to see if base isn't sufficiently aligned.
2992
febb1302
JH
29932011-06-23 Jan Hubicka <jh@suse.cz>
2994
2995 PR tree-optimize/49373
2996 * tree-pass.h (all_late_ipa_passes): Declare.
2997 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
2998 (cgraph_optimize): Execute late passes; remove unreachable funcions
2999 after materialization.
3000 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3001 LTOing.
febb1302
JH
3002 * passes.c (all_late_ipa_passes): Declare.
3003 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
3004 (init_optimization_passes): Move ipa_pta to late passes; schedule
3005 fixup_cfg at beggining of all_passes.
febb1302
JH
3006 (apply_ipa_transforms): New function.
3007 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3008
4c77620d
JM
30092011-06-23 Joseph Myers <joseph@codesourcery.com>
3010
3011 * params.c: Include common/common-target.h. Don't include tm.h.
3012 (lang_independent_params): Move from toplev.c.
3013 (global_init_params): New.
3014 * params.h (global_init_params): Declare.
3015 * target.def (default_params): Move to common-target.def.
3016 * toplev.c (lang_independent_options): Remove.
3017 (lang_independent_params): Move to params.c.
3018 (general_init): Use global_init_params.
3019 * common/common-target.def (option_default_params): Move from
3020 target.def.
3021 * common/config/ia64/ia64-common.c: Include params.h.
3022 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3023 from ia64.c.
3024 * common/config/rs6000/rs6000-common.c: Include params.h.
3025 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3026 from rs6000.c.
3027 * common/config/sh/sh-common.c: Include params.h.
3028 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3029 from sh.c.
3030 * common/config/spu/spu-common.c: Include params.h.
3031 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3032 from spu.c.
3033 * config/ia64/ia64.c (ia64_option_default_params,
3034 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3035 * config/rs6000/rs6000.c (rs6000_option_default_params,
3036 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3037 * config/sh/sh.c (sh_option_default_params,
3038 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3039 * config/spu/spu.c (spu_option_default_params,
3040 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3041 * Makefile.in (OBJS): Remove params.o.
3042 (OBJS-libcommon-target): Add params.o.
3043 (params.o, $(common_out_object_file)): Update dependencies.
3044 * doc/tm.texi: Regenerate.
3045
6aad1e38
AM
30462011-06-23 Alan Modra <amodra@gmail.com>
3047
3048 PR bootstrap/49383
3049 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3050 invocation for 2011-06-09 changes.
3051
4fb489e7
JJ
30522011-06-22 Jakub Jelinek <jakub@redhat.com>
3053
fb79f500
JJ
3054 PR libgomp/49490
3055 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
3056 use n ceil/ nthreads size for the first n % nthreads threads in the
3057 team instead of all threads except for the last few ones which
fb79f500
JJ
3058 get less work or none at all.
3059
4fb489e7
JJ
3060 PR debug/49496
3061 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3062 uses.
3063
9c7c9f10
RG
30642011-06-22 Richard Guenther <rguenther@suse.de>
3065
3066 PR tree-optimization/49493
3067 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3068 Refer to the alias target of variables.
3069 (associate_varinfo_to_alias_1): Remove.
3070 (ipa_pta_execute): Do not associate aliases with anything.
3071 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3072 (cgraph_function_node): Likewise.
3073 (cgraph_function_or_thunk_node): Likewise.
3074 (varpool_variable_node): Likewise.
3075
7cf13d1f
NS
30762011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3077
0d5e0c1b 3078 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
3079 * config.gcc (arm*-*-linux*): Default to gnu tls.
3080 (arm*-*-*): Add --with-tls option.
3081 (all_defaults): Add 'tls'.
3082
78a8eb4e
RH
30832011-06-22 Richard Henderson <rth@redhat.com>
3084
3085 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3086 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3087 (dwarf2out_frame_debug_cfa_window_save): Rename from
3088 dwarf2out_window_save; make static.
3089 * tree.h (dwarf2out_window_save): Don't declare.
3090
3091 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3092 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3093 (emit_save_register_window): Rename from gen_save_register_window;
3094 emit the insn and add REG_CFA_* notes.
3095 (sparc_expand_prologue): Update to match.
3096 * config/sparc/sparc.md (save_register_window_1): Simplify from
3097 save_register_window<P:mode>.
3098
3b4c46d7
L
30992011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3100
3101 PR target/49497
3102 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3103 (*lea_general_2_zext): Likewise.
3104 (imul to lea peepholes): Use const359_operand and check
3105 TARGET_PARTIAL_REG_STALL.
3106
3107 * config/i386/predicates.md (const359_operand): New.
3108
4399cf59
MM
31092011-06-22 Michael Matz <matz@suse.de>
3110
3111 * cgraphunit.c (assemble_thunk): Use correct return type.
3112
31a0c825 31132011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 3114 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
3115
3116 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3117 (neon_output_shift_immediate): Ditto.
3118 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3119 prototype.
3120 (neon_output_shift_immediate): Ditto.
3121 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3122 (vashr<mode>3_imm): New insn pattern.
3123 (vlshr<mode>3_imm): Ditto.
3124 (vashr<mode>3): Modified constraint.
3125 (vlshr<mode>3): Ditto.
3126 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3127 predicate.
3128 (imm_for_neon_rshift_operand): Ditto.
3129 (imm_lshift_or_reg_neon): Ditto.
3130 (imm_rshift_or_reg_neon): Ditto.
3131
3132 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3133
ddb555ed
JJ
31342011-06-22 Jakub Jelinek <jakub@redhat.com>
3135
36dc1a88
JJ
3136 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3137 builtin calls even if likelyvalue is not CONSTANT.
3138 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3139 Return get_value_for_expr of first operand
3140 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3141 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3142 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3143 their non-checking counterparts.
3144 (call_may_clobber_ref_p_1): Likewise.
3145 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3146 like their non-checking counterparts.
3147 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3148 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3149 like their non-checking counterparts.
3150 (find_func_clobbers): Likewise.
3151 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3152 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3153
41cd4957
JJ
3154 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3155 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3156 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3157 of base type reference as argument.
3158 (resolve_addr_in_expr): Likewise. Fix keep computation.
3159 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
3160 (convert_descriptor_to_mode): ... this. For wider types convert to
3161 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
3162 (typed_binop): New function.
3163 (scompare_loc_descriptor, ucompare_loc_descriptor,
3164 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3165 default to unsigned type instead of signed.
3166
ddb555ed
JJ
3167 PR debug/47858
3168 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3169 (gimple_build_debug_source_bind_stat): New prototype.
3170 (gimple_build_debug_source_bind): Define.
3171 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3172 gimple_debug_source_bind_get_value,
3173 gimple_debug_source_bind_get_value_ptr,
3174 gimple_debug_source_bind_set_var,
3175 gimple_debug_source_bind_set_value): New inlines.
3176 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3177 * gimple-pretty-print.c (dump_gimple_debug): Handle
3178 GIMPLE_DEBUG_SOURCE_BIND.
3179 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3180 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3181 * tree-parloops.c (eliminate_local_variables,
3182 separate_decls_in_region): Likewise.
3183 (separate_decls_in_region_debug): Renamed from
3184 separate_decls_in_region_debug_bind. Handle
3185 gimple_debug_source_bind_p.
3186 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3187 prototypes.
3188 (DECL_HAS_DEBUG_ARGS_P): Define.
3189 (struct tree_function_decl): Add has_debug_args_flag field.
3190 * tree.c (debug_args_for_decl): New variable.
3191 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3192 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3193 (rewrite_debug_stmt_uses): New function.
3194 (rewrite_stmt): Use it to rewrite debug stmt uses.
3195 * rtl.def (DEBUG_PARAMETER_REF): New.
3196 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3197 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3198 DEBUG_PARAMETER_REF.
3199 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3200 * print-rtl.c (print_rtx): Likewise.
3201 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3202 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3203 debug stmts in the first bb.
3204 * tree-inline.c (remap_ssa_name): If remapping default def
3205 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3206 a source bind debug stmt.
3207 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3208 (maybe_move_debug_stmts_to_successors): Likewise.
3209 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3210 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3211 debug args vector from old_decl to new_decl.
3212 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3213 or modified parameters, add debug bind stmts before call
0d5e0c1b 3214 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
3215 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3216 on DECL_DEBUG_EXPRs from debug args vector.
3217 (expand_debug_source_expr): New function.
3218 (expand_debug_locations): Use it for source bind insns.
3219 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3220 * var-tracking.c (prepare_call_arguments): Add debug args
3221 to call_arguments if any.
3222 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
3223 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3224 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
3225 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3226 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3227 (gen_subprogram_die): Handle parameters identified by
3228 DEBUG_PARAMETER_REF.
3229
ccdc2164
NS
32302011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3231
3232 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3233 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
3234 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3235 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3236 (arm_tls_descseq_addr): New.
3237 (legitimize_tls_address): Add tlsdesc support.
3238 (arm_cannot_copy_insn_p): Check for tlscall.
3239 (arm_emit_tls_decoration): Likewise.
3240 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3241 (OPTION_DEFAULT_SPECS): Add with-tls support.
3242 * config/arm/arm.md (R1_REGNUM): Define.
3243 (tlscall): New.
3244 * config/arm/arm.opt (tls_type): New enumeration type and values.
3245 (mtls-dialect): New switch.
3246 * config/arm/arm-opts.h (enum tls_type): New.
3247
70e41a6a
NP
32482011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3249
3250 * attribs.c (register_attribute): Added assert to check that all
3251 attribute specs are registered with a name that is not empty and
3252 does not start with '_'.
3253 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3254 if the function has no attributes.
3255 * tree.c (is_attribute_with_length_p): Removed.
3256 (is_attribute_p): Removed.
0d5e0c1b 3257 (private_is_attribute_p): New.
70e41a6a
NP
3258 (private_lookup_attribute): New.
3259 (lookup_attribute): Removed.
3260 (lookup_ident_attribute): New.
3261 (remove_attribute): Require the first argument to be in the form
3262 'text', not '__text__'. Updated asserts.
3263 (merge_attributes): Use lookup_ident_attributes instead of
3264 lookup_attribute.
3265 (merge_dllimport_decl_attributes): Use remove_attribute.
3266 (attribute_list_contained): Likewise.
3267 (attribute_list_equal): Immediately return 1 if the arguments are
3268 identical pointers.
3269 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3270 'int'. Require the first argument to be in the form 'text', not
3271 '__text__'. Require the second argument to be an identifier.
3272 (lookup_attribute): Made inline. Require the first argument to be
3273 in the form 'text', not '__text__'.
3274 (private_is_attribute_p, private_lookup_attribute): New.
3275 Updated comments.
0d5e0c1b 3276
e0a8ecf2
AM
32772011-06-21 Andrew MacLeod <amacleod@redhat.com>
3278
3279 * builtins.c: Add sync_ or SYNC__ to builtin names.
3280 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3281 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3282
663827d3 32832011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 3284
663827d3
GJL
3285 PR target/33049
3286 * config/avr/avr.md (extzv): New expander.
3287 (*extzv): New insn.
3288 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3289 * config/avr/constraints.md (C04): New constraint.
3290 * doc/md.texi (Machine Constraints): Document it.
3291
146aef0b
JJ
32922011-06-21 Jakub Jelinek <jakub@redhat.com>
3293
3294 PR middle-end/49489
3295 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3296 unsignedp argument instead of 1 for clrsb_optab.
3297 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3298 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3299 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3300 * optabs.c (widen_leading): Call widen_operand and expand_unop
3301 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 3302 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 3303
c0503294
GJL
33042011-06-21 Georg-Johann Lay <avr@gjlay.de>
3305
3306 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3307
3801c801
BS
33082011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3309
0bddee8e
BS
3310 * gensupport.c (add_define_attr): New static function.
3311 (is_predicable): Allow multi-alternative lists for the "predicable"
3312 attribute.
3313 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3314 (process_one_cond_exec): Call alter_attrs_for_insn.
3315 * doc/md.texi (Defining Attributes): Mention some standard names.
3316 (Conditional Execution): Update documentation for "predicable".
3317
3801c801
BS
3318 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3319 __builtin_clrsbll): Document.
3320 * doc/rtl.texi (clrsb): New entry.
3321 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3322 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3323 (expand_unop): Handle clrsb_optab.
3324 (init_optabs): Initialize it.
3325 * optabs.h (enum optab_index): New entry OTI_clrsb.
3326 (clrsb_optab): Define.
3327 * genopinit.c (optabs): Add an entry for it.
3328 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3329 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3330 BUILT_IN_CLRSBLL): New.
3331 * rtl.def (CLRSB): New code.
3332 * dwarf2out.c (mem_loc_descriptor): Handle it.
3333 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3334 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3335 and popcount.
3336 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3337 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3338 (__ctzDI2): Move declaration.
3339 * config/bfin/bfin.md (clrsbsi2): New expander.
3340 (signbitssi2): Use the CLRSB rtx.
3341 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3342 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3343
55f01229
RG
33442011-06-21 Richard Guenther <rguenther@suse.de>
3345
637c11bd 3346 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 3347
5181cd6a
IR
33482011-06-21 Ira Rosen <ira.rosen@linaro.org>
3349
3350 PR tree-optimization/49478
3351 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3352 with constant operand.
3353
e4ee3d70
RG
33542011-06-21 Richard Guenther <rguenther@suse.de>
3355
3356 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 3357
7b7ec6c5
RG
33582011-06-21 Richard Guenther <rguenther@suse.de>
3359
3360 PR tree-optimization/49483
3361 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3362 VIEW_CONVERT_EXPR conversions.
3363
1b916ca6
JM
33642011-06-21 Joseph Myers <joseph@codesourcery.com>
3365
3366 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3367 * config/avr/avr-tables.opt: New file (generated).
3368 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3369 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3370 avr-mcus.def.
3371 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3372 (avr_option_override): Don't process -mmcu= argument here. Set
3373 avr_current_device using avr_mcu_index.
637c11bd 3374 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
3375 * config/avr/avr.opt (mmcu=): Use Enum.
3376 * config/avr/t-avr (avr-devices.o): Update dependencies.
3377 ($(srcdir)/config/avr/avr-tables.opt): New.
3378 * target.def (help): Remove.
3379 * doc/tm.texi.in (TARGET_HELP): Remove.
3380 * doc/tm.texi: Regenerate.
3381 * opts.c: Don't include target.h.
3382 (common_handle_option): Don't call targetm.help.
3383 * system.h (TARGET_HELP): Poison.
3384 * Makefile.in (opts.o): Update dependencies.
3385
7ecfa34f
RO
33862011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3387
3388 * config/usegld.h: New file.
3389 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3390 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 3391 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
3392 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3393 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
3394 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3395 Define.
7ecfa34f
RO
3396 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3397 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3398 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3399 (STACK_CHECK_STATIC_BUILTIN): Define.
3400 * config/sol2.opt (compat-bsd): Remove.
3401 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3402 * config/sol2-bi.h: New file.
3403 * config/sol2-gld.h: Remove.
3404 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3405 (NO_DBX_BNSYM_ENSYM): Remove.
3406 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3407 (STACK_CHECK_STATIC_BUILTIN): Remove.
3408 Test USE_GLD instead of TARGET_GNU_LD.
3409 * config/i386/sol2-10.h: Rename to ...
3410 * config/i386/sol2-bi.h .. this.
3411 (SUBTARGET_EXTRA_SPECS): Redefine.
3412 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3413 (MULTILIB_DEFAULTS): Remove.
3414 (DEFAULT_ARCH32_P): Define.
3415 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3416 (ARCH64_SUBDIR): Define.
3417 Test USE_GLD instead of TARGET_GNU_LD.
3418 (I386_EMULATION): Rename to ...
3419 (ARCH32_EMULATION): ... this.
3420 (X86_64_EMULATION): Rename to ...
3421 (ARCH64_EMULATION): ... this.
3422 (TARGET_LD_EMULATION): Remove.
3423 (LINK_ARCH_SPEC): Remove.
3424 * config/i386/sol2-gas.h: Remove.
3425 * config/i386/t-sol2-10: Rename to ...
3426 * config/i386/t-sol2-64: ... this.
3427 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3428 (AS_SPARC64_FLAG): Define.
3429 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3430 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3431 depending on TARGET_CPU_DEFAULT.
3432 (CPP_CPU_SPEC): Redefine.
3433 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3434 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3435 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3436 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3437 ASM_ARCH_DEFAULT_SPEC): Redefine.
3438 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3439 LINK_ARCH_DEFAULT_SPEC.
3440 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3441 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3442 (ARCH64_SUBDIR): Define.
3443 (LINK_ARCH64_SPEC): Redefine.
3444 (CC1_SPEC): Redefine.
3445 (OPTION_DEFAULT_SPECS): Redefine.
3446 (MULTILIB_DEFAULTS): Define.
3447 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3448 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3449 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3450 (NO_DBX_BNSYM_ENSYM): Remove.
3451 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3452 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3453 (TARGET_ASM_NAMED_SECTION): Likewise.
3454 (STACK_CHECK_STATIC_BUILTIN): Remove.
3455 * config/sparc/sol2-bi.h: Remove.
3456 * config/sparc/sol2-gas-bi.h: Remove.
3457 * config/sparc/sol2-gas.h: Remove.
3458 * config/sparc/sol2-gld-bi.h: Remove.
3459 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3460 common parts ...
3461 (*-*-solaris2*): ... here.
3462
4b583c43 34632011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 3464
4b583c43 3465 PR other/43564
637c11bd
UB
3466 * ipa-inline.c (can_inline_edge_p): Check
3467 !DECL_DISREGARD_INLINE_LIMITS.
3468
3bb556ad 34692011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 3470
3bb556ad
CB
3471 PR middle-end/49139
3472 * cgraphunit.c (process_function_and_variable_attributes): warn when
3473 always_inline functions that are not inline.
637c11bd
UB
3474 * ipa-inline-transform.c (inline_transform): Always call
3475 optimize_inline.
3476 * tree-inline.c (tree_inlinable_function_p): Use error instead
3477 of sorry.
3bb556ad 3478 (expand_call_inline): Likewise.
637c11bd 3479
f1ee724c
JJ
34802011-06-21 Jakub Jelinek <jakub@redhat.com>
3481
3482 * Makefile.in (dg_target_exps): Set.
3483 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3484 instead of 7, try to divide it more evenly.
3485
34862011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 3487
931050d0 3488 PR target/49089
97ef5ae6
CF
3489 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3490 (avx256_split_unaligned_store): New definition.
3491 (ix86_option_override_internal): Enable avx256 unaligned load/store
3492 splitting only when avx256_split_unaligned_load/store is set.
3493
998c75b6
BS
34942011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3495
3496 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3497 open chain in a smaller mode without failing the entire block.
3498
83a8cbda
L
34992011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3500
3501 PR middle-end/47725
3502 * combine.c (cant_combine_insn_p): Don't check zero/sign
3503 extended hard registers.
3504
3a769784
AM
35052011-06-21 Alan Modra <amodra@gmail.com>
3506
3507 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3508 CONST high part large-toc address.
3509 (rs6000_tls_referenced_p): Make static.
3510 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3511
d1e32c4a
L
35122011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3513
3514 PR middle-end/47725
3515 * combine.c (cant_combine_insn_p): Check zero/sign extended
3516 hard registers.
3517
c2954af9
RR
35182011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3519
3520 PR target/49385
3521 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3522 one of the operands is a register.
3523
a95015b6
KT
35242011-06-20 Kai Tietz <ktietz@redhat.com>
3525
637c11bd
UB
3526 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3527 operations in combination with binary and.
a95015b6 3528
49a30d00
BS
35292011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3530
3531 * regrename.c (do_replace): Don't update notes.
3532
3bae1d98
AM
35332011-06-20 Alan Modra <amodra@gmail.com>
3534
3535 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3536 of toc-relative address in CONST.
3537 (rs6000_delegitimize_address): Recognize changed address.
3538 (rs6000_legitimize_reload_address): Likewise.
3539 (rs6000_emit_move): Don't force these constants to memory.
3540 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3541 toc-relative address in CONST.
3542 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3543 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3544
10937b0c
L
35452011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3546
637c11bd 3547 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
3548 (count_trailing_zeros): Likewise.
3549
0c587260
L
35502011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3551
3552 PR other/49325
3553 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3554 .init_array can be used with .ctors on targets.
3555 * configure: Regenerated.
3556
c020c92b
EB
35572011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3558
3559 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3560 if the element type is volatile.
3561
cd35bcf7
JH
35622011-06-18 Jan Hubicka <jh@suse.cz>
3563
3564 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3565 extra name aliases.
3566 (lto_symtab_resolve_can_prevail_p): Likewise.
3567 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3568 * cgraphbuild.c (record_reference): Remove extra body alias code.
3569 (mark_load): Likewise.
3570 (mark_store): Likewise.
3571 * cgraph.h (varpool_node): Remove extra_name filed;
3572 add alias_of and extraname_alias.
3573 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3574 (varpool_alias_aliased_node): New inline function.
3575 (varpool_variable_node): New function.
3576 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3577 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3578 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3579 (input_varpool_node): Likewise.
3580 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3581 (varpool_externally_visible_p): Remove extra body alias code.
3582 (function_and_variable_visibility): Likewise.
3583 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3584 (ipa_pta_execute): Use it.
3585 * varpool.c (varpool_remove_node): Remove extra name alias code.
3586 (varpool_mark_needed_node): Likewise.
3587 (varpool_analyze_pending_decls): Analyze aliases.
3588 (assemble_aliases): New functoin.
3589 (varpool_assemble_decl): Use it.
3590 (varpool_create_variable_alias): New function.
3591 (varpool_extra_name_alias): Rewrite.
3592 (varpool_for_node_and_aliases): New function.
3593
c96b4102
JJ
35942011-06-18 Jakub Jelinek <jakub@redhat.com>
3595
3596 PR target/49411
3597 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3598 last_arg_constant and last argument doesn't match its predicate,
3599 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3600 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3601 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3602 spelling of error message.
3603 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3604 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3605 const_0_to_255_operand instead of const_int_operand.
3606
3607 Revert:
3608 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3609
3610 * config/i386/sse.md (blendbits): Remove mode attribute.
3611 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3612 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3613 Check integer value of operand 3 in insn constraint.
3614
9a2091cd
HPN
36152011-06-17 Hans-Peter Nilsson <hp@axis.com>
3616
3617 PR rtl-optimization/48542
3618 * reload.c (find_equiv_reg): Stop looking when finding a
3619 setjmp-type call.
3620 * reload1.c (reload_as_needed): Invalidate all reload
3621 registers when crossing a setjmp-type call.
3622
361b51c0
JL
36232011-06-16 Jeff Law <law@redhat.com>
3624
3625 * tree-ssa-threadupdate.c (struct redirection_data): New field
3626 intermediate_edge.
3627 (THREAD_TARGET2): Define.
637c11bd 3628 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
3629 (lookup_redirection_data): Drop useless argument. Extract the
3630 outgoing_edge and intermediate edge from E. Callers updated.
3631 (copy_phi_args, update_destination_phis): New functions.
3632 (fix_duplicate_block_edges): Likewise.
3633 (create_edge_and_update_destination_phis): Duplicate all the edges
3634 hung off e->aux. Use copy_phi_args.
3635 (create_duplicates): Use fix_duplicate_block_edges.
3636 (fixup_template_block): Likewise.
3637 (redirect_edges): If necessary, redirect the joiner block's incoming
3638 edge to the duplicate of the joiner block.
3639 (thread_block): Don't muck up loops when threading through a joiner
3640 block.
637c11bd 3641 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
3642 (mark_threaded_blocks, register_jump_thread): Likewise.
3643 * tree-flow.h (register_jump_thread): Add new argument. Callers
3644 updated.
3645 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3646 (thread_across_edge): Handle threading through a joiner block.
637c11bd 3647
ee460e75
MJ
36482011-06-16 Martin Jambor <mjambor@suse.cz>
3649
3650 PR tree-optimization/49343
3651 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3652 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3653
a285ba2e
IS
36542011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3655
3656 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3657 inside RTX_CODE ifdef.
3658
0703f020
TV
36592011-06-16 Tom de Vries <tom@codesourcery.com>
3660
3661 PR target/45098
637c11bd
UB
3662 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3663 Disallow NULL pointer for pointer arithmetic.
0703f020 3664
900c07da
RR
36652011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3666
3667 PR target/49398
3668 Revert.
3669 2011-06-10 Wei Guozhi <carrot@google.com>
3670
3671 PR target/45335
3672 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3673 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3674 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3675 related peephole2.
3676 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3677 related peephole2.
3678 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3679 (arm_legitimate_ldrd_p): New prototype.
3680 (arm_output_ldrd): New prototype.
3681 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3682 (arm_legitimate_ldrd_p): New function.
3683 (arm_output_ldrd): New function.
3684
c020c92b 36852011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
3686
3687 PR middle-end/46500
3688 * doc/tm.texi.in: Update Copyright date.
3689 * doc/tm.texi: Regenerate.
3690 * targhooks.c (default_setup_incoming_varargs): Replace
3691 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3692 (default_pretend_outgoing_varargs_named): Likewise.
3693 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3694 (hook_callee_copies_named): Likewise.
3695 (default_function_arg_advance): Likewise.
3696 (default_function_arg): Likewise.
3697 (default_function_incoming_arg): Likewise.
3698 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3699 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3700 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3701 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3702 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3703 * targhooks.h (default_setup_incoming_varargs): Likewise.
3704 (default_pretend_outgoing_varargs_named): Likewise.
3705 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3706 (hook_callee_copies_named): Likewise.
3707 (default_function_arg_advance): Likewise.
3708 (default_function_arg): Likewise.
3709 (default_function_incoming_arg): Likewise.
3710 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3711 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3712 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3713 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3714 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3715 * target.def (pass_by_reference): Likewise.
3716 (setup_incoming_varargs, strict_argument_naming): Likewise.
3717 (pretend_outgoing_varargs_named, callee_copies): Likewise.
3718 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3719 (function_incoming_arg): Likewise.
3720 * target.h: Don't include "tm.h" .
3721 (cumulative_args_t): New typedef.
3722 [GCC_TM_H] (get_cumulative_args): New static inline function.
3723 [GCC_TM_H] (pack_cumulative_args): Likewise.
3724 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3725 argument type with cumulative_args_t.
3726 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3727 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3728 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3729 (frv_arg_partial_bytes, frv_function_arg): Likewise.
3730 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3731 (frv_function_arg_1): Likewise.
3732 * config/s390/s390.c (s390_pass_by_reference): Likewise.
3733 (s390_function_arg_advance, s390_function_arg): Likewise.
3734 * config/m32c/m32c.c (m32c_function_arg): Likewise.
3735 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3736 (m32c_strict_argument_naming): Likewise.
3737 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3738 (spu_function_arg_advance): Likewise.
3739 (spu_setup_incoming_varargs): Likewise. Make static.
3740 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
3741 Remove prototype.
3742 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
3743 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3744 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
3745 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
3746 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
3747 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
3748 (mep_pass_by_reference, mep_function_arg): Likewise.
3749 (mep_function_arg_advance): Likewise.
3750 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3751 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
3752 (m32r_function_arg, m32r_function_arg_advance): Likewise.
3753 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
3754 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
3755 (ix86_function_arg, ix86_pass_by_reference): Likewise.
3756 (ix86_setup_incoming_varargs): Likewise.
3757 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
3758 (sh_strict_argument_naming): Likewise.
3759 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
3760 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
3761 (sh_function_arg_advance, sh_function_arg): Likewise.
3762 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
3763 (pdp11_function_arg_advance): Likewise.
3764 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
3765 Likewise.
3766 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
3767 * config/avr/avr.c (avr_function_arg): Likewise.
3768 (avr_function_arg_advance): Likewise.
3769 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
3770 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
3771 (xtensa_function_arg_1): Likewise.
637c11bd
UB
3772 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
3773 Likewise.
d5cc9181
JR
3774 (xstormy16_function_arg): Likewise.
3775 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
3776 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
3777 (fr30_function_arg_advance): Likewise.
3778 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3779 (lm32_function_arg, lm32_function_arg_advance): Likewise.
3780 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
3781 (moxie_function_arg, moxie_function_arg_advance): Likewise.
3782 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
3783 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
3784 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
3785 (cris_function_arg, cris_function_incoming_arg): Likewise.
3786 (cris_function_arg_advance, cris_function_arg_1): Likewise.
3787 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
3788 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
3789 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
3790 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
3791 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
3792 (mn10300_arg_partial_bytes): Likewise.
3793 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
3794 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
3795 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
3796 (ia64_function_arg_1): Likewise.
3797 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
3798 (m68k_function_arg): Likewise.
3799 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
3800 (rs6000_function_arg, setup_incoming_varargs): Likewise.
3801 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
3802 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
3803 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
3804 (picochip_arg_advance): Likewise.
3805 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
3806 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
3807 (mcore_function_arg_advance): Likewise.
3808 * config/score/score.c (score_pass_by_reference): Likewise.
3809 (score_function_arg_advance): Likewise.
3810 (score_arg_partial_bytes): Likewise. Make static.
3811 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
3812 * config/arm/arm.c (arm_arg_partial_bytes): Replace
3813 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3814 (arm_function_arg, arm_function_arg_advance): Likewise.
3815 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
3816 * config/pa/pa.c (pa_pass_by_reference): Likewise.
3817 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
3818 (pa_function_arg): Likewise.
3819 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
3820 (mips_function_arg, mips_function_arg_advance): Likewise.
3821 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
3822 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
3823 * config/vax/vax.c (vax_function_arg): Likewise.
3824 (vax_function_arg_advance): Likewise.
3825 * config/h8300/h8300.c (h8300_function_arg): Likewise.
3826 (h8300_function_arg_advance): Likewise.
3827 * config/v850/v850.c (v850_pass_by_reference): Likewise.
3828 (v850_strict_argument_naming, v850_function_arg): Likewise.
3829 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
3830 (v850_setup_incoming_varargs): Likewise.
3831 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
3832 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
3833 (mmix_function_arg, mmix_pass_by_reference): Likewise.
3834 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
3835 with const void *.
3836 * config/bfin/bfin.c (setup_incoming_varargs): Replace
3837 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3838 (bfin_function_arg_advance, bfin_function_arg): Likewise.
3839 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
3840 * calls.c (emit_call_1): Change type of args_so_far to
3841 cumulative_args_t. Changed all callers.
3842 (initialize_argument_information): Likewise.
3843 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
3844 * dse.c (get_call_args): Likewise.
3845 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3846 * function.c (pass_by_reference, reference_callee_copied): Likewise.
3847 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
3848 New member args_so_far_v. Changed all users.
3849 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
3850 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3851 * config/mips/mips.c (mips_output_args_xfer): Likewise.
3852 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3853 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
3854 * config/microblaze/microblaze.c (microblaze_expand_prologue):
3855 Likewise.
d5cc9181
JR
3856 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
3857 m32r_pass_by_reference.
3858
51312233
IR
38592011-06-16 Ira Rosen <ira.rosen@linaro.org>
3860
3861 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
3862 argument to be a VEC of statements.
637c11bd
UB
3863 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
3864 assert that pattern statements have to have their vector type set.
51312233
IR
3865 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
3866 Change the first argument to be a VEC of statements. Update
3867 documentation.
3868 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
3869 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
3870 (vect_recog_widen_mult_pattern): Change the first argument to be a
3871 VEC of statements. Update documentation. Check that the constant is
3872 INTEGER_CST. Support multiplication by a constant that fits an
3873 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
3874 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
3875 call. Handle additional pattern statements if necessary.
3876
fd4df33d
NC
38772011-06-16 Nick Clifton <nickc@redhat.com>
3878
3879 PR target/49427
3880 * config.gcc: Set cpu_type to v850 for any V850 architecture.
3881 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
3882 md_file, extra_modes, out_file and extra_options are these are all
3883 deduced from cpu_type.
3884
fbd05da0
GJL
38852011-06-16 Georg-Johann Lay <avr@gjlay.de>
3886
3887 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
3888 truncation mask to 63.
3889
0ad8bb3b
GJL
38902011-06-16 Georg-Johann Lay <avr@gjlay.de>
3891
3892 PR target/49313
3893 PR target/29524
3894 * longlong.h: Add AVR support:
3895 (count_leading_zeros): New macro.
3896 (count_trailing_zeros): New macro.
3897 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
3898 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
3899 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
3900 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
3901 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
3902 (LIB2FUNCS_EXCLUDE): Add _clz.
3903 * config/avr/libgcc.S (XCALL): Move up in file.
3904 (XJMP): New C Macro.
3905 (DEFUN): New asm macro.
3906 (ENDF): New asm macro.
3907 (__ffssi2): New function.
3908 (__ffshi2): New function.
3909 (__loop_ffsqi2): New function.
3910 (__ctzsi2): New function.
3911 (__ctzhi2): New function.
3912 (__clzdi2): New function.
3913 (__clzsi2): New function.
3914 (__clzhi2): New function.
3915 (__paritydi2): New function.
3916 (__paritysi2): New function.
3917 (__parityhi2): New function.
59c1e10b 3918 (__parityqi2): New function.
0ad8bb3b
GJL
3919 (__popcounthi2): New function.
3920 (__popcountsi2): New function.
3921 (__popcountdi2): New function.
3922 (__popcountqi2): New function.
3923 (__bswapsi2): New function.
3924 (__bswapdi2): New function.
3925 (__ashldi3): New function.
3926 (__ashrdi3): New function.
3927 (__lshrdi3): New function.
3928 Fix suspicous lines.
3929
12430896
RG
39302011-06-16 Richard Guenther <rguenther@suse.de>
3931
3932 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
3933 the same as x != 0.
637c11bd
UB
3934 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
3935 to (bool) X & 1.
12430896
RG
3936 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
3937 equality compares against zero for the lower bit.
3938
09302442
JJ
39392011-06-16 Jakub Jelinek <jakub@redhat.com>
3940
3941 PR tree-optimization/49419
3942 * tree-vrp.c (execute_vrp): Call init_range_assertions
3943 before estimate_numbers_of_iterations, call
3944 free_number_of_iterations_estimates before calling
3945 remove_range_assertions.
3946
81c41166
RE
39472011-06-16 Revital Eres <revital.eres@linaro.org>
3948
3949 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
3950 (struct partial_schedule): Add rows_length field.
3951 (verify_partial_schedule): Check rows_length.
3952 (ps_insert_empty_row): Handle rows_length.
3953 (create_partial_schedule): Likewise.
3954 (free_partial_schedule): Likewise.
3955 (reset_partial_schedule): Likewise.
3956 (create_ps_insn): Remove rest_count argument.
3957 (remove_node_from_ps): Update rows_length.
3958 (add_node_to_ps): Update rows_length and call create_ps_insn
3959 without passing row_rest_count.
3960 (rotate_partial_schedule): Update rows_length.
3961
d24dc7b3
RE
39622011-06-16 Revital Eres <revital.eres@linaro.org>
3963
3964 * ddg.c (add_intra_loop_mem_dep): New function.
3965 (build_intra_loop_deps): Call it.
3966
361b51c0 39672011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
3968
3969 * df-problems.c (df_lr_local_compute): Manually CSE
3970 PIC_OFFSET_TABLE_REGNUM.
3971 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
3972 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
3973
85ce9375
JH
39742011-06-13 Jan Hubicka <jh@suse.cz>
3975
3976 * cgraphunit.c (handle_alias_pairs): New function.
3977 (cgraph_finalize_compilation_unit): Use it.
3978 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
3979 as externally visible.
3980
a577c405
RG
39812011-06-15 Richard Guenther <rguenther@suse.de>
3982
3983 * expr.c (expand_expr_real_2): Reduce all integral types to
3984 bitfield precision.
3985 (expand_expr_real_1): Likewise.
3986
93536c97
MJ
39872011-06-15 Martin Jambor <mjambor@suse.cz>
3988
3989 PR tree-optimization/48613
3990 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
3991 ipa_node_params_vector is NULL.
fd4df33d 3992
ba45cfc4
JJ
39932011-06-15 Jakub Jelinek <jakub@redhat.com>
3994
3995 PR debug/49382
3996 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
3997 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
3998 location in the list, even if it is modified before first real insn.
ba45cfc4 3999 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 4000 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 4001
6fc5966f
AM
40022011-06-15 Alexander Monakov <amonakov@ispras.ru>
4003
4004 PR target/49349
4005 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4006 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4007 above a fence. Update comments.
4008 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4009 placed just above it. Do not allow NULL place_to_insert.
4010
9d5e7640
IR
40112011-06-15 Ira Rosen <ira.rosen@linaro.org>
4012
4013 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4014 (slpeel_tree_peel_loop_to_edge): Don't call
4015 remove_dead_stmts_from_loop.
4016 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4017 remove irrelevant pattern statements. For irrelevant statements
4018 check if it is the last statement of a detected pattern, use
4019 corresponding pattern statement instead.
4020 (destroy_loop_vec_info): No need to remove pattern statements,
4021 only free stmt_vec_info.
4022 (vect_transform_loop): For irrelevant statements check if it is
4023 the last statement of a detected pattern, use corresponding
4024 pattern statement instead.
4025 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4026 pattern statements. Set basic block for the new statement.
4027 (vect_pattern_recog): Update documentation.
4028 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4029 operands of pattern statements.
4030 (vectorizable_call): Fix printing. In case of a pattern statement
4031 use the lhs of the original statement when creating a dummy
4032 statement to replace the original call.
4033 (vect_analyze_stmt): For irrelevant statements check if it is
4034 the last statement of a detected pattern, use corresponding
4035 pattern statement instead.
4036 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4037 statements use gsi of the original statement.
4038
677f3fa8
JM
40392011-06-14 Joseph Myers <joseph@codesourcery.com>
4040
4041 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4042 common/common-target-def.h.
4043 * target.def (default_target_flags, handle_option,
4044 supports_split_stack, optimization_table, init_struct,
4045 except_unwind_info, unwind_tables_default, have_named_sections):
4046 Move to common/common-target.def.
4047 * target.h (enum opt_levels, struct default_options): Move to
4048 common/common-target.h.
4049 * targhooks.c (default_except_unwind_info,
4050 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4051 default_target_handle_option, empty_optimization_table): Move to
4052 common/common-targhooks.c.
4053 * targhooks.h (default_except_unwind_info,
4054 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4055 default_target_handle_option, empty_optimization_table): Move to
4056 common/common-targhooks.h.
4057 * common/common-target-def.h: Include common/common-targhooks.h.
4058 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4059 defined.
4060 * common/common-target.def (handle_option, option_init_struct,
4061 option_optimization_table, default_target_flags,
4062 except_unwind_info, supports_split_stack, unwind_tables_default,
4063 have_named_sections): Move from target.def.
4064 (HOOK_PREFIX): Undefine at end of file.
4065 * common/common-target.h: Include input.h.
4066 (enum opt_levels, struct default_options): Move from target.h.
4067 * common/common-targhooks.c, common/common-targhooks.h: New.
4068 * config.gcc (target_has_targetm_common): Default to yes.
4069 (moxie*): Set target_has_targetm_common=no.
4070 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4071 * doc/tm.texi: Regenerate.
4072 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4073 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4074 (GCC_OBJS): Remove vec.o.
4075 (OBJS): Remove hooks.o and vec.o.
4076 (OBJS-libcommon-target): Add vec.o, hooks.o and
4077 common/common-targhooks.o.
4078 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4079 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4080 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4081 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4082 Update dependencies.
4083 (common/common-targhooks.o): New.
637c11bd 4084 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
4085 * common/config/pa/pa-common.c: Include more headers. Take
4086 copyright dates from pa.c.
4087 (pa_option_optimization_table, pa_handle_option,
4088 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4089 TARGET_HANDLE_OPTION): Move from pa.c.
4090 * common/config/alpha/alpha-common.c,
4091 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4092 common/config/bfin/bfin-common.c,
4093 common/config/cris/cris-common.c,
4094 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4095 common/config/h8300/h8300-common.c,
4096 common/config/i386/i386-common.c,
4097 common/config/ia64/ia64-common.c,
4098 common/config/iq2000/iq2000-common.c,
4099 common/config/lm32/lm32-common.c,
4100 common/config/m32c/m32c-common.c,
4101 common/config/m32r/m32r-common.c,
4102 common/config/m68k/m68k-common.c,
4103 common/config/mcore/mcore-common.c,
4104 common/config/mep/mep-common.c,
4105 common/config/microblaze/microblaze-common.c,
4106 common/config/mips/mips-common.c,
4107 common/config/mmix/mmix-common.c,
4108 common/config/mn10300/mn10300-common.c,
4109 common/config/pdp11/pdp11-common.c,
4110 common/config/picochip/picochip-common.c,
4111 common/config/rs6000/rs6000-common.c,
4112 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4113 common/config/score/score-common.c, common/config/sh/sh-common.c,
4114 common/config/sparc/sparc-common.c,
4115 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4116 common/config/vax/vax-common.c,
4117 common/config/xstormy16/xstormy16-common.c,
4118 common/config/xtensa/xtensa-common.c: New.
4119 * config/alpha/alpha.c: Include common/common-target.h.
4120 (alpha_option_optimization_table, alpha_handle_option,
4121 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4122 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4123 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4124 * config/arm/arm.c (arm_option_optimization_table,
4125 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4126 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4127 arm-common.c.
4128 * config/avr/avr.c (avr_option_optimization_table,
4129 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4130 to avr-common.c.
4131 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4132 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4133 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4134 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4135 * config/cris/cris.c (cris_option_optimization_table,
4136 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4137 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4138 cris-common.c.
4139 * config/fr30/fr30.c (fr30_option_optimization_table,
4140 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4141 to fr30-common.c.
4142 * config/frv/frv.c (frv_option_optimization_table,
4143 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4144 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4145 * config/h8300/h8300.c (h8300_option_optimization_table,
4146 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4147 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4148 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4149 * config/i386/i386.c: Include common/common-target.h.
4150 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4151 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4152 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4153 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4154 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4155 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4156 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4157 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4158 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4159 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4160 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4161 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4162 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4163 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4164 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4165 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4166 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4167 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4168 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4169 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4170 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4171 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4172 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4173 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4174 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4175 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4176 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4177 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4178 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4179 ix86_option_optimization_table, ix86_option_init_struct,
4180 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4181 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4182 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4183 i386-common.c.
4184 * config/i386/t-i386 (i386.o): Update dependencies.
4185 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4186 * config/ia64/ia64.c (ia64_option_optimization_table,
4187 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4188 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4189 ia64_handle_option): Move to ia64-common.c.
4190 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4191 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4192 * config/lm32/lm32.c (lm32_option_optimization_table,
4193 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4194 to lm32-common.c.
4195 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4196 m32c-common.c.
4197 * config/m32r/m32r.c (m32r_option_optimization_table,
4198 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4199 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4200 m32r_handle_option): Move to m32r-common.c.
4201 (m32r_memory_move_cost): Remove comment referring to
4202 TARGET_HANDLE_OPTION.
4203 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4204 Move to m68k-common.c.
4205 * config/mcore/mcore.c (mcore_option_optimization_table,
4206 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4207 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4208 * config/mep/mep.c (mep_option_optimization_table,
4209 mep_handle_option, TARGET_HANDLE_OPTION,
4210 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4211 Move to mep-common.c.
4212 * config/microblaze/microblaze.c
4213 (microblaze_option_optimization_table,
4214 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4215 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4216 * config/mips/mips.c (mips_handle_option,
4217 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4218 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4219 mips-common.c.
4220 * config/mmix/mmix.c (mmix_option_optimization_table,
4221 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4222 Move to mmix-common.c.
4223 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4224 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4225 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4226 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4227 * config/pa/pa.c: Include common/common-target.h.
4228 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4229 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4230 pa_handle_option): Move to pa-common.c.
4231 (pa_option_override): Use targetm_common.except_unwind_info.
4232 (pa_asm_output_mi_thunk, pa_function_section): Use
4233 targetm_common.have_named_sections.
4234 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4235 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4236 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4237 pdp11_handle_option, pdp11_option_init_struct): Move to
4238 pdp11-common.c.
4239 * config/picochip/picochip.c (picochip_option_optimization_table,
4240 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4241 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4242 * config/rs6000/rs6000.c: Include common/common-target.h.
4243 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4244 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4245 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4246 rs6000_handle_option): Move to rs6000-common.c.
4247 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4248 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4249 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4250 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4251 * config/s390/s390.c (processor_flags_table,
4252 s390_option_optimization_table, s390_option_init_struct,
4253 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4254 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4255 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4256 * config/s390/s390.h (processor_flags_table): Declare.
4257 * config/score/score.c (score_option_optimization_table,
4258 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4259 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4260 score_handle_option): Move to score-common.c.
4261 * config/sh/sh.c (sh_option_optimization_table,
4262 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4263 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4264 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4265 * config/sparc/sparc.c: Include common/common-target.h.
4266 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4267 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4268 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4269 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4270 spu_option_init_struct): Move to spu-common.c.
4271 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4272 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4273 * config/v850/v850.c (small_memory_physical_max,
4274 v850_handle_memory_optionn v850_handle_option,
4275 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4276 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4277 v850-common.c.
637c11bd 4278 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
4279 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4280 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4281 Move to xtensa-common.c.
4282 * cfglayout.c: Include common/common-target.h.
4283 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4284 * cfgrtl.c: Include common/common-target.h.
4285 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4286 targetm_common.have_named_sections.
4287 * dbxout.c: Include common/common-target.h.
4288 (dbxout_function_end): Use targetm_common.have_named_sections.
4289 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4290 targetm_common.except_unwind_info.
4291 * dwarf2out.c: Include common/common-target.h.
4292 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4293 dwarf2out_begin_prologue, dwarf2out_frame_init,
4294 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4295 targetm_common.except_unwind_info.
4296 * except.c: Include common/common-target.h.
4297 (init_eh, finish_eh_generation,
4298 output_one_function_exception_table): Use
4299 targetm_common.except_unwind_info.
637c11bd 4300 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
4301 * explow.c: Include common/common-target.h.
4302 * expr.c: Include common/common-target.h.
637c11bd 4303 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
4304 * function.c: Include common/common-target.h.
4305 (expand_function_end): Use targetm_common.except_unwind_info.
4306 * haifa-sched.c: Include common/common-target.h.
637c11bd 4307 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
4308 * lto-opts.c: Include common/common-target.h instead of target.h.
4309 (lto_reissue_options): Use targetm_common.handle_option.
4310 * opts.c: Include common/common-target.h.
4311 (target_handle_option): Use targetm_common.handle_option.
4312 (init_options_struct): Update comment referring to
4313 targetm.target_option.optimization. Use
4314 targetm_common.default_target_flags,
4315 targetm_common.unwind_tables_default and
4316 targetm_common.option_init_struct.
4317 (default_options_optimization): Use
4318 targetm_common.option_optimization_table.
4319 (finish_options): Use targetm_common.except_unwind_info,
4320 targetm_common.unwind_tables_default,
4321 targetm_common.have_named_sections and
4322 targetm_common.supports_split_stack.
4323 * toplev.c: Include common/common-target.h.
4324 (process_options): Use targetm_common.have_named_sections.
4325 * tree-tailcall.c: Include common/common-target.h.
637c11bd 4326 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 4327 * tree.c: Include common/common-target.h.
637c11bd 4328 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
4329 * varasm.c: Include common/common-target.h.
4330 (resolve_unique_section, hot_function_section,
4331 default_function_section): Use targetm_common.have_named_sections.
4332
d26c7090
ER
43332011-06-14 Easwaran Raman <eraman@google.com>
4334
4335 PR rtl-optimization/44194
4336 * dse.c: Include tree-flow.h
4337 (insn_info): Add new field non_frame_wild_read.
4338 (group_info): Add new fields escaped_n and escaped_p.
4339 (kill_on_calls): New variable.
4340 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4341 (dse_step0): Initialize kill_on_calls.
4342 (can_escape): New function.
4343 (set_usage_bits): Add additional parameter; record information
4344 about escaped locations.
637c11bd 4345 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
4346 (dse_step2_nospill): Set kill_on_calls based on
4347 group->escaped_n and group->escaped_n.
4348 (add_wild_read): Refactor into...
4349 (reset_active_stores): ... New function, and
4350 (free_read_records): ... New function.
4351 (add_non_frame_wild_read): New function.
4352 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 4353 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
4354 (dse_step5_nospill): Call scan_reads_nospill for instructions
4355 marked as non_frame_wild_read.
637c11bd 4356 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 4357
c49a6962
JM
43582011-06-14 Joseph Myers <joseph@codesourcery.com>
4359
4360 * common/common-target-def.h, common/common-target.def,
4361 common/common-target.h, common/config/default-common.c,
4362 common/config/pa/pa-common.c: New files.
4363 * Makefile.in (common_out_file, common_out_object_file,
4364 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4365 (OBJS-libcommon-target): Include $(common_out_object_file).
4366 (prefix.o): Update dependencies.
4367 ($(common_out_object_file), common/common-target-hooks-def.h,
4368 s-common-target-hooks-def-h): New.
4369 (s-tm-texi): Also check timestamp on common-target.def.
4370 (build/genhooks.o): Update dependencies.
4371 * config.gcc (common_out_file, target_has_targetm_common): Define.
4372 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4373 TARGET_ALWAYS_STRIP_DOTDOT.
4374 * configure.ac (common_out_object_file): Define.
4375 (common_out_file, common_out_object_file): Substitute.
4376 (common): Create directory.
4377 * configure: Regenerate.
4378 * doc/tm.texi.in (targetm_common): Document.
4379 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4380 * doc/tm.texi: Regenerate.
4381 * genhooks.c (hook_array): Also include common/common-target.def.
4382 * prefix.c (tm.h): Don't include.
4383 (common/common-target.h): Include.
4384 (ALWAYS_STRIP_DOTDOT): Don't define.
4385 (update_path): Use targetm_common.always_strip_dotdot instead of
4386 ALWAYS_STRIP_DOTDOT.
4387 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4388
22c5fa5f
DL
43892011-06-14 David Li <davidxl@google.com>
4390
4391 * passes.c (execute_function_todo): Remove TODO_dump_func.
4392 (execute_one_pass): Remove TODO_dump_func.
4393 (execute_function_dump): New function.
4394 * tree-vrp.c: Remove TODO_dump_func.
4395 * regrename.c: Remove TODO_dump_func.
4396 * fwprop.c: Remove TODO_dump_func.
4397 * tree-into-ssa.c: Remove TODO_dump_func.
4398 * tree-complex.c: Remove TODO_dump_func.
4399 * tracer.c: Remove TODO_dump_func.
4400 * tree-loop-distribution.c: Remove TODO_dump_func.
4401 * postreload-gcse.c: Remove TODO_dump_func.
4402 * postreload.c: Remove TODO_dump_func.
4403 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4404 * tree-tailcall.c: Remove TODO_dump_func.
4405 * ipa-cp.c: Remove TODO_dump_func.
4406 * final.c: Remove TODO_dump_func.
4407 * tree-emutls.c: Remove TODO_dump_func.
4408 * omp-low.c: Remove TODO_dump_func.
4409 * tree-ssa-dse.c: Remove TODO_dump_func.
4410 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4411 * auto-inc-dec.c: Remove TODO_dump_func.
4412 * reorg.c: Remove TODO_dump_func.
4413 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4414 * tree-ssa-ccp.c: Remove TODO_dump_func.
4415 * compare-elim.c: Remove TODO_dump_func.
4416 * mode-switching.c: Remove TODO_dump_func.
4417 * modulo-sched.c: Remove TODO_dump_func.
4418 * tree-call-cdce.c: Remove TODO_dump_func.
4419 * cse.c: Remove TODO_dump_func.
4420 * web.c: Remove TODO_dump_func.
4421 * tree-stdarg.c: Remove TODO_dump_func.
4422 * lto-streamer-out.c: Remove TODO_dump_func.
4423 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4424 * tree-ssa-dom.c: Remove TODO_dump_func.
4425 * tree-nrv.c: Remove TODO_dump_func.
4426 * loop-init.c: Remove TODO_dump_func.
4427 * gimple-low.c: Remove TODO_dump_func.
4428 * ipa-inline.c: Remove TODO_dump_func.
4429 * tree-ssa-sink.c: Remove TODO_dump_func.
4430 * jump.c: Remove TODO_dump_func.
4431 * ifcvt.c: Remove TODO_dump_func.
4432 * tree-ssa-loop.c: Remove TODO_dump_func.
4433 * recog.c: Remove TODO_dump_func.
4434 * dse.c: Remove TODO_dump_func.
4435 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4436 * matrix-reorg.c: Remove TODO_dump_func.
4437 * tree-eh.c: Remove TODO_dump_func.
4438 * regmove.c: Remove TODO_dump_func.
4439 * function.c: Remove TODO_dump_func.
4440 * tree-vectorizer.c: Remove TODO_dump_func.
4441 * ipa-split.c: Remove TODO_dump_func.
4442 * gcse.c: Remove TODO_dump_func.
4443 * tree-if-conv.c: Remove TODO_dump_func.
4444 * init-regs.c: Remove TODO_dump_func.
4445 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4446 * implicit-zee.c: Remove TODO_dump_func.
4447 * lower-subreg.c: Remove TODO_dump_func.
4448 * bt-load.c: Remove TODO_dump_func.
4449 * tree-dfa.c: Remove TODO_dump_func.
4450 * except.c: Remove TODO_dump_func.
4451 * emit-rtl.c: Remove TODO_dump_func.
4452 * store-motion.c: Remove TODO_dump_func.
4453 * cfgexpand.c: Remove TODO_dump_func.
4454 * tree-cfgcleanup.c: Remove TODO_dump_func.
4455 * cfgcleanup.c: Remove TODO_dump_func.
4456 * tree-ssa-pre.c: Remove TODO_dump_func.
4457 * tree-sra.c: Remove TODO_dump_func.
4458 * tree-mudflap.c: Remove TODO_dump_func.
4459 * tree-ssa-copy.c: Remove TODO_dump_func.
4460 * cfglayout.c: Remove TODO_dump_func.
4461 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4462 * tree-ssa-dce.c: Remove TODO_dump_func.
4463 * ira.c: Remove TODO_dump_func.
4464 * tree-ssa.c: Remove TODO_dump_func.
4465 * integrate.c: Remove TODO_dump_func.
4466 * tree-optimize.c: Remove TODO_dump_func.
4467 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4468 * tree-object-size.c: Remove TODO_dump_func.
4469 * combine.c: Remove TODO_dump_func.
4470 * bb-reorder.c: Remove TODO_dump_func.
4471 * cprop.c: Remove TODO_dump_func.
4472 * var-tracking.c: Remove TODO_dump_func.
4473 * tree-profile.c: Remove TODO_dump_func.
4474 * tree-vect-generic.c: Remove TODO_dump_func.
4475 * reg-stack.c: Remove TODO_dump_func.
4476 * sched-rgn.c: Remove TODO_dump_func.
4477 * tree-ssa-structalias.c: Remove TODO_dump_func.
4478 * tree-switch-conversion.c: Remove TODO_dump_func.
4479 * tree-cfg.c: Remove TODO_dump_func.
4480 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4481 * combine-stack-adj.c: Remove TODO_dump_func.
4482 * dce.c: Remove TODO_dump_func.
4483 * tree-ssanames.c: Remove TODO_dump_func.
4484 * regcprop.c: Remove TODO_dump_func.
4485
fa465762
L
44862011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4487
4488 PR middle-end/47364
4489 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4490 and properly handle result not in Pmode.
4491
7d8d16c3
RM
44922011-06-14 Robert Millan <rmh@gnu.org>
4493
4494 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4495 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4496 `config/linux.h'.
4497
4498 * config/i386/kfreebsd-gnu64.h: New file.
4499 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4500 with `i386/kfreebsd-gnu64.h'.
4501
4502 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4503 (GNU_USER_LINK_EMULATION64): New macros.
4504 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4505 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4506 of hardcoding `elf_i386' and `elf_x86_64'.
4507
0ccef3d2
NC
45082011-06-14 Nick Clifton <nickc@redhat.com>
4509
4510 PR target/49403
4511 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4512
4513 PR target/49402
4514 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4515
8a76c4a0
JJ
45162011-06-14 Jakub Jelinek <jakub@redhat.com>
4517
1ace6185
JJ
4518 PR fortran/49103
4519 * tree.h (DECL_NONSHAREABLE): Define.
4520 (struct tree_decl_common): Change decl_common_unused to
4521 decl_nonshareable_flag.
4522 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4523 Ignore vars with DECL_NONSHAREABLE bit set.
4524 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4525 on stores to automatic aggregate vars.
4526
8a76c4a0
JJ
4527 PR rtl-optimization/49390
4528 Revert:
4529 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4530
4531 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4532 MEM_ALIAS_SET.
4533
b4a9343c
ZD
45342011-06-14 Zdenek Dvorak <ook@ucw.cz>
4535 Tom de Vries <tom@codesourcery.com>
4536
4537 PR target/45098
4538 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4539 Document changed semantics.
4540 (max_stmt_executions, max_stmt_executions_int): Declare.
4541 * tree-data-ref.c (estimated_loop_iterations)
4542 (estimated_loop_iterations_int): Move functions...
4543 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4544 (estimated_loop_iterations_int): here.
4545 (record_estimate): Change nb_iterations_upper_bound and
4546 nb_iterations_estimate semantics.
4547 (max_stmt_executions, max_stmt_executions_int): New function.
4548 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4549 (max_stmt_executions_tree): this.
4550 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4551 estimated_loop_iterations_tree.
4552 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4553 max_stmt_executions_int instead of estimated_loop_iterations_int.
4554 * predict.c (predict_loops): Idem.
4555 * tree-parloops.c (parallelize_loops): Idem.
4556 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4557 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4558 (init_omega_for_ddr_1): Idem.
4559 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4560 (loop_prefetch_arrays): Idem
4561 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4562 max_stmt_executions instead of estimated_loop_iterations.
4563 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4564 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4565 instead of nb_iterations_upper_bound.
4566
d2640c43
JH
45672011-06-13 Jan Hubicka <jh@suse.cz>
4568
4569 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4570
40873cdd
RH
45712011-06-14 Richard Henderson <rth@redhat.com>
4572
4573 PR debug/48459
4574 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4575 (based_loc_descr): Assert it's true.
4576 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4577 aborting immediately.
4578
73e8cb24
SL
45792011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4580 Mingfeng Wu <mingfeng@faraday-tech.com>
4581
4582 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4583
f835f0a7
JH
45842011-06-13 Jan Hubicka <jh@suse.cz>
4585
4586 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4587
ee6f1177
JH
45882011-06-13 Jan Hubicka <jh@suse.cz>
4589
4590 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4591 similarly to DECL_COMDAT.
4592 * cgraphunit.c (cgraph_analyze_function): Likewise.
4593 * ipa.c (function_and_variable_visibility): Likewise.
4594
618abf9a
JH
45952011-06-13 Jan Hubicka <jh@suse.cz>
4596
4597 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4598 BINFO_VIRTUALS when streaming for ltrans unit.
4599
a45fe02f
DE
46002011-06-13 David Edelsohn <dje.gcc@gmail.com>
4601
4602 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4603 (movdi_internal64): Same.
4604
46052011-06-13 Edmar Wienskoski <edmar@freescale.com>
4606
e641e495 4607 PR target/44618
7d8d16c3
RM
4608 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4609 a set of similar patterns, where the MATCH_OPERAND for the function
4610 argument is replaced with individual references to hardware registers.
a45fe02f
DE
4611 (save_fpregs_<mode>): Ditto
4612 (restore_gpregs_<mode>): Ditto
4613 (return_and_restore_gpregs_<mode>): Ditto
4614 (return_and_restore_fpregs_<mode>): Ditto
4615 (return_and_restore_fpregs_aix_<mode>): Ditto
4616
8775a18b
JH
46172011-06-13 Jan Hubicka <jh@suse.cz>
4618
4619 * ipa-utils.c (postorder_stack): New structure.
4620 (ipa_reverse_postorder): Handle aliases.
4621
46222011-06-13 Jan Hubicka <jh@suse.cz>
4623
4624 * ipa-inline.c (reset_edge_caches): Walk aliases.
4625 (update_caller_keys): Do not test inlinability of aliases.
4626 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4627 (do_estimate_growth): Fix typo.
4628
6c69a029
JH
46292011-06-13 Jan Hubicka <jh@suse.cz>
4630
4631 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4632 (can_remove_node_now_p): ... here; handle same comdat groups.
4633 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4634 (inline_call): Update use of can_remove_node_now_p.
4635
10c63ba4 46362011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 4637
10c63ba4 4638 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
4639 condition to disallow non-identical memory locations.
4640 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4641 preference to bit manipulation instructions.
495f8c14 4642
9aa3f5c5
JH
46432011-06-13 Jan Hubicka <jh@suse.cz>
4644
4645 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4646 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4647 (nonremovable_p): New function.
4648 (cgraph_can_remove_if_no_direct_calls_p): New function.
4649 (used_from_object_file_p): New functoin.
10c63ba4
EB
4650 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4651 references from aliases.
9aa3f5c5
JH
4652 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4653 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
4654 (want_inline_function_called_once_p): Use it; accept aliases called
4655 once, too.
9aa3f5c5
JH
4656 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4657
30cecf17
RR
46582011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4659
4660 PR target/48454
4661 * config/arm/neon.md (vec_pack_trunc): Set the lengths
4662 correctly for the case with Quad vectors.
4663
29f85237
JJ
46642011-06-13 Jakub Jelinek <jakub@redhat.com>
4665 Ira Rosen <ira.rosen@linaro.org>
4666
4667 PR tree-optimization/49352
4668 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4669 all, make sure loop_use_stmt after the loop is a def stmt of a used
4670 SSA_NAME that is the only one defined inside of the loop. Don't
4671 check for COND_EXPR and GIMPLE_BINARY_RHS.
4672 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4673 check_reduction is true.
4674
c3e3f090
JH
46752011-06-11 Jan Hubicka <jh@suse.cz>
4676
4677 PR middle-end/49373
4678 * ipa.c (cgraph_externally_visible_p): Check resolution info.
4679
516e0768
JH
46802011-06-11 Jan Hubicka <jh@suse.cz>
4681
4682 PR middle-end/48836
4683 * ipa-inline-transform.c: Include tree-pass.h
4684 (inline_transform): Set TODO_update_ssa_only_virtuals.
4685 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4686
903b0a8b
JH
46872011-06-11 Jan Hubicka <jh@suse.cz>
4688
4689 PR middle-end/49378
4690 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4691 aliases and thunks.
4692
44542f8e
IR
46932011-06-12 Ira Rosen <ira.rosen@linaro.org>
4694
4695 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4696 Take number of iterations to peel into account for equally frequent
4697 misalignment values.
4698
ea89702b
JH
46992011-06-11 Jan Hubicka <jh@suse.cz>
4700
637c11bd
UB
4701 * lto-streamer-out.c (produce_symtab): Stream out the newly
4702 represented aliases.
ea89702b 4703
380ed5ed
JH
47042011-06-11 Jan Hubicka <jh@suse.cz>
4705
637c11bd
UB
4706 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4707 varying args.
380ed5ed
JH
4708 (ipa_update_after_lto_read): Likewise.
4709 (ipa_write_node_info): Do not sream call_with_var_arguments.
4710 (ipa_read_node_info): Likewise.
4711
00cfc363
JH
47122011-06-11 Jan Hubicka <jh@suse.cz>
4713
4714 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4715
39e2db00
JH
47162011-06-11 Jan Hubicka <jh@suse.cz>
4717
4718 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4719 (lto_symtab_resolve_can_prevail_p): Likewise.
4720 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4721 * cgraph.c (same_body_aliases_done): New global var.
4722 (cgraph_same_body_alias_1): Rename to ...
4723 (cgraph_create_function_alias): ... this one; reorg to new
4724 representation.
4725 (cgraph_same_body_alias): Use cgraph_create_function_alias;
4726 record references when asked to.
4727 (cgraph_add_thunk): Fix formating.
4728 (cgraph_get_node): Kill same body alias code.
4729 (cgraph_node_for_asm): Likewise.
4730 (cgraph_remove_same_body_alias): Remove.
4731 (cgraph_remove_node): Kill same body alias code.
4732 (cgraph_mark_address_taken_node): Mark also the aliased function
4733 as having address taken.
4734 (dump_cgraph_node): Dump same body aliases.
4735 (cgraph_for_node_thunks_and_aliases): Update for new alias
4736 representation.
4737 (cgraph_for_node_and_aliases): Likewise.
4738 * cgraph.h (same_body): Kll pointer.
4739 (same_body_alias): Update comment.
4740 (same_body_aliases_done): Declare.
4741 (cgraph_remove_same_body_alias): Remove declaration.
4742 (cgraph_create_function_alias): Declare.
4743 (cgraph_process_same_body_aliases): Declare.
4744 (cgraph_function_with_gimple_body_p): Check for alias.
4745 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
4746 (cgraph_alias_aliased_node): New function.
4747 (cgraph_function_node): Update for new aliases.
4748 (cgraph_function_or_thunk_node): Likewise.
4749 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
4750 (inline_call): Remove dead aliases.
10c63ba4
EB
4751 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
4752 name hack for same body aliases.
39e2db00
JH
4753 (clone_of_p): Look through aliases.
4754 (verify_cgraph_node): Verify aliases.
4755 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
4756 (cgraph_process_same_body_aliases): New function.
4757 (process_function_and_variable_attributes): Disable weakref warning on
4758 alias.
4759 (cgraph_analyze_functions): Handle aliases.
4760 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
4761 (assemble_thunks): Rename to ...
4762 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
4763 (cgraph_expand_function): Remove alias output code.
4764 (cgraph_output_in_order): Skip aliases.
4765 (cgraph_preserve_function_body_p): Aliases don't need preserving.
4766 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
4767 (ipa_record_reference): Do not assert on alias references.
4768 (ipa_ref_has_aliases_p): New function.
4769 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
4770 (ipa_ref_has_aliases_p): Declare.
4771 * lto-cgraph.c (lto_output_node): Handle aliases.
4772 (input_node): Likewise.
4773 * lto-streamer-out.c (lto_output): Skip aliases.
4774 (produce_symtab): Kill same_body_alias code.
4775 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
4776 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
4777 * ipa-inline.c (update_caller_keys): Walk aliases.
4778 (inline_small_functions): Fix thinko in previous patch.
4779 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
4780 (function_and_variable_visibility): Do not walk same body aliases.
4781 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
4782 (ipa_pta_execute): Use it.
4783
9ee65b55
UB
47842011-06-11 Uros Bizjak <ubizjak@gmail.com>
4785
4786 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
4787 (*vec_dupv2df): Rename from vec_dupv2df.
4788 (vec_dupv2df): New expander.
4789
47902011-06-11 Uros Bizjak <ubizjak@gmail.com>
4791
4792 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
4793
47942011-06-11 Uros Bizjak <ubizjak@gmail.com>
4795
4796 * config/i386/i386.md: Use default value in "isa" attribute.
4797 * config/i386/sse.md: Ditto.
4798 * config/i386/mmx.md: Ditto.
4799
ba68a139
WG
48002011-06-10 Wei Guozhi <carrot@google.com>
4801
4802 PR target/45335
4803 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4804 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4805 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4806 related peephole2.
4807 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4808 related peephole2.
4809 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4810 (arm_legitimate_ldrd_p): New prototype.
4811 (arm_output_ldrd): New prototype.
4812 * config/arm/arm.c (arm_check_ldrd_operands): New function.
4813 (arm_legitimate_ldrd_p): New function.
4814 (arm_output_ldrd): New function.
4815
deced1e2
XDL
48162011-06-10 David Li <davidxl@google.com>
4817
4818 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4819 * passes.c (passr_eq): New function.
4820 (create_pass_tab): New function.
4821 (pass_traverse): New function.
4822 (dump_one_pass): New function.
4823 (dump_pass_list): New function.
4824 (dump_passes): New function.
4825
71fb4f92
JH
48262011-06-10 Jan Hubicka <jh@suse.cz>
4827
4828 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
4829 setting the nothrow flag.
4830 * ipa-reference.c (propagate): Skip aliases.
4831 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
4832 (propagate_nothrow): Skip aliases; do not update cgraph.
4833 (local_pure_const): Do not update cgraph.
4834 * tree-profile.c (tree_profiling): Do fixup_cfg.
4835
41817394
JH
48362011-06-10 Jan Hubicka <jh@suse.cz>
4837
4838 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
4839 (cgraph_local_node_p): ... here; handle aliases.
4840 (has_addr_references_p): Break out from ...;
4841 (cgraph_remove_unreachable_nodes) ... here.
4842
fb37c1de
JH
48432011-06-10 Jan Hubicka <jh@suse.cz>
4844
4845 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
4846 * common.opt (flag_inline_functions_called_once): Do not
4847 initialize to 1.
fb37c1de 4848
0818c24c
JH
48492011-06-10 Jan Hubicka <jh@suse.cz>
4850
4851 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
4852 (ipcp_initialize_node_lattices): Do not deal with aliases;
4853 Do not try to propagate through thunks.
0818c24c
JH
4854 (ipcp_change_tops_to_bottom): Do not deal with aliases.
4855
c8246dbe
JH
48562011-06-10 Jan Hubicka <jh@suse.cz>
4857
9ee65b55
UB
4858 * ipa-prop.c (ipa_write_node_info): Stream jump functions
4859 for indirect calls.
c8246dbe
JH
4860 (ipa_read_node_info): Likewise.
4861
d7e2a1c1
BS
48622011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4863
4864 PR lto/49302
4865 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
4866 (build_and_insert_call): Likewise.
4867 (build_and_insert_ref): New.
4868 (gimple_expand_builtin_pow): Minor cleanup.
4869 (gimple_expand_builtin_cabs): New.
4870 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 4871
749f25d8
JH
48722011-06-10 Jan Hubicka <jh@suse.cz>
4873
4874 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
4875 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
4876 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
4877 (ipcp_propagate_stage): Skip aliases when propagating.
4878 (ipcp_need_redirect_p): Skip aliases.
4879 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
4880 collect_callers_of_node.
4881 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
4882 for aliases.
4883 (ipa_compute_jump_functions): Look through aliases.
4884
8340fbd7
RO
48852011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4886
4887 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
4888
9aaa7e47
HPN
48892011-06-10 Hans-Peter Nilsson <hp@axis.com>
4890
4891 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
4892 Adjust comments.
4893 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
4894
f1724940
JH
48952011-06-10 Jan Hubicka <jh@suse.cz>
4896
4897 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
4898 Update call of gimple_get_virt_method_for_binfo.
4899 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
4900 refuse_thunks parameter.
4901 (gimple_fold_call): Update.
4902 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
4903
a6f834c5
JH
49042011-06-10 Jan Hubicka <jh@suse.cz>
4905
4906 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
4907 (not_all_callers_have_enough_arguments_p): ... this one; turn into
4908 worker for cgraph_for_node_and_aliases.
4909 (convert_callers_for_node): Break out from ...
4910 (convert_callers): ... here.
4911 (modify_function): Use collect_callers_of_node.
4912 (ipa_early_sra): Use cgraph_for_node_and_aliases.
4913
7871eee3
RG
49142011-06-10 Richard Guenther <rguenther@suse.de>
4915
4916 PR tree-optimization/49361
4917 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
4918 when not already in gimple form.
4919
dae957ae
RG
49202011-06-10 Richard Guenther <rguenther@suse.de>
4921
4922 PR bootstrap/49344
4923 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
4924 FOR_EACH_PHI_OR_STMT_USE.
4925
a5b1779f
JH
49262011-06-10 Jan Hubicka <jh@suse.cz>
4927
4928 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
4929 (clone_inlined_nodes): ... here.
4930 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
4931 to real destination prior inlining.
4932 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
4933 can_early_inline_edge_p, want_early_inline_function_p,
4934 want_early_inline_function_p, want_inline_small_function_p,
4935 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
4936 edge_badness, update_all_callee_keys, lookup_recursive_calls,
4937 add_new_edges_to_heap, inline_small_functions, flatten_function,
4938 inline_always_inline_functions, early_inline_small_functions): Use
4939 cgraph_function_or_thunk_node.
4940 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
4941 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
4942 (do_estimate_edge_growth_1): Break out from ...
4943 (do_estimate_growth) ... here; walk aliases.
4944 (inline_generate_summary): Skip aliases.
4945
c1ae3ca5
RG
49462011-06-10 Richard Guenther <rguenther@suse.de>
4947
9ee65b55
UB
4948 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
4949 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 4950
b504a918
PC
49512011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
4952
4953 * tree.h (error_operand_p): Add.
4954 * dbxout.c (dbxout_type_fields): Use the latter.
4955 * c-decl.c (add_stmt): Likewise.
4956 * gimplify.c (omp_add_variable, omp_notice_variable,
4957 gimplify_scan_omp_clauses): Likewise.
4958
3f5ea9dc 49592011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 4960
3f5ea9dc
GJL
4961 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
4962 when a value is actually passed in regs.
4963
b11b0904 49642011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 4965 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
4966
4967 * doc/invoke.texi (SPARC options): Add -mflat.
4968 * config/sparc/sparc.opt: Likewise.
4969 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
4970 (sparc_flat_expand_prologue): Declare.
4971 (sparc_flat_expand_epilogue): Likewise.
4972 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
4973 (CPP_ENDIAN_SPEC): Replace with...
4974 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
4975 (CPP_SPEC): Adjust to above change.
4976 (EXTRA_SPECS): Likewise.
4977 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
4978 (INCOMING_REGNO): Likewise.
4979 (OUTGOING_REGNO): Likewise.
4980 (LOCAL_REGNO): Likewise.
4981 (SETUP_FRAME_ADDRESSES): Likewise.
4982 (FIXED_REGISTERS): Set 0 for %fp.
4983 (CALL_USED_REGISTERS): Likewise.
4984 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
4985 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
4986 (RETURN_ADDR_REGNUM): Define.
4987 (RETURN_ADDR_RTX): Use it.
4988 (INCOMING_RETURN_ADDR_REGNUM): Define.
4989 (INCOMING_RETURN_ADDR_RTX): Use it.
4990 (DWARF_FRAME_RETURN_COLUMN): Likewise.
4991 (EH_RETURN_REGNUM): Define.
4992 (EH_RETURN_STACKADJ_RTX): Use it.
4993 (EH_RETURN_HANDLER_RTX): Delete.
4994 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
4995 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
4996 Delete.
4997 (struct machine_function): Add frame_size, apparent_frame_size,
4998 frame_base_reg, frame_base_offset, n_global_fp_regs and
4999 save_local_in_regs_p fields.
5000 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5001 sparc_frame_base_offset, sparc_n_global_fp_regs,
5002 sparc_save_local_in_regs_p): New macros.
5003 (sparc_option_override): Error out if -fcall-saved-REG is specified
5004 for Out registers.
5005 (eligible_for_restore_insn): Fix formatting.
5006 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5007 (eligible_for_sibcall_delay): Likewise.
5008 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5009 (sparc_legitimate_address_p): Adjust to above change.
5010 (save_global_or_fp_reg_p): New predicate.
5011 (return_addr_reg_needed_p): Likewise.
5012 (save_local_or_in_reg_p): Likewise.
5013 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5014 (SORR_SAVE, SORR_RESTORE): Delete.
5015 (sorr_pred_t): New typedef.
5016 (sorr_act_t): New enum.
5017 (save_or_restore_regs): Rename to...
5018 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5019 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5020 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5021 mechanism. Add CFI information for double-word saves in 32-bit mode.
5022 (emit_adjust_base_to_offset): New function extracted from...
5023 (emit_save_or_restore_regs): ...this. Rename the rest to...
5024 (emit_save_or_restore_regs_global_fp_regs): ...this.
5025 (emit_save_or_restore_regs_local_in_regs): New function.
5026 (gen_create_flat_frame_[123]): New functions.
5027 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5028 (sparc_flat_expand_prologue): New function.
5029 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5030 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5031 (sparc_flat_expand_epilogue): New function.
5032 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5033 (output_return): Likewise.
5034 (output_sibcall): Likewise.
5035 (sparc_output_mi_thunk): Likewise.
5036 (sparc_frame_pointer_required): Likewise.
5037 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5038 function optimization.
5039 * config/sparc/sparc.md (flat): New attribute.
5040 (prologue): Add TARGET_FLAT handling.
5041 (save_register_window): Disable if TARGET_FLAT.
5042 (create_flat_frame_[123]): New patterns.
5043 (epilogue): Add TARGET_FLAT handling.
5044 (sibcall_epilogue): Likewise.
5045 (eh_return): New expander.
5046 (eh_return_internal): New insn and splitter.
5047 (return_internal): Add TARGET_FLAT handling.
5048 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5049 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5050 (nonlocal_goto): Add TARGET_FLAT handling.
5051 * config/sparc/t-elf: Add -mflat multilib.
5052 * config/sparc/t-leon: Likewise.
5053
fede8efa
JH
50542011-06-10 Jan Hubicka <jh@suse.cz>
5055
5056 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5057 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5058 (self_recursive_p): Use cgraph_function_node.
5059 (propagate_pure_const): Likewise.
5060 (propagate_nothrow): Likewise.
5061 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5062 cgraph_function_node.
5063 (propagate_bits): Likewise.
5064 (propagate): Likewise.
5065
0127c76f
RR
50662011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5067 Richard Earnshaw <rearnsha@arm.com>
5068
9ee65b55 5069 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
5070 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5071 (*thumb2_movdi_vfp): Delete.
5072 (*arm_movdi_vfp_cortexa8): Delete.
5073 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5074 (*movdi_vfp_cortexa8): Likewise.
5075
f93fe5a0
RG
50762011-06-10 Richard Guenther <rguenther@suse.de>
5077
5078 * stor-layout.c (initialize_sizetypes): Give names to all
5079 sizetype kinds.
5080
f2164f87
IR
50812011-06-10 Ira Rosen <ira.rosen@linaro.org>
5082
5083 PR tree-optimization/49318
5084 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5085 irrelevant pattern statements.
5086
3f91c962
HPN
50872011-06-10 Hans-Peter Nilsson <hp@axis.com>
5088
3d223145
HPN
5089 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5090
3f91c962
HPN
5091 PR bootstrap/49354
5092 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5093 to last assignment.
5094
b125ad45
JH
50952011-06-09 Jan Hubicka <jh@suse.cz>
5096
5097 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5098 do not recompute reachable flag.
5099 (cgraph_finalize_function, cgraph_analyze_functions): Set
5100 redefined_extern_inline here.
5101
be330ed4
JH
51022011-06-09 Jan Hubicka <jh@suse.cz>
5103
5104 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5105 (cgraph_only_called_directly_p): ... this one; bring offline.
5106 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5107 varpool_used_from_object_file_p): Drop names from the declaratoin.
5108 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5109 collect_callers_of_node): New.
5110 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5111 (cgraph_edge_recursive_p): Use cgraph_function_node.
5112 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5113 (cgraph_node_cannot_be_local_p_1): Break out from ...
5114 (cgraph_node_can_be_local_p): ... here; walk aliases.
5115 (cgraph_for_node_thunks_and_aliases): New function.
5116 (cgraph_for_node_and_aliases): New function.
5117 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
5118 (cgraph_make_node_local) ... here; use
5119 cgraph_for_node_thunks_and_aliases.
be330ed4 5120 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
5121 (cgraph_set_nothrow_flag) ... here;
5122 use cgraph_for_node_thunks_and_aliases.
be330ed4 5123 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
5124 (cgraph_set_const_flag) ... here;
5125 use cgraph_for_node_thunks_and_aliases.
be330ed4 5126 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
5127 (cgraph_set_pure_flag) ... here;
5128 use cgraph_for_node_thunks_and_aliases.
be330ed4 5129 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
5130 (cgraph_propagate_frequency) ... here; use
5131 cgraph_for_node_thunks_and_aliases.
be330ed4 5132 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
5133 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5134 New functions.
be330ed4
JH
5135 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5136
2ea91d6b
HPN
51372011-06-10 Hans-Peter Nilsson <hp@axis.com>
5138
5139 PR rtl-optimization/49154
5140 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5141 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5142 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5143 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5144 * config/cris/cris.h (cris_register_move_cost): Remove
5145 !TARGET_V32 code. Tweak comments.
5146
9cf4fb5a
JH
51472011-06-09 Jan Hubicka <jh@suse.cz>
5148
5149 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5150 address taken.
5151
6049a4c8
HPN
51522011-06-10 Hans-Peter Nilsson <hp@axis.com>
5153
c577822e 5154 PR rtl-optimization/49154
9ee65b55
UB
5155 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5156 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 5157
54e1e4f7 5158 PR rtl-optimization/49154
6049a4c8
HPN
5159 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5160 register classes.
5161 * doc/tm.texi: Regenerate.
5162
3be68b64
KK
51632011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5164
5165 PR target/49307
5166 * config/sh/sh.md (UNSPEC_CHKADD): New.
5167 (chk_guard_add): New define_insn_and_split.
5168 (symGOT_load): Use chk_guard_add instead of blockage.
5169
bf806a90
KT
51702011-06-09 Kai Tietz <ktietz@redhat.com>
5171
5172 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5173
d5a9738b
EB
51742011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5175
5176 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5177
527e82c2
WG
51782011-06-09 Wei Guozhi <carrot@google.com>
5179
5180 PR target/46975
5181 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5182 (peephole2 for conditional move): Generate 16 bit instructions.
5183
b8bc3a43
UB
51842011-06-09 Uros Bizjak <ubizjak@gmail.com>
5185
5186 * config/i386/i386.md (*movdi_internal_rex64): Merge
5187 alternatives 6 and 8.
5188
4745da6e
DL
51892011-06-09 David Li <davidxl@google.com>
5190
5191 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5192 * passes.c (passr_eq): New function.
5193 (create_pass_tab): New function.
5194 (pass_traverse): New function.
5195 (dump_one_pass): New function.
5196 (dump_pass_list): New function.
5197 (dump_passes): New function.
5198
bdf67bcb
DL
51992011-06-09 David Li <davidxl@google.com>
5200
5201 * tree-complex.c (tree_lower_complex): Gate cleanup.
5202 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5203 (execute_optimize_stdarg): Ditto.
5204 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5205 (execute_cleanup_eh_1): Ditto.
5206 (execute_cleanup_eh): Ditto.
5207 * gcse.c (gate_rtl_pre): Ditto.
5208 (execute_rtl_pre): Ditto.
5209 * except.c (finish_eh_generation): Ditto.
5210 (convert_to_eh_region_ranges): Ditto.
5211 * cprop.c (one_cprop_pass): Ditto.
5212
547fdef8
BS
52132011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5214
5215 PR target/48673
5216 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5217 in all basic blocks.
5218
10e48e39
RO
52192011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5220
5221 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5222 (HAVE_ENABLE_EXECUTE_STACK): Define.
5223 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5224 (HAVE_ENABLE_EXECUTE_STACK): Define.
5225 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5226 (HAVE_ENABLE_EXECUTE_STACK): Define.
5227 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5228 (ENABLE_EXECUTE_STACK): Remove.
5229 (HAVE_ENABLE_EXECUTE_STACK): Define.
5230 [IN_LIBGCC2]: Don't include <windows.h>.
5231 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5232 (HAVE_ENABLE_EXECUTE_STACK): Define.
5233 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5234 (HAVE_ENABLE_EXECUTE_STACK): Define.
5235 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5236 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5237 (HAVE_ENABLE_EXECUTE_STACK): Define.
5238 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5239 (HAVE_ENABLE_EXECUTE_STACK): Define.
5240 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5241 (HAVE_ENABLE_EXECUTE_STACK): Define.
5242 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5243 (HAVE_ENABLE_EXECUTE_STACK): Define.
5244 * config/alpha/alpha.c (alpha_trampoline_init): Test
5245 HAVE_ENABLE_EXECUTE_STACK.
5246 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5247 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5248 (sparc64_initialize_trampoline): Likewise.
5249 * libgcc2.c [L_enable_execute_stack]: Remove.
5250 * system.h (ENABLE_EXECUTE_STACK): Poison.
5251 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5252 * doc/tm.texi: Regenerate.
5253 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5254
8ced31fe
JJ
52552011-06-09 Jakub Jelinek <jakub@redhat.com>
5256
5257 PR middle-end/49308
5258 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5259 variable. After resetting and rescanning insn continue with previous
5260 statement.
5261
ee610fcd
RO
52622011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5263
5264 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5265 (gcc_cv_ld_hidden): Likewise.
5266 * configure: Regenerate.
5267 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5268 (ix86_stack_protect_fail): Mark unused.
5269 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5270 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5271 [TARGET_MACHO]: Don't define.
5272 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5273 (TARGET_STACK_PROTECT_FAIL): Likewise.
5274 (rs6000_stack_protect_fail): Mark unused.
5275 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 5276 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 5277
8f2e22ff
AK
52782011-06-08 Andi Kleen <ak@linux.intel.com>
5279
5280 * varasm.c (get_section): Print location of other conflict
5281 for section conflicts.
5282
815cecbe
AK
52832011-06-08 Andi Kleen <ak@linux.intel.com>
5284
5285 * config/i386/driver-i386.c (host_detect_local_cpu):
5286 Add model 0x2d Intel CPU.
5287
1460ec5c
AK
52882011-06-08 Andi Kleen <ak@linux.intel.com>
5289
5290 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
5291 (globalize_reg): Add decl parameter. Compute location. Pass location
5292 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
5293 * rtl.h (globalize_reg): Update prototype.
5294 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5295
df17530a
MX
52962011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5297
5298 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5299
409fed48
KK
53002011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5301
5302 PR target/49305
5303 * config/sh/predicates.md (general_movsrc_operand): Check
5304 mode for memory with indexed address for QI and HImode.
5305 (general_movdst_operand): Likewise.
5306
87c16a45
NP
53072011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5308
b8bc3a43 5309 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 5310
49931fcb
AO
53112011-06-08 Alexandre Oliva <aoliva@redhat.com>
5312
5313 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5314 (num_ssa_operands): Likewise.
5315 (op_iter_init_phiuse): Forward-declare.
5316 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5317
29494d1f
NC
53182011-06-08 Nick Clifton <nickc@redhat.com>
5319
5320 * doc/invoke.texi (ARM Options): Update description of
5321 -mthumb-interwork.
5322
4ffae7ff
L
53232011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5324
5325 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5326 unknown Intel family 0x6 CPUs.
5327
d9c77712
MJ
53282011-06-08 Martin Jambor <mjambor@suse.cz>
5329
5330 * tree-sra.c (mark_rw_status): Removed.
5331 (analyze_access_subtree): New parameter parent instead of
5332 mark_read and mark_write, propagate from that.
5333
b1def36c
JB
53342011-06-08 Julian Brown <julian@codesourcery.com>
5335
5336 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5337 for double-precision helper functions in hard-float mode if only
5338 single-precision arithmetic is supported in hardware.
5339
6c8e9fc9
AM
53402011-06-08 Alexander Monakov <amonakov@ispras.ru>
5341
5342 PR rtl-optimization/49303
5343 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5344 code_motion_path_driver returned 0 or 1.
5345 (sel_region_finish): Clear h_d_i_d.
5346
c2bbcb0d
KK
53472011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5348
5349 * config/sh/sh.c (prepare_move_operands): Set pic register
5350 appropriately for global and local dynamic tls models even
5351 if flag_pic is unset.
5352
6976ae51
JM
53532011-06-07 Jason Merrill <jason@redhat.com>
5354
5355 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5356
bb5b1f5e
XDL
53572011-06-07 Xinliang David Li <davidxl@google.com>
5358 * passes.c (enable_disable_pass): Handle assembler name.
5359 (is_pass_explicitly_enabled_or_disabled): Ditto.
5360
91ffe356
RO
53612011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5362
5363 PR tree-optimization/48497
5364 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5365
06bc3ec7
BS
53662011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5367
5368 PR tree-optimization/46728
5369 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5370 to use gimple_val_nonnegative_real_p.
5371 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5372 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 5373
c074d740
L
53742011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5375
5376 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5377
8973b112
SG
53782011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5379
5380 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5381 constant vectors.
5382
67b88453
RG
53832011-06-07 Richard Guenther <rguenther@suse.de>
5384
5385 * stor-layout.c (initialize_sizetypes): Initialize all
5386 sizetypes based on target definitions.
5387 (set_sizetype): Remove.
5388 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5389 * tree.h (set_sizetype): Remove.
5390
1dcad079
NC
53912011-06-07 Nick Clifton <nickc@redhat.com>
5392
5393 * config.gcc: Unify V850 architecture options and add support for
5394 newer V850 architectures.
5395 * config/v850/t-v850e: Delete.
5396
009db074
RG
53972011-06-07 Richard Guenther <rguenther@suse.de>
5398
5399 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5400 Call set_sizetype from here.
5401
f373314f
AS
54022011-06-07 Andrew Stubbs <ams@codesourcery.com>
5403
5404 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5405 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5406
c536876e
AS
54072011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5408 Andrew Stubbs <ams@codesourcery.com>
5409
5410 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5411 multiplies.
5412 * doc/md.texi (Canonicalization of Instructions): Document widening
5413 multiply canonicalization.
5414
308dc890
JJ
54152011-06-07 Jakub Jelinek <jakub@redhat.com>
5416
5417 PR gcov-profile/49299
b8bc3a43 5418 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 5419
383d9c83
IR
54202011-06-07 Ira Rosen <ira.rosen@linaro.org>
5421
5422 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5423 a pointer.
5424 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5425 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5426 vect_recog_pow_pattern): Likewise.
5427 (vect_pattern_recog_1): Remove declaration.
5428 (widened_name_p): Remove declaration. Add new argument to specify
5429 whether to check that both types are either signed or unsigned.
5430 (vect_recog_widen_mult_pattern): Update documentation. Handle
5431 unsigned patterns and multiplication by constants.
5432 (vect_pattern_recog_1): Update vect_recog_func references. Use
5433 statement information from the statement returned from pattern
5434 detection functions.
5435 (vect_pattern_recog): Update vect_recog_func reference.
5436 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5437 multiplication by a constant use the type of the other operand.
5438
4de4b0f2
RS
54392011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5440
5441 PR rtl-optimization/49145
5442 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5443
a9d24544
JJ
54442011-06-06 Jakub Jelinek <jakub@redhat.com>
5445
99a5e049
JJ
5446 PR debug/49262
5447 * dwarf2out.c (native_encode_initializer): Decrement count in each
5448 iteration.
5449
04902d4c
JJ
5450 PR debug/49294
5451 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5452 non-MODE_INT modes.
5453
a9d24544
JJ
5454 PR c++/49264
5455 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5456 if stmt folded into nothing.
b8bc3a43
UB
5457 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5458 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
5459 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5460 to be NULL. Don't compute count and frequency if new_call is NULL.
5461
47c79d56
DN
54622011-06-04 Diego Novillo <dnovillo@google.com>
5463
5464 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5465 (cgraph.o): Likewise.
5466 (cgraphunit.o): Likewise.
5467 * cgraphunit.c: Include lto-streamer.h
5468 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5469 if LTO is enabled.
5470 * lto-streamer-in.c (unpack_value_fields): Call
5471 streamer_hooks.unpack_value_fields if set.
5472 (lto_materialize_tree): For unhandled nodes, first try to
5473 call lto_streamer_hooks.alloc_tree, if it exists.
5474 (lto_input_ts_decl_common_tree_pointers): Move reading of
5475 DECL_INITIAL to lto_streamer_read_tree.
5476 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5477 (lto_streamer_read_tree): New.
5478 (lto_reader_init): Rename from lto_init_reader.
5479 Move initialization code to lto/lto.c.
5480 * lto-streamer-out.c (pack_value_fields): Call
5481 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
5482 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5483 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 5484 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
5485 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5486 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5487 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5488 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
5489 (lto_streamer_write_tree): New.
5490 (lto_output): Call lto_streamer_init directly.
5491 (lto_writer_init): Remove.
5492 * lto-streamer.c (streamer_hooks): New.
5493 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5494 instead of lto_preload_common_nodes.
5495 (lto_is_streamable): Move from lto-streamer.h
5496 (lto_streamer_hooks_init): New.
5497 (streamer_hooks): New.
5498 (streamer_hooks_init): New.
5499 * lto-streamer.h (struct output_block): Forward declare.
5500 (struct lto_input_block): Likewise.
5501 (struct data_in): Likewise.
5502 (struct bitpack_d): Likewise.
5503 (struct streamer_hooks): Declare.
5504 (streamer_hooks): Declare.
5505 (lto_streamer_hooks_init): Declare.
5506 (lto_streamer_write_tree): Declare.
5507 (lto_streamer_read_tree): Declare.
5508 (streamer_hooks_init): Declare.
5509 (lto_is_streamable): Move to lto-streamer.c
5510
22afe143
AK
55112011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5512
5513 * longlong.h (smul_ppmm): The resulting register pair contains the
5514 higher order word first.
5515
3906ea1b
BS
55162011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5517
5518 PR tree-optimization/46728
5519 * builtins.c (powi_table): Remove.
5520 (powi_lookup_cost): Remove.
5521 (powi_cost): Remove.
5522 (expand_powi_1): Remove.
5523 (expand_powi): Remove.
5524 (expand_builtin_pow_root): Remove.
5525 (expand_builtin_pow): Remove.
5526 (expand_builtin_powi): Eliminate handling of constant exponent.
5527 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 5528
3598cabd
AO
55292011-06-06 Alexandre Oliva <aoliva@redhat.com>
5530
5531 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5532
a7a110bb
AO
55332011-06-06 Alexandre Oliva <aoliva@redhat.com>
5534
5535 * dce.c (reset_unmarked_insns_debug_uses): New.
5536 (delete_unmarked_insns): Skip debug insns.
5537 (prescan_insns_for_dce): Likewise.
5538 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5539 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5540 active reg can be found.
5541 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5542 (convert_regs_1): Use it.
5543
6d8402ac
AO
55442011-06-06 Alexandre Oliva <aoliva@redhat.com>
5545
5546 * tree-pretty-print.c (dump_function_header): Add flags.
5547 Don't dump decl_uid with nouid.
5548 * tree-pretty-print.h (dump_function_header): Adjust.
5549 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5550 * passes.c (pass_init_dump_file): Pass dump_flags on.
5551 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5552
f75e1f1e
AO
55532011-06-06 Alexandre Oliva <aoliva@redhat.com>
5554
5555 PR bootstrap/49270
5556 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5557
275311c4
MP
55582011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5559
5560 PR tree-optimization/49243
5561 * calls.c (setjmp_call_p): Also check if fndecl has the
5562 returns_twice attribute.
5563
aa4203e7
RO
55642011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5565
5566 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5567 -ffast-math etc.
5568
48f9d59a
RH
55692011-06-06 Richard Henderson <rth@redhat.com>
5570 Georg-Johann Lay <avr@gjlay.de>
5571
5572 PR target/42210
5573 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5574 New predicates.
5575 * config/avr/avr.md ("insv"): New insn expander.
5576 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5577 "*insv.not.io", "*insv.reg"): New insns.
5578
11494830
HPN
55792011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5580
5581 PR target/49285
b8bc3a43
UB
5582 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5583 to nonimmediate_operand from memory_operand for the operand that is to
5584 be forced to memory by the expander. Lose the constraints.
11494830 5585
679e70df
EB
55862011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5587
5588 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5589 EH return when delayed branches are disabled.
5590
4d3d7f15
UB
55912011-06-05 Uros Bizjak <ubizjak@gmail.com>
5592
5593 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5594 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5595 calculation.
5596 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5597 Simplify MODE_V1DF and MODE_V2SF handling.
5598 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5599 Simplify MODE_SF handling.
5600
a45c0557
JH
56012011-06-04 Jan Hubicka <jh@suse.cz>
5602
5603 PR tree-optimization/48893
5604 PR tree-optimization/49091
5605 PR tree-optimization/49179
5606 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5607 Bounds check.
5608
26740835
JH
56092011-06-04 Jan Hubicka <jh@suse.cz>
5610
5611 PR lto/48954
b8bc3a43
UB
5612 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5613 bitmaps.
26740835 5614
014ab419
JW
56152011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5616
5617 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5618
407bcba7
JJ
56192011-06-04 Jakub Jelinek <jakub@redhat.com>
5620
5621 PR target/49281
5622 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5623 to be strictly smaller than 1 << shiftcount.
5624
e3195c52
JH
56252011-06-04 Jan Hubicka <jh@suse.cz>
5626
5627 PR tree-optimize/48929
5628 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5629 of empty predicate.
5630
047d33a0
AO
56312011-06-04 Alexandre Oliva <aoliva@redhat.com>
5632
5633 PR debug/48333
5634 * calls.c (emit_call_1): Prefer the __builtin declaration of
5635 builtin functions.
5636
dc587809
DN
56372011-06-03 Diego Novillo <dnovillo@google.com>
5638
5639 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5640 (lto_input_tree_pointers): Likewise.
5641 * lto-streamer-out.c (pack_value_fields): Likewise.
5642 (lto_output_tree_pointers): Likewise.
5643 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5644 and OPTIMIZATION_NODE.
5645
58cd1d70
RO
56462011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5647
5648 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5649 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5650 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5651 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5652 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5653 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5654 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5655 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5656 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5657 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5658 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5659 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5660 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5661 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5662 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5663 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5664 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5665 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5666 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5667 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5668 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5669 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5670 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5671 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5672 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5673 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5674 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5675 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5676 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5677 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5678 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5679 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5680 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5681 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5682 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5683 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5684 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5685 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5686 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5687 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5688 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5689 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5690 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5691 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5692 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5693 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5694 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5695 * system.h (MD_UNWIND_SUPPORT): Poison.
5696 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5697 * doc/tm.texi: Regenerate.
5698 * unwind-dw2.c: Include md-unwind-support.h instead of
5699 MD_UNWIND_SUPPORT.
5700 * config/ia64/unwind-ia64.c: Likewise.
5701 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5702
10c63ba4 57032011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
5704
5705 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5706
1b7a0148
RH
57072011-06-03 Richard Henderson <rth@redhat.com>
5708 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709
5710 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5711 (sigill_hdlr): Correct insn, insn size.
5712 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5713
737346fa
RO
57142011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5715
5716 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5717 t-slibgcc-dummy.
5718 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5719 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5720 * config/mips/t-iris: Remove.
5721 * config/mips/t-irix6: New file.
5722 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5723
c192cee6
RO
57242011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5725
5726 * Makefile.in (LIB2ADDEHDEP): Remove.
5727 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5728 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5729 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5730 * config/t-darwin (LIB2ADDEHDEP): Remove.
5731 * config/t-freebsd (LIB2ADDEHDEP): Remove.
5732 * config/t-linux (LIB2ADDEHDEP): Remove.
5733
d5828cc7
DN
57342011-06-03 Diego Novillo <dnovillo@google.com>
5735
5736 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5737 (lto_register_var_decl_in_symtab): Likewise.
5738 (lto_register_function_decl_in_symtab): Likewise.
5739 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 5740 logic to uniquify_nodes.
d5828cc7 5741
ee33b5f0
RO
57422011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5743
5744 * config/alpha/t-osf5: Remove.
5745 * config/alpha/t-osf-pthread: Remove.
5746 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
5747 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
5748
16868d84
JB
57492011-06-03 Julian Brown <julian@codesourcery.com>
5750
5751 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
5752 (strongarm1110): Use strongarm tuning.
4d3d7f15 5753 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
5754 * config/arm/arm.c (arm_strongarm_tune): New.
5755 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5756 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
5757 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
5758 setting, using previous defaults or 1 for Cortex-A5.
5759 (arm_option_override): Set max_insns_skipped from current tuning.
5760
1cec1285
NS
57612011-06-03 Nathan Sidwell <nathan@codesourcery.com>
5762
5763 * doc/install.texi (Options specification): Document --with-specs.
5764
eed55426
RR
57652011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5766
5767 * config/arm/neon.md (orndi3_neon): Actually split it.
5768
d5b6cc25
AO
57692011-06-02 Alexandre Oliva <aoliva@redhat.com>
5770
5771 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
5772 * var-tracking.c (reverse_op): Limite recurse depth to 5.
5773
2ba42841
AO
57742011-06-02 Alexandre Oliva <aoliva@redhat.com>
5775
5776 PR debug/47590
5777 * target.def (delay_sched2, delay_vartrack): New.
5778 * doc/tm.texi.in: Update.
5779 * doc/tm.texi: Rebuild.
5780 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
5781 * var-tracking.c (gate_handle_var_tracking): Likewise.
5782 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
5783 (bfin_flag_var_tracking): Drop.
5784 (output_file_start): Don't save and override flag_var_tracking.
5785 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
5786 (bfin_reorg): Test original variables.
5787 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5788 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
5789 (ia64_flag_var_tracking): Drop.
5790 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5791 (ia64_file_start): Don't save and override flag_var_tracking.
5792 (ia64_override_options_after_change): Ditto
5793 flag_schedule_insns_after_reload.
5794 (ia64_reorg): Test original variables.
5795 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
5796 (picochip_flag_var_tracking): Drop.
5797 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5798 (picochip_option_override): Don't save and override
5799 flag_schedule_insns_after_reload.
5800 (picochip_asm_file_start): Ditto flag_var_tracking.
5801 (picochip_reorg): Test original variables.
5802 * config/spu/spu.c (spu_flag_var_tracking): Drop.
5803 (TARGET_DELAY_VARTRACK): Define.
5804 (spu_var_tracking): New.
5805 (spu_machine_dependent_reorg): Call it.
5806 (asm_file_start): Don't save and override flag_var_tracking.
5807
a700b5f0
KK
58082011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
5809
5810 PR target/49163
5811 * config/sh/predicates.md (general_movsrc_operand): Return 0
5812 for memory and memory subreg of which address is an invalid
5813 indexed address for QI and HImode.
5814 (general_movdst_operand): Likewise.
5815
76015c34
EB
58162011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5817
5818 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
5819 edges only, when there is a non-local label in the function.
5820 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
5821
4e76acd2
UB
58222011-06-02 Uros Bizjak <ubizjak@gmail.com>
5823
5824 * config/i386/constraints.md (Y3): New register constraint.
5825 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
5826 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
5827 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
5828 *sse2_interleave_lowv2df.
5829
288f605f
JB
58302011-06-02 Julian Brown <julian@codesourcery.com>
5831
5832 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
5833 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
5834 (arm_cortex_a5_tune): New.
5835
7ec70105
JB
58362011-06-02 Julian Brown <julian@codesourcery.com>
5837
153668ec
JB
5838 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
5839 * config/arm/arm.c (arm_default_branch_cost): New.
5840 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5841 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
5842 (arm_fa726_tune): Set branch_cost field using
5843 arm_default_branch_cost.
5844 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
5845 current_tune structure.
5846 * dojump.c (tm_p.h): Include file.
5847
58482011-06-02 Julian Brown <julian@codesourcery.com>
5849
5850 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
5851 tuning.
7ec70105
JB
5852 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5853 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
5854 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
5855 field.
5856 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
5857 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
5858 (arm_fa726te_tune): Add prefer_constant_pool setting.
5859 (arm_v6t2_tune, arm_cortex_tune): New.
5860 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
5861 prefer_constant_pool setting.
5862
aad61732
UB
58632011-06-02 Uros Bizjak <ubizjak@gmail.com>
5864
4e76acd2
UB
5865 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
5866 switch statement.
aad61732
UB
5867 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
5868 (*movdf_internal) <case 6,7,8>: Ditto.
5869
4e76acd2 5870 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
5871 * config/i386/sse.md (vec_set<mode>_0): Merge with
5872 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
5873 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
5874 *vec_extractv2di_1_sse.
5875 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
5876 and *vec_concatv2di_rex64_sse.
5877
6e588138
SH
58782011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
5879
5880 PR target/48807
5881 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
5882 of cgraph_local_info for null before attempting to use it.
5883
bc6d3f91
EB
58842011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5885
5886 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
5887 (current_function_dynamic_alloc_count): Delete.
5888 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
5889 (expand_builtin_nonlocal_goto): Remove obsolete comment.
5890 (expand_builtin_update_setjmp_buf): Remove dead code.
5891 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
5892 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
5893 support.
5894 * function.c (instantiate_virtual_regs): Likewise.
5895 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
5896 for a block with a single abnormal incoming edge.
5897 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 5898 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
5899 * config/sparc/sparc-protos.h (load_got_register): Declare.
5900 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
5901 (load_got_register): Make global.
5902 (sparc_frame_pointer_required): Add 'static'.
5903 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
5904 (sparc_builtin_setjmp_frame_value): New function.
5905 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
5906 (save_stack_nonlocal): New expander.
5907 (restore_stack_nonlocal): Likewise.
5908 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
5909 (nonlocal_goto_internal): New insn.
5910 (goto_handler_and_restore): Delete.
5911 (builtin_setjmp_setup): Likewise.
5912 (do_builtin_setjmp_setup): Likewise.
5913 (setjmp): Likewise.
5914 (builtin_setjmp_receiver): New expander.
5915
69282fee
DL
59162011-06-01 David Li <davidxl@google.com>
5917
5918 PR middle-end/49261
5919 * tree-pretty-print.c (dump_function_header): Format cleanup.
5920
e95873dd
KK
59212011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
5922
5923 PR target/49238
5924 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
5925 needed when original operands are used for msw_skip comparison.
5926
88c15821
JJ
59272011-06-01 Jakub Jelinek <jakub@redhat.com>
5928
5929 PR debug/49250
5930 * var-tracking.c (add_uses, add_stores): Don't call
5931 cselib_subst_to_values on ENTRY_VALUE.
5932
07233947
DN
59332011-06-01 Diego Novillo <dnovillo@google.com>
5934
5935 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
5936 output_record_start with LTO_null instead of output_zero.
5937 (lto_output_ts_binfo_tree_pointers): Likewise.
5938 (lto_output_tree): Likewise.
5939 (output_eh_try_list): Likewise.
5940 (output_eh_region): Likewise.
5941 (output_eh_lp): Likewise.
5942 (output_eh_regions): Likewise.
5943 (output_bb): Likewise.
5944 (output_function): Likewise.
5945 (output_unreferenced_globals): Likewise.
5946 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
5947 instead of NUM_TREE_CODES.
5948 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
5949 (lto_output_int_in_range): Change << to >> when shifting VAL.
5950
4ee3537a
DN
59512011-06-01 Diego Novillo <dnovillo@google.com>
5952
5953 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
5954 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
5955
02972eaf
RS
59562011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5957
5958 PR target/45074
5959 * optabs.h (valid_multiword_target_p): Declare.
5960 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
5961 doing multi-word operations.
5962 * optabs.c (expand_binop): Likewise.
5963 (expand_doubleword_bswap): Likewise.
5964 (expand_absneg_bit): Likewise.
5965 (expand_unop): Likewise.
5966 (expand_copysign_bit): Likewise.
5967 (multiword_target_p): New function.
5968
4d41c2d1
RS
59692011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5970
5971 PR rtl-optimization/48830
5972 PR rtl-optimization/48808
5973 PR rtl-optimization/48792
5974 * reload.c (push_reload): Check contains_reg_of_mode.
5975 * reload1.c (strip_paradoxical_subreg): New function.
5976 (gen_reload_chain_without_interm_reg_p): Use it to handle
5977 paradoxical subregs.
5978 (emit_output_reload_insns, gen_reload): Likewise.
5979
5f57dccb
DL
59802011-06-01 David Li <davidxl@google.com>
5981
5982 * predict.c : Change pass name
5983 * ipa.c: Ditto.
5984 * dce.c: Ditto.
5985 * tree-profile.c: Ditto.
5986 * except.c: Ditto.
5987
ea6cf778
DL
59882011-06-01 David Li <davidxl@google.com>
5989
5990 * tree-pretty-print.c (dump_function_header): New function.
5991 * final.c (rest_of_clean_state): Use header dumper.
5992 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
5993 * passes.c (pass_init_dump_file): Use header dumper.
5994
ebdc0d4b
JJ
59952011-06-01 Jakub Jelinek <jakub@redhat.com>
5996
eeeb9b49
JJ
5997 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
5998 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
5999 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6000 New functions.
6001 (mem_loc_descriptor): Use them.
6002
ebdc0d4b
JJ
6003 * var-tracking.c (create_entry_value): New function.
6004 (vt_add_function_parameter): Use it.
6005
0699e415
RO
60062011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6007
6008 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6009 Include <signal.h>, <ucontext.h>.
6010 (sigill_caught): Define.
6011 (sigill_hdlr): New function.
6012 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6013 insns can be executed.
aad61732 6014 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
6015 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6016
ca24c5ad
RO
60172011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6018
6019 * config/t-slibgcc-darwin: Move to ...
aad61732 6020 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
6021 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6022 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6023 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 6024 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
6025 Remove i386/t-crtstuff from tmake_file.
6026 (i[34567]86-*-solaris2*): Remove t-svr4,
6027 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6028 t-slibgcc-dummy.
6029 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6030 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6031 sparc/t-crtfm from tmake_file.
6032 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6033 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6034 Remove extra_parts.
6035 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6036 * config/i386/t-nwld (SHLIB_LINK): Remove.
6037 * config/i386/t-rtems-i386: Rename to ...
6038 * config/i386/t-rtems: ... this.
6039 ($(T)crti.o, $(T)crtn.o): Remove.
6040 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6041 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6042 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6043 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6044 EXTRA_MULTILIB_PARTS): Remove.
6045 * config/sparc/t-sol2-64: Likewise.
6046 * config/sparc/t-sol2: Remove.
6047 * config/sparc/t-crtin: Remove.
6048 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6049 * config/i386/gmon-sol2.c: Remove.
6050 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6051 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6052 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6053 * config/i386/sol2-gc1.asm: Remove.
6054 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6055 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6056 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6057 * config/t-slibgcc-sld: Remove.
6058
a78d13c3
JJ
60592011-06-01 Jakub Jelinek <jakub@redhat.com>
6060
6061 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6062 base_type_for_mode with op_mode instead of mode.
6063
572070ef
PB
60642011-06-01 Paul Brook <paul@cpodesourcery.com>
6065
6066 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6067 Cortex-A15.
6068 * config/arm/arm-tune.md: Regenerate.
6069 * config/arm/arm-tables.opt: Regenerate.
6070 * config/arm/arm.c (FL_DIV): Rename...
6071 (FL_THUMB_DIV): ... to this.
6072 (FL_ARM_DIV): Define.
6073 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6074 (arm_arch_hwdiv): Remove.
6075 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6076 (arm_issue_rate): Add cortexr5.
6077 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6078 __ARM_ARCH_EXT_IDIV__.
6079 (TARGET_IDIV): Define.
6080 (arm_arch_hwdiv): Remove.
6081 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6082 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6083 (divsi3, udivsi3): New patterns.
6084 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6085 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6086
11026b51
MJ
60872011-06-01 Martin Jambor <mjambor@suse.cz>
6088
6089 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6090 * ipa-utils.c (searchc): Set scc_no.
6091
b6156cf2
MJ
60922011-06-01 Martin Jambor <mjambor@suse.cz>
6093
6094 * ipa-utils.c (searchc_env): New field allow_overwritable.
6095 (searchc): do not ignore edges to overwritable nodes if indicated
6096 by env->allow_overwritable.
6097 (ipa_reduced_postorder): Set env.allow_overwritable.
6098
6807da97
RG
60992011-06-01 Richard Guenther <rguenther@suse.de>
6100
6101 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6102 char_type_node.
6103 * lto-streamer.c (lto_record_common_node): Take node pointer,
6104 do not register types.
6105 (lto_preload_common_nodes): Explicitly skip preloading nodes
6106 that differ between frontends.
6107
66bd20e7 61082011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
6109
6110 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6111 NON_FLOAT_REGS.
6112
66bd20e7 61132011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
6114
6115 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6116 parameter value for dump. Dump cost on outermost call only.
6117 (rs6000_memory_move_cost): Dump cost on outermost call only.
6118
7351d8da
JJ
61192011-05-31 Jakub Jelinek <jakub@redhat.com>
6120
ead7c399
JJ
6121 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6122 DW_OP_GNU_convert ops.
6123
509f4495
JJ
6124 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6125 cselib_preserve_constants.
6126 (cselib_lookup_1): If cselib_preserve_constants,
6127 a new VALUE is being created for REG and there is a VALUE for the
6128 same register in wider mode, add another loc with lowpart SUBREG of
6129 the wider VALUE.
6130 (cselib_subst_to_values): Handle ENTRY_VALUE.
6131 * var-tracking.c (replace_expr_with_values): Return NULL for
6132 ENTRY_VALUE too.
6133 * dwarf2out.c (convert_descriptor_to_signed): New function.
6134 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6135 instead of two shifts.
6136 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6137 the right mode if needed.
6138 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6139 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6140 convert_descriptor_to_signed.
6141 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6142 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6143
7351d8da
JJ
6144 PR target/48688
6145 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6146
5cc93ee0
UB
61472011-05-31 Uros Bizjak <ubizjak@gmail.com>
6148
6149 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6150 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6151 (SWI248x): New mode iterator, rename from X87MODEI.
6152 (X87MODEI): Remove mode iterator.
6153 (X87MODEI12): Ditto.
6154 (SSEMODEI24): Ditto.
6155
f0686e78
AO
61562011-05-31 Alexandre Oliva <aoliva@redhat.com>
6157
6158 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6159 * doc/invoke.texi: Document max-vartrack-expr-depth.
6160 * var-tracking.c (EXPR_DEPTH): New.
6161 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6162
f3308413
AO
61632011-05-31 Alexandre Oliva <aoliva@redhat.com>
6164
6165 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6166 * config/i386/sse.md: Add n to negated FMA pattern names.
6167
28c14a04
AO
61682011-05-31 Alexandre Oliva <aoliva@redhat.com>
6169
6170 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6171
70efc82d
AO
61722011-05-31 Alexandre Oliva <aoliva@redhat.com>
6173
5cc93ee0 6174 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 6175
6ba5d856
UB
61762011-05-31 Uros Bizjak <ubizjak@gmail.com>
6177
6178 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6179 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6180
61812011-05-31 Uros Bizjak <ubizjak@gmail.com>
6182
6183 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6184 registers. Penalize F*r->o alternative to prevent partial memory
6185 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6186 CONST_DOUBLE immediates when optimizing function for size. Do not move
6187 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6188 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6189 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6190 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6191 alternatives.
6192 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6193
6194 (fp_register_operand splitters): Use fp_register_operand
6195 constraint. Do not use FP_REG_P in insn condition.
6196 (any_fp_register_operand splitters): Use any_fp_register_operand
6197 constraint. Do not use ANY_FP_REG_P in insn condition.
6198
533c07c5
JH
61992011-05-31 Jan Hubicka <jh@suse.cz>
6200
6201 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6202 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6203 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6204 (lto_output_edge): Use output_enum and var_len_unsigned.
6205 (lto_output_varpool_node): Likewise.
6206 (input_overwrite_node): Do not take resolution parameter;
6207 extract it from a bitpack.
6208 (input_node): Do not read resolution; use input_enum and
6209 var_len_unsigned.
6210 (input_varpool_node): Likewise.
6211 (input_edge): Likewise.
6212 (input_cgraph_1): Likewise.
6213
2611db71
RG
62142011-05-31 Richard Guenther <rguenther@suse.de>
6215
6216 * gimple.c (gimple_register_canonical_type): Do not register
6217 any types via gimple_register_type.
6218
b9e57365
JH
62192011-05-31 Jan Hubicka <jh@suse.cz>
6220
6221 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6222 of thunks.
6223
35979cc2
JJ
62242011-05-31 Jakub Jelinek <jakub@redhat.com>
6225
6226 PR rtl-optimization/49235
6227 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6228 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6229
8f7de592
IR
62302011-05-31 Ira Rosen <ira.rosen@linaro.org>
6231
6232 PR tree-optimization/49093
6233 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6234 data references.
6235
8d8a3bda
DS
62362011-05-31 Dodji Seketeli <dodji@redhat.com>
6237
6238 PR debug/49047
6239 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 6240 for concrete functions containing the code of cloned functions.
8d8a3bda 6241
2e87621c
RG
62422011-05-31 Richard Guenther <rguenther@suse.de>
6243
6244 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6245 to ...
6246 (forward_propagate_into_comparison_1): ... this.
6247 (forward_propagate_comparison): Rename to ...
6248 (forward_propagate_into_comparison): ... this. Split out
6249 real forward propagation code to ...
6250 (forward_propagate_comparison): ... this.
6251 (forward_propagate_into_gimple_cond): Remove looping.
6252 (forward_propagate_into_cond): Likewise.
6253 (simplify_not_neg_expr): Return whether we have done something.
6254 (simplify_gimple_switch): Likewise.
6255 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6256 (ssa_forward_propagate_and_combine): ... this. Re-structure
6257 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 6258 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
6259 (pass_forwprop): Adjust.
6260
5a880d5d
ILT
62612011-05-30 Ian Lance Taylor <iant@google.com>
6262
6263 * godump.c (go_format_type): Correct length of name added to
6264 obstack for anonymous field.
6265
5f133038
KK
62662011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6267
6268 PR target/49186
6269 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6270 part of the second operand is 0.
6271
b17d5426
UB
62722011-05-30 Uros Bizjak <ubizjak@gmail.com>
6273
6274 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6275 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6276 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6277 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 6278 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
6279 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6280 when optimizing function for size. Do not move CONST_DOUBLEs
6281 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
6282 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6283 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
6284 check for ANY_FP_REGNO_P instead.
6285 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6286 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6287 function for speed.
6288 * config/i386/i386.c (ix86_option_override_internal): Do not
6289 set TARGET_INTEGER_DFMODE_MOVES here.
6290
a0cd843f
L
62912011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6292
6293 PR target/49168
aad61732 6294 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 6295
006a5f38
JJ
62962011-05-30 Jakub Jelinek <jakub@redhat.com>
6297
6298 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6299 DW_TAG_rvalue_reference_type even for
6300 -gdwarf-4 -fno-debug-types-section.
6301
6e96f98a
BS
63022011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6303
6304 PR tree-optimization/46728
6305 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6306 (build_and_insert_binop): New.
6307 (gimple_expand_builtin_pow): Reorder args for
6308 build_and_insert_call; use build_and_insert_binop; add more
6309 optimizations for fractional exponents.
b17d5426 6310
4f60111f
NF
63112011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6312
6313 PR bootstrap/49190
6314
6315 Revert:
6316 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6317
6318 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6319 tree_common.
6320 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6321 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6322 TS_BASE instead of TS_COMMON.
6323 * varasm.c (assemble_name): Remove assert.
6324
3fd7879d
RS
63252011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6326
6327 * config.gcc: Keep obselete list sorted.
6328
80060f7a
JJ
63292011-05-30 Jakub Jelinek <jakub@redhat.com>
6330 Eric Botcazou <ebotcazou@adacore.com>
6331
6332 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6333 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6334 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6335 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6336 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6337
17e99cdb
RG
63382011-05-30 Richard Guenther <rguenther@suse.de>
6339
6340 * gimple.c (gimple_types_compatible_p_1): Compare record
6341 and union type members properly.
6342
42b05b6e
RG
63432011-05-30 Richard Guenther <rguenther@suse.de>
6344
6345 PR tree-optimization/49210
6ba5d856
UB
6346 * ipa-split.c (split_function): Care for the case where the call
6347 result is not trivially convertible to the result holding variable.
42b05b6e 6348
f3321158
RG
63492011-05-30 Richard Guenther <rguenther@suse.de>
6350
6351 PR tree-optimization/49218
6352 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6353 overflow occured.
6354
d12d8efe
RG
63552011-05-30 Richard Guenther <rguenther@suse.de>
6356
6357 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6358 New function split out from ...
6359 (forward_propagate_into_gimple_cond): ... here. Adjust.
6360 (forward_propagate_into_cond): Likewise.
6361 (forward_propagate_comparison): Also propagate into
6362 comparisons on assignment RHS. Change return value to
6363 behave similar to forward_propagate_into_cond.
6364 (tree_ssa_forward_propagate_single_use_vars): Handle
6365 strict-overflow warnings properly for forward_propagate_comparison.
6366
df33b41f
RO
63672011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6368
6369 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6370 from plugin linker.
6371 * configure: Regenerate.
6372
69940d4d
IR
63732011-05-30 Ira Rosen <ira.rosen@linaro.org>
6374
6375 PR tree-optimization/49199
6376 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 6377 non-reduction operands are either defined in the loop or by induction.
69940d4d 6378
226c52aa
XDL
63792011-05-29 Xinliang David Li <davidxl@google.com>
6380
6381 * opts-global.c (handle_common_deferred_options): Handle new options.
6382 * passes.c (register_one_dump_file): Call register_pass_name.
6383 (execute_one_pass): Check explicit enable/disable flag.
6384 (passr_hash): New function.
6385 (passr_eq): Ditto.
6386 (register_pass_name): Ditto.
6387 (get_pass_by_name): Ditto.
6388 (pass_hash): Ditto.
6389 (pass_eq): Ditto.
6390 (enable_pass): Ditto.
6391 (disable_pass): Ditto.
6392 (is_pass_explicitly_enabled_or_disabled): Ditto.
6393
491d8eed
UB
63942011-05-29 Uros Bizjak <ubizjak@gmail.com>
6395
6396 * config/i386/i386.md (*movoi_internal_avx): Use
6397 standard_sse_constant_opcode for alternative 0.
6398 (*movti_internal_sse): Ditto.
6399 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6400 alternative 2.
6401 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6402 sselog1 type moves.
6403 (*movsi_internal): Ditto.
6404 (*movdi_internal): Ditto. Add ssecvt type moves.
6405
eb93b31f
EB
64062011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6407
6408 PR target/48830
6409 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6410
3f831b7d
JJ
64112011-05-29 Jakub Jelinek <jakub@redhat.com>
6412
6413 PR rtl-optimization/49095
6414 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6415 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6416
ee3ee488
RS
64172011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6418
6419 PR target/43995
6420 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6421 recurse_p argument. Only follow register copies if it is set,
6422 and prevent mips_find_pic_call_symbol from recursing.
6423 (mips_find_pic_call_symbol): Add a recurse_p argument.
6424 Pass it to mips_pic_call_symbol_from_set.
6425 (mips_annotate_pic_calls): Update accordingly.
6426
65f3dedb
RS
64272011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6428
6429 * emit-rtl.c (try_split): Use a loop to search for
6430 NOTE_INSN_CALL_ARG_LOCATIONs.
6431
61e374ab
RG
64322011-05-29 Richard Guenther <rguenther@suse.de>
6433
6434 PR tree-optimization/49217
6435 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6436
fac009a8
JH
64372011-05-28 Jan Hubicka <jh@suse.cz>
6438
6439 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6440 length.
6441 (string_slot_free): Remove
6442 (create_output_block): Initialize obstack.
6443 (destroy_output_block): Free obstack.
6444 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6445 the string unless it needs to be added into the hash.
6446 (lto_output_string_with_length): Add persistent attribute;
6447 handle NULL strings.
6448 (lto_output_string): Add PERSISTENT parameter.
6449 (output_string_cst, output_identifier): Simplify.
6450 (lto_output_location_bitpack): Update.
6451 (lto_output_builtin_tree): Update.
6452 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
6453 (lto_output_string, lto_output_string_with_length): Remove
6454 declarations; functions are static now.
fac009a8 6455
fa766006
JH
64562011-05-28 Jan Hubicka <jh@suse.cz>
6457
6458 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6459 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6460 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6461 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6462 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6463 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6464 unpack_ts_decl_with_vis_value_fields,
6465 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6466 lto_get_builtin_tree): Use enum and variable length i/o.
6467 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6468 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6469 New functions.
6470 (bp_pack_enum, bp_unpack_enum): New macros.
6471
e092158b
RS
64722011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6473
6474 * genrecog.c: Remove redundant forward declarations.
6475
7ca2afa0
RS
64762011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6477
6478 * config.gcc: Deprecate mips*-*-openbsd*.
6479
a601a53a
RS
64802011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6481
6482 PR bootstrap/49195
6483 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6484 for match_op_dup.
6485
fc64b448
AP
64862011-05-27 Andrew Pinski <pinskia@gmail.com>
6487
6488 PR middle-end/48981
6489 * gengtype.c (vec_prefix_type): New function.
6490 (note_def_vec): Use vec_prefix_type and change the length
6491 attribute to be based on the prefix.
6492 * vec.c: Include coretypes.h before vec.h.
6493 (struct vec_prefix): Remove.
6494 (vec_gc_p_reserve): Change the offsetof to sizeof.
6495 (vec_gc_p_reserve_exact): Likewise.
6496 (vec_heap_p_reserve): Likewise.
6497 (vec_heap_p_reserve_exact): Likewise.
6498 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6499 (vec_stack_p_reserve): Change the offsetof to sizeof.
6500 (vec_stack_p_reserve_exact): Likewise.
6501 * vec.h (struct vec_prefix): New struct definition.
6502 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6503 (VEC_T_GTY(T,B)): Likewise.
6504 (DEF_VEC_FUNC_P(T)): Use prefix field.
6505 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6506 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6507
ba869341
BS
65082011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6509
6510 PR tree-optimization/46728
6511 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6512 (powi_as_mults): Add gimple_set_location.
6513 (build_and_insert_call): New.
6514 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6515 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 6516
d296760d
AM
65172011-05-27 Alexander Monakov <amonakov@ispras.ru>
6518
6519 * doc/contrib.texi: Update copyright years.
6520 (Contributors): Add Zdenek Sojka.
6521
38e01f9e
NF
65222011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6523
6524 * c-decl.c (c_push_function_context): Copy the current statement
6525 list stack.
6526 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6527 (finish_struct): Call building_stmt_list_p instead of checking
6528 cur_stmt_list.
6529 * c-parser.c (c_parser_postfix_expression): Likewise.
6530 * c-typeck.c (c_end_compound_stmt): Likewise.
6531 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6532 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6533 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6534 (free_stmt_list): Likewise.
6535 * tree.h (struct tree_statement_list): Include typed_tree instead
6536 of tree_common.
6537 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6538 as TS_TYPED instead of TS_COMMON.
6539
8950516e 65402011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 6541 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
6542
6543 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6544 (HAVE_AS_IX86_TLSGDPTL): Define.
6545 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6546 (HAVE_AS_IX86_TLSLDMPLT): Define.
6547 * configure: Regenerate.
6548 * config.in: Regenerate.
6549 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6550 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6551 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6552 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6553 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6554 @tlsldmplt or @plt.
6555 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6556
b0bd15f7
BS
65572011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6558
6559 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6560 and reverse_cond.
6561 (INSN_COND, INSN_REVERSE_COND): New macros.
6562 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6563 once.
6564 (sched_get_condition_with_rev): Cache the results, and look them up
6565 if possible.
6566 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6567 are clobbered by the current insn.
6568 * target.def (exposed_pipline): New sched data hook.
6569 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6570 * doc/tm.texi: Regenerate.
6571
fa65a9cf
BS
65722011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6573
6574 PR tree-optimization/49170
6575 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6576 sincos or cexp.
b0bd15f7 6577
c2299dfe
RG
65782011-05-27 Richard Guenther <rguenther@suse.de>
6579
6580 PR middle-end/49189
6581 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6582 of comparisons.
6583
a95b23b4
BS
65842011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6585
6586 * haifa-sched.c (sched_scan_info): Remove.
6587 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6588 with NULL args.
6589 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6590 Remove functions.
6591 (sched_scan): Remove.
6592 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6593 static. All callers changed.
6594 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6595 static. All callers changed.
6596 (sched_init_luids): Remove all arguments except the first. All
6597 callers changed. Don't use sched_scan.
6598 (haifa_init_h_i_d): Likewise.
6599 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6600 manually rather than using sched_init_luids. Likewise with
6601 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6602 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6603 rather than sched_init_luids with NULL args.
6604 * sel-sched-ir.c (new_insns): Remove variable.
6605 (sched_scan): New static function, previously in haifa-sched.c. Remove
6606 all arguments but the first two; all callers changed.
6607 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6608 rather than sched_init_luids.
6609 (sel_init_bbs): Remove second argument. All callers changed.
6610 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6611 with NULL arguments.
6612 (create_insn_rtx_from_pattern): Likewise.
6613 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6614 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6615 (sched_init_insn_luid, sched_extend_luids): Declare.
6616 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6617 declarations.
6618
f8f972fc
RB
66192011-05-27 Richard Guenther <rguenther@suse.de>
6620
6621 PR middle-end/49177
6622 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6623 A CMP B ? (T) true : (T) false for non-integral types T again.
6624
51a9ed47
JH
66252011-05-27 Jan Hubicka <jh@suse.cz>
6626
6627 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6628 so 0 means NULL string.
6629 (lto_output_string_with_length): ... here.
f8f972fc
RB
6630 (lto_output_string, output_string_cst, output_identifier): Update
6631 handling of NULL strings.
51a9ed47
JH
6632 (lto_output_location_bitpack): New function.
6633 (lto_output_location): Use it.
6634 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
6635 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6636 len values.
6637 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6638 values by 1.
491d8eed 6639 (input_string_internal): ... here;
f8f972fc
RB
6640 (input_string_cst, input_identifier, lto_input_string): Update handling
6641 of NULL strings.
51a9ed47
JH
6642 (lto_input_location_bitpack): New function
6643 (lto_input_location): Use it.
f8f972fc
RB
6644 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6645 values.
51a9ed47
JH
6646 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6647 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6648 (bp_pack_value): Sanity check the value range.
6649 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6650 New functions.
6651 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6652 New functions.
6653
66bd20e7 66542011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
6655
6656 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6657 call_arg_location instructions down the floor.
6658
574e418a
VM
66592011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6660
6661 PR rtl-optimization/49154
6662 * ira.c (setup_pressure_classes): Process class without sublcasses
6663 as a candidate for pressure classes.
6664
6a1a787e
RS
66652011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
6666
6667 PR rtl-optimization/48575
6668 * genrecog.c (position_type): New enum.
6669 (position): New structure.
6670 (decision): Use position structure instead of a string.
6671 (root_pos, peep2_insn_pos_list): New variables.
6672 (next_position, compare_positions): New functions.
6673 (new_decision): Use position structures instead of strings.
6674 (maybe_both_true): Likewise.
6675 (change_state): Likewise.
6676 (write_tree): Likewise.
6677 (make_insn_sequence): Likewise.
6678
92e948a8
NF
66792011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6680
6681 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6682 TS_BASE instead of TS_COMMON.
6683 (find_decls_types_r): Check for TS_TYPED structure before looking at
6684 TREE_TYPE.
6685 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6686 Add chain field.
6687 (BLOCK_CHAIN): Use new chain field.
6688
66bd20e7 66892011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
6690
6691 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6692 moves expensive on Power7 also.
6693
1f498652
RG
66942011-05-26 Richard Guenther <rguenther@suse.de>
6695
6696 * fold-const.c (fold_unary_loc): Remove bogus code.
6697
a2fc3e63
NF
66982011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6699
6700 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6701 tree_common.
6702 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6703 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6704 TS_BASE instead of TS_COMMON.
6705 * varasm.c (assemble_name): Remove assert.
6706
d11bf18f
BS
67072011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6708
6709 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6710 substituted first.
6711 * libgcc-std.ver: Delete file.
6712
ac8e1875
RG
67132011-05-26 Richard Guenther <rguenther@suse.de>
6714
6715 PR tree-optimization/48702
6716 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6717 only when we know the base address is within bounds.
6718 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6719 assume the base address of TARGET_MEM_REFs is in bounds.
6720
7e32e652
RO
67212011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6722
6723 PR target/49099
6724 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6725 declaration in TARGET_SOLARIS.
6726
66bd20e7 67272011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
6728
6729 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 6730 The instruction is then expanded explicitly.
43660e0b
HS
6731 (supported_compare): Callable instruction.
6732 (compare): Likewise.
6733
1537737f
JJ
67342011-05-26 Jakub Jelinek <jakub@redhat.com>
6735
6736 PR c++/49165
6737 * gimplify.c (shortcut_cond_r): Don't special case
6738 COND_EXPRs if they have void type on one of their arms.
6739
7b1ac803
BS
67402011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6741
6742 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
6743 to reduce duplication, and to achieve a slightly more logical order
6744 of operations.
6745
1aa9438f
JJ
67462011-05-26 Jakub Jelinek <jakub@redhat.com>
6747
6748 PR tree-optimization/49161
6749 * tree-vrp.c (struct case_info): New type.
6750 (compare_case_labels): Sort case_info structs instead of
6751 trees, and not primarily by CASE_LABEL uids but by
6752 label_for_block indexes.
6753 (find_switch_asserts): Put case labels into struct case_info
6754 array instead of TREE_VEC, adjust sorting, compare label_for_block
6755 values instead of CASE_LABELs.
6756
50fed7bf
RR
67572011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6758
6759 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
6760 ("orndi3_neon"): Likewise.
6761 ("bic<mode>3_neon"): Likewise.
6762
48df3fa6
IR
67632011-05-26 Ira Rosen <ira.rosen@linaro.org>
6764
6765 PR tree-optimization/49038
6766 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
6767 Ensure at least one epilogue iteration if required by data
6768 accesses with gaps.
6769 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6770 to mark loops that require peeling for gaps.
6771 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
6772 (vect_get_known_peeling_cost): Take peeling for gaps into
6773 account.
6774 (vect_transform_loop): Generate epilogue if required by data
6775 access with gaps.
6776 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
6777 loop as requiring an epilogue if there are gaps in the end of
6778 the strided group.
6779
53febcba
ILT
67802011-05-25 Ian Lance Taylor <iant@google.com>
6781
6782 * godump.c (go_format_type): Output the first field with a usable
6783 Go type, if any.
6784
dbbc4d4c
ILT
67852011-05-25 Ian Lance Taylor <iant@google.com>
6786
6787 * godump.c (go_format_type): Check for invalid type names, pointer
6788 target types, and struct field types.
6789
f03a5402
JM
67902011-05-25 Jason Merrill <jason@redhat.com>
6791
6792 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
6793
c497c412
UB
67942011-05-25 Uros Bizjak <ubizjak@gmail.com>
6795
6796 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
6797
e470affe
L
67982011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6799
6800 * config/i386/i386.md (*movqi_extv_1)): Put back
6801 "register_operand" check in "type" calculation.
6802 (*movqi_extzv_2): Likewise.
6803
6c81b2bc
L
68042011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6805
c497c412 6806 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 6807
0c007eb2
BS
68082011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6809
6810 PR bootstrap/49160
6811 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
6812 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
6813 __divxc3, __divtc3): Wrap definitions in #ifndef.
6814
521ca78e
L
68152011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6816
6817 PR target/49142
6818 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
6819 "register_operand" check and replace q_regs_operand with
6820 QIreg_operand in "type" calculation.
6821 (*movqi_extv_1): Likewise.
6822 (*movqi_extzv_2_rex64): Likewise.
6823 (*movqi_extzv_2): Likewise.
6824
6825 * config/i386/predicates.md (QIreg_operand): New.
6826
29f8b844
RG
68272011-05-25 Richard Guenther <rguenther@suse.de>
6828
6829 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6830 type-based offset disambiguation, streamline MEM_REF and
6831 TARGET_MEM_REF handling.
6832
74838de3
L
68332011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6834
6835 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
6836 (bdesc_special_args): Add pause intrinsic.
6837
6838 * config/i386/i386.md (UNSPEC_PAUSE): New.
6839 (pause): Likewise.
6840 (*pause): Likewise.
6841 * config/i386/ia32intrin.h (__pause): Likewise.
6842
6843 * doc/extend.texi (X86 Built-in Functions): Add documentation for
6844 pause intrinsic.
6845
d24ad7d6
BS
68462011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6847
6848 PR tree-optimization/46728
6849 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
6850 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 6851
d9f8303f
NF
68522011-05-25 Nathan Froyd <froydnj@codesourcery.com>
6853
6854 * tree.h (struct tree_exp): Inherit from struct tree_typed.
6855 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
6856 instead of TS_COMMON.
6857
cdbf4541
BS
68582011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6859
6860 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
6861 LIBGCC2_GNU_PREFIX is defined.
6862 (__N): New macro.
6863 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
6864 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
6865 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
6866 __clz_tab): Define using __N.
6867 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
6868 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
6869 * target.def (libfunc_gnu_prefix): New hook.
6870 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
6871 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
6872 * doc/tm.texi: Regenerate.
6873 * system.h (LIBGCC2_GNU_PREFIX): Poison.
6874 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
6875 account.
6876 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6877 (init_optabs): Likewise for the bswap libfuncs.
6878 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
6879 and divide.
6880 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
6881 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
6882 * libgcc-std.ver: Remove.
6883 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
6884 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
6885 libgcc-std.ver.
6886 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6887 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
6888 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
6889 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
6890 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
6891 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6892 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6893 * config/fixed-bit.h (FIXED_OP): Define differently depending on
6894 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
6895 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
6896
f242c0a5
JH
68972011-05-25 Jan Hubicka <jh@suse.cz>
6898
6899 * lto-streamer-out.c (output_record_start): Use lto_output_enum
6900 (lto_output_tree): Use output_record_start.
6901 * lto-streamer-in.c (input_record_start): Use lto_input_enum
6902 (lto_get_pickled_tree): Use input_record_start.
6903 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
6904 (lto_value_range_error): New function.
6905 * lto-streamer.h (lto_value_range_error): Declare.
6906 (lto_output_int_in_range, lto_input_int_in_range): New functions.
6907 (lto_output_enum, lto_input_enum): New macros.
6908
a11e0df4
EB
69092011-05-25 Eric Botcazou <ebotcazou@adacore.com>
6910
6911 * common.opt (flag_stack_usage_info): New variable.
6912 (-Wstack-usage): New option.
6913 * doc/invoke.texi (Warning options): Document -Wstack-usage.
6914 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
6915 <OPT_fstack_usage>: Likewise.
6916 * toplev.c (output_stack_usage): Handle -Wstack-usage.
6917 * calls.c (expand_call): Test flag_stack_usage_info variable instead
6918 of flag_stack_usage.
6919 (emit_library_call_value_1): Likewise.
6920 * explow.c (allocate_dynamic_stack_space): Likewise.
6921 * function.c (instantiate_virtual_regs ): Likewise.
6922 (prepare_function_start): Likewise.
6923 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
6924 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
6925 * config/arm/arm.c (arm_expand_prologue): Likewise.
6926 (thumb1_expand_prologue): Likewise.
6927 * config/avr/avr.c (expand_prologue): Likewise.
6928 * config/i386/i386.c (ix86_expand_prologue): Likewise.
6929 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6930 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
6931 * config/mips/mips.c (mips_expand_prologue): Likewise.
6932 * config/pa/pa.c (hppa_expand_prologue): Likewise.
6933 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6934 * config/s390/s390.c (s390_emit_prologue): Likewise.
6935 * config/sh/sh.c (sh_expand_prologue): Likewise.
6936 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6937 * config/spu/spu.c (spu_expand_prologue): Likewise.
6938
e7cfe241
RG
69392011-05-25 Richard Guenther <rguenther@suse.de>
6940
6941 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
6942 (gimple_canonical_types_compatible_p): Likewise.
6943
c5235f4c
JH
69442011-05-25 Jan Hubicka <jh@suse.cz>
6945
6946 PR middle-end/49062
6947 * ipa.c (function_and_variable_visibility): Only add to same
6948 comdat group list if DECL_ONE_ONLY.
6949
8242a0f6
AB
69502011-05-25 Andrey Belevantsev <abel@ispras.ru>
6951
6952 PR rtl-optimization/49014
6953 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
6954
642a011d
JJ
69552011-05-25 Jakub Jelinek <jakub@redhat.com>
6956
6957 PR target/49128
6958 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6959
30a435d8
VM
69602011-05-24 Vladimir Makarov <vmakarov@redhat.com>
6961
6962 PR rtl-optimization/48757
6963 * ira-build.c (loop_with_eh_edge_p): Rename to
6964 loop_with_complex_edge_p, check edges on complexity, make function
6965 conditional.
6966 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
6967 conditional.
6968
24d1bbc7
EB
69692011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6970
6971 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
6972 force flag_ira_share_save_slots to 0.
6973
65773087
EB
69742011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6975
6976 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
6977 (vt_initialize): Set PROLOGUE_BB unconditionally.
6978 Add block comment about CFA_BASE_RTX machinery.
6979 Reset FP_CFA_OFFSET to -1 on all invalid paths.
6980 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
6981
4e26ba90
NP
69822011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
6983
6984 PR objc/48187
6985 * c-parser.c (c_parser_objc_class_instance_variables): More robust
6986 parsing of syntax error in ObjC instance variable lists. In
6987 particular, avoid an infinite loop if there is a stray ']'.
6988 Updated error message.
6989
936fd13c
ILT
69902011-05-24 Ian Lance Taylor <iant@google.com>
6991
6992 * godump.c (go_define): Don't accept a string immediately after
6993 another operand.
6994
f17333e3
ILT
69952011-05-24 Ian Lance Taylor <iant@google.com>
6996
6997 * godump.c (struct godump_container): Add invalid_hash field.
6998 (go_format_type): Return false if type is found in invalid_hash.
6999 (go_output_typedef): Add invalid type to invalid_hash.
7000 (go_finish): Create and delete invalid_hash.
7001
d24ad7d6 70022011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 7003
78be79d5
BS
7004 PR tree-optimization/46728
7005 * tree-ssa-math-opts.c (powi_table): New.
7006 (powi_lookup_cost): New.
7007 (powi_cost): New.
7008 (powi_as_mults_1): New.
7009 (powi_as_mults): New.
7010 (gimple_expand_builtin_powi): New.
7011 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7012 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 7013
caee412b
RO
70142011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7015
7016 PR target/3746
7017 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7018 mips-tdump native.
7019 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7020 * mips-tdump.c: Likewise.
7021
5eed4f27
L
70222011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7023
7024 PR target/49128
7025 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7026 add -mno-XXX. Handle FMA.
7027
8c5fdaae
VM
70282011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7029
7030 PR rtl-optimization/48633
7031 * ira-build.c (loop_with_eh_edge_p): New function.
7032 (mark_loops_for_removal): Use it.
7033
70342011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
7035
7036 PR rtl-optimization/48971
7037 * ira.c (setup_pressure_classes): Don't check register move cost
7038 for classes with one registers. Don't add pressure class if there
7039 is a pressure class with the same available hard registers.
7040 Check contains_reg_of_mode. Fix a typo in collecting
7041 temp_hard_regset. Ignore hard registers not belonging to a class.
7042
df1f7315
UB
70432011-05-24 Uros Bizjak <ubizjak@gmail.com>
7044
7045 PR target/49133
7046 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7047
ee0cb37c
EB
70482011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7049 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7050
7051 PR gcov-profile/48845
7052 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7053
6a20ce76
RG
70542011-05-24 Richard Guenther <rguenther@suse.de>
7055
7056 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7057 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7058 (gimple_types_compatible_p_1): Adjust.
7059 (iterative_hash_canonical_type): Do not bother about complete vs.
7060 incomplete types.
7061 (gimple_canonical_types_compatible_p): Likewise.
7062
2fcb858c
RO
70632011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7064
7065 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7066
96d91dcf
RG
70672011-05-24 Richard Guenther <rguenther@suse.de>
7068
7069 PR bootstrap/49078
7070 * gimple.c (gimple_register_canonical_type): Revert
7071 previous change.
7072 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7073 does not for a tree for the case where it matters. Cache
7074 pointer-type alias-sets.
7075
1ed1641d
JM
70762011-05-24 Joseph Myers <joseph@codesourcery.com>
7077
7078 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7079 (OBJS): Remove options.o, opts-common.o and prefix.o.
7080 (OBJS-libcommon-target): New.
7081 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7082 (BACKEND): Include libcommon-target.a.
7083 (MOSTLYCLEANFILES): Include libcommon-target.a.
7084 (libcommon-target.a): New.
7085 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7086 prefix.o.
7087
57dfdff0
JM
70882011-05-23 Joseph Myers <joseph@codesourcery.com>
7089
7090 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7091 parts of output shared with the driver.
7092 * optc-gen.awk: Don't generate parts of output not shared with the
7093 driver.
7094 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7095 * doc/options.texi (SourcerInclude): Mention options-save.c.
7096 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7097 (OBJS): Add options-save.o.
7098 (options-save.c, options-save.o): New.
7099 (options.o): Update dependencies.
7100 (gcc-options.o): Remove.
7101 (mostlyclean): Remove options-save.c.
7102
0e0d82a7
JJ
71032011-05-23 Jakub Jelinek <jakub@redhat.com>
7104
9166988f
JJ
7105 PR debug/49032
7106 * dbxout.c: Include cgraph.h.
7107 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7108 and without value expr, return NULL if no varpool node exists for
7109 it or if it is not needed.
7110 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7111
0e0d82a7
JJ
7112 PR c/49120
7113 * c-decl.c (start_decl): Convert expr to void_type_node.
7114
65712d5c
RS
71152011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7116
7117 PR rtl-optimization/48826
7118 * emit-rtl.c (try_split): When splitting a call that is followed
7119 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7120
9025085e
JJ
71212011-05-23 Jakub Jelinek <jakub@redhat.com>
7122
7123 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7124 parameters passed in memory prefer using DECL_INCOMING_RTL over
7125 the pseudos it will be copied into.
7126
34a061be
L
71272011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7128
7129 PR target/47315
7130 * config/i386/i386.c (ix86_option_override_internal): Save the
7131 initial options after checking vzeroupper.
7132
c375a3a4
DL
71332011-05-23 David Li <davidxl@google.com>
7134
7135 PR tree-optimization/48988
7136 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7137 Initialize has_valid_pred for each pred chain.
7138
e1caba18
RG
71392011-05-23 Richard Guenther <rguenther@suse.de>
7140
7141 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7142 (iterative_hash_gimple_type): Always hash type names.
7143
dde05067
NF
71442011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7145
7146 * c-typeck.c (build_function_call_vec): Tweak call to
7147 check_function_arguments.
7148
094f6ab3
RG
71492011-05-23 Richard Guenther <rguenther@suse.de>
7150
7151 PR tree-optimization/49115
7152 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7153 is not necessarily carried out, do not claim it kills the ref.
7154 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7155
9a9822e1
RG
71562011-05-23 Richard Guenther <rguenther@suse.de>
7157
7158 PR middle-end/15419
7159 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7160 what pointer types we accept for folding.
7161
c8028650
RO
71622011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7163
7164 * gthr-gnat.c: Remove.
7165 * gthr-gnat.h: Remove.
7166 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7167 * config/t-freebsd (LIB2ADDEH): Likewise.
7168 * config/t-linux (LIB2ADDEH): Likewise.
7169 * config/t-sol2 (LIB2ADDEH): Likewise.
7170 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7171 * configure.ac (target_thread_file): Remove gnat handling.
7172 * configure: Regenerate.
7173 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7174
15882fe9
TG
71752011-05-23 Tristan Gingold <gingold@adacore.com>
7176 Eric Botcazou <ebotcazou@adacore.com>
7177
7178 * gcov.c (create_file_names): If no object directory is specified,
7179 keep the directory of the file.
7180
da90c957
RO
71812011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7182
7183 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7184 * configure: Regenerate.
7185
7bba408b
JJ
71862011-05-23 Jakub Jelinek <jakub@redhat.com>
7187
7188 PR middle-end/48973
7189 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7190 failed and the comparison has a single bit signed type, use
7191 constm1_rtx instead of const1_rtx for true value.
7192 (do_store_flag): If ops->type is single bit signed type, disable
7193 signel bit test optimization and pass -1 instead of 1 as last
7194 parameter to emit_store_flag_force.
7195
bc69f7ff
TV
71962011-05-23 Tom de Vries <tom@codesourcery.com>
7197
7198 PR target/45098
7199 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7200 function.
7201 (infer_loop_bounds_from_undefined): Use new function.
7202
29cedf8e
RS
72032011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7204
7205 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7206 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7207 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7208 and -O0 otherwise.
7209 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7210
afe8b6ec
EB
72112011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7212
7213 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7214 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7215 returns true.
7216
872dab53
RS
72172011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7218
7219 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7220
145f6c5b
EB
72212011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7222
7223 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7224 UNSPEC_MOVE_PIC pattern.
7225
8ac79835
EB
72262011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7227
7228 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7229 (sparc-*-rtems*): Likewise.
7230 (sparc64-*-elf*): Likewise.
7231 (sparc64-*-rtems*): Likewise.
7232 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7233 * config/sparc/t-crtin: New file.
7234 * config/sparc/t-sol2 (crti.o): Delete rule.
7235 (crtn.o): Likewise.
7236 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7237 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7238 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7239 (ENDFILE_SPEC): Add crtn.o.
7240
5fb43dd8
TV
72412011-05-22 Tom de Vries <tom@codesourcery.com>
7242
7243 PR middle-end/48689
7244 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7245 CODE_CONTAINS_STRUCT (TS_COMMON).
7246
ccb1b17b
JJ
72472011-05-22 Jakub Jelinek <jakub@redhat.com>
7248
7249 PR middle-end/49029
7250 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7251 only after deciding which mode to use.
7252
50ad7db2
TV
72532011-05-22 Tom de Vries <tom@codesourcery.com>
7254
7255 PR target/45098
dc0a3366 7256 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
7257 for call to get_shiftadd_cost.
7258
ef230b38
UB
72592011-05-22 Uros Bizjak <ubizjak@gmail.com>
7260
7261 PR target/49104
7262 * config/i386/cpuid.h (bit_MMXEXT): New define.
7263
15f072f9
NC
72642011-05-22 Nick Clifton <nickc@redhat.com>
7265
7266 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7267 initialisation of non-existant args[2] element. Use args[] array
7268 not arg[] array to pass arguments to build_function_type_list.
7269
e38fdc94
IR
72702011-05-22 Ira Rosen <ira.rosen@linaro.org>
7271
7272 PR tree-optimization/49087
ef230b38 7273 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 7274
5b018c65
JM
72752011-05-21 Jason Merrill <jason@redhat.com>
7276
7277 PR c++/49092
7278 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7279 static storage duration.
7280
abd9a770
EB
72812011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7282
7283 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7284 frame pointer.
7285
bd9a3248
EB
72862011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7287
7288 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7289 false if there are call-saved registers here...
7290 (sparc_can_use_return_insn_p): ...but here instead.
7291 (save_or_restore_regs): Fix thinko.
7292 (sparc_expand_prologue): Use current_function_is_leaf.
7293 (sparc_frame_pointer_required): Likewise.
7294
a5dfec9a
NC
72952011-05-21 Nick Clifton <nickc@redhat.com>
7296
7297 PR target/49098
7298 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7299
555c3771
NP
73002011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7301
7302 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7303 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7304
86fa5de4
JM
73052011-05-21 Joseph Myers <joseph@codesourcery.com>
7306
7307 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7308 * optc-gen.awk: Move common code to opt-read.awk.
7309 * opth-gen.awk: Likewise.
ef230b38 7310 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 7311
bce33ab2
NF
73122011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7313
7314 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7315
e6450c11
TV
73162011-05-20 Tom de Vries <tom@codesourcery.com>
7317
7318 PR target/45098
7319 * tree-ssa-loop-ivopts.c: Include expmed.h.
7320 (get_shiftadd_cost): New function.
7321 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7322
0e8b84ec
JJ
73232011-05-20 Jakub Jelinek <jakub@redhat.com>
7324
7325 PR bootstrap/49086
7326 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7327 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7328
946bdf67
JM
73292011-05-20 Joseph Myers <joseph@codesourcery.com>
7330
7331 * Makefile.in: Update comment referring to $(OBJS-common).
7332
c53aafdf
ILT
73332011-05-20 Ian Lance Taylor <iant@google.com>
7334
7335 * godump.c (go_output_typedef): Put enum constants in the macro
7336 hash table to avoid duplicate Go const definitions.
7337
2691e6d7
JM
73382011-05-20 Joseph Myers <joseph@codesourcery.com>
7339
7340 * Makefile.in (LIBDEPS): Add libcommon.a.
7341 (LIBS): Likewise.
7342 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7343 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7344 pretty-print.o and version.o.
7345 (OBJS-libcommon): New.
7346 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7347 (BACKEND): Add libcommon.a.
7348 (MOSTLYCLEANFILES): Likewise.
7349 (libcommon.a): New.
7350 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7351 (cpp$(exeext)): Likewise.
7352 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7353 pretty-print.o and input.o.
7354 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7355 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7356 (errors.o): Remove.
7357 (mips-tfile): Don't explicitly use version.o.
7358 (mips-tdump): Likewise.
7359 (gcov.o): Depend on $(DIAGNOSTIC_H).
7360 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7361 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7362 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7363 * gcov-dump.c: Include intl.h and diagnostic.h.
7364 (main): Initialize diagnostics.
7365 * gcov.c: Include diagnostic.h.
7366 (fnotice): Remove.
7367 (main): Initialize diagnostics.
7368 * lto-wrapper.c: Include diagnostic.h.
7369 (main): Initialize diagnostics.
7370
252b3e8c
MM
73712011-05-20 Michael Matz <matz@suse.de>
7372
7373 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7374
2ee36ba6
MM
73752011-05-20 Michael Matz <matz@suse.de>
7376 Richard Guenther <rguenther@suse.de>
7377
7378 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7379 use lto_streamer_cache_append directly instead of returning a VEC.
7380 (preload_common_node): Remove.
7381 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7382 track seen nodes.
7383 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7384
90ff582f
RG
73852011-05-20 Richard Guenther <rguenther@suse.de>
7386
7387 PR tree-optimization/49079
7388 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7389 MEM_REFs correctly for the trailing array access detection.
7390 Special case constants the same way as decls for overall size
7391 constraining.
7392
3cda91d8
UB
73932011-05-20 Uros Bizjak <ubizjak@gmail.com>
7394
7395 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7396 argument expansion.
7397
6c66f733
JJ
73982011-05-20 Jakub Jelinek <jakub@redhat.com>
7399
7400 PR tree-optimization/49073
3cda91d8
UB
7401 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7402 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
7403 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7404
0ea80a16
RG
74052011-05-20 Richard Guenther <rguenther@suse.de>
7406
7407 PR middle-end/48849
7408 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7409 of pointer types the same way the middle-end does.
7410
fb291a1e
RG
74112011-05-20 Richard Guenther <rguenther@suse.de>
7412
3cda91d8
UB
7413 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7414 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 7415
37cb25ed
QN
74162011-05-19 Quentin Neill <quentin.neill@amd.com>
7417
7418 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7419 (fma4_fmaddsub): Likewise
7420
a30726a4
JH
74212011-05-19 Jan Hubicka <jh@suse.cz>
7422
7423 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7424 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7425 (type_pair_cache): New static var.
7426 (lookup_type_pair): Use fixed sized custom hash; make inline.
7427 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7428 calls of lookup_type_pair.
7429 (print_gimple_types_stats): Remove cache stats.
7430 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7431 and gtc_ob.
7432
0955cf61
UB
74332011-05-19 Uros Bizjak <ubizjak@gmail.com>
7434
7435 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7436 when TARGET_RDRND is active.
7437 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7438 Generate dummy SImode target register when target is NULL.
7439
12d844c8
JM
74402011-05-19 Joseph Myers <joseph@codesourcery.com>
7441
7442 * config/arm/arm-fpus.def: New.
7443 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7444 arm-fpus.def.
7445 * config/arm/arm-tables.opt: Regenerate.
7446 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7447 (arm_option_override): Don't decode FPU name to string here.
7448 * config/arm/arm.opt (mfpu=): Use Enum.
7449 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7450 Update dependencies.
7451
9e350e99
JM
74522011-05-19 Joseph Myers <joseph@codesourcery.com>
7453
7454 * collect2.c: Include diagnostic.h.
7455 (fatal_perror, fatal, error, fancy_abort): Remove.
7456 (main): Set progname. Call xmalloc_set_program_name and
7457 diagnostic_initialize.
7458 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7459 scan_libraries, resolve_lib_name): Call fatal_error instead of
7460 fatal and fatal_perror.
7461 * collect2.h (error, fatal, fatal_perror): Don't declare.
7462 * tlink.c: Include diagnostic-core.h.
7463 (recompile_files): Call fatal_error instead of fatal_perror.
7464 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7465 pretty-print.o and input.o.
7466 (collect2.o, tlink.o): Update dependencies.
7467
86ff4081
RO
74682011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7469
7470 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7471
2ca48caa
RO
74722011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7473
7474 PR target/40483
7475 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7476 COMDAT group syntax, both SPARC and x86 variants.
7477 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7478 * configure: Regenerate.
7479 * config/sol2.h (TARGET_SOLARIS): Define.
7480 (PUSHSECTION_FORMAT): Remove.
7481 (SECTION_NAME_FORMAT): Define.
7482 * config/sol2.c: Include hashtab.h.
7483 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7484 expansion, using SECTION_NAME_FORMAT.
7485 (solaris_comdat_htab): New variable.
7486 (struct comdat_entry): Define.
7487 (comdat_hash): New function.
7488 (comdat_eq): New function.
7489 (solaris_elf_asm_comdat_section): New function.
7490 (solaris_define_comdat_signature): New function.
7491 (solaris_code_end): New function.
7492 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7493 (solaris_code_end): Declare.
7494 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7495 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7496 solaris_code_end.
7497 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7498 Remove ATTRIBUTE_UNUSED.
7499 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7500 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 7501 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
7502 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7503 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7504 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7505 (PUSHSECTION_FORMAT): Remove.
7506 (SECTION_NAME_FORMAT): Redefine.
7507
da5fb469
KT
75082011-05-19 Kai Tietz <ktietz@redhat.com>
7509
7510 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7511 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7512 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7513
1651e703 75142011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
7515 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7516
7517 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7518
e497b9bd
RG
75192011-05-19 Richard Guenther <rguenther@suse.de>
7520
7521 PR middle-end/48985
7522 * tree-object-size.c (addr_object_size): If the pointed-to
7523 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7524
31b3ca64
RG
75252011-05-19 Richard Guenther <rguenther@suse.de>
7526
7527 * gimple.c (gimple_types_compatible_p_1): Compare names of
7528 the types themselves.
7529 (iterative_hash_gimple_type): And hash them that way.
7530 (gimple_register_type_1): If we register a main variant properly
7531 initialize the leader to ourselves.
7532
bb8d292d
TV
75332011-05-19 Tom de Vries <tom@codesourcery.com>
7534
7535 PR target/45098
7536 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7537 get_loop_invariant_expr_id.
7538 (get_loop_invariant_expr_id): Use get_expr_id.
7539 (parm_decl_cost): New function.
7540 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7541 Improve bound cost estimation. Use different inv_expr_id for elim and
7542 express cases.
7543
a53c5024
TV
75442011-05-19 Tom de Vries <tom@codesourcery.com>
7545
7546 PR target/45098
7547 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7548 cost_base.cost == 0.
7549
31f9eb59
L
75502011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7551
7552 PR target/49002
66bd20e7
EB
7553 * config/i386/sse.md
7554 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7555 load cast.
31f9eb59 7556
681056ae
JJ
75572011-05-18 Jakub Jelinek <jakub@redhat.com>
7558
7559 PR tree-optimization/49039
7560 * tree-vrp.c (extract_range_from_binary_expr): For
7561 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7562 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7563
b5ee6752
TV
75642011-05-18 Tom de Vries <tom@codesourcery.com>
7565
7566 PR target/45098
7567 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7568
0bda47a3
UB
75692011-05-18 Uros Bizjak <ubizjak@gmail.com>
7570
7571 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7572 (*tls_global_dynamic_64): Ditto.
7573 (*tls_local_dynamic_base_32_gnu): Ditto.
7574 (*tls_local_dynamic_base_64): Ditto.
7575 (tls_initial_exec_64_sun): Ditto.
7576
033b0805
SH
75772011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7578
7579 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7580 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7581 bf592-none.
7582 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7583 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7584 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7585 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 7586 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
7587 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7588 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7589
ba163417
JM
75902011-05-18 Joseph Myers <joseph@codesourcery.com>
7591
7592 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 7593 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
7594 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7595 target_thread_pointer, arm_structure_size_boundary, struct
7596 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7597 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
7598 (arm_option_override) Don't process most enumerated option values here.
7599 Don't process target_fpe_name here. Work with integer not string for
7600 structure size boundary; use separate diagnostics for each case.
ba163417
JM
7601 * config/arm/arm.h (enum float_abi_type, enum
7602 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7603 to arm-opts.h.
7604 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7605 arm_structure_size_boundary): Remove.
7606 * config/arm/arm.opt (mabi=): Use Enum and Init.
7607 (arm_abi_type): New Enum and EnumValue entries.
7608 (mfloat-abi=): Use Enum and Init.
7609 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 7610 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
7611 (mfp16-format=): Use Enum and Init.
7612 (arm_fp16_format_type): New Enum and EnumValue entries.
7613 (mstructure-size-boundary=): Use UInteger and Init.
7614 (mtp=): Use Enum and Init.
7615 (arm_tp_type): New Enum and EnumValue entries.
7616
179184e3
RG
76172011-05-18 Richard Guenther <rguenther@suse.de>
7618
7619 PR tree-optimization/49018
7620 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7621 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7622 gimple_has_side_effects.
7623
93b2a207
RG
76242011-05-18 Richard Guenther <rguenther@suse.de>
7625
7626 * gimple.c (gimple_register_type_1): New function, split out from ...
7627 (gimple_register_type): ... here. Avoid infinite recursion.
7628
b010117a
IR
76292011-05-18 Ira Rosen <ira.rosen@linaro.org>
7630
7631 PR tree-optimization/41881
7632 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7633 reduction_chains along with a macro for its access.
7634 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7635 (destroy_loop_vec_info): Free reduction chains.
7636 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7637 (vect_is_slp_reduction): New function.
7638 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7639 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7640 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7641 definition types for reduction chains.
7642 (vect_supported_load_permutation_p): Don't allow permutations for
7643 reduction chains.
7644 (vect_analyze_slp_instance): Support reduction chains.
7645 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7646 (vect_get_constant_vectors): Handle reduction chains.
7647 (vect_schedule_slp_instance): Mark the first statement of the
7648 reduction chain as reduction.
7649
e14c1050
IR
76502011-05-18 Ira Rosen <ira.rosen@linaro.org>
7651
7652 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7653 names for group elements access.
7654 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7655 reduction chains as well. Remove data reference and interleaving
7656 related words from the fields names.
7657 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7658 elements access.
7659 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7660 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7661 vect_update_interleaving_chain, vect_same_range_drs,
7662 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7663 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7664 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7665 vect_analyze_group_access, vect_analyze_data_ref_access,
7666 vect_create_data_ref_ptr, vect_transform_strided_load,
7667 vect_record_strided_load_vectors): Likewise.
7668 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7669 vect_model_load_cost, vectorizable_store, vectorizable_load,
7670 vect_remove_stores, new_stmt_vec_info): Likewise.
7671 * tree-vect-slp.c (vect_build_slp_tree,
7672 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7673
51c213f7
RG
76742011-05-18 Richard Guenther <rguenther@suse.de>
7675
7676 PR middle-end/48989
7677 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7678 operand verification.
7679 (verify_gimple_assign_binary): Likewise.
7680 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7681 to non-1-precision BOOLEAN_TYPEs.
7682
8f5e5434
TV
76832011-05-18 Tom de Vries <tom@codesourcery.com>
7684
7685 PR target/45098
7686 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7687
116bc3a4
JJ
76882011-05-18 Jakub Jelinek <jakub@redhat.com>
7689
7690 PR tree-optimization/49000
7691 * tree-ssa.c (execute_update_addresses_taken): Call
7692 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
7693 be rewritten and decl has been marked for renaming, reset
7694 the debug stmt.
7695
26a8964c
JM
76962011-05-17 Joseph Myers <joseph@codesourcery.com>
7697
7698 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7699 enum_opts_set when testing if attributes have set -mfpmath=.
7700
82bd45d7
RS
77012011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
7702
7703 * config/mips/mips.c (mips_handle_option): Remove unused variable.
7704
267ffce3
UB
77052011-05-17 Uros Bizjak <ubizjak@gmail.com>
7706
7707 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7708 info->entry with 0
7709 * tree-inline.c (maybe_inline_call_in_expr): Initialize
7710 id.transform_lang_insert_block with NULL.
7711
77122011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
7713
7714 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7715 (output_fp_compare): Change args 3 and 4 to bool.
7716 (ix86_expand_call): Change arg 6 to bool.
7717 (ix86_attr_length_immediate_default): Change arg 2 to bool.
7718 (ix86_attr_length_vex_default): Change arg 3 to bool.
7719 * config/i386/i386.md: Update all uses.
7720 * config/i386/i386.c: Ditto.
7721 (ix86_flags_dependent): Change return type to bool.
7722
5beaf664
RG
77232011-05-17 Richard Guenther <rguenther@suse.de>
7724
7725 * gimple.c (type_hash_pair_compare): Fix comparison.
7726
008bad7a
RG
77272011-05-17 Richard Guenther <rguenther@suse.de>
7728
7729 * gimple.c (iterative_hash_gimple_type): Simplify singleton
7730 case some more, fix final hash value of the non-singleton case.
7731
36461340
RG
77322011-05-17 Richard Guenther <rguenther@suse.de>
7733
7734 PR bootstrap/49013
7735 Revert
7736 2011-05-16 Richard Guenther <rguenther@suse.de>
7737
7738 * gimple.c (gimple_types_compatible_p_1): Use names of the
7739 type itself, not its main variant.
7740 (iterative_hash_gimple_type): Likewise.
7741
6b6a59f3
RG
77422011-05-17 Richard Guenther <rguenther@suse.de>
7743
7744 * gimple.c (gimple_register_canonical_type): Use the main-variant
7745 leader for computing the canonical type.
7746
4ffc4134
NC
77472011-05-17 Nick Clifton <nickc@redhat.com>
7748
a1d8754e
NC
7749 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
7750 moves.
7751
4ffc4134
NC
7752 * config/rx/rx.md: Add peephole to remove redundant extensions
7753 after loads.
39960f7a
NC
7754 (bitset_in_memory): Use rx_restricted_mem_operand.
7755 (bitinvert_in_memory): Likewise.
7756 (bitclr_in_memory): Likewise.
4ffc4134 7757
b3db92ac
KI
77582011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
7759 Nick Clifton <nickc@redhat.com>
7760
7761 * config/rx/rx.md: Add peepholes to match a register move followed
7762 by a comparison of the moved register. Replace these with an
7763 addition of zero that does both actions in one instruction.
7764
8637e32a
JJ
77652011-05-17 Jakub Jelinek <jakub@redhat.com>
7766
7767 PR target/48986
7768 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
7769 predicate to allow CONST_INT.
7770 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
7771
8023568e
JM
77722011-05-16 Joseph Myers <joseph@codesourcery.com>
7773
7774 * opts-common.c (opt_enum_arg_to_value): New.
7775 * opts.h (opt_enum_arg_to_value): Declare.
7776 * config/i386/i386.opt (fpmath): Remove.
7777 (mfpmath=): Use Enum, Init and Save.
7778 (fpmath_unit): New Enum and EnumValue entries.
7779 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
7780 name for function fpmath state.
7781 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
7782 * config/i386/i386.c: Include diagnostic.h.
7783 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 7784 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 7785 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 7786 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
7787 (x86_function_specific_save, ix86_function_specific_restore):
7788 Don't handle fpmath state specially.
7789 (ix86_function_specific_print): Pass fpmath state to
7790 ix86_target_string instead of printing in this function.
7791 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
7792 Handle enum attributes.
7793 (IX86_ATTR_ENUM, ix86_opt_enum): New.
7794 (ix86_valid_target_attribute_tree): Update option_strings
7795 handling. Handle fpmath as enum option.
7796 (ix86_can_inline_p): Update field names for function fpmath state.
7797 (ix86_expand_builtin): Update call to ix86_target_string.
7798 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
7799 (ix86_fpmath): Remove.
7800 * config/i386/t-i386 (i386.o): Update dependencies.
7801
9e8d926e
JM
78022011-05-16 Joseph Myers <joseph@codesourcery.com>
7803
7804 PR preprocessor/48677
7805 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
7806 from decoded_options[0], not from itself.
7807
f6449011
UB
78082011-05-16 Uros Bizjak <ubizjak@gmail.com>
7809
7810 * config/i386/constraints.md (z): New constraint.
7811 * config/i386/i386.c (c): New mode attribute.
7812 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
7813 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7814 constraint for operand 0.
7815 (*call_vzeroupper): Ditto.
7816 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
7817 (*call_rex64_ms_sysv_vzeroupper): Ditto.
7818 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
7819 Use "lzm" constraint for operand 0.
7820 (*call_pop_vzeroupper): Ditto.
7821 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
7822 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
7823 constraint for operand 0.
7824 (*sibcall_vzeroupper): Ditto.
7825 (*sibcall_rex64_ms_sysv): Ditto.
7826 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
7827 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
7828 *sibcall_pop_1. Use "Uz" constraint for operand 0.
7829 (*sibcall_pop_vzeroupper): Ditto.
7830 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
7831 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
7832 mode iterator. Use "<c>zm" constraint for operand 1.
7833 (*call_value_vzeroupper): Ditto.
7834 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 7835 for operand 1.
f6449011
UB
7836 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
7837 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
7838 *call_value_pop_1. Use "lzm" constraint for operand 1.
7839 (*call_value_pop_vzeroupper): Ditto.
7840 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
7841 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
7842 mode iterator. Use "Uz" constraint for operand 1.
7843 (*sibcall_value_vzeroupper): Ditto.
7844 (*sibcall_value_rex64_ms_sysv): Ditto.
7845 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
7846 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
7847 constraint for operand 1.
7848 (*sibcall_value_pop_vzeroupper): Ditto.
7849 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
7850 and "z" constraint for operand 2.
7851 (*tls_global_dynamic_32_gnu): Ditto.
7852 (*tls_local_dynamic_base_32_gnu): Ditto.
7853 (*tls_local_dynamic_base_64): Ditto.
7854 (*tls_local_dynamic_32_once): Ditto.
7855 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
7856 Update all callers.
7857 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
7858
c11b6902
RG
78592011-05-16 Richard Guenther <rguenther@suse.de>
7860
7861 * gimple.c (gimple_types_compatible_p_1): Use names of the
7862 type itself, not its main variant.
7863 (iterative_hash_gimple_type): Likewise.
7864
1e83b5f1
RG
78652011-05-16 Richard Guenther <rguenther@suse.de>
7866
f6449011
UB
7867 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
7868 always visit pointer target and function result and argument types.
1e83b5f1 7869
62e36382
JM
78702011-05-16 Jason Merrill <jason@redhat.com>
7871
7872 PR c++/48999
7873 * tree-inline.c (copy_statement_list): Put back recursion.
7874
687027a4
GJL
78752011-05-16 Georg-Johann Lay <avr@gjlay.de>
7876
7877 PR target/27663
7878 PR target/41076
7879 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
7880 * config/avr/avr.md ("*ior<mode>qi.byte0",
7881 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
7882
f24a5190
GJL
78832011-05-16 Georg-Johann Lay <avr@gjlay.de>
7884
7885 PR target/45099
7886 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
7887 register is needed for a function argument.
7888
3066f593
RG
78892011-05-16 Richard Guenther <rguenther@suse.de>
7890
7891 * gimple.c (struct type_hash_pair): New type.
7892 (type_hash_pair_compare): New function.
f6449011 7893 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 7894
b2ab2cf4
RE
78952011-05-16 Revital Eres <revital.eres@linaro.org>
7896
f6449011 7897 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 7898
dfb737fc
UB
78992011-05-15 Uros Bizjak <ubizjak@gmail.com>
7900
7901 * config/i386/i386.md (floating point move splitters): Fix
7902 usage of standard_80387_constant_p.
f6449011 7903 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 7904
8caa1de0
UB
79052011-05-15 Uros Bizjak <ubizjak@gmail.com>
7906
7907 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
7908
8a519095
EB
79092011-05-14 Eric Botcazou <ebotcazou@adacore.com>
7910
7911 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
7912 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
7913 (tree_ssa_lim_finalize): Likewise.
7914
479fecd3
UB
79152011-05-14 Uros Bizjak <ubizjak@gmail.com>
7916
7917 * config/i386/constraint.md (Yd, Yx): New register constraints.
7918 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
7919 Yd conditional register constraint.
7920 (*movtf_internal): Use standard_sse_constant_opcode.
7921 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
7922 Yx conditional register constraint.
7923 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
7924 Yd conditional register constraint. Use standard_sse_constant_p to
7925 check for valid SSE constants and call standard_sse_constant_opcode to
7926 output SSE insn.
7927 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
7928 constants and call standard_sse_constant_opcode to output SSE insn.
7929 * config/i386/i386.c (ix86_option_ovverride_internal): Set
7930 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
7931 optimize_size is set.
7932 (standard_sse_constant_opcode): Output conditional AVX insn templates.
7933
2d8c9ad5
TB
79342011-05-14 Tobias Burnus <burnus@net-b.de>
7935
7936 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
7937
411a20d6
MJ
79382011-05-13 Martin Jambor <mjambor@suse.cz>
7939
7940 * ipa-prop.c (ipa_cst_from_jfunc): New function.
7941 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
7942 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
7943 (evaluate_conditions_for_ipcp_clone): Removed.
7944 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
7945 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
7946 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
7947
dc764d10
EB
79482011-05-13 Eric Botcazou <ebotcazou@adacore.com>
7949
7950 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
7951 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
7952 lieu of MAY_HAVE_DEBUG_STMTS.
7953 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
7954 debug statements if !MAY_HAVE_DEBUG_STMTS.
7955
9f47a24e
MT
79562011-05-13 Martin Thuresson <martint@google.com>
7957
7958 PR gcov-profile/47793
7959 * libgcov.c (gcov_exit): Support relative profile paths.
7960 * doc/invoke.texi (-fprofile-dir): Update for above change.
7961
b8a71aed
RG
79622011-05-13 Richard Guenther <rguenther@suse.de>
7963
7964 * gimple.c (gimple_canonical_types_compatible_p): Do not use
7965 type-pair caching, do not compare hashes.
7966
eb9f9259
NF
79672011-05-13 Nathan Froyd <froydnj@codesourcery.com>
7968
7969 PR middle-end/48965
7970 * tree-cfg.c (edge_to_cases_cleanup): Return true.
7971 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
7972
3c6cbf7a
KT
79732011-05-13 Kai Tietz <ktietz@redhat.com>
7974
7975 * gimplify.c (gimplify_expr): Make sure operand is boolified.
7976 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
7977 compatible type for TRUTH_NOT_EXPR.
7978
2e7f5dc0
L
79792011-05-13 H.J. Lu <hongjiu.lu@intel.com>
7980
dc764d10 7981 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
7982 (ix86_hard_regno_mode_ok): Change return value to bool. Use
7983 can_create_pseudo_p ().
7984
e834e95c
RG
79852011-05-13 Richard Guenther <rguenther@suse.de>
7986
7987 PR lto/48978
7988 * gimple.c (iterative_hash_gimple_type): Revert change in
7989 pointer target and function result and argument hashing.
7990
34203483
UB
79912011-05-13 Uros Bizjak <ubizjak@gmail.com>
7992
7993 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
7994 (*movxf_internal_nointeger): Ditto.
7995 (*movdf_internal_rex64): Ditto.
7996 (*movdf_internal): Ditto.
7997 (*movdf_internal_nointeger): Ditto.
7998 (*movsf_internal): Ditto.
7999 (sincos splitters): Use can_create_pseudo ().
8000
7eb68c06
JM
80012011-05-13 Joseph Myers <joseph@codesourcery.com>
8002
8003 * config/i386/i386-opts.h: New.
8004 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8005 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8006 ix86_section_threshold): Remove.
8007 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8008 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8009 OPT_mbranch_cost_.
8010 (ix86_option_override_internal): Don't decode strings for options
8011 other than -march=, -mtune= and -mfpmath=. Don't allow for
8012 __attribute__ uses in remaining diagnostics for options with
34203483 8013 string arguments. Don't check for integer arguments being negative.
7eb68c06 8014 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 8015 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
8016 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8017 ix86_branch_cost, ix86_section_threshold): Remove.
8018 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8019 HeaderInclude.
8020 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8021 but not Var.
8022 (masm=): Use Enum and Init.
8023 (asm_dialect): New Enum and EnumValue entries.
8024 (mbranch-cost=): Use UInteger.
8025 (mlarge-data-threshold=): Use UInteger and Init.
8026 (mcmodel=): Use Enum and Init.
8027 (cmodel): New Enum and EnumValue entries.
8028 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8029 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8030 mregparm=): Use UInteger.
8031 (mstringop-strategy=): Use Enum and Init.
8032 (stringop_alg): New Enum and EnumValue entries.
8033 (mtls-dialect=): Use Enum and Init.
8034 (tls_dialect): New Enum and EnumValue entries.
8035 (mabi=): Use Enum and Init.
8036 (calling_abi): New Enum and EnumValue entries.
8037 (mveclibabi=): Use Enum and Init.
8038 (ix86_veclibabi): New Enum and EnumValue entries.
8039
f67e203c
NC
80402011-05-13 Nick Clifton <nickc@redhat.com>
8041
34203483
UB
8042 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8043 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 8044
221df0b6
KT
80452011-05-13 Kai Tietz <ktietz@redhat.com>
8046
8047 PR middle-end/48984
8048 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8049 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8050 (gimple_boolify): Check for cast for boolean_type_node instead for
8051 BOOLEAN_TYPE.
8052
208cb8cb
RG
80532011-05-13 Richard Guenther <rguenther@suse.de>
8054
8055 PR tree-optimization/48172
8056 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8057 multiplying by number of iterations for equal step.
8058 (vect_create_cond_for_alias_checks): Likewise.
8059
b88ecf55
AS
80602011-05-13 Andreas Schwab <schwab@redhat.com>
8061
8062 * configure.ac: Use AS_HELP_STRING throughout.
8063 * configure: Regenerate.
8064
569b527e
L
80652011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8066
34203483 8067 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
8068 (ix86_emit_restore_regs_using_mov): Likewise.
8069 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8070
8b9a1428
AS
80712011-05-12 Anatoly Sokolov <aesok@post.ru>
8072
8073 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8074 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8075 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8076 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8077 RTX_OK_FOR_OLO10_P): ...here.
8078 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8079 SYMBOLIC_CONST.
8080
1d15f620
KT
80812011-05-12 Kai Tietz <ktietz@redhat.com>
8082
8083 * gimplify.c (gimple_boolify): Re-boolify expression
8084 arguments even if expression type is of kind BOOLEAN_TYPE.
8085 (gimplify_boolean_expr): Removed.
8086 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8087 and XOR. Additional take care that we keep expression's type.
8088 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8089 of TRUTH_AND|OR|XOR_EXPR.
8090
c2b5fc8d
JJ
80912011-05-12 Jakub Jelinek <jakub@redhat.com>
8092
8093 PR tree-optimization/48975
8094 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8095 on all bbs here and free and clear ifc_bbs at the end.
8096
61332f77
RG
80972011-05-12 Richard Guenther <rguenther@suse.de>
8098
8099 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8100 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8101 until after simple checks.
8102 (gimple_types_compatible_p): Likewise.
8103 (iterative_hash_gimple_type): Always hash pointer targets
8104 and function return and argument types.
8105 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8106 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8107 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8108 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8109 completely in the simple compare section.
8110 (gimple_register_canonical_type): Query the cache again after
8111 registering.
8112
e2a3a5f1
RG
81132011-05-12 Richard Guenther <rguenther@suse.de>
8114
8115 PR tree-optimization/48172
8116 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8117 the number of iterations from the segment size calculation.
8118 (vect_create_cond_for_alias_checks): Adjust.
8119
2c703f3a
JJ
81202011-05-12 Jakub Jelinek <jakub@redhat.com>
8121
8122 PR debug/48967
8123 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8124 if validate_subreg fails.
8125
81262011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
8127
8128 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8129 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8130 early.
8131
87e91fca
DD
81322011-05-12 DJ Delorie <dj@redhat.com>
8133
d53903d6 8134 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
8135 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8136 created builtin into rx_builtins array.
8137 (rx_builtin_decl): New function.
34203483 8138 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 8139
5f2f13fd
DD
81402011-05-12 DJ Delorie <dj@redhat.com>
8141 Nick Clifton <nickc@redhat.com>
8142
8143 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8144 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8145 (rx_is_legitimate_address): Add pre-decrement and post-increment
8146 addressing in HImode and QImode. Fix test for out of range
8147 REG+INT addressing.
87e91fca 8148 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 8149 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 8150 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 8151 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 8152
57421f45
JM
81532011-05-11 Jason Merrill <jason@redhat.com>
8154
8155 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8156
898c90c0
EB
81572011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8158
8159 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8160 reindent the subsequent block.
8161
79bec923
ST
81622011-05-11 Satoru Takabayashi <satorux@google.com>
8163 Paul Pluzhnikov <ppluzhnikov@google.com>
8164
34203483 8165 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
8166 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8167 * config.in: Add LINKER_HASH_STYLE.
8168 * configure.ac: Add --with-linker-hash-style.
8169 * configure: Regenerate.
79bec923 8170
d0340959
RG
81712011-05-11 Richard Guenther <rguenther@suse.de>
8172
8173 PR middle-end/48964
8174 * gimple.c (iterative_hash_canonical_type): Fix typo.
8175
cb032fee
UB
81762011-05-11 Uros Bizjak <ubizjak@gmail.com>
8177
8178 * config/i386/i386.c (legitimize_tls_address)
479fecd3 8179 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
8180 expanders directly for TARGET_GNU2_TLS. Determine pic and
8181 __tls_get_addr symbol reference here. Update call to
8182 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 8183 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
8184 expanders directly for TARGET_GNU2_TLS. Determine
8185 __tls_get_addr symbol reference here. Update call to
8186 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8187 unique UNSPEC REG_EQUIV to libcall block.
8188 (ix86_tls_get_addr): Declare static.
8189 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8190 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8191 Do not determine pic and __tls_get_addr symbol reference here. Do not
8192 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8193 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8194 (tls_global_dynamic_64): Add operand 2. Do not determine
8195 __tls_get_addr symbol reference here. Do not call
8196 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8197 (tls_local_dynamic_base64): Ditto for operand 1.
8198
6d3cc8f0
EB
81992011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8200
8201 * function.c (expand_function_start): Initialize stack_check_probe_note
8202 only if the generic stack checking mechanism is used.
8203
51e020fc
RG
82042011-05-11 Richard Guenther <rguenther@suse.de>
8205
8206 PR tree-optimization/15256
8207 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8208 (A & B) | C, combine (A op CST1) op CST2.
8209 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8210 visit assigns that have uses.
8211
51545682
NF
82122011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8213
cb032fee 8214 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
8215 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8216 (unpack_ts_type_common_value_fields): ...this. Update comment.
8217 (unpack_value_fields): Adjust for renaming.
8218 (lto_input_ts_type_tree_pointers): Split into...
8219 (lto_input_ts_type_common_tree_pointer): ...this and...
8220 (lto_input_ts_type_non_common_tree_pointers): ...this.
8221 (lto_input_tree_pointers): Adjust for above split.
8222 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8223 (pack_ts_type_common_value_fields): ...this. Update comment.
8224 (lto_output_ts_type_tree_pointers): Split into...
8225 (lto_output_ts_type_common_tree_pointers): ...this and...
8226 (lto_output_ts_type_non_common_tree_pointers): ...this.
8227 (lto_output_tree_pointers): Adjust for above split.
8228 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8229 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8230 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8231 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8232 Define.
8233 (struct tree_type): Split into...
8234 (struct tree_type_common: ...this and...
8235 (struct tree_type_with_lang_specific): ...this and...
8236 (struct tree_type_non_common): ...this. Adjust accessor macros
8237 accordingly.
8238 (TYPE_VALUES_RAW): Define.
8239 (union tree_node): Update for above changes.
8240 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8241 TS_TYPE_NON_COMMON.
8242 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8243 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8244 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8245 * treestructu.def (TS_TYPE): Remove.
8246 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8247 Define.
8248
b03c3082
JJ
82492011-05-11 Jakub Jelinek <jakub@redhat.com>
8250
8251 PR debug/48159
8252 * tree-ssa.c (reset_debug_uses): New function.
8253 * tree-flow.h (reset_debug_uses): New prototype.
8254 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8255 * tree-loop-distribution.c (generate_loops_for_partition): Call
8256 reset_debug_uses on the stmts that will be removed. Keep around
8257 all debug stmts, don't count them as bits in partition bitmap.
8258 (generate_builtin): Don't count debug stmts or labels as bits in
8259 partition bitmap.
8260
b5e04de5
RG
82612011-05-11 Richard Guenther <rguenther@suse.de>
8262
8263 * gimple.c (gimple_type_hash_1): Merge with ...
8264 (gimple_type_hash): ... this.
8265 (gtc_visit): Remove mode parameter and simplify accordingly.
8266 (gimple_types_compatible_p_1): Likewise.
8267 (gimple_types_compatible_p): Likewise.
8268 (iterative_hash_gimple_type): Likewise.
8269 (visit): Likewise.
8270 (gimple_type_eq): Adjust.
8271
fc6970e4
RE
82722011-05-11 Revital Eres <revital.eres@linaro.org>
8273
8274 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8275 enters the branch create an anti edge in the opposite direction
8276 to prevent the creation of reg-moves.
8277 * modulo-sched.c: Adjust comment to reflect the fact we are
8278 scheduling closing branch.
8279 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8280 (stage_count): New field in struct partial_schedule.
8281 (calculate_stage_count): New function.
8282 (normalize_sched_times): Rename to reset_sched_times and handle
8283 incrementing the sched time of the nodes by a constant value
8284 passed as parameter.
8285 (duplicate_insns_of_cycles): Skip closing branch.
8286 (sms_schedule_by_order): Schedule closing branch.
8287 (ps_insn_find_column): Handle closing branch.
8288 (sms_schedule): Call reset_sched_times and adjust the code to
8289 support scheduling of the closing branch.
8290 (ps_insert_empty_row): Update calls to normalize_sched_times
8291 and rotate_partial_schedule functions.
8292
41a58a92
RG
82932011-05-11 Richard Guenther <rguenther@suse.de>
8294
8295 PR middle-end/48953
8296 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8297
e9f8dcf9
JM
82982011-05-11 Joseph Myers <joseph@codesourcery.com>
8299
cb032fee
UB
8300 * opts.c (finish_options): Move warning settings from process_options.
8301 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 8302
10c224a9
RG
83032011-05-11 Richard Guenther <rguenther@suse.de>
8304
8305 PR tree-optimization/18041
8306 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8307 (simplify_bitwise_binary): ... this. Handle operand conversions
8308 by applying them to the result instead.
8309 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8310
825b27de
RG
83112011-05-11 Richard Guenther <rguenther@suse.de>
8312
8313 * gimple.c (gimple_canonical_types_compatible_p): Split out
8314 from gimple_types_compatible_p and friends. Do not recurse
8315 to pointed-to types.
8316 (gimple_canonical_type_eq): Use it.
8317 (iterative_hash_canonical_type): Split out from
8318 iterative_hash_gimple_type and friends. Do not recurse
8319 to pointed-to types.
8320 (gimple_canonical_type_hash): Use it, allocate the hash here.
8321
ca756625
RE
83222011-05-11 Revital Eres <revital.eres@linaro.org>
8323
8324 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8325 recognizing doloop.
8326
b8abece3
RE
83272011-05-11 Revital Eres <revital.eres@linaro.org>
8328
8329 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8330 instead of PREV_INSN.
8331
ce7b3761
RE
83322011-05-11 Revital Eres <revital.eres@linaro.org>
8333
8334 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8335 * loop-doloop.c (doloop_condition_get): Likewise.
8336 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8337 (doloop_end): New.
8338 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8339
a9dc9d37
NF
83402011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8341
8342 * tree.def (CASE_LABEL_EXPR): Add an operand.
8343 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8344
96703596
JM
83452011-05-10 Joseph Myers <joseph@codesourcery.com>
8346
8347 * c-decl.c (c_override_global_bindings_to_false): Remove.
8348 (global_bindings_p): Don't check
8349 c_override_global_bindings_to_false.
8350 * c-tree.h (c_override_global_bindings_to_false): Remove.
8351 * c-typeck.c (composite_type): Don't set
8352 c_override_global_bindings_to_false.
8353
dbcc9f08
MM
83542011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8355
8356 PR target/48857, 48495
8357 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8358 (VSX_MODE): Ditto.
8359 (VSX_MOVE_MODE): Ditto.
8360 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8361 VSX vector types. Add V2DImode.
8362 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8363 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8364 (MODES_TIEABLE_P): Ditto.
8365
8366 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8367 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8368 VSX_VECTOR_MODE.
8369 (init_cumulative_args): Ditto.
8370 (rs6000_function_arg_boundary): Ditto.
8371 (rs6000_function_arg_advance_1): Ditto.
8372 (rs6000_function_arg): Ditto.
8373 (rs6000_function_ok_for_sibcall): Ditto.
8374 (emit_frame_save): Ditto.
8375 (rs6000_function_value): Ditto.
8376 (rs6000_libcall_value): Ditto.
8377
4a68b4ca
JM
83782011-05-10 Joseph Myers <joseph@codesourcery.com>
8379
8380 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8381 i386/darwin-lib.h to $libgcc_tm_file.
8382 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8383
bcb521e9
JM
83842011-05-10 Joseph Myers <joseph@codesourcery.com>
8385
8386 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8387
f10d3ac9
JM
83882011-05-10 Joseph Myers <joseph@codesourcery.com>
8389
cb032fee 8390 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
8391 * config/rs6000/rs6000-tables.opt: New file (generated).
8392 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8393 rs6000/rs6000-tables.opt to extra_options.
8394 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8395 * config/rs6000/rs6000.c (rs6000_select): Remove.
8396 (processor_target_table): Move contents to rs6000-cpus.def.
8397 (darwin_rs6000_override_options): Check
8398 global_options_set.x_rs6000_cpu_index instead of
8399 rs6000_select[1].string.
8400 (rs6000_option_override_internal): Likewise.
8401 (rs6000_handle_option): Don't assert that global structures are in
8402 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8403 (rs6000_default_cpu): New variable.
8404 (rs6000_file_start): Set it instead of local default_cpu. Check
8405 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8406 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8407 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8408 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8409 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8410 rs6000_select): Remove.
8411 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8412 Remove.
8413 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8414 * config/rs6000/t-rs6000
8415 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8416 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8417 global_options_set.x_rs6000_cpu_index instead of
8418 rs6000_select[1].string.
8419 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8420 global_options_set.x_rs6000_cpu_index instead of
8421 rs6000_select[1].string.
8422
80cf2e08
JM
84232011-05-10 Joseph Myers <joseph@codesourcery.com>
8424
8425 * config.gcc (libgcc_tm_file): Define instead of including files
8426 from ../../libgcc/config/ in tm_file.
cb032fee 8427 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
8428 * configure: Regenerate.
8429 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8430 libgcc_tm.h, cs-libgcc_tm.h): New.
8431 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8432 (clean): Remove libgcc_tm.h.
8433 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8434 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8435 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8436
fd01a351
GJL
84372011-05-10 Georg-Johann Lay <avr@gjlay.de>
8438
8439 PR target/48896
8440 * config/avr/avr.c (avr_ret_register): Return unsigned int
8441 instead of int.
8442 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8443 it to avr_libcall_value.
8444 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8445 expand_expr.
8446 (avr_expand_binop_builtin): Ditto.
8447 (avr_expand_unop_builtin): Ditto.
8448
34cc3c86
DD
84492011-05-10 DJ Delorie <dj@redhat.com>
8450
8451 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8452 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8453 * config/rx/rx.c (rx_align_for_label): Add label and
8454 uses_threshold parameters. Do not align when the label is not
8455 used enough.
8456 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8457
be173289
RG
84582011-05-10 Richard Guenther <rguenther@suse.de>
8459
8460 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8461 a series of conversions and apply foldings similar to what
8462 fold-const does.
8463 (tree_ssa_forward_propagate_single_use_vars): Call it.
8464
e7f78021
JJ
84652011-05-10 Jakub Jelinek <jakub@redhat.com>
8466
6ae70ea2
JJ
8467 PR tree-optimization/48611
8468 PR tree-optimization/48794
8469 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8470 referenced from RESX or EH_DISPATCH arguments.
8471
e7f78021
JJ
8472 PR debug/48928
8473 * dfp.c (decimal_to_decnumber): Handle conversion from
8474 dconst{1,2,m1,half}.
8475
fca132b9
UB
84762011-05-09 Uros Bizjak <ubizjak@gmail.com>
8477
8478 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8479 for !flag_prefer_avx128.
8480 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8481
e4c03378
EB
84822011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8483
8484 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8485 (fold_ternary_loc): Use expr_location_or.
8486
805d6a75
L
84872011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 PR debug/48853
8490 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8491 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8492 Pmode and mem_mode is not VOIDmode.
8493
e4c03378 84942011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 8495
e4c03378
EB
8496 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8497 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 8498
51e7f377
UB
84992011-05-09 Uros Bizjak <ubizjak@gmail.com>
8500
8501 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8502 (const_pow2_1_to_8_operand): Ditto.
8503 (const_pow2_1_to_128_operand): Ditto.
8504 (const_pow2_1_to_32768_operand): Ditto.
8505 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8506 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8507 in insn constraint to check integer value of operand 3.
8508 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8509
8510 (PINSR_MODE): New mode iterator.
8511 (sse2p4_1): New mode attribute.
8512 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8513 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8514 iterator. Use const_int_operand instead of
8515 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8516 exact_log2 in insn constraint to check integer value of operand 3.
8517
85182011-05-09 Uros Bizjak <ubizjak@gmail.com>
8519
8520 * config/i386/sse.md (blendbits): Remove mode attribute.
8521 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8522 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8523 Check integer value of operand 3 in insn constraint.
8524
0ca8de87
RG
85252011-05-09 Richard Guenther <rguenther@suse.de>
8526
8527 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8528 for diagnostics.
8529 (lto_symtab_merge): Likewise. Do not register types here.
8530 (lto_symtab_merge_decls_2): Likewise.
8531 (lto_symtab_merge_decls_1): Likewise.
8532 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8533 * gimple.c (enum gtc_mode): Declare.
8534 (gimple_types_compatible_p): Make static.
8535
a9e6994a
AK
85362011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8537
8538 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8539 temporary register to match Pmode.
8540
fb55d62e
UB
85412011-05-09 Uros Bizjak <ubizjak@gmail.com>
8542
8543 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8544 and *vec_concatv4si_1_avx.
8545
eb1485a6
UB
85462011-05-09 Uros Bizjak <ubizjak@gmail.com>
8547
8548 PR rtl-optimization/48927
8549 * ira-conflicts.c (commutative_constraint_p): Use
8550 recog_data.alternative_enabled_p to disable alternatives where
8551 "enabled" attribute is false.
8552 (get_dup_num): Ditto.
8553 * ira-lives.c (single_reg_class): Ditto.
8554 (ira_implicitly_set_insn_hard_regs): Ditto.
8555
c46d001a
EB
85562011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8557
8558 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8559 (dataflow_set_preserve_mem_locs): Likewise.
8560
85612011-05-09 Philipp Thomas <pth@suse.de>
8562
6d9e7c41
PT
8563 * config/mep/mep.c (mep_validate_vliw): Syntax description
8564 should not be translated.
8565
d371df6f
JM
85662011-05-09 Joseph Myers <joseph@codesourcery.com>
8567
8568 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8569 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 8570 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
8571 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8572 MIPS_ARCH_OPTION_NATIVE): Define.
8573 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8574 mips-cpus.def.
8575 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8576 mips_parse_cpu): Remove.
8577 (mips_cpu_info_from_opt, mips_default_arch): New.
8578 (mips_handle_option): Don't assert that global structures are in
8579 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8580 (mips_option_override): Use new variables and functions to set
eb1485a6 8581 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
8582 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8583 definition.
8584 * config/mips/mips.opt (march=): Use ToLower and Enum.
8585 (mips): Use ToLower, Enum and Var.
8586 (mtune=): Use ToLower and Enum.
8587 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8588
4fc07af9
JH
85892011-05-08 Jan Hubicka <jh@suse.cz>
8590
8591 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8592 Arrange type pairs to be UID ordered.
8593 (gimple_lookup_type_leader): Make inline.
8594
2cf320a8
NC
85952011-05-09 Nick Clifton <nickc@redhat.com>
8596
61d6def5
NC
8597 PR target/48899
8598 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8599 PROCESSOR_DEFAULT.
8600
2cf320a8
NC
8601 PR target/48897
8602 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8603 variable 's'.
8604
4f82319d
CLT
86052011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8606
8607 * combine.c (simplify_comparison): Abstract out parts into...
8608 (simplify_compare_const): ... new function.
8609 (try_combine): Generalize parallel arithmetic/compare combining
8610 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8611
74605a11
JH
86122011-05-08 Jan Hubicka <jh@suse.cz>
8613
8614 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
8615 (cgraph_create_virtual_clone): Call hooks once virtual clone
8616 is finished.
74605a11 8617 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
8618 * ipa-cp.c (ipcp_estimate_growth): Use
8619 estimate_ipcp_clone_size_and_time.
74605a11
JH
8620 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8621 * lto-cgraph.c (input_node): Update.
8622 * ipa-inline.c (recursive_inlining): Update.
8623 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8624 (evaluate_conditions_for_known_args): Break out from ...
8625 (evaluate_conditions_for_edge): ... here.
8626 (evaluate_conditions_for_ipcp_clone): New function.
8627 (inline_node_duplication_hook): Update clone summary based
8628 on parameter map.
8629 (estimate_callee_size_and_time): Rename to ...
8630 (estimate_node_size_and_time): take NODE instead of EDGE;
8631 take POSSIBLE_TRUTHS as argument.
8632 (estimate_callee_size_and_time): Update.
8633 (estimate_ipcp_clone_size_and_time): New function.
8634 (do_estimate_edge_time): Update.
8635
5c049507
RG
86362011-05-08 Richard Guenther <rguenther@suse.de>
8637
8638 PR middle-end/48908
8639 PR middle-end/48905
8640 * expmed.c (expand_shift_1): Compute adjusted constant shift
8641 amount manually.
8642
f64c36ba
EB
86432011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8644
8645 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8646
c461a957
EB
86472011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8648
8649 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8650
7c74e556
JW
86512011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8652
8653 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8654
b4c0a884
JH
86552011-05-07 Jan Hubicka <jh@suse.cz>
8656
a9bcb3f0
EB
8657 * ipa-inline-transform.c (inline_call): Account when program size
8658 decreases.
b4c0a884 8659 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
8660 (edge_badness): Reorganize to be power 2 based; fix thinko when
8661 computing badness for negative growth; update comments to match
8662 reality; better dumps.
b4c0a884 8663
c99c0026
EB
86642011-05-07 Eric Botcazou <ebotcazou@adacore.com>
8665
8666 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8667 type to bool and adjust comment.
8668 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8669 (fold_mathfn_compare): Remove calls to global_bindings_p.
8670 (fold_inf_compare): Likewise.
8671 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8672 * c-tree.h (global_bindings_p): Adjust prototype.
8673 * c-decl.c (global_bindings_p): Return bool and simplify.
8674
1400c8e5
ZD
86752011-05-07 Zdenek Dvorak <ook@ucw.cz>
8676
8677 PR tree-optimization/48837
8678 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8679 when accumulator transformation is performed.
8680
5d0878e7
JH
86812011-05-06 Jan Hubicka <jh@suse.cz>
8682
a9bcb3f0
EB
8683 * i386.h (ix86_tune_indices): Add
8684 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 8685 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
8686 * i386.c (initial_ix86_tune_features): Add
8687 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
8688 (software_prefetching_beneficial_p): Remove predicate.
8689 (ix86_option_override_internal): Use new macro.
8690
58696ce5
JH
86912011-05-06 Jan Hubicka <jh@suse.cz>
8692
8693 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8694
c47d0034
JH
86952011-05-06 Jan Hubicka <jh@suse.cz>
8696
8697 * cgraph.c (cgraph_add_thunk): Create real function node instead
8698 of alias node; finalize it and mark needed/reachale; arrange visibility
8699 to be right and add it into the corresponding same comdat group list.
8700 (dump_cgraph_node): Dump thunks.
8701 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
8702 cgraph_function_with_gimple_body_p,
8703 cgraph_first_function_with_gimple_body,
c47d0034
JH
8704 cgraph_next_function_with_gimple_body): New functions.
8705 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8706 New macros.
8707 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8708 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8709 * cgraphunit.c (cgraph_finalize_function): Only look into possible
8710 devirtualization when optimizing.
8711 (verify_cgraph_node): Verify thunks.
8712 (cgraph_analyze_function): Analyze thunks.
8713 (cgraph_mark_functions_to_output): Output thunks only in combination
8714 with function they are assigned to.
8715 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8716 alias into normal node.
8717 (assemble_thunks): New functoin.
8718 (cgraph_expand_function): Use it.
8719 * lto-cgraph.c (lto_output_node): Stream thunks.
8720 (input_overwrite_node): Stream in thunks.
8721 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8722 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8723 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8724 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8725 (inline_analyze_function): Do not care about thunk jump functions.
8726 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
8727 * ipa-prop.c (ipa_prop_write_jump_functions): Use
8728 cgraph_function_with_gimple_body_p.
8729 * passes.c (do_per_function_toporder): Use
8730 cgraph_function_with_gimple_body_p.
c47d0034
JH
8731 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8732 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8733 (function_called_by_processed_nodes_p): Likewise.
8734
d8f426ec
JM
87352011-05-06 Joseph Myers <joseph@codesourcery.com>
8736
8737 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8738 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8739 entries.
8740 (mabi=): Replace with separate entries for mabi=altivec,
8741 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
8742 mabi=ieeelongdouble and mabi=ibmlongdouble.
8743 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
8744 check for -mabi=spe without SPE ABI support here.
8745 (rs6000_handle_option): Replace OPT_mabi_ handling with
8746 OPT_mabi_altivec and OPT_mabi_spe handling.
8747
80bde45b
CC
87482011-05-06 Cary Coutant <ccoutant@google.com>
8749
8750 * dwarf2out.c (contains_subprogram_definition): New function.
8751 (should_move_die_to_comdat): Call it.
8752
a91926b9
JL
87532011-05-06 Jeff Law <law@redhat.com>
8754
8755 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
8756 remove_ctrl_stmt_and_useless_edges.
8757 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
8758 (fixup_template_block, thread_single_edge): Likewise.
8759 (mark_threaded_blocks): Use THREAD_TARGET.
8760
1fc1b66d
AM
87612011-05-06 Alan Modra <amodra@gmail.com>
8762
8763 PR target/48900
8764 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8765 const0_rtx as the arg to the dummy __tls_get_addr libcall.
8766
e194de64
UB
87672011-05-06 Uros Bizjak <ubizjak@gmail.com>
8768
8769 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
8770 constraint modifier to "r".
8771
d740dc9e
JM
87722011-05-06 Joseph Myers <joseph@codesourcery.com>
8773
8774 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
8775 fall through for OPT_mcmodel_.
8776
cab78b15
AK
87772011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8778
8779 * config/s390/s390.c (s390_asm_trampoline_template): Comment
8780 instruction sizes.
e194de64 8781 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 8782
ee6824ae
RR
87832011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8784
eb1485a6
UB
8785 PR target/47930
8786 * config/arm/arm.opt (marm): Document it.
8787 (mthumb): Reject negative variant.
ee6824ae 8788
9ef58464
UB
87892011-05-06 Uros Bizjak <ubizjak@gmail.com>
8790
8791 PR target/48898
8792 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8793 Fix typo in "ccvt" variable name.
8794
155b6176
TG
87952011-05-06 Tristan Gingold <gingold@adacore.com>
8796
8797 PR target/48895
8798 * config/vms/vms-ar.c (main): Remove cwd variable.
8799
3becc47b
JJ
88002011-05-06 Jakub Jelinek <jakub@redhat.com>
8801
8802 PR debug/48902
8803 * var-tracking.c (prepare_call_arguments): Move else before #endif.
8804
3d528853
NF
88052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8806
8807 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
8808 * gimplify.c (gimplify_switch_expr): Likewise.
8809 * omp-low.c (expand_omp_sections): Likewise.
8810 * tree-eh.c (lower_try_finally_switch): Likewise.
8811 (lower_eh_dispatch): Likewise.
8812 * tree.h (build_case_label): Declare.
8813 * tree.c (build_case_label): Define.
8814
deb5046b
JM
88152011-05-05 Jason Merrill <jason@redhat.com>
8816
8817 PR c++/40975
8818 * tree-inline.c (copy_tree_r): Use copy_statement_list.
8819 (copy_statement_list): Don't recurse.
8820 * stor-layout.c (copy_self_referential_tree_r): Don't allow
8821 STATEMENT_LIST.
8822
013c0411
JM
88232011-05-05 Joseph Myers <joseph@codesourcery.com>
8824
8825 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
8826 through from -mfpu= handling.
8827 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
8828
a0905f8b
BS
88292011-05-05 Bernd Schmidt <bernds@codesourcery.com>
8830
8831 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
8832 POST_MODIFY.
8833
fc4538e4
SE
88342011-05-05 Steve Ellcey <sje@cup.hp.com>
8835
8836 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
8837 for 11.31.
8838 (hppa[12]*-*-hpux11*): Ditto.
8839 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
8840 * config/ia64/hpux-unix2003.h: New.
8841 * config/pa/pa-hpux1131.opt: New.
8842 * config/pa/pa-hpux1131.h: New.
8843 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
8844 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 8845 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 8846
1e30c578
JJ
88472011-05-05 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR debug/48853
8850 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
8851 instead of mode as 3rd argument to recursive call.
8852 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
8853 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
8854 VOIDmode.
8855 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
8856 don't give up if mode is Pmode and mem_mode is not VOIDmode.
8857 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
8858 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
8859
d19eb620
JB
88602011-05-05 Julian Brown <julian@codesourcery.com>
8861
8862 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
8863 parenthesis in D-register case.
8864
c860fe8c
JM
88652011-05-05 Joseph Myers <joseph@codesourcery.com>
8866
8867 * opt-functions.awk (var_type_struct): Handle Enum options.
8868 * optc-gen.awk: Don't check range of variables of character type.
8869 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
8870 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
8871 rs6000_sdata_name, rs6000_explicit_options): Remove.
8872 (rs6000_option_override_internal): Check for -malign-power here.
8873 Use global_options_set instead of rs6000_explicit_options.
8874 (rs6000_parse_fpu_option): Remove.
8875 (rs6000_handle_option): Access variables via opts and opts_set
8876 pointers. Use error_at and warning_at. Add fall-through
8877 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
8878 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
8879 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
8880 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
8881 here. Don't use rs6000_parse_fpu_option.
8882 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
8883 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
8884 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
8885 (mrecip=): Use Var.
8886 (mspe): Use Var and Save.
8887 (mtraceback=): Use Enum and Var.
8888 (rs6000_traceback_type): New Enum and EnumValue entries.
8889 (mfloat-gprs=): Use Enum, Var and Save.
8890 (rs6000_float_gprs): New Enum and EnumValue entries.
8891 (mlong-double-): use Var and Save.
8892 (msched-costly-dep=, minsert-sched-nops=): Use Var.
8893 (malign-): Use Enum and Var.
8894 (rs6000_alignment_flags): New Enum and EnumValue entries.
8895 (mfpu=): Use Enum.
8896 (fpu_type_t): New Enum and EnumValue entries.
8897 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8898 global_options_set instead of rs6000_explicit_options.
8899 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8900 global_options_set instead of rs6000_explicit_options.
8901 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8902 global_options_set instead of rs6000_explicit_options.
8903 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8904 global_options_set instead of rs6000_explicit_options.
8905 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
8906 global_options_set instead of rs6000_explicit_options.
8907 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8908 global_options_set instead of rs6000_explicit_options.
8909 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
8910 definition.
8911 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8912 global_options_set instead of rs6000_explicit_options.
8913 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
8914 (rs6000_cmodel): New Enum and EnumValue entries.
8915 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8916 global_options_set instead of rs6000_explicit_options.
8917 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
8918 (mtls-size=): Use Enum and Var.
8919 (rs6000_tls_size): New Enum and EnumValue entries.
8920
0691dde9
MM
89212011-05-05 Michael Matz <matz@suse.de>
8922
8923 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
8924 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
8925 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
8926 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
8927 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
8928 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
8929 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
8930 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
8931 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
8932 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
8933 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
8934 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
8935 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
8936 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
8937 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
8938 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
8939
86529a49
RG
89402011-05-05 Richard Guenther <rguenther@suse.de>
8941
8942 * expmed.c (expand_variable_shift): Rename to ...
8943 (expand_shift_1): ... this. Take an expanded shift amount.
8944 For rotates recurse directly not building trees for the shift amount.
8945 (expand_variable_shift): Wrap around expand_shift_1.
8946 (expand_shift): Adjust.
8947
d0228c2e
JJ
89482011-05-05 Jakub Jelinek <jakub@redhat.com>
8949
8950 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
8951
907a08d9
EB
89522011-05-05 Eric Botcazou <ebotcazou@adacore.com>
8953
8954 * tree.h (get_pending_sizes): Remove prototype.
8955 (put_pending_size): Likewise.
8956 (put_pending_sizes): Likewise.
8957 * stor-layout.c (pending_sizes): Delete.
8958 (get_pending_sizes): Likewise.
8959 (put_pending_size): Likewise.
8960 (put_pending_sizes): Likewise.
8961 (variable_size): Do not call put_pending_size and tidy up.
8962 * function.h (struct function): Remove dont_save_pending_sizes_p.
8963 * lto-streamer-in.c (input_function): Do not stream it.
8964 * lto-streamer-out.c (output_function): Likewise.
8965 * tree-inline.c (initialize_cfun): Do not copy it.
8966 * c-decl.c (store_parm_decls): Do not set it.
8967 * omp-low.c (create_task_copyfn): Likewise.
8968 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8969
386d9c57
UB
89702011-05-05 Uros Bizjak <ubizjak@gmail.com>
8971
8972 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
8973 conditions.
8974 (*movdf_internal): Ditto.
8975 (*movdf_internal_nointeger): Ditto.
8976 (*movsf_internal): Ditto.
8977
a04a722b
JM
89782011-05-05 Joseph Myers <joseph@codesourcery.com>
8979
8980 * c-decl.c (finish_decl): Don't call get_pending_sizes.
8981 (grokparm): Add parameter expr. Pass it to grokdeclarator.
8982 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
8983 (c_variable_size): Remove.
8984 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
8985 call put_pending_sizes.
8986 (get_parm_info): Add parameter expr. Use it to set
8987 arg_info->pending_sizes.
8988 (store_parm_decls): Use arg_info->pending_sizes instead or calling
8989 get_pending_sizes.
8990 * c-parser.c (c_parser_parms_declarator): Update call to
8991 c_parser_parms_list_declarator.
8992 (c_parser_parms_list_declarator): Take parameter expr. Update
8993 call to push_parm_decl. Update recursive call. Don't call
8994 get_pending_sizes. Update calls to get_parm_info.
8995 (c_parser_objc_method_definition): Update calls to
8996 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 8997 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
8998 (c_parser_objc_method_decl): Add parameter expr. Update call to
8999 grokparm.
386d9c57 9000 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
9001 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9002 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9003
c92a6f97
MH
90042011-05-05 Michael Hope <michael.hope@linaro.org>
9005
386d9c57
UB
9006 PR pch/45979
9007 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9008 __ARM_EABI__ hosts.
c92a6f97 9009
07ea0048
UW
90102011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9011
9012 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9013 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9014 (spu_output_mi_thunk): New function.
9015
d634bfa1
RO
90162011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9017
9018 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9019 targetm.asm_out.print_operand.
9020 * config/sol2.c: Include target.h.
9021
40fda55b
JH
90222011-05-04 Jan Hubicka <jh@suse.cz>
9023
9024 * ipa-inline.c (reset_edge_caches): New function.
9025 (update_caller_keys): Add check_inlinablity_for; do not
9026 reset edge caches; remove now unnecesary loop.
386d9c57 9027 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
9028 (update_all_callee_keys): Likewise.
9029 (inline_small_functions): Sanity check cache; update code
9030 recomputing it.
9031
0360f70d
BS
90322011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9033
9034 PR rtl-optimization/47612
9035 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9036 as the last insn of the sequence to be moved.
9037
7a994646
TB
90382011-05-04 Tobias Burnus <burnus@net-b.de>
9039
9040 PR fortran/48864
9041 * doc/invoke.texi (Ofast): Document that it
9042 enables Fortran's -fno-protect-parens.
9043
7a2f7208
UB
90442011-05-04 Uros Bizjak <ubizjak@gmail.com>
9045
9046 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9047
a2d42931
EB
90482011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9049
9050 * stor-layout.c (variable_size): Do not issue errors.
9051
f81b1a3d
RG
90522011-05-04 Richard Guenther <rguenther@suse.de>
9053
9054 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9055 for array-ref indices.
9056 (tree_coverage_counter_addr): Likewise.
9057 (build_fn_info_type): Use size_int for index types.
9058 (build_gcov_info): Likewise.
9059
c62c040f
RG
90602011-05-04 Richard Guenther <rguenther@suse.de>
9061
9062 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9063 to build_int_cst.
9064 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9065 for constructor indices.
9066 (push_init_level): Likewise.
9067
1e3287d0
RG
90682011-05-04 Richard Guenther <rguenther@suse.de>
9069
9070 * explow.c (promote_mode): Move variable declarations before code.
9071
6c32445b
NF
90722011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9073
9074 * tree.h (build_function_type_array): Declare.
9075 (build_varargs_function_type_array): Declare.
9076 (build_function_type_vec, build_varargs_function_type_vec): Define.
9077 * tree.c (build_function_type_array_1): New function.
9078 (build_function_type_array): New function.
9079 (build_varargs_function_type_array): New function.
9080
fdabf269
RS
90812011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9082
9083 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9084 before setting STMT_VINFO_TYPE.
9085
a207915a
UW
90862011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9087
9088 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9089 instead of spu_pass_by_reference.
9090
5e617be8
AK
90912011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9092
9093 * calls.c (emit_library_call_value_1): Invoke
9094 promote_function_mode hook on libcall arguments.
9095 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9096 argument being NULL.
9097 * targhooks.c (default_promote_function_mode): Lisewise.
9098 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9099 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9100
9101 * doc/tm.texi: Document that TYPE argument might be NULL.
9102
486d04be
SH
91032011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9104
9105 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9106
9b19b026
SH
91072011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9108
9109 From Bernd Schmidt
9110 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9111
502bc3df
RO
91122011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9113
9114 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9115 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9116 Move ...
9117 * mips-tfile.c: ... here.
9118 Don't include coretypes.h, tm.h, filenames.h.
9119 (saber_stop): Remove definition and all calls.
9120 [__SABER__]: Remove.
9121 (__LINE__): Remove default.
9122 (Size_t, Ptrdiff_t): Remove definitions.
9123 Replace by size_t, ptrdiff_t.
9124 [!MIPS_DEBUGGING_INFO]: Remove.
9125 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9126 (progname): Add const.
9127 (STATIC): Remove.
9128 Replace all uses by static.
9129 (ALIGN_SYMTABLE_OFFSET): Remove default.
9130 * mips-tdump.c: Don't include coretypes.h, tm.h.
9131 Remove !MIPS_IS_STAB guard.
9132 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9133 $(TM_H), filenames.h dependencies.
9134 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9135
991eb6ef
SH
91362011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9137
9138 From Jie Zhang
9139 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9140 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9141
420ccc84
SH
91422011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9143
9144 From Bernd Schmidt
9145 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9146 account and save/restore RETS.
9147 (PROFILE_BEFORE_PROLOGUE): Define.
9148 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9149 the push insn to use predecrement.
9150
9f8d69ee
SH
91512011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9152
9153 From Jie Zhang
9154 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9155
662c03f4
NC
91562011-05-04 Nick Clifton <nickc@redhat.com>
9157
9158 * config/mn10300/mn10300.c: Include cfgloop.h.
9159 (DUMP): New macro.
9160 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9161 Lcc or a FLcc insn into the instruction stream.
9162 (mn10300_block_contains_call): New function. Returns true if the
9163 given basic block contains a CALL insn.
9164 (mn10300_loop_contains_call_insn): New function. Returns true if
9165 the given loop contains a CALL insn.
9166 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9167 to use the SETLB and Lcc or FLcc insns.
9168 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9169 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9170 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9171 disable the SETLB optimization.
9172 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9173 __SETLB__ or __NO_SETLB__.
9174 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9175 (movsf_internal): Handle MDR register.
9176 (cmpsi): Make visible.
9177 (setlb): New pattern.
9178 (Lcc): New pattern.
9179 (FLcc): New pattern.
9180
843b6915
UB
91812011-05-04 Uros Bizjak <ubizjak@gmail.com>
9182
9183 PR target/48860
9184 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9185 for reg<->xmm moves.
9186 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9187 (vec_concatv2di_rex64_sse): Ditto.
9188 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9189 (*vec_extractv2di_1_rex64): Ditto.
9190
9191 Revert:
9192 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9193
9194 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9195 reg<->xmm moves.
9196 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9197
d35936ab
RG
91982011-05-04 Richard Guenther <rguenther@suse.de>
9199
9200 * tree.h (int_const_binop): Remove notrunc argument.
9201 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9202 create integer constants that are properly truncated.
9203 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9204 (const_binop): Remove zero notrunc argument to int_const_binop.
9205 (size_binop_loc): Likewise.
9206 (fold_div_compare): Likewise.
9207 (maybe_canonicalize_comparison_1): Likewise.
9208 (fold_comparison): Likewise.
9209 (fold_binary_loc): Likewise.
9210 (multiple_of_p): Likewise.
9211 * expr.c (store_constructor): Likewise.
9212 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9213 (maybe_fold_stmt_addition): Likewise.
9214 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9215 * stor-layout.c (layout_type): Likewise.
9216 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9217 * tree-sra.c (build_ref_for_offset): Likewise.
9218 (build_user_friendly_ref_for_offset): Likewise.
9219 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9220 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9221 * tree-ssa-loop-niter.c (inverse): Likewise.
9222 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9223 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9224 * tree-switch-conversion.c (check_range): Likewise.
9225 (build_constructors): Likewise.
9226 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9227 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9228 (extract_range_from_assert): Likewise.
9229 (vrp_int_const_binop): Likewise.
9230 (extract_range_from_binary_expr): Likewise.
9231 (extract_range_from_unary_expr): Likewise.
9232 (check_array_ref): Likewise.
9233 (find_case_label_range): Likewise.
9234 (simplify_div_or_mod_using_ranges): Likewise.
9235 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9236 comparing case labels for merging.
9237
8992c063
MW
92382011-05-03 Mark Wielaard <mjw@redhat.com>
9239
9240 * dwarf2out.c (debug_str_hash_forced): Removed.
9241 (gen_label_for_indirect_string): Removed.
9242 (get_debug_string_label): Removed.
9243 (AT_string_form): Generate label directly.
9244 (output_indirect_string): Test indirect_string_node for
9245 DW_FORM_strp instead of checking label and refcount.
9246 (prune_indirect_string): Removed.
9247 (prune_unused_types): Don't check debug_str_hash_forced or
9248 call prune_indirect_string.
9249
4868e6ea
AO
92502011-05-04 Alexandre Oliva <aoliva@redhat.com>
9251
9252 PR other/48093
9253 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9254
01a5c0ab
AO
92552011-05-04 Alexandre Oliva <aoliva@redhat.com>
9256
9257 PR debug/47994
9258 PR debug/47919
9259 * combine.c (try_combine): Skip debug insns at m_split tests.
9260
6ac00218
MW
92612011-04-26 Mark Wielaard <mjw@redhat.com>
9262
9263 PR42288
9264 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9265 when info_section_emitted.
9266
3af42a7b
JM
92672011-05-03 Joseph Myers <joseph@codesourcery.com>
9268
9269 * config/mips/mips-opts.h: New.
9270 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9271 to mips-opts.h.
9272 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9273 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9274 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9275 via opts pointer.
9276 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9277 mips-opts.h.
9278 (mips_abi, mips_code_readable): Don't declare.
843b6915 9279 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
9280 (mabi=): Use Enum and Var.
9281 (mips_abi): New Enum and EnumValue entries.
9282 (mcode-readable=): Use Enum and Var.
9283 (mips_code_readable_setting): New Enum and EnumValue entries.
9284 (mr10k-cache-barrier=): Use Enum and Var.
9285 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9286
1cb1a99f
JH
92872011-05-03 Jan Hubicka <jh@suse.cz>
9288
9289 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9290 replace hash by pointer map.
9291 (cgraph_node_set_element_def, cgraph_node_set_element,
9292 const_cgraph_node_set_element, varpool_node_set_element_def,
9293 varpool_node_set_element, const_varpool_node_set_element): Remove.
9294 (free_cgraph_node_set, free_varpool_node_set): New function.
9295 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9296 * tree-emutls.c: Free varpool node set.
9297 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9298 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9299 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9300 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9301 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9302 Move here from ipa.c; implement using pointer_map
9303 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9304 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9305 debug_cgraph_node_set, varpool_node_set_new,
9306 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9307 dump_varpool_node_set, debug_varpool_node_set):
9308 Move to ipa-uitls.c.
9309 * passes.c (ipa_write_summaries): Update.
9310
7f31f4db
SH
93112011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9312
7a2f7208
UB
9313 From Mike Frysinger:
9314 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9315 bf542/bf544/bf547/bf548/bf549.
7f31f4db 9316
b70fce6d
UB
93172011-05-03 Uros Bizjak <ubizjak@gmail.com>
9318
9319 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9320
265b1d82
SH
93212011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9322
9323 From Bernd Schmidt:
9324 * config/bfin/bfin.md (MOVCC): New mode_macro.
9325 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9326 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9327 comments from generated assembly.
9328
f0b568f3
SH
93292011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9330
9331 From Bernd Schmidt
9332 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9333 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9334 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9335 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9336 * config/bfin/lib1funcs.asm (___muldi3): New function.
9337
2c67cf6e
NF
93382011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9339
9340 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9341 build_function_type_list instead of build_function_type.
9342 Rearrange initialization of `args' to do so.
9343
f9ac28ad
NF
93442011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9345
9346 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9347 instead of build_function_type.
9348
22b8798c
NF
93492011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9350
9351 * config/rs6000/rs6000.c (spe_init_builtins): Call
9352 build_function_type_list instead of build_function_type.
9353 (paired_init_builtins, altivec_init_builtins): Likewise.
9354 (builtin_function_type): Likewise.
9355
4cb44528
NF
93562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9357
9358 * config/sh/sh.c (sh_media_init_builtins): Call
9359 build_function_type_list instead of build_function_type.
9360
4c203a6a
NF
93612011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9362
9363 * config/sparc/sparc.c (sparc_file_end): Call
9364 build_function_type_list instead of build_function_type.
9365
d6a3d62b
NF
93662011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9367
9368 * config/alpha/alpha.c (alpha_init_builtins): Call
9369 build_function_type_list instead of build_function_type.
9370
de530b86
NF
93712011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9372
9373 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9374 build_function_type_list instead of build_function_type.
9375
baeec5f2
NF
93762011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9377
9378 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9379 build_function_type_list instead of build_function_type.
9380 Delete `endlink' variable.
9381
c19afe52
NF
93822011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9383
9384 * config/avr/avr.c (avr_init_builtins): Call
9385 build_function_type_list instead of build_function_type.
9386
a341df0a
NF
93872011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9388
9389 * config/picochip/picochip.c (picochip_init_builtins): Call
9390 build_function_type_list instead of build_function_type.
9391 Delete `endlink' variable.
9392
2102b1e1
NF
93932011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9394
9395 * config/bfin/bfin.c (bfin_init_builtins): Call
9396 build_function_type_list instead of build_function_type.
9397
9f111209
SH
93982011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9399
9400 From Bernd Schmidt
9401 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9402 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9403
7071d064
SH
94042011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9405
9406 From Jie Zhang:
9407 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9408 libbffastfp overrides libgcc when -mfast-fp.
9409
748f7574 94102011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
9411
9412 Originally from Bernd Schmidt
9413 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9414 * config/bfin/bfin.c (override_options): Test it and error if
9415 TARGET_FDPIC.
9416
1a3a9152
SH
94172011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9418
9419 Originally From Bernd Schmidt
9420 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9421 FD-PIC.
9422
7134c090
JL
94232011-05-03 Jeff Law <law@redhat.com>
9424
9425 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9426 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9427 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
9428 than accessing AUX field directly. Free the AUX field before
9429 clearing it.
7134c090
JL
9430 (thread_block, thread_through_loop_header): Likewise.
9431 (thread_single_edge, mark_threaded_blocks): Likewise.
9432 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9433 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 9434
2c7eebae
BS
94352011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9436
9437 * function.c (init_function_start): Call decide_function_section.
9438 * varasm.c (decide_function_section): New function.
9439 (assemble_start_function): When not using
9440 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9441 or first_function_block_is_cold.
9442 * rtl.h (decide_function_section): Declare.
9443
17038fcf
JJ
94442011-05-03 Uros Bizjak <ubizjak@gmail.com>
9445 Jakub Jelinek <jakub@redhat.com>
9446
9447 PR target/48774
9448 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9449 only succeed if req_mode is the same as set_mode.
9450
3810076b
BS
94512011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9452
9453 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9454 * genemit.c (gen_exp): Handle RETURN.
9455 * emit-rtl.c (verify_rtx_sharing): Likewise.
9456 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9457 * rtl.c (copy_rtx): RETURN is shared.
9458 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9459 (ret_rtx): New.
9460 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9461 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9462 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9463 * config/cris/cris.c (cris_expand_return): Likewise.
9464 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9465 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9466 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9467 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9468 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9469 Likewise.
9470 * config/v850/v850.c (expand_epilogue): Likewise.
9471 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9472 * config/arm/arm.md (epilogue): Likewise.
9473 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9474 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9475 variable to ret_reg.
9476
9efdb4ad
RG
94772011-05-03 Richard Guenther <rguenther@suse.de>
9478
9479 PR lto/48846
9480 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9481 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9482 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9483
60a45536
RG
94842011-05-03 Richard Guenther <rguenther@suse.de>
9485
9486 * c-decl.c (grokdeclarator): Instead of looking at
9487 TREE_OVERFLOW check if the constant fits in the index type.
9488
3188ed59
RS
94892011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9490
9491 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9492 (vec_store_lanes<mode><mode>): Likewise.
9493
272c6793
RS
94942011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9495
9496 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9497 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9498 convert_optab_index values.
9499 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9500 * genopinit.c (optabs): Initialize the new optabs.
9501 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9502 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9503 (expand_STORE_LANES): New functions.
9504 * tree.h (build_array_type_nelts): Declare.
9505 * tree.c (build_array_type_nelts): New function.
9506 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9507 (vect_model_load_cost): Likewise.
9508 (vect_store_lanes_supported, vect_load_lanes_supported)
9509 (vect_record_strided_load_vectors): Declare.
9510 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9511 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9512 (vect_transform_strided_load): Split out statement recording into...
9513 (vect_record_strided_load_vectors): ...this new function.
9514 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9515 (write_vector_array, create_array_ref): New functions.
9516 (vect_model_store_cost): Add store_lanes_p argument.
9517 (vect_model_load_cost): Add load_lanes_p argument.
9518 (vectorizable_store): Try to use store-lanes functions for
9519 interleaved stores.
9520 (vectorizable_load): Likewise load-lanes and loads.
9521 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9522 to vect_model_store_cost.
9523 (vect_build_slp_tree): Likewise vect_model_load_cost.
9524
0f6d54f7
RS
95252011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9526
9527 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9528 * hooks.c (hook_bool_mode_uhwi_false): New function.
9529 * target.def (array_mode_supported_p): New hook.
9530 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9531 * doc/tm.texi: Regenerate.
9532 * stor-layout.c (mode_for_array): New function.
9533 (layout_type): Use it.
9534 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9535 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9536
b15eacc7
EB
95372011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9538
9539 PR target/48723
9540 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9541 for -fstack-check if the size to allocate is negative.
9542
575bfb00
LC
95432011-05-02 Lawrence Crowl <crowl@google.com>
9544
9545 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9546 (timevar_cond_start): New for starting a timer only when it is not
9547 already running.
9548 (timevar_cond_stop): New for stopping a timer when it was not already
9549 running.
9550
9551 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9552 (timevar_cond_start): New as above.
9553 (timevar_cond_stop): New as above.
9554
9555 * timevar.def: Add start/stop timers for compiler phases,
9556 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9557 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9558 and TV_PHASE_FINALIZE.
9559 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9560 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9561 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9562 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9563 Make unused TV_OVERLOAD into a start/stop timer.
9564
9565 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9566 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9567 to indicate that they are start/stop timers.
9568
9569 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9570 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9571 Move initialization to do_compile.
9572 (do_compile): Add initialization from above.
9573 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9574
9575 * c-decl.c (c_write_global_declarations): Add start/stop of
9576 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9577
9578 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9579 or TV_PARSE_INLINE, as appropriate.
9580 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9581 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9582
3533b943
JM
95832011-05-02 Jason Merrill <jason@redhat.com>
9584
9585 PR c++/40975
9586 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9587
2609a0ce
SM
95882011-05-02 Simon Martin <simartin@users.sourceforge.net>
9589
9590 PR c/35445
9591 * c-decl.c (finish_decl): Only create a composite if the types are
9592 compatible.
9593
6b0e4cbb
JM
95942011-05-02 Joseph Myers <joseph@codesourcery.com>
9595
9596 * config/fr30/fr30-protos.h (Mmode): Don't define.
9597 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9598 definition where used.
9599 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9600 define. Expand definitions where used.
9601 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9602 Expand definitions where used.
9603 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9604 rx_function_arg, rx_function_arg_advance,
9605 rx_function_arg_boundary): Expand definitions of those macros.
9606 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9607 definition where used.
9608
4e938ce6
UB
96092011-05-02 Uros Bizjak <ubizjak@gmail.com>
9610
9611 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9612 reg<->xmm moves.
9613 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9614 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9615 with *movv2sf_internal_rex64_avx.
9616 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9617 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9618 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9619 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9620 "vex" in "prefix" attribute calculation.
9621 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9622
36019c19
SH
96232011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9624
7a2f7208
UB
9625 PR target/47951
9626 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9627 inputs match the output.
36019c19 9628
f69ea688
AS
96292011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9630
9631 PR target/47955
9632 * config/m68k/m68k.c (m68k_expand_prologue): Set
9633 current_function_static_stack_size.
9634
c33406f5
JH
96352011-05-02 Jan Hubicka <jh@suse.cz>
9636
9637 * lto-streamer.c (lto_streamer_cache_insert_1,
9638 lto_streamer_cache_lookup, lto_streamer_cache_create,
9639 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9640 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9641
47c94d21
JM
96422011-05-02 Joseph Myers <joseph@codesourcery.com>
9643
9644 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9645 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9646 config/m68k/t-opts: New files.
9647 * config/m68k/m68k-tables.opt: New file (generated).
9648 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9649 extra_options and m68k/t-opts to tmake_file.
9650 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9651 (all_isas): Initialize using m68k-isas.def.
9652 (all_microarchs): Initialize using m68k-microarchs.def.
9653 (m68k_find_selection): Remove.
9654 (m68k_handle_option): Don't assert that global structures are in
9655 use. Use error_at. Access variables via opts pointer. Don't
9656 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9657 directly for -m68020-40 and -m68020-60.
9658 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9659 m68k_tune_entry here.
9660 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9661 to m68k-opts.h.
9662 (m68k_library_id_string): Remove declaration.
4e938ce6 9663 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
9664 (m68k_library_id_string): New Variable.
9665 (march=, mcpu=, mtune=): Use Enum and Var.
9666
e562bf36
RG
96672011-05-02 Richard Guenther <rguenther@suse.de>
9668
9669 * varasm.c (output_constructor_regular_field): Compute zero-based
9670 index with double-ints. Make sure to ICE instead of producing
9671 wrong code.
9672 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9673 in asserts. Properly use a signed type.
9674
6bec6c98
UB
96752011-05-02 Uros Bizjak <ubizjak@gmail.com>
9676
9677 * config/i386/sse.md (V): New mode iterator.
9678 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
9679 TARGET_SSE2.
9680 (V_256): Rename from AVX256MODE.
9681 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
9682 condition to all users.
9683 (VF1): Ditto.
9684 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
9685 condition to all users.
9686 (VF_128): Make V4SF mode unconditional.
9687 (VF_256): Rename from AVX256MODEF2P.
9688 (VI4F_128): Rename from SSEMODE4S.
9689 (VI8F_128): Rename from SSEMODE2D.
9690 (VI4F_256): Rename from AVX256MODE8P.
9691 (VI8F_256): Rename from AVX256MODE4P.
9692 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9693 (ssescalarmodesuffix): Remove SF and DF modes.
9694 (SSEMODE124): Remove.
9695 (SSEMODE1248): Ditto.
9696 (SSEMODEF2P): Ditto.
9697 (AVXMODEF2P): Ditto.
9698 (AVXMODEFDP): Ditto.
9699 (AVXMODEFSP): Ditto.
9700 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9701 unconditional.
9702 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
9703 unconditional.
9704 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9705 xop_pcmov_<mode>256. Use V mode iterator.
9706
9707 Adjust RTX patterns globally for renamed mode attributes.
9708
2dfdcb4b
UW
97092011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9710
9711 * haifa-sched.c (sched_emit_insn): Emit insn before first
9712 non-scheduled insn. Inform back-end about new insn. Add
9713 new insn to scheduled_insns list.
9714
90bc4623
RG
97152011-05-02 Richard Guenther <rguenther@suse.de>
9716
9717 PR tree-optimization/48822
9718 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9719 (process_scc): Indicate which iteration we start.
9720
bc0fe8cb
JH
97212011-05-02 Jan Hubicka <jh@suse.cz>
9722
9723 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9724 (lto_section_overrun): New.
9725 * lto-section-out.c (append_block): Rename to ...
9726 (lto_append_block): ... this one; export.
9727 (lto_output_1_stream): Move lto lto-streamer.h
9728 (lto_output_data_stream): Update.
9729 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9730 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9731 functions.
9732
f070a9d1
RG
97332011-05-02 Richard Guenther <rguenther@suse.de>
9734
9735 * tree.c (tree_code_counts): New global array.
9736 (record_node_allocation_statistics): Count individual tree codes.
9737 (dump_tree_statistics): Dump individual code stats.
9738
09dfe187
JH
97392011-05-01 Jan Hubicka <jh@suse.cz>
9740
9741 * ipa-inline.c (caller_growth_limits): Fix thinko when
9742 looking for largest stack frame.
9743 * ipa-inline.h (dump_inline_summary): Declare.
9744 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
9745 on stack usage.
9746 (dump_inline_summary): Export.
9747 (debug_inline_summary): Declare as DEBUG_FUNCTION.
9748
6f76a878
AS
97492011-05-01 Anatoly Sokolov <aesok@post.ru>
9750
9751 * reginfo.c (memory_move_cost): Change rclass argument type form
9752 'enum reg_class' to reg_class_t.
9753 * reload.h (memory_move_cost): Update prototype.
9754 * postreload.c reload_cse_simplify_set): Change type dclass var to
9755 reg_class_t.
9756 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
9757 Update prototype.
9758 (ira_allocate_and_set_costs): Change aclass argument type form
9759 'enum reg_class' to reg_class_t.
6bec6c98 9760 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
9761 Change aclass argument type to reg_class_t.
9762 (update_conflict_hard_reg_costs): Change type aclass and pref vars
9763 to reg_class_t.
9764 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
9765 memory_move_cost call.
9766
9767 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
9768 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
9769 Change type tmp var to reg_class_t.
9770
9a4ac625
JH
97712011-04-30 Jan Hubicka <jh@suse.cz>
9772
9773 * ipa-inline.c (can_inline_edge_p): Disregard limits when
9774 inlining into function with flatten attribute.
9775 (want_inline_small_function_p): Be more realistic about inlining
9776 cold calls where callee size grows.
9777
dd8352ee
JH
97782011-04-30 Jan Hubicka <jh@suse.cz>
9779
9780 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
9781 flags.
9782
46e43d2b
AS
97832011-04-30 Anatoly Sokolov <aesok@post.ru>
9784
9785 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9786 PRINT_OPERAND_PUNCT_VALID_P): Remove.
9787 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
9788 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
9789 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9790 (print_operand): Rename to...
9791 (sparc_print_operand): ...this. Make static. Adjust
9792 sparc_print_operand function call.
9793 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
9794 functions.
9795
ecb62563
JH
97962011-04-30 Jan Hubicka <jh@suse.cz>
9797
6bec6c98 9798 PR middle-end/48752
ecb62563
JH
9799 * ipa-inline.c (early_inliner): Disable when doing late
9800 addition of function.
9801
edb9b69e
JJ
98022011-04-30 Jakub Jelinek <jakub@redhat.com>
9803
be80a87e
JJ
9804 * dwarf2out.c (get_address_mode): New inline.
9805 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
9806 if not dwarf_strict emit
9807 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
9808 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
9809 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
9810 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
9811 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
9812 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
9813 mem_loc_descriptor callers.
9814 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9815 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
9816 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
9817 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
9818 (base_types): New variable.
9819 (get_base_type_offset, calc_base_type_die_sizes,
9820 base_type_for_mode, mark_base_types, base_type_cmp,
9821 move_marked_base_types): New functions.
9822 (calc_die_sizes): Assert that die_offset is 0 or equal to
9823 next_die_offset.
9824 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
9825 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
9826 callers. If not dwarf_strict, call mem_loc_descriptor even for
9827 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
9828 (gen_subprogram_die): Don't give up on call site parameters
9829 with non-integral or large integral modes. Adjust
9830 mem_loc_descriptor callers.
9831 (prune_unused_types): Call prune_unused_types_mark on base_types
9832 vector entries.
9833 (resolve_addr): Call mark_base_types.
9834 (dwarf2out_finish): Call move_marked_base_types.
9835
edb9b69e
JJ
9836 PR tree-optimization/48809
9837 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
9838 type.
9839 (gen_inbound_check): Don't compute index_expr - range_min in utype
9840 again, instead reuse SSA_NAME initialized in build_arrays.
9841 Remove two useless gsi_for_stmt calls.
9842
a6545a3d
JL
98432011-04-29 Jeff Law <law@redhat.com>
9844
9845 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
9846
af8bca3c
MJ
98472011-04-29 Martin Jambor <mjambor@suse.cz>
9848
9849 * cgraph.h (cgraph_postorder): Remove declaration.
9850 * ipa-utils.h (ipa_free_postorder_info): Declare.
9851 (ipa_reverse_postorder): Likewise.
9852 * cgraphunit.c: Include ipa-utils.h.
9853 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
9854 * ipa-inline.c: Include ipa-utils.h.
9855 (ipa_inline): Update call to ipa_reverse_postorder.
9856 * ipa-pure-const.c (propagate_pure_const): Update call to
9857 ipa_reduced_postorder and ipa_print_order. Call
9858 ipa_free_postorder_info to clean up.
9859 (propagate_nothrow): Likewise.
9860 * ipa-reference.c (propagate): Removed a useless call to
9861 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
9862 and ipa_print_order. Call ipa_free_postorder_info to clean up.
9863 * ipa.c: Include ipa-utils.h.
9864 (ipa_profile): Update call to ipa_reverse_postorder.
9865 (cgraph_postorder): Moved to...
9866 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
9867 (ipa_utils_print_order): Renamed to ipa_print_order.
9868 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
9869 comments.
9870 (ipa_free_postorder_info): New function.
9871 * passes.c: Include ipa-utils.h.
9872 (do_per_function_toporder): Update call to ipa_reverse_postorder.
9873 (ipa_write_summaries): Likewise.
9874 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
9875 (cgraphunit.o): Likewise.
9876 (ipa.o): Likewise.
9877 (ipa-inline.o): Likewise.
9878
b15c64ee
JH
98792011-04-29 Jan Hubicka <jh@suse.cz>
9880
9881 * gcc.dg/tree-ssa/inline-10.c: New testcase.
9882 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
9883 * ipa-inline.h (clause_t): Turn into unsigned int.
9884 * ipa-inline-analysis.c (add_clause): Do more simplification.
9885 (and_predicates): Shortcut more cases.
9886 (predicates_equal_p): Move forward; check that clauses are properly
9887 ordered.
9888 (or_predicates): Shortcut more cases.
9889 (edge_execution_predicate): Rewrite as...
9890 (set_cond_stmt_execution_predicate): ... this function; handle
9891 __builtin_constant_p.
9892 (set_switch_stmt_execution_predicate): New .
9893 (compute_bb_predicates): New.
9894 (will_be_nonconstant_predicate): Update TODO.
9895 (estimate_function_body_sizes): Use compute_bb_predicates
9896 and free them later, always try to estimate if stmt is constant.
9897 (estimate_time_after_inlining, estimate_size_after_inlining):
9898 Gracefully handle optimized out edges.
9899 (read_predicate): Fix off by one error.
9900
a88fdc2a
NP
99012011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
9902
9903 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
9904
d984c8ef
XDL
99052011-04-27 Xinliang David Li <davidxl@google.com>
9906
9907 * tree-profile.c (init_ic_make_global_vars): Set
9908 tls attribute on ic vars.
9909 * coverage.c (coverage_end_function): Initialize
9910 function_list with zero.
9911
45a2c477
RG
99122011-04-29 Richard Guenther <rguenther@suse.de>
9913
9914 * builtins.c (fold_builtin_classify_type): Use integer_type_node
9915 for the type of the result.
9916 (fold_builtin_isascii): Likewise.
9917 (fold_builtin_toascii): Use integer_type_node where appropriate.
9918 (fold_builtin_logb): Likewise.
9919 (fold_builtin_frexp): Likewise.
9920 (fold_builtin_strstr): Likewise.
9921 (fold_builtin_strpbrk): Likewise.
9922 (fold_builtin_fputs): Likewise.
9923 (fold_builtin_sprintf): Likewise.
9924 (fold_builtin_snprintf): Likewise.
9925 (fold_builtin_printf): Likewise.
9926 (do_mpfr_remquo): Use a proper type for the assigned constant.
9927 (do_mpfr_lgamma_r): Likewise.
9928 * dwarf2out.c (resolve_one_addr): Use size_int.
9929 * except.c (init_eh): Likewise.
9930 (assign_filter_values): Use integer_type_node for filter values.
9931 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
9932 indices.
9933 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
9934 for EH region numbers.
9935 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
9936 for the shift amount.
9937
eb6c3df1
RG
99382011-04-29 Richard Guenther <rguenther@suse.de>
9939
9940 * expr.h (expand_shift): Rename to ...
9941 (expand_variable_shift): ... this.
9942 (expand_shift): Take a constant shift amount.
9943 * expmed.c (expand_shift): Rename to ...
9944 (expand_variable_shift): ... this.
9945 (expand_shift): New wrapper around expand_variable_shift.
9946 * expr.c (convert_move, emit_group_load_1, emit_group_store,
9947 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
9948 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
9949 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
9950 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
9951 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
9952 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
9953 emit_store_flag_1, emit_store_flag): Likewise.
9954 * builtins.c (expand_builtin_signbit): Likewise.
9955 * calls.c (load_register_parameters): Likewise.
9956 * function.c (assign_parm_setup_block): Likewise.
9957 * lower-subreg.c (resolve_shift_zext): Likewise.
9958 * optabs.c (widen_bswap, expand_abs_nojump,
9959 expand_one_cmpl_abs_nojump, expand_float): Likewise.
9960 * spu/spu.c (spu_expand_extv): Likewise.
9961 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9962
9f616812
RG
99632011-04-29 Richard Guenther <rguenther@suse.de>
9964
9965 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
9966 for the remapped region number.
9967 * predict.c (build_predict_expr): Use integer_type_node for the
9968 predict kind.
9969 * fold-const.c (fold_binary_loc): Use integer_type_node for
9970 the shift amount. Use a proper type for the PLUS_EXPR operand.
9971
b823cdfe
MM
99722011-04-29 Michael Matz <matz@suse.de>
9973
9974 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
9975 other trees that just builtins.
9976 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
9977
413581ba
RG
99782011-04-29 Richard Guenther <rguenther@suse.de>
9979
9980 * tree-nested.c (get_trampoline_type): Use size_int.
9981 (get_nl_goto_field): Likewise.
9982 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
9983 for all indexes.
9984 (lower_eh_constructs_2): Likewise.
9985 (lower_resx): Likewise.
9986 (lower_eh_dispatch): Likewise.
9987 * tree-mudflap.c (mf_build_string): Use size_int.
9988 (mudflap_register_call): Use integer_type_node for the flag.
9989 (mudflap_enqueue_constant): Use size_int.
9990 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
9991 instead of rebuilding it.
9992
5c04e9f4
RG
99932011-04-29 Richard Guenther <rguenther@suse.de>
9994
9995 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
9996 Handle OBJ_TYPE_REF.
9997 (find_func_aliases_for_call): Use it more consistently.
9998
5c24671b
AO
99992011-04-29 Alexandre Oliva <aoliva@redhat.com>
10000
10001 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10002 (rank_for_schedule): Use it.
10003 (schedule_block): Set it.
10004
10adac51
XDL
100052011-04-28 David Li <davidxl@google.com>
10006
10007 * tree.c (crc32_string): Use crc32_byte.
10008 (crc32_byte): New function.
10009 * tree.h (crc32_byte): New function.
10010 * gcov.c (read_graph_file): Handle new cfg_cksum.
10011 (read_count_file): Ditto.
10012 * profile.c (instrument_values): Ditto.
10013 (get_exec_counts): Ditto.
10014 (read_profile_edge_counts): Ditto.
10015 (compute_branch_probabilities): Ditto.
10016 (compute_value_histograms): Ditto.
10017 (branch_prob): Ditto.
10018 (end_branch_prob): Ditto.
10019 * coverage.c (read_counts_file): Ditto.
10020 (get_coverage_counts): Ditto.
10021 (tree_coverage_counter_addr): Ditto.
10022 (coverage_checksum_string): Ditto.
10023 (coverage_begin_output): Ditto.
10024 (coverage_end_function): Ditto.
10025 (build_fn_info_type): Ditto.
10026 (build_fn_info_value): Ditto.
10027 * libgcov.c (gcov_exit): Ditto.
10028 * gcov-dump.c (tag_function): Ditto.
10029 (compute_checksum): Remove.
10030
5d6358a5
AM
100312011-04-29 Alan Modra <amodra@gmail.com>
10032
10033 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10034 unspec plus offset. Tidy macho code.
10035
85ad2ef5
MJ
100362011-04-29 Martin Jambor <mjambor@suse.cz>
10037
10038 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10039 node instead of a decl. Update all callers.
10040 * cgraph.h: Update declaration.
10041
437f4a00
IR
100422011-04-28 Ira Rosen <ira.rosen@linaro.org>
10043
10044 PR tree-optimization/48765
10045 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10046 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10047 to indicate if loop aware SLP is being used. Scan the statements
10048 and update the vectorization factor according to the type of
10049 vectorization before statement analysis.
10050 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10051 pass it to vect_analyze_loop_operations.
10052 (vectorizable_reduction): Set number of copies to 1 in case of pure
10053 SLP statement.
10054 * tree-vect-stmts.c (vectorizable_conversion,
10055 vectorizable_assignment, vectorizable_shift,
10056 vectorizable_operation, vectorizable_type_demotion,
10057 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10058 Likewise.
10059 (vectorizable_condition): Move the check that it is not SLP
10060 vectorization before the number of copies check.
10061 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10062 to vectorize the loop using SLP.
10063
c6fc44f3
JJ
100642011-04-28 Jakub Jelinek <jakub@redhat.com>
10065
10066 PR middle-end/48597
10067 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10068 inline asm.
10069
6c0170ea
JM
100702011-04-28 Joseph Myers <joseph@codesourcery.com>
10071
10072 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10073 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10074 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10075 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10076 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10077 linux*.h headers.
6bec6c98 10078 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
10079 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10080 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10081 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 10082 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
10083 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10084 REG_NAME.
10085 * config/i386/linux.h (REG_NAME): Don't define.
10086 * config/i386/linux64.h (REG_NAME): Don't define.
10087 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10088 Undefine before defining.
10089
970dabbd
JH
100902011-04-28 Jan Hubicka <jh@suse.cz>
10091
6bec6c98
UB
10092 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10093 nonconstant_names array.
970dabbd
JH
10094 (estimate_function_body_sizes): Build nonconstant_names array; handle
10095 BUILT_IN_CONSTANT_P.
10096
8d3e3924
RG
100972011-04-28 Richard Guenther <rguenther@suse.de>
10098
10099 PR bootstrap/48804
10100 Revert
10101 2011-04-28 Richard Guenther <rguenther@suse.de>
10102
10103 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10104 as late as possible.
6bec6c98 10105
8576f20a
RG
101062011-04-28 Richard Guenther <rguenther@suse.de>
10107
10108 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10109 (debug_constraint): Do it here.
10110 (dump_constraints): And here.
10111 (rewrite_constraints): And here.
10112 (dump_constraint_edge): Remove.
10113 (dump_constraint_graph): Rewrite to produce DOT output.
10114 (solve_constraints): Build succ graph as late as possible.
10115 Dump constraint graphs before and after solving.
10116
e38811ce
RG
101172011-04-28 Richard Guenther <rguenther@suse.de>
10118
10119 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10120 New function split out from ...
10121 (find_func_aliases): ... here. Call it.
10122 (find_func_aliases_for_call): Likewise.
10123
fbaf0d0c
GDR
101242011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10125
10126 * internal-fn.h (internal_fn_name_array): Declare.
10127 (internal_fn_flags_array): Likewise.
10128
cbb734aa
UB
101292011-04-27 Uros Bizjak <ubizjak@gmail.com>
10130
10131 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10132 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10133 Move from sse.md.
10134 (ssemodefsuffix): Remove.
10135 (ssevecmodesuffix): New mode attribute.
10136 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10137 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10138 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10139 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10140 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10141 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10142 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10143 ssemodesuffix mode attribute.
10144 (float splitters): Use ssevecmodesuffix mode attribute.
10145 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10146 (sseinsmode): Rename from avxvecmode.
10147 (avxsizesuffix): Rename from avxmodesuffix.
10148 (sseintvecmode): Rename from avxpermvecmode.
10149 (ssedoublevecmode): Rename from ssedoublesizemode.
10150 (ssehalfvecmode): Rename from avxhalfvecmode.
10151 (ssescalarmode): Rename from avxscalarmode.
10152 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10153 templates for ssemodesuffix mode attribute.
10154 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10155 mode attribute.
10156
10157 Adjust RTX patterns globally for renamed mode attributes.
10158
991278ab
JH
101592011-04-27 Jan Hubcika <jh@suse.cz>
10160
10161 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10162 * ipa-inline-analysis.c: Include alloc-pool.h.
10163 (edge_predicate_pool): New.
10164 (trye_predicate_p): New function
10165 (false_predicate_p): New function.
10166 (add_clause): Sanity check that false clauses are "optimized";
10167 never add clauses to predicate that is already known to be false.
10168 (and_predicate): Use flase_predicate_p.
10169 (evaulate_predicate): Rename to ...
10170 (evaluate_predicate): ... this one; update all callers; assert
10171 that false is not listed among possible truths.
10172 (dump_predicate): Use true_predicate_p.
10173 (account_size_time): Use false_predicate_p.
10174 (evaulate_conditions_for_edge): Rename to ...
10175 (evaluate_conditions_for_edge) ... this one.
10176 (edge_set_predicate): New function.
10177 (inline_edge_duplication_hook): Duplicate edge predicates.
10178 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 10179 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
10180 (dump_inline_summary): Update.
10181 (estimate_function_body_sizes): Set edge predicates.
10182 (estimate_calls_size_and_time): Handle predicates.
10183 (estimate_callee_size_and_time): Update.
10184 (remap_predicate): Add toplev_predicate; update comment.
10185 (remap_edge_predicates): New function.
10186 (inline_merge_summary): Compute toplev predicate; update.
10187 (read_predicate): New function.
10188 (read_inline_edge_summary): Use it.
10189 (inline_read_section): Likewise.
10190 (write_predicate): New function.
10191 (write_inline_edge_summary): Use it.
10192 (inline_write_summary): Likewise.
10193 (inline_free_summary): Free alloc pool and edge summary vec.
10194
648b5f85
RG
101952011-04-27 Richard Guenther <rguenther@suse.de>
10196
10197 * tree-ssa-structalias.c (changed_count): Remove.
10198 (changed): Use a bitmap.
10199 (unify_nodes): Adjust.
10200 (do_sd_constraint): Likewise.
10201 (do_ds_constraint): Likewise.
10202 (do_complex_constraint): Likewise.
10203 (solve_graph): Likewise.
10204
4d5dcfb2
JH
102052011-04-27 Jan Hubicka <jh@suse.cz>
10206
10207 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10208
200eb7d2
UB
102092011-04-27 Uros Bizjak <ubizjak@gmail.com>
10210
10211 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10212 (avx_vperm2f128_*_operand): Ditto.
10213 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10214 Use avx_vpermilp_parallel in insn condition.
10215 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10216 Use avx_vperm2f128_parallel in insn condition.
10217
7d6e2521
RG
102182011-04-27 Richard Guenther <rguenther@suse.de>
10219
10220 * Makefile.in (tree-ssa-structalias.o): Remove
10221 gt-tree-ssa-structalias.h dependency.
10222 (GTFILES): Remove tree-ssa-structalias.c.
10223 * tree.c (allocate_decl_uid): New function.
10224 (make_node_stat): Use it.
10225 (copy_node_stat): Likewise.
10226 * tree.h (allocate_decl_uid): Declare.
10227 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10228 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10229 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 10230 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
10231 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10232 (struct heapvar_map): Likewise.
10233 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10234 heapvar_insert): Likewise.
10235 (make_heapvar_for): Rename to ...
10236 (make_heapvar): ... this. Simplify.
10237 (fake_var_decl_obstack): New global var.
10238 (build_fake_var_decl): New function.
10239 (make_constraint_from_heapvar): Adjust.
10240 (handle_lhs_call): Likewise.
10241 (create_function_info_for): Likewise.
10242 (intra_create_variable_infos): Likewise.
10243 (init_alias_vars): Allocate fake_var_decl_obstack.
10244 (init_alias_heapvars, delete_alias_heapvars): Remove.
10245 (compute_points_to_sets): Do not call init_alias_heapvars.
10246 (ipa_pta_execute): Likewise.
10247 (delete_points_to_sets): Free fake_var_decl_obstack.
10248
526ed6c2
UW
102492011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10250
10251 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10252 (si_from_UTItype, si_to_UTItype): New functions.
10253 (__udivmodti4): Use them to implement type-punning.
10254 * config/spu/multi3.c (union qword_TItype): New data type.
10255 (si_from_TItype, si_to_TItype): New functions.
10256 (__multi3): Use them to implement type-punning.
10257
c187d33c
UW
102582011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10259
10260 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10261
40982661
JH
102622011-04-27 Jan Hubicka <jh@suse.cz>
10263
10264 * ipa-prop.c (function_insertion_hook_holder): New holder.
10265 (ipa_add_new_function): New function.
200eb7d2
UB
10266 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10267 Register/deregister holder.
40982661 10268
9aef53ee
RG
102692011-04-27 Richard Guenther <rguenther@suse.de>
10270
10271 PR tree-optimization/48772
200eb7d2 10272 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 10273
f63d806d
RG
102742011-04-27 Richard Guenther <rguenther@suse.de>
10275
10276 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10277 TARGET_MEM_REF handling.
10278
e1ea7451
NC
102792011-04-27 Nick Clifton <nickc@redhat.com>
10280
9b5db25d
NC
10281 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10282 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10283 (REG_CLASS_NAMES): Likewise.
10284 (REG_CLASS_CONTENTS): Likewise.
10285 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10286 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10287 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10288 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10289 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10290 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10291 duplicate register classes.
97d20907 10292 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
10293 (frv_register_move_cost): Likewise.
10294
e1ea7451
NC
10295 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10296 end of the regno_reg_class array.
10297
5c2f94b4
JJ
102982011-04-27 Jakub Jelinek <jakub@redhat.com>
10299
10300 PR c/48742
10301 * c-typeck.c (build_binary_op): Don't wrap arguments if
10302 int_operands is true.
10303
57a944d7
KK
103042011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10305
10306 PR target/48767
10307 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10308 targetm.calls.must_pass_in_stack for void type.
10309
898b8927
JH
103102011-04-26 Jan Hubicka <jh@suse.cz>
10311
10312 * cgraphbuild.c (build_cgraph_edges): Update call
10313 of cgraph_create_edge and cgraph_create_indirect_edge.
10314 * cgraph.c (cgraph_create_edge_including_clones,
10315 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10316 cgraph_update_edges_for_call_stmt_node): Do not take nest
10317 argument; do not initialize call_stmt_size/time.
10318 (dump_cgraph_node): Do not dump nest.
10319 (cgraph_clone_edge): Do not take loop_nest argument;
10320 do not propagate it; do not clone call_stmt_size/time.
10321 (cgraph_clone_node): Likewise.
10322 (cgraph_create_virtual_clone): Update.
10323 * cgraph.h (struct cgraph_edge): Remove
10324 call_stmt_size/call_stmt_time/loop_nest.
10325 (cgraph_create_edge, cgraph_create_indirect_edge,
10326 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10327 prototype.
10328 * tree-emutls.c (gen_emutls_addr): Update.
10329 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10330 loop_nest; handle indirect calls, too.
10331 (clone_inlined_nodes): Do not care about updating inline summaries.
10332 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10333 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10334 stream call_stmt_size/call_stmt_time/loop_nest.
10335 * ipa-inline.c (edge_badness): Update.
10336 (ipa_inline): dump summaries after inlining.
10337 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 10338 New.
898b8927
JH
10339 (inline_edge_summary): New function.
10340 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10341 (inline_edge_removal_hook): Handle edge summaries.
10342 (inline_edge_duplication_hook): New hook.
10343 (inline_summary_alloc): Alloc hooks.
10344 (initialize_growth_caches): Do not register removal hooks.
10345 (free_growth_caches); Do not free removal hook.
10346 (dump_inline_edge_summary): New function.
10347 (dump_inline_summary): Use it.
10348 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10349 (inline_update_callee_summaries): New function.
10350 (inline_merge_summary): Use it.
10351 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10352 (read_inline_edge_summary): New function.
10353 (inline_read_section): Use it.
10354 (write_inline_edge_summary): New function.
10355 (inline_write_summary): Use it.
10356 (inline_free_summary): Free edge new holders.
10357 * tree-inline.c (copy_bb): Update.
10358
ffa03772
JM
103592011-04-26 Jason Merrill <jason@redhat.com>
10360
10361 * tree-eh.c (lower_try_finally_switch): Create the label along with
10362 the CASE_LABEL_EXPR.
10363
6d7b45ad
DM
103642011-04-26 David S. Miller <davem@davemloft.net>
10365 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10366
10367 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10368 * configure: Regenerate.
10369
df10b6d4
MM
103702011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10371
10372 PR target/48258
10373 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10374 reduction.
10375 (VEC_reduc): New code iterator and splitters for vector reduction.
10376 (VEC_reduc_name): Ditto.
10377 (VEC_reduc_rtx): Ditto.
10378 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10379 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10380
10381 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10382 support for extracting SF on VSX.
10383
10384 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10385 generating xscvspdp.
10386 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10387 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10388 double add, minimum, maximum vector reduction.
10389 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10390 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10391 optimize double vector reduction.
10392 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10393
35a5db04
JM
103942011-04-26 Joseph Myers <joseph@codesourcery.com>
10395
10396 * config/fr30/fr30.h (inhibit_libc): Don't define.
10397 * config/m32r/m32r-protos.h: Correct comment.
10398 * config/v850/v850.h (GHS_default_section_names,
10399 GHS_current_section_names): Use tree, not union tree_node *.
10400
2f964ad6
XDL
104012011-04-26 Xinliang David Li <davidxl@google.com>
10402
200eb7d2 10403 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
10404 * c-family/c-opts.c (c_common_handle_option): Set
10405 warn_maybe_uninitialized.
10406 * opts.c (common_handle_option): Ditto.
10407 * common.opt: New option.
10408 * tree-ssa.c (warn_uninit): Add one more parameter.
10409 (warn_uninitialized_var): Pass warning code.
10410 * tree-flow.h: Interface change.
10411
9c7bd91a
RO
104122011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10413
200eb7d2 10414 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
10415 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10416 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10417
c2f36e21
RO
104182011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10419
10420 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10421 * config/mips/mips.opt (mmips-tfile): Remove.
10422
10423 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10424 mips-tdump reference to ...
200eb7d2 10425 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
10426 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10427 reference by Tru64 UNIX.
10428
2c9da85b
JJ
104292011-04-26 Jakub Jelinek <jakub@redhat.com>
10430
0c5f6539
JJ
10431 PR debug/48768
10432 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10433 is error_mark_node, set value to NULL.
10434
2c9da85b
JJ
10435 PR tree-optimization/48734
10436 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10437 if return value from maybe_fold_*_comparsions isn't something
10438 the code is prepared to handle.
10439
77fa1d54
UB
104402011-04-26 Uros Bizjak <ubizjak@gmail.com>
10441
10442 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10443 mode check.
10444 (ext_QIreg_nomode_operands): Remove.
10445 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10446 (*andsi_1): Ditto.
10447 (*andhi_1): Ditto.
10448
0e2a6c2b
AS
104492011-04-26 Andrew Stubbs <ams@codesourcery.com>
10450
10451 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10452
961562d8
RB
104532011-04-26 Richard Guenther <rguenther@suse.de>
10454
10455 * c-typeck.c (build_unary_op): Do not expand array-refs via
10456 pointer arithmetic. Only adjust qualifiers for function types.
10457
104582011-04-26 Richard Guenther <rguenther@suse.de>
10459
10460 PR middle-end/48694
10461 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10462 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
10463 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10464 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 10465
a0d260fc
PC
104662011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10467
6bec6c98 10468 * doc/extend.texi: Document __underlying_type.
a0d260fc 10469
4d583bb9
SB
104702011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10471
10472 * config/rs6000/titan.md (automata_option "progress"): Remove.
10473
1f3fcdc3
JL
104742011-04-25 Jeff Law <law@redhat.com>
10475
10476 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10477
e5b0dad8
JK
104782011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10479
10480 * system.h (ENUM_BITFIELD): Remove.
10481
5157a881 104822011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 10483 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
10484
10485 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10486 for STORE_FLAG_VALUE==-1 case.
10487
ed4c109e
RS
104882011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10489
10490 PR target/43804
10491 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10492 LEGITIMATE_PIC_OPERAND_P.
10493
f3181aa2
JH
104942011-04-24 Jan Hubicka <jh@suse.cz>
10495
10496 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10497 WPA hack.
77fa1d54
UB
10498 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10499 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10500 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
10501 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10502 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10503 Sanity check predicate length.
10504 (remap_predicate): Likewise; sanity check jump functions.
10505 (inline_read_section, inline_write_summary): Sanity check
10506 predicate length.
10507
5307cbaa
PC
105082011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10509
10510 PR other/48748
10511 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10512 __is_literal_type, and __is_trivial; update throughout about
10513 possibly cv-qualified void types.
10514
bebd5f99
GP
105152011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10516
10517 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10518 testsuite and make it version agnostic.
10519
7ee28a74
JH
105202011-04-22 Jan Hubicka <jh@suse.cz>
10521
10522 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10523
16997bc0
JJ
105242011-04-23 Jakub Jelinek <jakub@redhat.com>
10525
10526 PR c/48685
10527 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10528 to VOID_TYPE even around MODIFY_EXPR.
10529
f94d4ab1
MS
105302011-04-22 Mike Stump <mikestump@comcast.net>
10531
1a84c183 10532 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
10533 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10534 comment.
10535
632b4f8e
JH
105362011-04-22 Jan Hubicka <jh@suse.cz>
10537
10538 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
10539 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10540 ipa-prop.c; update all uses.
632b4f8e 10541 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
10542 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10543 merge summary of inlined function into former caller.
632b4f8e
JH
10544 * ipa-inline.c (max_benefit): Remove.
10545 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
10546 (update_caller_keys): Use
10547 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
10548 (update_callee_keys): Likewise.
10549 (update_all_callee_keys): Likewise.
77fa1d54
UB
10550 (inline_small_functions): Do not collect max_benefit; do not reset
10551 estimated_growth; call free_growth_caches and initialize_growth_caches.
10552 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10553 struct size_time_entry): New structures.
632b4f8e 10554 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
10555 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10556 and estimated_growth.
632b4f8e
JH
10557 (edge_growth_cache_entry): New structure.
10558 (node_growth_cache, edge_growth_cache): New global vars.
10559 (estimate_growth): Turn into inline.
10560 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10561 initialize_growth_caches, free_growth_caches): Declare.
10562 (estimate_edge_growth): Rewrite.
10563 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
10564 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10565 functions.
632b4f8e
JH
10566 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10567 (NUM_CONDITIONS): New constant.
10568 (predicate_conditions): New enum.
10569 (IS_NOT_CONSTANT): New constant.
10570 (edge_removal_hook_holder): New var.
10571 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
10572 (true_predicate, single_cond_predicate, false_predicate,
10573 not_inlined_predicate, add_condition, add_clause, and_predicates,
10574 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10575 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
10576 evaulate_conditions_for_edge): New functions.
10577 (inline_summary_alloc): Move to heap.
10578 (inline_node_removal_hook): Clear condition and entry vectors.
10579 (inline_edge_removal_hook): New function.
10580 (initialize_growth_caches, free_growth_caches): New function.
10581 (dump_inline_summary): Update.
10582 (edge_execution_predicate): New function.
10583 (will_be_nonconstant_predicate): New function.
10584 (estimate_function_body_sizes): Compute BB and constantness predicates.
10585 (compute_inline_parameters): Do not clear estimated_growth.
10586 (estimate_edge_size_and_time): New function.
10587 (estimate_calls_size_and_time): New function.
10588 (estimate_callee_size_and_time): New function.
10589 (remap_predicate): New function.
10590 (inline_merge_summary): New function.
10591 (do_estimate_edge_time): New function based on...
10592 (estimate_edge_time): ... this one.
10593 (do_estimate_edge_growth): New function.
10594 (do_estimate_growth): New function based on....
10595 (estimate_growth): ... this one.
10596 (inline_analyze_function): Analyze after deciding on jump functions.
10597 (inline_read_section): New function.
10598 (inline_read_summary): Use it.
10599 (inline_write_summary): Write all the new data.
10600 * ipa-prop.c (ipa_get_param_decl_index): Export.
10601 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
10602 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10603 Declare.
10604 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
10605 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10606 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10607 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10608 cgraph_edge_inlinable_p): Remove.
10609 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
10610 (cgraph_process_new_functions): Update call of
10611 compute_inline_parameters.
632b4f8e 10612
1df5b0db
RG
106132011-04-22 Richard Guenther <rguenther@suse.de>
10614
10615 * tree.c (build_int_cst): Properly create canonicalized integer
10616 constants.
10617 (build_int_cst_type): Remove scary comments.
10618
ae01169c
XDL
106192011-04-22 Xinliang David Li <davidxl@google.com>
10620
10621 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10622 by default when -Wno-error is not specified.
10623 * opts-global.c (decode_options): Remove call to
10624 control_warning_options.
10625
93dfac24
JJ
106262011-04-22 Jakub Jelinek <jakub@redhat.com>
10627
10628 PR tree-optimization/48717
10629 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10630 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10631
1b5f5069
JM
106322011-04-22 Joseph Myers <joseph@codesourcery.com>
10633
10634 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10635 definition where used.
10636
144f4153
JJ
106372011-04-22 Jakub Jelinek <jakub@redhat.com>
10638
10639 PR c/48716
10640 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10641 TREE_STATIC variables declared inside of some OpenMP construct.
10642
f9fd305b
MJ
106432011-04-22 Martin Jambor <mjambor@suse.cz>
10644
10645 PR middle-end/48585
1d284ec5 10646 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 10647
49819fef
AM
106482011-04-22 Alexander Monakov <amonakov@ispras.ru>
10649
10650 PR c/36750
10651 * c-typeck.c (pop_init_level): Do not warn about initializing
10652 with ` = {0}'.
10653
401f6699
AM
106542011-04-22 Alan Modra <amodra@gmail.com>
10655
10656 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10657 when returning call_cookie.
10658 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10659 pointers, to functions with no more vector args than the current
10660 function, and some non-local calls for ABI_V4.
10661 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10662 sibcall_nonlocal_aix64): Combine to ..
10663 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
10664 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10665 (sibcall_value_nonlocal_aix<mode>): ..likewise.
10666 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10667 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
10668 operand.
10669 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10670 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10671 sibcall_value_symbolic_64): Delete.
10672
903d1e67
XDL
106732011-04-21 Xinliang David Li <davidxl@google.com>
10674
10675 * cgraph.h: Remove pid.
10676 * cgraph.c: Remove pid.
10677 * value-prof.c (init_node_map): New function.
10678 (del_node_map): New function.
10679 (find_func_by_funcdef_no): New function.
10680 (gimple_ic_transform): Call new function.
10681 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10682 * function.c (get_last_funcdef_no): New function.
10683 * function.h (get_last_funcdef_no): New function.
10684 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10685 to libgcov function.
10686 (tree-profiling): Call node map init and delete function.
10687
7378e95f
ILT
106882011-04-21 Ian Lance Taylor <iant@google.com>
10689
10690 * godump.c (go_format_type): Use exported Go name for anonymous
10691 field name.
10692
e84a6fcf
NF
106932011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10694
10695 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10696 Call builtin_function_type_list instead of builtin_function_type.
10697 (UNARY, BINARY, TRINARY, QUAD): Likewise.
10698
4fe058e2
NF
106992011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10700
10701 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10702 build_function_type_list instead of build_function_type.
10703 Delete variable `endlink'.
10704
1ba0a2d2
NF
107052011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10706
10707 * config/s390/s390.c (s390_init_builtins): Call
10708 build_function_type_list instead of build_function_type.
10709
c0676219
NF
107102011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10711
10712 * config/ia64/ia64.c (ia64_init_builtins): Call
10713 build_function_type_list instead of builtin_function_type.
10714
6ddfda8a
ER
107152011-04-21 Easwaran Raman <eraman@google.com>
10716
3a6448ea 10717 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
10718 (add_stack_var): ...and its reference here...
10719 (expand_stack_vars): ...and here.
10720 (stack_var_cmp): Sort by descending order of size.
10721 (partition_stack_vars): Change heuristic.
1d284ec5 10722 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
10723 (dump_stack_var_partition): Add newline after each partition.
10724
23756963
DA
107252011-04-21 Dimitrios Apostolou <jimis@gmx.net>
10726 Jeff Law <law@redhat.com>
10727
77fa1d54 10728 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
10729 * gengtype.c (matching_file_name_substitute): Likewise.
10730
aa2a43d2
RG
107312011-04-21 Richard Guenther <rguenther@suse.de>
10732
10733 PR lto/48703
1d284ec5 10734 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 10735
4d931f41
EB
107362011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10737
10738 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10739
f103fa7a
RG
107402011-04-21 Richard Guenther <rguenther@suse.de>
10741
10742 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
10743 file name.
10744
e19f6650
RG
107452011-04-21 Richard Guenther <rguenther@suse.de>
10746
10747 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10748 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10749 Use DECL_P, not SSA_VAR_P.
10750 (ptr_derefs_may_alias_p): Likewise.
10751 (ptr_deref_may_alias_ref_p_1): Likewise.
10752 (decl_refs_may_alias_p): Likewise.
10753 (refs_may_alias_p_1): Likewise.
10754 (ref_maybe_used_by_call_p_1): Likewise.
10755 (call_may_clobber_ref_p_1): Likewise.
10756 (indirect_ref_may_alias_decl_p): Assume indirect refrences
10757 are either MEM_REF or TARGET_MEM_REF.
10758 (indirect_refs_may_alias_p): Likewise.
10759 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
10760 for MEM_EXPR of indirect calls.
10761
9d1831bb
TG
107622011-04-21 Tristan Gingold <gingold@adacore.com>
10763
10764 * vmsdbgout.c (write_srccorr): Compute file length from the string.
10765 (dst_file_info_struct): Remove flen field.
10766 (lookup_filename): Remove code that set flen field.
10767
f199c029
TG
107682011-04-21 Tristan Gingold <gingold@adacore.com>
10769
10770 * config/ia64/ia64.c (ia64_start_function): Add a guard.
10771
2894086e
UB
107722011-04-21 Uros Bizjak <ubizjak@gmail.com>
10773
10774 PR target/48708
10775 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
10776 vec_extract and vec_concat for non-SSE4_1 targets.
10777
53f94a5c
RG
107782011-04-21 Richard Guenther <rguenther@suse.de>
10779
10780 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
10781 return statements.
10782
f0dca5ba
JM
107832011-04-21 Joseph Myers <joseph@codesourcery.com>
10784
10785 * config/i386/cygming.h (union tree_node, TREE): Don't define or
10786 undefine.
10787 (FILE): Don't undefine.
10788
984514ac
JM
107892011-04-21 Joseph Myers <joseph@codesourcery.com>
10790
10791 * config/alpha/alpha.c (struct machine_function): Use rtx, not
10792 struct rtx_def *.
10793 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
10794 struct rtx_def *.
10795 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 10796 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
10797 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
10798 rtx_def *.
10799 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
10800 definitions where used.
10801 * config/microblaze/microblaze.h (struct microblaze_args): Use
10802 rtx, not struct rtx_def *.
10803 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
10804 rtx_def *.
2894086e
UB
10805 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
10806 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
10807 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
10808 not struct rtx_def *.
10809 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
10810 struct rtx_def *.
10811 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
10812 rtx_def *.
2894086e 10813 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 10814
0b5a2724
RS
108152011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10816
10817 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
10818 operand_equal_p to compare DR_BASE_ADDRESSes.
10819 (vect_check_interleaving): Likewise.
10820
4b18d683
RS
108212011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10822
10823 PR target/46329
10824 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
10825 for all Neon struct constants.
10826
1a627b35
RS
108272011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10828
10829 * target.def (legitimate_constant_p): New hook.
10830 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
10831 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
10832 * doc/tm.texi: Regenerate.
10833 * hooks.h (hook_bool_mode_rtx_true): Declare.
10834 * hooks.c (hook_bool_mode_rtx_true): Define.
10835 * system.h (LEGITIMATE_CONSTANT_P): Poison.
10836 * calls.c (precompute_register_parameters): Replace uses of
10837 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
10838 (emit_library_call_value_1): Likewise.
10839 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
10840 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
10841 * ira-costs.c (scan_one_insn): Likewise.
10842 * recog.c (general_operand, immediate_operand): Likewise.
10843 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
10844 * reload1.c (init_eliminable_invariants): Likewise.
10845
10846 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
10847 mode argument.
10848 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
10849 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
10850 argument.
10851 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10852 * config/alpha/predicates.md (input_operand): Update call to
10853 alpha_legitimate_constant_p.
10854
10855 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
10856 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
10857 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
10858 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10859 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
10860 (arm_legitimate_constant_p): New functions.
10861 (arm_cannot_force_const_mem): Make static.
10862
10863 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
10864
10865 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
10866 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
10867 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
10868 instead of bfin_legitimate_constant_p.
10869 (bfin_legitimate_constant_p): Make static. Add a mode argument.
10870 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10871
10872 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
10873
10874 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
10875
10876 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
10877 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
10878 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10879 (frv_legitimate_constant_p): Make static. Add a mode argument.
10880
10881 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
10882 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
10883 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
10884
10885 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
10886 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
10887 * config/i386/i386.c (legitimate_constant_p): Rename to...
10888 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
10889 argument.
10890 (ix86_cannot_force_const_mem): Update accordingly.
10891 (ix86_legitimate_address_p): Likewise.
10892 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10893 * config/i386/i386.md: Update commentary.
10894
10895 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
10896 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
10897 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10898 (ia64_legitimate_constant_p): Make static. Add a mode argument.
10899
10900 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
10901
10902 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
10903 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
10904 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10905 (lm32_legitimate_constant_p): Make static. Add a mode argument.
10906
10907 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
10908 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
10909 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
10910
10911 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
10912 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10913 (m32r_legitimate_constant_p): New function.
10914
10915 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
10916 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
10917 LEGITIMATE_CONSTANT_P.
10918 (LEGITIMATE_CONSTANT_P): Delete.
10919 * config/m68k/m68k.c (m68k_expand_prologue): Call
10920 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
10921 (m68k_legitimate_constant_p): New function.
10922 * config/m68k/m68k.md: Update comments.
10923
10924 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
10925 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10926 (mcore_legitimate_constant_p): New function.
10927
10928 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
10929 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
10930 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
10931 Add a mode argument.
10932 (mep_legitimate_address): Update accordingly.
10933 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10934
10935 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
10936 Delete.
10937 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
10938 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
10939 static. Check OP's mode for VOIDmode.
10940 (microblaze_legitimate_constant_p): New function.
10941 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10942
10943 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
10944 * config/mips/mips.c (mips_legitimate_constant_p): New function.
10945 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
10946 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10947 * config/mips/predicates.md: Update comments.
10948
10949 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
10950 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
10951 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10952 (mmix_legitimate_constant_p): Make static, return a bool, and take
10953 a mode argument.
10954 (mmix_print_operand_address): Update accordingly.
10955
10956 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
10957 Delete.
10958 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
10959 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
10960 static. Add a mode argument.
1a627b35
RS
10961 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10962
10963 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
10964
10965 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
10966 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10967 (pa_legitimate_constant_p): New function.
10968
10969 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
10970
10971 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
10972 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10973 (pdp11_legitimate_constant_p): New function.
10974
10975 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
10976 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10977 (rs6000_legitimate_constant_p): New function.
10978
10979 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
10980 (rx_legitimate_constant_p): ...this.
10981 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
10982 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
10983 (rx_legitimate_constant_p): ...this.
10984 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10985 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
10986
10987 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
10988 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
10989 * config/s390/s390.c (legitimate_constant_p): Rename to...
10990 (s390_legitimate_constant_p): ...this. Make static, return a bool,
10991 and add a mode argument.
10992 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10993
10994 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
10995
10996 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
10997 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10998 (sh_legitimate_constant_p): New function.
10999
11000 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11001 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11002 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11003 (legitimate_constant_p): Rename to...
11004 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11005 argument.
11006 (constant_address_p): Update accordingly.
11007
11008 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11009 argument and return a bool.
11010 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11011 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11012 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11013 (spu_rtx_costs): Update accordingly.
11014 * config/spu/predicates.md (vec_imm_operand): Likewise.
11015
11016 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11017
11018 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11019 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11020 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11021
11022 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11023 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11024 * config/vax/vax.c (legitimate_constant_p): Likewise.
11025
11026 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11027 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11028 (xtensa_legitimate_constant_p): New function.
11029
fbbf66e7
RS
110302011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11031
11032 * target.def (cannot_force_const_mem): Add a mode argument.
11033 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11034 * doc/tm.texi: Regenerate.
11035 * hooks.h (hook_bool_mode_rtx_false): Declare.
11036 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11037 (hook_bool_mode_const_rtx_true): Likewise.
11038 (hook_bool_mode_rtx_false): New function.
11039 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11040 to be non-VOID. Update call to cannot_force_const_mem.
11041 (find_reloads): Update accordingly.
11042 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11043 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11044 argument.
11045 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11046 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11047 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11048 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11049 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11050 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11051 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11052 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11053 (m68k_cannot_force_const_mem): ...this new function.
11054 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11055 argument.
11056 (mips_const_insns, mips_legitimize_const_move): Update calls.
11057 (mips_secondary_reload_class): Likewise.
11058 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11059 (pa_cannot_force_const_mem): ...this new function.
2894086e 11060 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
11061 (rs6000_cannot_force_const_mem): ...this new function.
11062 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11063 argument.
11064 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11065 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11066 to...
11067 (xtensa_cannot_force_const_mem): ...this new function.
11068
b861891b
NF
110692011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11070
11071 * config/mips/mips.c (mips16_build_function_stub): Call
11072 build_function_type_list instead of build_function_type.
11073 (mips16_build_call_stub): Likewise.
11074
34149ed5
NF
110752011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11076
11077 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11078 instead of build_function_type.
11079
12526412
NF
110802011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11081
11082 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11083 instead of build_function_type.
11084
3b84d61f
UB
110852011-04-20 Uros Bizjak <ubizjak@gmail.com>
11086
11087 PR target/48678
11088 * config/i386/i386.md (insv): Change operand 0 constraint to
11089 "register_operand". Change operand 1 and 2 constraint to
11090 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11091 * config/i386/sse.md (sse4_1_pinsrb): Export.
11092 (sse2_pinsrw): Ditto.
11093 (sse4_1_pinsrd): Ditto.
11094 (sse4_1_pinsrq): Ditto.
11095 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11096 * config/i386/i386.c (ix86_expand_pinsr): New.
11097
4a25752b
ER
110982011-04-20 Easwaran Raman <eraman@google.com>
11099
11100 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11101 containing union type only with -fstrict-aliasing.
11102
04695783
JM
111032011-04-20 Jim Meyering <meyering@redhat.com>
11104
11105 Remove useless if-before-free tests.
11106 * calls.c (expand_call, save_area): Likewise.
11107 * cfgcleanup.c (try_forward_edges): Likewise.
11108 * collect2.c (collect_execute): Likewise.
11109 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11110 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11111 * coverage.c (coverage_checksum_string): Likewise.
11112 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11113 * cselib.c (cselib_init): Likewise.
11114 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11115 (df_set_clean_cfg): Likewise.
11116 * function.c (free_after_compilation): Likewise.
11117 * gcc.c (do_spec_1, main): Likewise.
11118 * gcov.c (create_file_names): Likewise.
11119 * gensupport.c (identify_predicable_attribute): Likewise.
11120 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11121 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11122 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11123 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11124 * ipa-pure-const.c (local_pure_const): Likewise.
11125 * ipa-reference.c (propagate): Likewise.
11126 * ira-costs.c (free_ira_costs): Likewise.
11127 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11128 * matrix-reorg.c (mat_free): Likewise.
11129 * prefix.c (get_key_value): Likewise.
11130 * profile.c (compute_value_histograms): Likewise.
11131 * reload1.c (free_reg_equiv): Likewise.
11132 * sched-deps.c (free_deps): Likewise.
11133 * sel-sched-ir.c (fence_clear): Likewise.
11134 * sese.c (set_rename, if_region_set_false_region): Likewise.
11135 * tree-data-ref.c (free_rdg): Likewise.
11136 * tree-eh.c (lower_try_finally): Likewise.
11137 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11138 * tree-ssa-live.c (delete_var_map): Likewise.
11139 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11140 * tree-ssa-pre.c (phi_trans_add): Likewise.
11141
6788475a
JJ
111422011-04-20 Jakub Jelinek <jakub@redhat.com>
11143
11144 PR tree-optimization/48611
11145 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11146 beyond ERT_MUST_NOT_THROW region.
11147
0eda4033
CM
111482011-04-20 Catherine Moore <clm@codesourcery.com>
11149
11150 * config/mips/mips.opt (mfix-24k): New.
11151 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11152 * config/mips/mips.md (length): Increase by 4 for stores if
11153 fixing 24K errata.
11154 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11155 all noreorder if fixing 24K errata.
11156 * doc/invoke.texi: Document mfix-24k.
11157
01475747
CLT
111582011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11159
11160 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 11161 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 11162
bc2c1a60
AS
111632011-04-20 Andrew Stubbs <ams@codesourcery.com>
11164
11165 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11166 (const_ok_for_op): ... to here.
11167
583722ee
KT
111682011-04-20 Kai Tietz <ktietz@redhat.com>
11169
2894086e
UB
11170 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11171 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 11172
422c0989
AS
111732011-04-20 Andrew Stubbs <ams@codesourcery.com>
11174
11175 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11176
d7978bff
RG
111772011-04-20 Richard Guenther <rguenther@suse.de>
11178
11179 PR tree-optimization/47892
11180 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11181 are if-convertible.
11182
818412ba
EB
111832011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11184
11185 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11186
b501ce4e
TG
111872011-04-20 Tristan Gingold <gingold@adacore.com>
11188
11189 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11190
516edfdd
GJL
111912011-04-20 Georg-Johann Lay <avr@gjlay.de>
11192
11193 PR target/18145
11194
11195 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11196 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11197 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11198 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11199 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11200
11201 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11202 New prototype.
11203
11204 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11205 (avr_asm_named_section, avr_asm_output_aligned_common,
11206 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11207 New functions to update...
11208 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11209 (avr_asm_init_sections): Overwrite section callbacks for
11210 data_section, bss_section.
11211 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11212 from here to...
11213 (avr_file_end): ...here.
11214
dafc9511
RG
112152011-04-20 Richard Guenther <rguenther@suse.de>
11216
11217 PR middle-end/48695
11218 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 11219 objects and types here. Adjust for their offset before comparing.
dafc9511 11220
1da0876c
RS
112212011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11222
11223 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11224 statement per copy.
11225
25583c4f
RS
112262011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11227
11228 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11229 (GIMPLE_H): Include $(INTERNAL_FN_H).
11230 (OBJS-common): Add internal-fn.o.
11231 (internal-fn.o): New rule.
11232 * internal-fn.def: New file.
11233 * internal-fn.h: Likewise.
11234 * internal-fn.c: Likewise.
11235 * gimple.h: Include internal-fn.h.
11236 (GF_CALL_INTERNAL): New gf_mask.
11237 (gimple_statement_call): Put fntype into a union with a new
11238 internal_fn field.
11239 (gimple_build_call_internal): Declare.
11240 (gimple_build_call_internal_vec): Likewise.
11241 (gimple_call_same_target_p): Likewise.
11242 (gimple_call_internal_p): New function.
11243 (gimple_call_internal_fn): Likewise.
11244 (gimple_call_fntype): Return null for internal calls.
11245 (gimple_call_set_fntype): Assert that the function is not internal.
11246 (gimple_call_set_fn): Likewise.
11247 (gimple_call_set_fndecl): Likewise.
11248 (gimple_call_set_internal_fn): New function.
11249 (gimple_call_addr_fndecl): Handle null functions.
11250 (gimple_call_return_type): Likewise null types.
11251 * gimple.c (gimple_build_call_internal_1): New function.
11252 (gimple_build_call_internal): Likewise.
11253 (gimple_build_call_internal_vec): Likewise.
11254 (gimple_call_same_target_p): Likewise.
11255 (gimple_call_flags): Handle calls to internal functions.
11256 (gimple_call_fnspec): New function.
11257 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11258 (gimple_has_side_effects): Handle null functions.
11259 (gimple_rhs_has_side_effects): Likewise.
11260 (gimple_call_copy_skip_args): Handle calls to internal functions.
11261 * cfgexpand.c (expand_call_stmt): Likewise.
11262 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11263 * gimple-fold.c (gimple_fold_call): Handle null functions.
11264 (gimple_fold_stmt_to_constant_1): Don't fold
11265 calls to internal functions.
11266 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11267 functions.
11268 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11269 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11270 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11271 (do_warn_unused_result): Likewise.
11272 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11273 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11274 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11275 the target of a call.
11276 (initialize_hash_element): Update accordingly.
11277 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11278 (iterative_hash_hashable_expr): Handle calls to internal functions.
11279 (print_expr_hash_elt): Likewise.
11280 * tree-ssa-pre.c (can_value_number_call): Likewise.
11281 (eliminate): Handle null functions.
11282 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11283 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11284 (find_func_aliases): Likewise.
11285 * value-prof.c (gimple_ic_transform): Likewise.
11286 (gimple_indirect_call_to_profile): Likewise.
11287 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11288 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11289
1a3118e9
JH
112902011-04-19 Jan Hubicka <jh@suse.cz>
11291
11292 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
11293 * ipa-inline.c (inline_small_functions): Compute summaries first,
11294 populate heap later.
1a3118e9 11295
fee8b6da
JH
112962011-04-19 Jan Hubicka <jh@suse.cz>
11297
11298 * cgraph.h (save_inline_function_body): Remove.
11299 * ipa-inline-transform.c: New file, broke out of...
11300 * ipa-inline.c: ... this one; Update toplevel comment.
11301 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11302 make global.
11303 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11304 (cgraph_mark_inline_edge): Rename to inline_call; move to
11305 ipa-inline-transform.c.
11306 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11307 move to ipa-inline-transform.c
11308 (recursive_inlining, inline_small_functions, flatten_function,
11309 ipa_inline, inline_always_inline_functions,
11310 early_inline_small_functions): Update.
11311 (inline_transform): Move to ipa-inline-transform.c.
11312 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11313 Declare.
11314 * Makefile.in (ipa-inline-transform.o): New file.
11315 * cgraphunit.c (save_inline_function_body): Move to
11316 ipa-inline-transform.c
11317
f0679612
DD
113182011-04-19 DJ Delorie <dj@redhat.com>
11319
11320 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11321 registers if we already know there aren't any.
11322 (m32c_emit_epilogue): Don't emit a barrier here.
11323 (m32c_emit_eh_epilogue): Likewise.
11324 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11325 operands at expand time.
11326 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11327 int" wchar type.
11328 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11329 duplicates. Provide aliases instead.
11330 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11331 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11332 the compiler.
11333
32257ddc
AS
113342011-04-19 Anatoly Sokolov <aesok@post.ru>
11335
11336 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11337 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11338 (general_or_i64_p, sparc_register_move_cost): New function.
11339
60bea929
RO
113402011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11341
11342 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 11343 Add lynx, mipssde. Sort table.
60bea929 11344
444b3995 113452011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 11346
9d12f71a
EB
11347 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11348 not negative.
444b3995 11349
d708ce50
JJ
113502011-04-19 Jakub Jelinek <jakub@redhat.com>
11351
11352 PR target/48678
11353 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11354 is a SUBREG with non-MODE_INT mode inside of it.
11355
49c471e3
MJ
113562011-04-19 Martin Jambor <mjambor@suse.cz>
11357
11358 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11359 also according to actual contants.
11360 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11361 (gimple_fold_call): Use it.
11362 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11363
0004f992
MJ
113642011-04-19 Martin Jambor <mjambor@suse.cz>
11365
11366 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11367 non-pointer assignments.
11368
40591473
MJ
113692011-04-19 Martin Jambor <mjambor@suse.cz>
11370
11371 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11372 account anc_offset and otr_type from the indirect edge info.
11373 * ipa-prop.c (get_ancestor_addr_info): New function.
11374 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11375 get_ancestor_addr_info, call it.
11376 (ipa_note_param_call): Do not initialize information about polymorphic
11377 calls, return the indirect call graph edge. Remove the last
11378 parameter, adjust all callers.
11379 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11380 parameters. Initialize polymorphic information in the indirect edge.
11381
abe36b81
EB
113822011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11383
11384 PR lto/48148
11385 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11386 the types if they have different enumeration identifiers.
11387
e6416b30
JH
113882011-04-19 Jan Hubicka <jh@suse.cz>
11389
11390 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11391 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11392 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11393 (optimize_function_for_size_p) ... here.
11394
d39132ea
RG
113952011-04-19 Richard Guenther <rguenther@suse.de>
11396
11397 PR lto/48207
11398 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11399 langhook.
11400
ff7037dc
EB
114012011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11402
11403 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11404 if DECL_NO_INLINE_WARNING_P is set on the function.
11405
c1ee2892
BS
114062011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11407
11408 PR fortran/47976
11409 * reload1.c (inc_for_reload): Return void. All callers changed.
11410 (emit_input_reload_insns): Don't try to delete previous output
11411 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
11412
114132011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11414
11415 * gengtype.h: Updated copyright year.
11416 (struct input_file_st): Add inpisplugin field.
11417 (type_fileloc): New function.
11418 * gengtype.c
11419 (write_typed_struct_alloc_def): Add gcc_assert.
11420 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11421 (write_typed_alloc_defns): Don't output for plugin files.
11422 (input_file_by_name): Clear inpisplugin field.
11423 (main): Set inpisplugin field for plugin files.
11424
897e0a89
NP
114252011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11426
11427 * gengtype-state.c (string_eq): New.
11428 (read_state): Use string_eq instead of strcmp when creating the
11429 state_ident_tab.
11430
363ee90e
WG
114312011-04-19 Wei Guozhi <carrot@google.com>
11432
11433 PR target/47855
11434 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11435 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11436 linkage.
11437 * config/arm/constraints.md (Uu): New constraint.
11438 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11439
18a24fed
TG
114402011-04-19 Tristan Gingold <gingold@adacore.com>
11441
11442 * config.gcc (-*-*-*vms): Added.
11443 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11444 definitions moved.
11445 * config/vms/vms-ld.c: New file.
11446 * config/vms/vms-ar.c: New file.
11447 * config/vms/t-vmsnative: New file.
11448
1c13f168
XDL
114492011-04-18 Xinliang David Li <davidxl@google.com>
11450
11451 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11452
84825707
JJ
114532011-04-18 Jakub Jelinek <jakub@redhat.com>
11454
11455 PR middle-end/48661
11456 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11457 if TREE_TYPE (v) is non-NULL.
11458
11459 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11460 gimple_get_virt_mehtod_for_binfo.
11461 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11462 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11463 callers.
11464 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11465
7d4f8d02 114662011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
11467 Steve Ellcey <sje@cup.hp.com>
11468
7d4f8d02
EB
11469 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11470 use its mode as source mode if it isn't VOIDmode.
7254cb57 11471
474e8e70
DCR
114722011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11473
11474 * doc/passes.texi: Fill crossref nodes.
11475
cff41484
JM
114762011-04-18 Jim Meyering <meyering@redhat.com>
11477
7d4f8d02 11478 Fix doubled-word typos in comments and strings
cff41484
JM
11479 * config/alpha/vms-unwind.h: s/for for/for/
11480 * config/arm/unwind-arm.h: Likewise.
11481 * config/microblaze/microblaze.c: Likewise.
11482 * config/sh/constraints.md: s/in in/in/
11483 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11484
f60c2554
UB
114852011-04-18 Uros Bizjak <ubizjak@gmail.com>
11486
11487 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11488 (AVX_FLOAT_MODE_P): Ditto.
11489 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11490 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11491 (AVX_VEC_FLOAT_MODE_P): Ditto.
11492 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11493 (UNSPEC_MASKSTORE): Ditto.
11494 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11495 Merge from <sse>_movmsk<ssemodesuffix> and
11496 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11497 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11498 iterator.
11499 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11500 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11501 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11502
09a2806f
JH
115032011-04-18 Jan Hubicka <jh@suse.cz>
11504
8a8dccb2
JH
11505 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11506
09a2806f
JH
11507 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11508 (want_inline_function_called_once_p): Break out the logic from
11509 ipa_inline.
11510 (edge_badness): Ensure that profile is not misupdated.
11511 (lookup_recursive_calls): Prioritize by call frequencies.
11512 (inline_small_functions): Move program size estimates here;
11513 actually process whole queue even when unit growth has been
11514 met. (to properly compute inline_failed reasons and for the
f60c2554 11515 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
11516 (ipa_inline): Remove unit summary code; first inline hot calls
11517 of functions called once, cold calls next.
11518 (order, nnodes): Remove unused variables.
11519 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11520 (GTFILES): Remove ipa-inline.c
11521 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11522
3eea52ef
EB
115232011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11524
11525 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11526
229a1c59 115272011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 11528 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
11529
11530 * arm.c (neon_builtin_type_bits): Remove.
11531 (typedef enum neon_builtin_mode): New.
11532 (T_MAX): Don't define.
11533 (typedef enum neon_builtin_datum): Remove bits, codes[],
11534 num_vars and base_fcode. Add mode, code and fcode.
11535 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11536 VAR10): Change accordingly.
11537 (neon_builtin_data[]): Change accordingly
11538 (arm_init_neon_builtins): Change accordingly.
11539 (neon_builtin_compare): Remove.
11540 (locate_neon_builtin_icode): Remove.
11541 (arm_expand_neon_builtin): Change accordingly.
11542
11543 * arm.h (enum arm_builtins): Move to ...
11544 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11545
11546 * arm.c (arm_builtin_decl): Declare.
11547 (TARGET_BUILTIN_DECL): Define.
11548 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11549 (arm_builtin_decls[]): New.
11550 (arm_init_neon_builtins): Store builtin declarations in
11551 arm_builtin_decls[].
11552 (arm_init_tls_builtins): Likewise.
11553 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11554 (arm_builtin_decl): New.
11555
75e802cc
RG
115562011-04-18 Richard Guenther <rguenther@suse.de>
11557
11558 * tree.c (upper_bound_in_type): Build properly canonicalized
11559 INTEGER_CSTs.
11560 (lower_bound_in_type): Likewise.
11561
3b45a007
RG
115622011-04-18 Richard Guenther <rguenther@suse.de>
11563
11564 * gimple.h (gimple_call_addr_fndecl): New function.
11565 (gimple_call_fndecl): Use it.
11566 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11567 for direct calls.
11568 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11569 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11570
d25a79ea
RG
115712011-04-18 Richard Guenther <rguenther@suse.de>
11572
11573 PR middle-end/48650
11574 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11575
7d5fc814
EB
115762011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11577
11578 PR lto/48492
11579 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11580 DECL_IN_CONSTANT_POOL without RTL.
11581
7e7cfcf6
UW
115822011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11583 Ira Rosen <ira.rosen@linaro.org>
11584
11585 PR target/48252
11586 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11587 to match neon_vzip/vuzp/vtrn_internal.
11588 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11589 outputs explicitly dependent on both inputs.
11590 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11591
49eab32e
JJ
115922011-04-18 Jakub Jelinek <jakub@redhat.com>
11593
11594 PR tree-optimization/48616
11595 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11596 whether the shift is by scalar or vector based on whether all SLP
11597 scalar stmts have the same rhs.
11598
e54170f4
CLT
115992011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11600
11601 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11602 memory operands.
11603
b14ee6c9
RS
116042011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11605
269e0e18 11606 PR target/43700
b14ee6c9
RS
11607 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11608 registers.
11609
10158cd3
JH
116102011-04-17 Jan Hubicka <jh@suse.cz>
11611
11612 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
11613 * cgrpahunit.c (cgraph_finalize_function): Do not set
11614 finalized_by_frontend.
10158cd3
JH
11615 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11616 finalized_by_frontend.
11617
2e9bb6ba
JH
116182011-04-17 Jan Hubicka <jh@suse.cz>
11619
11620 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11621 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11622 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
11623 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11624 method.
2e9bb6ba
JH
11625 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11626 gimple-fold.c
11627 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11628
beb628e1
EB
116292011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11630
11631 PR lto/48538
11632 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11633 is non-null before accessing it.
11634 (input_cgraph): Remove trailing spaces.
11635
3e2fdd24
RE
116362011-04-17 Revital Eres <revital.eres@linaro.org>
11637
11638 * params.def (sms-min-sc): New param flag.
11639 * modulo-sched.c (sms_schedule): Use it.
11640 * doc/invoke.texi (sms-min-sc): Document it.
11641
4c0f7679
JH
116422011-04-17 Jan Hubicka <jh@suse.cz>
11643
11644 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11645 present, also set gimple_call_set_cannot_inline.
11646 * ipa-inline.c: Update toplevel comment.
11647 (MAX_TIME): Remove.
11648 (cgraph_clone_inlined_nodes): Fix linebreaks.
11649 (cgraph_check_inline_limits): Restructure to ...
11650 (caller_growth_limits): ... this one; be more tolerant
11651 on growth in nested inline chains; add explanatory comment;
11652 fix stack accounting thinko introduced by previous patch.
11653 (cgraph_default_inline_p): Remove.
11654 (report_inline_failed_reason): New function.
11655 (can_inline_edge_p): New function.
11656 (can_early_inline_edge_p): New function.
11657 (leaf_node_p): Move upwards in file.
11658 (want_early_inline_function_p): New function.
11659 (want_inline_small_function_p): New function.
11660 (want_inline_self_recursive_call_p): New function.
11661 (cgraph_edge_badness): Rename to ...
11662 (edge_badness) ... this one; fix linebreaks.
11663 (update_edge_key): Update call of edge_baddness; add
11664 detailed dump about queue updates.
11665 (update_caller_keys): Use can_inline_edge_p and
11666 want_inline_small_function_p.
11667 (cgraph_decide_recursive_inlining): Rename to...
11668 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
11669 want_inline_self_recursive_call_p; simplify and remove no longer
11670 valid FIXME.
4c0f7679
JH
11671 (cgraph_set_inline_failed): Remove.
11672 (add_new_edges_to_heap): Use can_inline_edge_p and
11673 want_inline_small_function_p.
11674 (cgraph_decide_inlining_of_small_functions): Rename to ...
11675 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
11676 can/want predicates; cleanup debug ouput; work edges till fibheap
11677 is exhausted and do not stop once unit growth is reached; remove
11678 later loop processing remaining edges.
4c0f7679
JH
11679 (cgraph_flatten): Rename to ...
11680 (flatten_function): ... this one; use can_inline_edge_p
11681 and can_early_inline_edge_p predicates.
11682 (cgraph_decide_inlining): Rename to ...
11683 (ipa_inline): ... this one; remove unreachable nodes before
11684 inlining functions called once; simplify the pass.
11685 (cgraph_perform_always_inlining): Rename to ...
11686 (inline_always_inline_functions): ... this one; use
f60c2554 11687 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
11688 (cgraph_decide_inlining_incrementally): Rename to ...
11689 (early_inline_small_functions): ... this one; simplify
11690 using new predicates; cleanup; make dumps prettier.
11691 (cgraph_early_inlining): Rename to ...
11692 (early_inliner): newer inline regular functions into always-inlines;
11693 fix updating of call stmt summaries.
11694 (pass_early_inline): Update for new names.
11695 (inline_transform): Fix formating.
11696 (gate_cgraph_decide_inlining): Rename to ...
11697 (pass_ipa_inline): ... this one.
11698 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11699 * ipa-inline-analysis.c (dump_inline_summary): Update.
11700 (compute_inline_parameters): Do not compute disregard_inline_limits;
11701 look for mismatching arguments.
11702 (estimate_growth): Fix handlig of non-trivial self recursion.
11703 (inline_read_summary): Do not read info->disregard_inline_limits.
11704 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
11705 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11706 and move all checks into can_inline_edge_p predicate; re-enable code
11707 comparing optimization levels.
4c0f7679
JH
11708 (expand_call_inline): Do not test inline_forbidden_into_p.
11709 * Makefile.in (ipa-inline.o): Update arguments.
11710
54333b7c
RE
117112011-04-17 Revital Eres <revital.eres@linaro.org>
11712
11713 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11714
42c2bf92
RE
117152011-04-17 Revital Eres <revital.eres@linaro.org>
11716
11717 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11718
b183e9e0
MM
117192011-04-17 Michael Matz <matz@suse.de>
11720
11721 PR tree-optimization/48622
11722 PR lto/48645
11723 * ipa-inline-analysis.c (inline_read_summary): Read size/time
11724 in same order as they're written.
11725
b8a17fa2
JDA
117262011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11727
11728 * config/pa/predicates.md: Reorganize and simplify predicates.
11729 Eliminate duplicate code checks.
11730 (arith_operand): Rename to arith14_operand
11731 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11732 * config/pa/pa.md: Use renamed operands.
11733 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11734 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11735 arith11_operand, adddi3_operand, indexed_memory_operand,
11736 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11737 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11738 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11739 move_dest_operand, move_src_operand, prefetch_cc_operand,
11740 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
11741 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
11742 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
11743 div_operand, int5_operand, movb_comparison_operator,
11744 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
11745 arith_double_operand, ireg_operand, lhs_lshift_operand,
11746 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
11747 integer_store_memory_operand): Likewise.
11748 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
11749 (integer_store_memory_operand, read_only_operand,
11750 function_label_operand, borx_reg_operand,
11751 non_hard_reg_operand): Likewise.
11752 (eq_neq_comparison_operator): Delete unused operator.
11753 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
11754 function_label_operand.
11755 (emit_move_sequence): Likewise.
11756
8dfb9f16
UB
117572011-04-16 Uros Bizjak <ubizjak@gmail.com>
11758
11759 * config/i386/sse.md (sseunpackmode): New mode attribute.
11760 (ssepackmode): Ditto.
11761 (vec_pack_trunc_<mode>): Macroize expander from
11762 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
11763 (vec_unpacks_lo_<mode>): Macroize expander from
11764 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11765 (vec_unpacks_hi_<mode>): Macroize expander from
11766 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11767 (vec_unpacku_lo_<mode>): Macroize expander from
11768 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11769 (vec_unpacku_hi_<mode>): Macroize expander from
11770 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11771 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
11772 ix86_expand_sse4_unpack.
11773 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
11774
e7f23018
JH
117752011-04-16 Jan Hubicka <jh@suse.cz>
11776
11777 * cgraphbuild.c: Include ipa-inline.h.
11778 (reset_inline_failed): Use initialize_inline_failed.
11779 * cgraph.c: Include ipa-inline.h.
11780 (cgraph_create_node_1): Do not initialize estimated_growth.
11781 (initialize_inline_failed): More to ipa-inline-analysis.c
11782 (dump_cgraph_node): Do not dump inline flags.
11783 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
11784 and disregard_inline_limits flags.
11785 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
11786 time, size, estimated_growth.
8dfb9f16
UB
11787 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
11788 Update.
e7f23018
JH
11789 * cgraphunit.c (cgraph_decide_is_function_needed): Use
11790 DECL_DISREGARD_INLINE_LIMITS.
11791 (cgraph_analyze_function): Do not initialize
11792 node->local.disregard_inline_limits.
11793 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11794 inlinable, versionable and disregard_inline_limits.
11795 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
11796 cgraph_check_inline_limits, cgraph_default_inline_p,
11797 cgraph_edge_badness, update_caller_keys, update_callee_keys,
11798 add_new_edges_to_heap): Update.
11799 (cgraph_decide_inlining_of_small_function): Update; set
11800 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
11801 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
11802 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
11803 * ipa-inline.h (inline_summary): Add inlinable, versionable,
11804 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
11805 time, size and estimated_growth parameters.
e7f23018
JH
11806 (estimate_edge_growth): Update.
11807 (initialize_inline_failed): Declare.
11808 * ipa-split.c: Include ipa-inline.h
11809 (execute_split_functions): Update.
11810 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
11811 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
11812 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
11813 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
11814 estimated_growth to INT_MIN.
11815 (inline_node_duplication_hook): Likewise.
11816 (dump_inline_summary): Dump new fields.
11817 (compute_inline_parameters): Update.
11818 (estimate_edge_time, estimate_time_after_inlining,
11819 estimate_size_after_inlining, estimate_growth, inline_read_summary,
11820 inline_write_summary):
11821 (initialize_inline_failed): Move here from cgraph.c.
11822 * tree-sra.c: Include ipa-inline.h.
11823 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
11824 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
11825 ipa-inline.h.
e7f23018 11826
e81b8564
UB
118272011-04-16 Uros Bizjak <ubizjak@gmail.com>
11828
11829 * config/i386/sse.md (V16): New mode iterator.
11830 (VI1, VI8): Ditto.
11831 (AVXMODEQI, AVXMODEDI): Remove.
11832 (sse2, sse3): New mode attribute.
11833 (mov<mode>): Use V16 mode iterator.
11834 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
11835 (push<mode>1): Use V16 mode iterator.
11836 (movmisalign<mode>): Ditto.
11837 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11838 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
11839 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11840 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
11841 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
11842 avx_movdqu<avxmodesuffix>.
11843 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
11844 *avx_movdqu<avxmodesuffix>.
11845 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
11846 avx_lddqu<avxmodesuffix>.
11847 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
11848 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
11849 avx_movnt<AVXMODEDI:mode>.
11850 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
11851 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
11852
4743d438
BS
118532011-04-16 Bernd Schmidt <bernds@codesourcery.com>
11854
11855 PR target/48629
11856 * haifa-sched.c (prune_ready_list, schedule_block): Use
11857 sched_pressure_p rather than flag_sched_pressure.
11858
748f7574 118592011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
11860
11861 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11862 cgraph_get_node instead of cgraph_get_create_node.
11863
2ba172e0
JJ
118642011-04-15 Jakub Jelinek <jakub@redhat.com>
11865
11866 * cfgexpand.c (expand_debug_expr): Use
11867 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
11868
63d2a353
MM
118692011-04-15 Michael Matz <matz@suse.de>
11870
11871 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
11872 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
11873 * function.c (gimplify_parameters): Ditto.
11874 * gimplify.c (gimplify_vla_decl): Ditto.
11875
11876 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
11877 (gimple_call_set_alloca_for_var): New inline function.
11878 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
11879 * gimple.c (gimple_build_call_from_tree): Remember
11880 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
11881 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
11882
11883 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
11884 calls if they were for VLA objects.
11885
dee74c34
MJ
118862011-04-15 Martin Jambor <mjambor@suse.cz>
11887
11888 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
11889 of ADR_EXPRs.
11890
8e5837bc
MJ
118912011-04-15 Martin Jambor <mjambor@suse.cz>
11892
11893 PR middle-end/48601
11894 * tree-emutls.c (lower_emutls_function_body): Call
11895 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
11896 result is non-NULL.
11897
0dc33c3c
NP
118982011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11899
11900 * c-decl.c (detect_field_duplicates): Call
11901 objc_detect_field_duplicates instead of objc_get_interface_ivars.
11902
edcdea5b
NF
119032011-04-15 Nathan Froyd <froydnj@codesourcery.com>
11904
11905 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
11906 * gimple.c (gimple_asm_clobbers_memory_p): Define.
11907 * ipa-pure-const.c (check_stmt): Call it.
11908 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
11909
8456558d
RG
119102011-04-15 Richard Guenther <rguenther@suse.de>
11911
11912 PR tree-optimization/48290
11913 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
11914 Properly decide inhibiting propagation based on the valueized
11915 operand. Do loop-closed SSA form preserving here ...
11916 (init_copy_prop): ... not here.
11917
266446be
L
119182011-04-15 H.J. Lu <hongjiu.lu@intel.com>
11919
11920 PR target/48612
11921 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
11922 (*ieee_smax<mode>3): Likewise.
11923
17465c6e
AK
119242011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11925
11926 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
11927 Replace match_operand with match_dup for the third operand in
11928 these expanders.
11929
bce204e5
MK
119302011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11931
11932 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
11933 to track processing of conditionals. Update all callers.
11934 (try_combine, simplify_if_then_else): Update.
11935
3162fdf4
MK
119362011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11937
11938 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
11939 -fsched-pressure.
11940
79002a57 119412011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 11942
79002a57
GJL
11943 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
11944 instead of match_operand for operand 3.
11945
4fd3a105
RS
119462011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
11947
11948 * recog.h (insn_operand_data): Add an "allows_mem" field.
11949 * genoutput.c (output_operand_data): Initialize it.
11950 * optabs.c (maybe_legitimize_operand_same_code): New function.
11951 (maybe_legitimize_operand): Use it when matching the original
11952 op->value.
11953
ad19c4be
EB
119542011-04-15 Eric Botcazou <ebotcazou@adacore.com>
11955
11956 * gimplify.c: Fix issues in comments throughout.
11957 (voidify_wrapper_expr): Fix long line.
11958 (build_stack_save_restore): Likewise.
11959 (gimplify_loop_expr): Likewise.
11960 (gimplify_compound_lval): Likewise.
11961 (gimplify_init_ctor_eval): Likewise.
11962 (gimplify_modify_expr_rhs): Likewise.
11963 (omp_notice_threadprivate_variable): Likewise.
11964
b25aa0e8 119652011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 11966
b25aa0e8
EB
11967 * cfgexpand.c (expand_call_stmt): Convert the function type to the
11968 original one if this is not a builtin function.
e7925582 11969
09db7afe
JJ
119702011-04-14 Jakub Jelinek <jakub@redhat.com>
11971
11972 PR target/48605
11973 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
11974 offset it as needed based on top 2 bits in operands[3], change
11975 MEM mode to SFmode and mask those 2 bits away from operands[3].
11976
c59633d9
NP
119772011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11978
11979 * c-parser.c (c_parser_objc_protocol_definition): Updated for
11980 change from objc_declare_protocols() to objc_declare_protocol().
11981
5e60198b
UB
119822011-04-14 Uros Bizjak <ubizjak@gmail.com>
11983
11984 * config/i386/sse.md (sse4_1): New mode attribute.
11985 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
11986 avx_blend<ssemodesuffix><avxmodesuffix> and
11987 sse4_1_blend<ssemodesuffix> using VF mode iterator.
11988 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
11989 avx_blendv<ssemodesuffix><avxmodesuffix> and
11990 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
11991 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
11992 avx_dp<ssemodesuffix><avxmodesuffix> and
11993 sse4_1_dp<ssemodesuffix> using VF mode iterator.
11994 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
11995 (sse4_1_packusdw): Merge with *avx_packusdw.
11996 (sse4_1_pblendvb): Merge with *avx_pblendvb.
11997 (sse4_1_pblendw): Merge with *avx_pblendw.
11998 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
11999 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12000 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12001 VF mode iterator.
12002 (sse4_1_round<ssescalarmodesuffix>): Merge with
12003 *avx_round<ssescalarmodesuffix>.
12004 (aesenc): Merge with *avx_aesenc.
12005 (aesenclast): Merge with *avx_aesenclast.
12006 (aesdec): Merge with *avx_aesdec.
12007 (aesdeclast): Merge with *avx_aesdeclast.
12008 (pclmulqdq): Merge with *pclmulqdq.
12009 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12010 New predicate.
12011 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12012
6f197850
L
120132011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12014
12015 PR middle-end/48608
12016 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12017 (align_local_variable): This. Update DECL_ALIGN.
12018 (add_stack_var): Updated.
12019 (expand_one_stack_var): Likewise.
12020
4a5ba3ed
RG
120212011-04-14 Richard Guenther <rguenther@suse.de>
12022
12023 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12024 Remove.
12025 (dse_initialize_block_local_data, dse_leave_block,
12026 record_voperand_set, get_stmt_uid): Likewise.
12027 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12028 (dse_optimize_stmt): Remove voperand set handling code.
12029 Simplify and improve to handle any kind of killing stmt.
12030 (dse_record_phi): Remove.
12031 (dse_enter_block): Simplify.
12032 (tree_ssa_dse): Likewise.
12033 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12034
10a5dd5d
JH
120352011-04-14 Jan Hubicka <jh@suse.cz>
12036
12037 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12038 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12039 (cgraph_local_info): Remove inline_summary.
12040 * ipa-cp.c: Include ipa-inline.h.
12041 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12042 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12043 accesor.
12044 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12045 (input_overwrite_node): Do not set inline summary.
12046 (input_node): Do not stream inline summary.
12047 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12048 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12049 growth; we do not have inline parameters computed for that anyway.
12050 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12051 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12052 (inline_summary_t): New type and VECtor.
12053 (debug_inline_summary, dump_inline_summaries): Declare.
12054 (inline_summary): Use VOCtor.
12055 (estimate_edge_growth): Kill hack computing call stmt size directly.
12056 * lto-section-in.c (lto_section_name): Add inline section.
12057 * ipa-inline-analysis.c: Include lto-streamer.h
12058 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12059 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12060 (inline_summary_vec): Define.
12061 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12062 dump_inline_summaries): New functions.
5e60198b
UB
12063 (estimate_function_body_sizes): Properly compute size/time of outgoing
12064 calls.
12065 (compute_inline_parameters): Alloc inline_summary; do not compute
12066 size/time of incomming calls.
10a5dd5d
JH
12067 (estimate_edge_time): Avoid missing time summary hack.
12068 (inline_read_summary): Read inline summary info.
12069 (inline_write_summary): Write inline summary info.
12070 (inline_free_summary): Free all hooks and inline summary vector.
12071 * lto-streamer.h: Add LTO_section_inline_summary section.
12072 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12073 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12074
b602d918
RS
120752011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12076
12077 * tree-vectorizer.h (vect_strided_store_supported): Add a
12078 HOST_WIDE_INT argument.
12079 (vect_strided_load_supported): Likewise.
12080 (vect_permute_store_chain): Return void.
12081 (vect_transform_strided_load): Likewise.
12082 (vect_permute_load_chain): Delete.
12083 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12084 count argument. Check that the count is a power of two.
12085 (vect_strided_load_supported): Likewise.
12086 (vect_permute_store_chain): Return void. Update after above changes.
12087 Assert that the access is supported.
12088 (vect_permute_load_chain): Likewise.
12089 (vect_transform_strided_load): Return void.
12090 * tree-vect-stmts.c (vectorizable_store): Update calls after
12091 above interface changes.
12092 (vectorizable_load): Likewise.
12093 (vect_analyze_stmt): Don't check for strided powers of two here.
12094
ab4472fa
RG
120952011-04-14 Richard Guenther <rguenther@suse.de>
12096
12097 PR tree-optimization/48590
12098 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12099 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12100 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12101 BUILT_IN_STACK_SAVE.
12102 * tree-ssa-dce.c (propagate_necessity): Handle
12103 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12104
32dabdaf
NP
121052011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12106
12107 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12108 objc_declare_class.
12109
daade206
RG
121102011-04-14 Richard Guenther <rguenther@suse.de>
12111
12112 * tree.h (get_object_alignment_1): Declare.
12113 * builtins.c (get_object_alignment_1): Split out worker from ...
12114 (get_object_alignment): ... here.
12115 * fold-const.c (get_pointer_modulus_and_residue): Use
12116 get_object_alignment_1.
12117
920e8172
RS
121182011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12119
12120 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12121 type parameter.
12122 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12123 parameter. Generalise code to handle arrays as well as vectors.
12124 (vect_setup_realignment): Update accordingly.
12125 * tree-vect-stmts.c (vectorizable_store): Likewise.
12126 (vectorizable_load): Likewise.
12127
5ce1ee7f
RS
121282011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12129
12130 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12131 within the per-copy loop.
12132
6438fe33 121332011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
12134
12135 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12136 in the dump file.
12137
6438fe33 121382011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
12139
12140 * doc/options.texi (Negative): Explicitly mention that the
12141 Negative chain must be circular.
12142
61e46a7d
NF
121432011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12144
12145 * function.h (block_chainon): Declare.
12146 * function.c (block_chainon): Define.
12147
43ea6502 121482011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 12149 Eric Weddington <eric.weddington@atmel.com>
748f7574 12150 Georg-Johann Lay <avr@gjlay.de>
5e60198b 12151
f60c2554 12152 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
12153 New Includes
12154 (avr_init_builtins, avr_expand_builtin,
12155 avr_expand_delay_cycles, avr_expand_unop_builtin,
12156 avr_expand_binop_builtin ): New functions.
12157 (avr_builtin_id): New enum
12158 (struct avr_builtin_description): New struct
12159 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12160 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 12161
43ea6502 12162 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 12163 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
12164 UNSPECV_DELAY_CYCLES): new enumeration values
12165 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12166 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12167 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12168 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12169 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12170 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12171 "fmulsu"): New insns
5e60198b 12172
43ea6502
AS
12173 * config/avr/avr-c.c: fix line endings
12174 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12175 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12176 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12177 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12178 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 12179
43ea6502
AS
12180 * doc/extend.texi (AVR Built-in Functions): New node
12181 (Target Builtins): Add documentation of AVR
12182 built-in functions.
12183
8a9b55f3
GJL
121842011-04-14 Georg-Johann Lay <avr@gjlay.de>
12185
12186 PR target/44643
12187 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12188 alone. Error if non-const data has attribute progmem.
12189
94bd1825
NF
121902011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12191
12192 * tree.h (struct tree_constructor): Include tree_typed instead of
12193 tree_common.
12194 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12195 TS_TYPED instead of TS_COMMON.
12196
5e60198b 121972011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
12198
12199 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12200 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12201 (sse2_psadbw): Merge with *avx_psadbw.
12202 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12203 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12204 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12205 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12206 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12207 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12208 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12209 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12210 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12211 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12212 (ssse3_palignrti): Merge with *avx_palignrti.
12213
4b1a4694
NF
122142011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12215
12216 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12217 * tree-ssanames.c (fini_ssanames): VEC_free it.
12218 (make_ssa_name_fn): Update for VECness of free_ssanames.
12219 (release_ssa_name, release_dead_ssa_names): Likewise.
12220 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12221 tree_common.
12222 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12223 TS_TYPED instead of TS_COMMON.
12224
4da3b811
NF
122252011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12226
12227 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12228 statistics_counter_event.
12229 * tree-ssa-copyrename.c (stats): Define.
12230 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12231 statistics_counter_event.
12232 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12233 (bswap_stats, widen_mul_stats): Define.
12234 (insert_reciprocals): Increment rdivs_inserted.
12235 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12236 rfuncs_inserted. Add calls to statistics_counter_event.
12237 (execute_cse_sincos_1): Increment inserted.
12238 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12239 statistics_counter_event.
12240 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12241 of bswap_stats. Add calls to statistics_counter_event.
12242 (convert_mult_to_widen): Increment widen_mults_inserted.
12243 (convert_plusminus_to_widen): Increment maccs_inserted.
12244 (convert_mult_to_fma): Increment fmas_inserted.
12245 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12246 calls to statistics_counter_event.
12247
89fa552a
VM
122482011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12249
12250 PR rtl-optimization/48455
12251 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12252 `temp_costs->mem_cost'.
12253
03dfc36d
JH
122542011-04-13 Jan Hubicka <jh@suse.cz>
12255
12256 * ipa-inline.h: New file.
12257 * ipa-inline-analysis.c: New file. Broken out of ...
12258 * ipa-inline.c: ... this file; update toplevel comment;
12259 include ipa-inline.h
12260 (inline_summary): Move to ipa-inline.h
12261 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12262 ipa-inline-analysis.c.
7d4f8d02
EB
12263 (cgraph_estimate_time_after_inlining): Rename to
12264 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
12265 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12266 to estimate_edge_growth.
12267 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12268 rename to estimate_size_after_inlining.
12269 (cgraph_mark_inline_edge): Update for new naming convention.
12270 (cgraph_check_inline_limits): Likewise.
12271 (cgraph_edge_badness): Likewise.
12272 (cgraph_decide_recursive_inlining): Likewise.
12273 (cgraph_decide_inlining_of_small_functions): Likewise.
12274 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
12275 (cgraph_estimate_growth): Rename to estimate_growth; move to
12276 ipa-inline-analysis.c.
03dfc36d
JH
12277 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12278 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12279 (compute_inline_parameters): Likewise.
12280 (compute_inline_parameters_for_current): Likewise.
12281 (pass_inline_parameters): Likewise.
12282 (inline_indirect_intraprocedural_analysis): Likewise.
12283 (analyze_function): Rename to inline_analyze_function; likewise.
12284 (add_new_function): Move to ipa-inline-analysis.c.
12285 (inline_generate_summary): Likewise.
12286 (inline_read_summary): Likewise.
12287 (inline_write_summary): Likewise.
12288 * Makefile.in (ipa-inline-analysis.c): New file.
12289
7673c962
RO
122902011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12291
12292 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12293 * configure: Regenerate.
12294
9698252f
NF
122952011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12296
12297 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12298 instead of tree_common.
12299 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12300 Likewise.
12301 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12302 TS_TYPED rather than TS_COMMON.
12303 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12304
3a7bfdd5
GJL
123052011-04-01 Georg-Johann Lay <avr@gjlay.de>
12306
12307 PR target/45263
86d83530
GJL
12308 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12309 r20 around calls of __tablejump_elpm__
3a7bfdd5 12310
20790697
JJ
123112011-04-13 Jakub Jelinek <jakub@redhat.com>
12312
12313 PR middle-end/48591
12314 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12315 NULL.
12316 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12317
094d7661
BS
123182011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12319
12320 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12321 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12322 (cfi_vec): New typedef.
12323 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12324 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12325 (cie_cfi_vec): New static variable.
12326 (cie_cfi_head): Delete.
12327 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12328 declaration changed. Use vector rather than list operations.
12329 (new_cfi): Don't initialize the dw_cfi_next field.
12330 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12331 rather than list operations.
12332 (lookup_cfa): Use vector rather than list operations.
12333 (output_cfis): New argument upto. Accept a cfi_vec rather than
12334 a dw_cfi_ref list head as argument. All callers changed.
12335 Iterate over the vector using upto as a maximum index.
12336 (output_all_cfis): New static function.
12337 (output_fde): Use vector rather than list operations. Use the
12338 new upto argument for output_cfis rather than manipulating a
12339 list.
12340 (dwarf2out_begin_prologue): Change initializations to match
12341 new struct members.
12342 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12343 from the vector length rather than searching for the end of a list.
12344 Use output_all_cfis.
12345 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12346
673a5740
NC
123472011-04-13 Nick Clifton <nickc@redhat.com>
12348
12349 * config/rx/rx.md (movmemsi): Do not use this pattern when
12350 volatile pointers are involved.
12351
1ee8b298
UB
123522011-04-13 Uros Bizjak <ubizjak@gmail.com>
12353
12354 * config/i386/sse.md (pinsrbits): Remove.
12355 (sse2_packsswb): Merge with *avx_packsswb.
12356 (sse2_packssdw): Merge with *avx_packssdw.
12357 (sse2_packuswb): Merge with *avx_packuswb.
12358 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12359 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12360 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12361 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12362 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12363 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12364 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12365 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12366 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12367 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12368 (sse2_loadld): Merge with *avx_loadld.
12369 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12370 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12371 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12372 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12373 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12374
81f653d6
NF
123752011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12376
12377 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12378 calling TREE_CHAIN.
12379 * print-tree.c (print_node): Likewise.
12380 * tree-inline.c (copy_tree_r): Likewise.
12381 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12382 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12383 instead of TS_COMMON.
12384 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12385 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12386 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12387 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12388 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12389 ...and these...
12390 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12391 * tree.h: ...here.
12392 (TREE_CHAIN): Check for a TS_COMMON structure.
12393 (TREE_TYPE): Check for a TS_TYPED structure.
12394
748f7574 123952011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
12396
12397 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12398 cgraph_get_create_node instead of cgraph_node.
12399
eb345401
NP
124002011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12401
12402 * c-parser.c (c_parser_initelt): Updated call to
12403 objc_build_message_expr.
12404 (c_parser_postfix_expression): Likewise.
12405
a6c46762
KT
124062011-04-12 Kai Tietz <ktietz@redhat.com>
12407
12408 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12409 MASK_MS_BITFIELD_LAYOUT bit.
12410
b4ccfed9
JJ
124112011-04-12 Jakub Jelinek <jakub@redhat.com>
12412
12413 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12414 assert it is always true.
12415 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12416 moves.
12417
0d8a2528
NP
124182011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12419
12420 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12421 compiling Objective-C to be more efficient.
12422
06bd234a
AF
124232011-04-12 Axel Freyn <axel-freyn@gmx.de>
12424
12425 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12426 argv_copied.
12427
28569ac3
RS
124282011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12429
12430 * recog.h, genoutput.c, optabs.c: Revert last patch.
12431
ae59e00d
RR
124322011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12433
81b1e7eb
UB
12434 PR target/48090
12435 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 12436
cff1b7e0
RS
124372011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12438
12439 * recog.h (insn_operand_data): Add an "allows_mem" field.
12440 * genoutput.c (output_operand_data): Initialize it.
12441 * optabs.c (maybe_legitimize_operand_same_code): New function.
12442 (maybe_legitimize_operand): Use it when matching the original
12443 op->value.
12444
77059241
RS
124452011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12446
12447 * genpreds.c (process_define_predicate): Move most processing
12448 to gensupport.c. Continue to validate the expression.
12449 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12450 (process_define_predicate): Move processing to gensupport.c.
12451 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12452 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12453 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12454 argument.
12455 (valid_predicate_name_p): New function, split out from old
12456 genpreds.c:process_define_predicate.
12457 (process_define_predicate): New function, combining code from
12458 old genpreds.c and genrecog.c functions.
12459 (process_rtx): Call it for DEFINE_PREDICATE and
12460 DEFINE_SPECIAL_PREDICATE.
12461
6308e208
RS
124622011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12463
12464 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12465 size of a '%A' memory reference.
12466 (T_DREG, T_QREG): New neon_builtin_type_bits.
12467 (arm_init_neon_builtins): Assert that the load and store operands
12468 are neon_struct_operands.
12469 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12470 (NEON_ARG_MEMORY): New builtin_arg.
12471 (neon_dereference_pointer): New function.
12472 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12473 Handle NEON_ARG_MEMORY.
12474 (arm_expand_neon_builtin): Update after above interface changes.
12475 Use NEON_ARG_MEMORY for loads and stores.
12476 * config/arm/predicates.md (neon_struct_operand): New predicate.
12477 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12478 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12479 (V_four_elem): Tweak formatting.
12480 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12481 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12482 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12483 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12484 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12485 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12486 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12487 Use %A in the output template.
12488 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12489 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12490 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12491 the width of the memory access. Remove post-increment.
12492 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12493
e5db8f2f
NC
124942011-04-12 Nick Clifton <nickc@redhat.com>
12495
12496 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12497 instruction for interrupt handlers if the target is the basic V850
12498 architecture.
12499 (expand_epilogue): Likewise.
12500
74f091d6
JJ
125012011-04-12 Jakub Jelinek <jakub@redhat.com>
12502
12503 PR rtl-optimization/48549
12504 * combine.c (propagate_for_debug): Also stop after BB_END of
12505 this_basic_block. Process LAST and just stop processing after it.
12506 (combine_instructions): If last_combined_insn has been deleted,
12507 set last_combined_insn to its PREV_INSN.
12508
f20ca725
RG
125092011-04-12 Richard Guenther <rguenther@suse.de>
12510
12511 PR tree-optimization/46076
12512 * gimple.h (struct gimple_statement_call): Add fntype field.
12513 (gimple_call_fntype): Adjust.
12514 (gimple_call_set_fntype): New function.
12515 * gimple.c (gimple_build_call_1): Set the call function type.
12516 * gimplify.c (gimplify_call_expr): Preserve the function
12517 type the frontend used for the call.
12518 (gimplify_modify_expr): Likewise.
12519 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12520 function type.
12521 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12522 function type.
12523 * tree-ssa.c (useless_type_conversion_p): Function pointer
12524 conversions are useless.
12525
a358e188
MJ
125262011-04-12 Martin Jambor <mjambor@suse.cz>
12527
12528 * cgraph.h (cgraph_node): Remove function declaration.
12529 (cgraph_create_node): Declare.
12530 (cgraph_get_create_node): Likewise.
12531 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12532 Updated all callers.
12533 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12534 the decl does not already exist. Call cgraph_get_create_node instead
12535 of cgraph_node.
12536 (cgraph_get_create_node): New function.
12537 (cgraph_same_body_alias): Update comment.
12538 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12539 assert it does not return NULL.
12540 (cgraph_update_edges_for_call_stmt): Likewise.
12541 (cgraph_clone_edge): Likewise.
12542 (cgraph_create_virtual_clone): Likewise.
12543 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12544 instead of cgraph_node.
12545 (cgraph_add_new_function): Call cgraph_create_node or
12546 cgraph_get_create_node instead of cgraph_node.
12547 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12548 instead of cgraph_node.
12549 (record_eh_tables): Likewise.
12550 (mark_address): Likewise.
12551 (mark_load): Likewise.
12552 (build_cgraph_edges): Call cgraph_get_create_node instead
12553 of cgraph_node.
12554 (rebuild_cgraph_edges): Likewise.
12555 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12556 instead of cgraph_node.
12557 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12558 cgraph_node.
12559 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12560 cgraph_create_node instead of cgraph_node.
12561 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12562 of cgraph_node.
12563 * lto-cgraph.c (input_node): Likewise.
12564 * lto-streamer-in.c (input_function): Likewise.
12565 * varasm.c (mark_decl_referenced): Likewise.
12566 (assemble_alias): Likewise.
12567
fe660d7b
MJ
125682011-04-12 Martin Jambor <mjambor@suse.cz>
12569
12570 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12571 instead of cgraph_node and assert it does not return NULL.
12572 * lto-streamer-in.c (lto_read_body): Likewise.
12573 * omp-low.c (new_omp_context): Likewise.
12574 (create_task_copyfn): Likewise.
12575 * tree-emutls.c (lower_emutls_function_body): Likewise.
12576 * matrix-reorg.c (transform_allocation_sites): Likewise.
12577
bae5cddf
JJ
125782011-04-12 Jakub Jelinek <jakub@redhat.com>
12579
12580 PR c/48552
12581 * c-typeck.c (build_asm_expr): Error out on attempts to use
12582 void type outputs or inputs for constraints that allow reg or
12583 don't allow memory.
12584
06eb52ca
CLT
125852011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12586 Richard Earnshaw <rearnsha@arm.com>
12587
12588 PR target/48250
12589 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12590 to use sign-magnitude offsets. Reject unsupported unaligned
12591 cases. Add detailed description in comments.
12592 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12593 condition from TARGET_32BIT to TARGET_ARM.
12594
648a616b
NF
125952011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12596
12597 * tree.h (struct typed_tree): New.
12598 (struct tree_common): Include it instead of tree_base.
12599 (TREE_TYPE): Update for new location of type field.
12600 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12601 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12602 (union tree_node): Add typed field.
12603 * treestruct.def (TS_TYPED): New.
12604 * lto-streamer.c (check_handled_ts_structures): Handle it.
12605 * tree.c (MARK_TS_TYPED): New macro.
12606 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12607
1e6d1da0
EB
126082011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12609
12610 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12611 (force_nonfallthru): Do not alter the loop nest if no basic block
12612 was created.
12613
126142011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
12615
12616 * config/i386/sse.md (VI): New mode iterator.
12617 (SSEMODEI): Remove.
12618 (AVX256MODEI): Ditto.
12619 (AVXMODEF4P): Ditto.
12620 (avxvecpsmode): Ditto.
12621 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12622 (sse2_andnot<mode>3): New expander.
12623 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12624 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12625 (<any_logic:code><mode>3): Use VI mode iterator.
12626 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12627 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12628 (*andnottf3): Handle AVX three-operand constraints.
12629 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12630
b1372d5d 126312011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 12632 Robert Millan <rmh@gnu.org>
b1372d5d
JM
12633
12634 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12635 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12636 GNU_USER_DYNAMIC_LINKER64): Define.
12637 (REG_NAME): Don't undefine.
12638 (MD_UNWIND_SUPPORT): Undefine.
12639 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12640 (REG_NAME): Don't undefine.
12641 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 12642 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 12643
761c0c6e
JM
126442011-04-11 Joseph Myers <joseph@codesourcery.com>
12645
12646 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12647 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12648
26e0228f
XDL
126492011-04-11 Xinliang David Li <davidxl@google.com>
12650
12651 * value-profile.c (check_ic_target): New function.
12652 (gimple_ic_transform): Sanity check indirect call target.
12653 * gimple-low.c (gimple_check_call_args): Interface change.
12654 (gimple_check_call_matching_types): New function.
12655 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
12656
126572011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12658
12659 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12660 tree-pretty-print.h & realmpfr.h.
12661
a58dfa49
VM
126622011-04-11 Vladimir Makarov <vmakarov@redhat.com>
12663
12664 PR middle-end/48464
12665 * ira.c (setup_pressure_classes): Fix typo in loop condition.
12666 (setup_allocno_and_important_classes): Ditto.
12667
107fd1c1
JM
126682011-04-11 Joseph Myers <joseph@codesourcery.com>
12669
12670 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12671 GNU_USER_DYNAMIC_LINKER.
12672 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12674 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12675 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12676 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12677 GNU_USER_TARGET_OS_CPP_BUILTINS.
12678 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12679 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12680 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12681 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12682 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12683 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12684 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12685 GNU_USER_TARGET_OS_CPP_BUILTINS.
12686 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12687 GNU_USER_DYNAMIC_LINKER.
12688 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12689 GNU_USER_TARGET_OS_CPP_BUILTINS.
12690 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12691 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12692 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12693 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12694 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12695 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12696 GNU_USER_DYNAMIC_LINKER64): Remove.
12697 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12698 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12699 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12700 GNU_USER_DYNAMIC_LINKER.
12701 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12702 GNU_USER_TARGET_OS_CPP_BUILTINS.
12703 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12704 GNU_USER_TARGET_OS_CPP_BUILTINS.
12705 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12706 to GNU_USER_TARGET_OS_CPP_BUILTINS.
12707 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12708 GNU_USER_TARGET_OS_CPP_BUILTINS.
12709 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12710 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12711 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12712 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12713 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12714 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12715 GNU_USER_DYNAMIC_LINKER.
12716 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12717 GNU_USER_TARGET_OS_CPP_BUILTINS.
12718 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12719 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12720 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12721 GNU_USER_DYNAMIC_LINKER.
12722 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12724 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12725 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12726 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12727 GNU_USER_DYNAMIC_LINKER.
12728 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12729 GNU_USER_DYNAMIC_LINKERN32.
12730 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12731 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
12732 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
12733 GNU_USER_DYNAMIC_LINKER32.
12734 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12736 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12737 GNU_USER_DYNAMIC_LINKER.
12738 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12739 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12740 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
12741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 12742 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
12743 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
12744 GNU_USER_DYNAMIC_LINKER32.
12745 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12746 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
12747 GNU_USER_DYNAMIC_LINKER.
12748 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
12749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12750 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12751 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
12752 GNU_USER_DYNAMIC_LINKER64.
12753 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
12754 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12755 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12756 GNU_USER_DYNAMIC_LINKER.
12757 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
12758 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12759 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12760 GNU_USER_DYNAMIC_LINKER.
12761 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
12762 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12763 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12764 GNU_USER_DYNAMIC_LINKER32.
12765 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12766 GNU_USER_DYNAMIC_LINKER64.
12767 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12768 GNU_USER_DYNAMIC_LINKER64.
12769 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
12770 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12771 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
12772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 12773 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 12774
e24609cf
JM
127752011-04-11 Joseph Myers <joseph@codesourcery.com>
12776
12777 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
12778 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
12779 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
12780 GNU_USER_DYNAMIC_LINKER.
12781 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12782 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
12783 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
12784 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
12785 GNU_USER_DYNAMIC_LINKER64.
12786 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12787 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
12788 GNU_USER_LINK_EMULATION.
12789 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
12790 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
12791 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
12792 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
12793 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
12794 CPP_SPEC, CC1_SPEC): Remove.
12795 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
12796 (GNU_USER_DYNAMIC_LINKER): Define.
12797 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
12798 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
12799 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
12800 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
12801 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
12802 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
12803 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12804 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
12805 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
12806 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
12807 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
12808 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
12809 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
12810 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
12811 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
12812 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12813 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12814 GNU_USER_DYNAMIC_LINKER.
12815 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12816 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12817 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12818 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12819 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12820 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12821 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
12822 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
12823 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 12824 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 12825
b8ce4e94
KT
128262011-04-11 Kai Tietz <ktietz@redhat.com>
12827
12828 PR target/9601
12829 PR target/11772
12830 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
12831 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
12832 comment.
12833 (ix86_is_msabi_thiscall): Removed.
12834 (ix86_is_type_thiscall): Likewise.
12835 (ix86_get_callcvt): New function.
12836 (ix86_comp_type_attributes): Simplify check.
12837 (ix86_function_regparm): Use ix86_get_callcvt for calling
12838 convention attribute checks.
12839 (ix86_return_pops_args): Likewise.
12840 (ix86_static_chain): Likewise.
12841 (x86_this_parameter): Likewise.
12842 (x86_output_mi_thunk): Likewise.
12843 (ix86_function_type_abi): Optimize check for types without attributes.
12844 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
12845 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
12846 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
12847 by flag-values.
12848 (IX86_BASE_CALLCVT): Helper macro.
12849 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12850 Use ix86_get_callcvt for calling convention attribute checks and avoid
12851 symbol-decoration for stdcall in TARGET_RTD case.
12852 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12853 Likewise.
12854 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
12855 for declaration.
12856
798dd0ba
UB
128572011-04-11 Uros Bizjak <ubizjak@gmail.com>
12858
12859 * config/i386/sse.md (VI_128): New mode iterator.
12860 (VI12_128): Rename from SSEMODE12.
12861 (VI14_128): Rename from SSEMODE14.
12862 (VI124_128): New mode iterator.
12863 (VI24_128): Rename from SSEMODE248.
12864 (VI248_128): Rename from SSEMODE248.
12865 (SSEMODE124C8): Remove.
12866 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12867 (*sse2_<plusminus_insn><mode>3): Merge with
12868 *avx_<plusminus_insn><mode>3.
12869 (*mulv8hi3): Merge with *avx_mulv8hi3.
12870 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
12871 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
12872 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
12873 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
12874 (ashr<mode>3): Merge with *avx_ashr<mode>3.
12875 (lshr<mode>3): Merge with *avx_lshr<mode>3.
12876 (ashl<mode>3): Merge with *avx_ashl<mode>3.
12877 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
12878 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
12879 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12880 (*<smaxmin:code>v8hi3): Ditto.
12881 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
12882 (*<smaxmin:code>v16qi3): Ditto.
12883 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
12884 (*sse2_eq<mode>3): Ditto.
12885 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
12886 (*sse2_gt<mode>3): Ditto.
12887 (vcondv2di): Split out of vcond<mode>.
12888 (vconduv2di): Split out of vcondu<mode>.
12889
956011be
RG
128902011-04-11 Richard Guenther <rguenther@suse.de>
12891
12892 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
12893 before calling tree_low_cst.
12894
e6313a78
RG
128952011-04-11 Richard Guenther <rguenther@suse.de>
12896
12897 * stor-layout.c (layout_type): Compute all array index size operations
12898 in the original type.
12899 (initialize_sizetypes): Add comment.
12900 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
12901
e69d7376
JM
129022011-04-11 Joseph Myers <joseph@codesourcery.com>
12903
12904 * common.opt (Tbss=, Tdata=, Ttext=): New options.
12905
9f9ebcdf
MJ
129062011-04-11 Martin Jambor <mjambor@suse.cz>
12907
12908 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
12909 of cgraph_node, handle NULL return value.
12910 (cgraph_global_info): Likewise.
12911 (cgraph_rtl_info): Likewise.
12912 * tree-inline.c (estimate_num_insns): Likewise.
12913 * gimplify.c (unshare_body): Likewise.
12914 (unvisit_body): Likewise.
12915 (gimplify_body): Likewise.
12916 * predict.c (optimize_function_for_size_p): Likewise.
12917 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
12918 (call_may_clobber_ref_p_1): Likewise.
12919 * varasm.c (function_section_1): Likewise.
12920 (assemble_start_function): Likewise.
12921
581985d7
MJ
129222011-04-11 Martin Jambor <mjambor@suse.cz>
12923
12924 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
12925 of cgraph_node.
12926 * final.c (rest_of_clean_state): Likewise.
12927 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
12928 * passes.c (pass_init_dump_file): Likewise.
12929 (execute_all_ipa_transforms): Likewise.
12930 (function_called_by_processed_nodes_p): Likewise.
12931 * predict.c (maybe_hot_frequency_p): Likewise.
12932 (probably_never_executed_bb_p): Likewise.
12933 (compute_function_frequency): Likewise.
12934 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
12935 (unnest_nesting_tree_1): Likewise.
12936 (lower_nested_functions): Likewise.
12937 * tree-optimize.c (execute_fixup_cfg): Likewise.
12938 (tree_rest_of_compilation): Likewise.
12939 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
12940 * tree-sra.c (ipa_early_sra): Likewise.
12941 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12942 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
12943 * ipa.c (record_cdtor_fn): Likewise.
12944 * ipa-inline.c (cgraph_early_inlining): Likewise.
12945 (compute_inline_parameters_for_current): Likewise.
12946 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12947 * ipa-pure-const.c (local_pure_const): Likewise.
12948 * ipa-split.c (split_function): Likewise.
12949 (execute_split_functions): Likewise.
12950 * cgraphbuild.c (build_cgraph_edges): Likewise.
12951 (rebuild_cgraph_edges): Likewise.
12952 (cgraph_rebuild_references): Likewise.
12953 (remove_cgraph_callee_edges): Likewise.
12954 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
12955 (verify_cgraph_node): Likewise.
12956 (cgraph_analyze_functions): Likewise.
12957 (cgraph_preserve_function_body_p): Likewise.
12958 (save_inline_function_body): Likewise.
12959 (save_inline_function_body): Likewise.
12960 * tree-inline.c (copy_bb): Likewise.
12961 (optimize_inline_calls): Likewise.
12962
57dbdc5a
MJ
129632011-04-11 Martin Jambor <mjambor@suse.cz>
12964
12965 PR tree-optimization/48195
12966 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
12967 ipa_check_create_edge_args.
12968 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
12969 ipa_check_create_edge_args.
12970 * ipa-inline.c (inline_generate_summary): Do not call
12971 ipa_check_create_node_params and ipa_check_create_edge_args.
12972 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
12973 ipa_check_create_edge_args.
12974
d108e679
AS
129752011-04-09 Anatoly Sokolov <aesok@post.ru>
12976
12977 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
12978 instead of loop.
12979 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12980 * function.c (record_hard_reg_sets): Likewise.
12981 * ira.c (compute_regs_asm_clobbered): Likewise.
12982 * sched-deps.c (sched_analyze_1): Likewise.
12983 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
12984
3411bc59
XDL
129852011-04-09 Xinliang David Li <davidxl@google.com>
12986
12987 PR tree-optimization/PR48484
12988 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
12989 has_valid_pred lazily
12990
b365495a
DS
129912011-04-09 Duncan Sands <baldrick@free.fr>
12992
12993 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
12994
68bc509a
EB
129952011-04-08 Eric Botcazou <ebotcazou@adacore.com>
12996
12997 * combine.c (combine_validate_cost): Adjust comments. Set registered
12998 cost of I0 to zero at the end, if any.
12999
041e059f
XDL
130002011-04-08 Xinliang David Li <davidxl@google.com>
13001
68bc509a
EB
13002 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13003 to insane profile data.
041e059f 13004
444b3995
XDL
130052011-04-08 Xinliang David Li <davidxl@google.com>
13006
13007 * ipa-cp.c (ipcp_update_profiling): Correct
13008 negative scale factor due to insane profile data.
13009
6a801cf2
XDL
130102011-04-08 Xinliang David Li <davidxl@google.com>
13011
13012 * final.c (dump_basic_block_info): New function.
13013 (final): Dump basic block.
13014 (final_scan_insn): Remove old dump.
13015
d5f3624e
SK
130162011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13017
68bc509a
EB
13018 PR target/47829
13019 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13020 crtbegin/crtend.
d5f3624e 13021
42821aff
MM
130222011-04-08 Michael Matz <matz@suse.de>
13023
13024 PR middle-end/48389
13025 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13026 functions.
13027 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13028 * rtl.h (rebuild_jump_labels_chain): Declare.
13029 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13030 insns inserted on edges.
13031
ad7be009
JM
130322011-04-08 Joseph Myers <joseph@codesourcery.com>
13033
13034 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13035 * config/arm/arm-arches.def: New.
13036 * config/arm/arm-opts.h: New.
13037 * config/arm/genopt.sh: New.
13038 * config/arm/arm-tables.opt: New (generated).
13039 * config/arm/arm.c (arm_handle_option, arm_target_help,
13040 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13041 (all_architectures): Get most table contents from arm-arches.def.
13042 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13043 arm_selected_tune here.
13044 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13045 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13046 (march=, mcpu=, mtune=): Use Enum and Var.
13047 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13048 (arm.o): Update dependencies.
ecbb6fb7 13049
42821aff 130502011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
13051
13052 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13053 of header_file.
13054 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13055 (write_typed_alloc_defns): Likewise.
13056 (main): Calls write_typed_alloc_defns with output_header.
13057
8d189b3f
VM
130582011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13059
68bc509a 13060 PR inline-asm/48435
8d189b3f
VM
13061 * ira-color.c (setup_profitable_hard_regs): Add comments.
13062 Don't take prohibited hard regs into account.
13063 (setup_conflict_profitable_regs): Rename to
13064 get_conflict_profitable_regs.
13065 (check_hard_reg_p): Check prohibited hard regs.
13066
44f370bf
NF
130672011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13068
13069 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13070 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13071 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13072
483d7ad3
JDA
130732011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13074
13075 PR target/48366
13076 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 13077 move from floating point to shift amount register.
483d7ad3
JDA
13078 (emit_move_sequence): Remove secondary reload support for floating
13079 point to shift amount amount register copies.
13080 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13081 amount register copies.
13082 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13083 register, return false if mode isn't a scalar integer mode.
13084 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13085
97e03fa1
RG
130862011-04-08 Richard Guenther <rguenther@suse.de>
13087
13088 * gimple.c (gimple_call_flags): Remove kludge.
13089
9d40778b
AM
130902011-04-08 Alexander Monakov <amonakov@ispras.ru>
13091
13092 * sel-sched.c (sel_region_init): Move call to
13093 sel_setup_region_sched_flags after setup_current_loop_nest.
13094
19ac7892
AB
130952011-04-08 Andrey Belevantsev <abel@ispras.ru>
13096
13097 PR rtl-optimization/48272
19ac7892
AB
13098 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13099 init_insn_reg_pressure_info. Adjust a caller.
13100 * sched-int.h (init_insn_reg_pressure_info): Declare.
13101 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13102 when sched-pressure is enabled.
13103
0f8c63cc
RG
131042011-04-08 Richard Guenther <rguenther@suse.de>
13105
13106 * gimple.c (gimple_set_modified): Do not queue calls to
13107 MODIFIED_NORETURN_CALLS here ...
13108 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13109
5e5a425e
RG
131102011-04-08 Richard Guenther <rguenther@suse.de>
13111
13112 PR lto/48467
13113 * toplev.c (lang_dependent_init): Do not open asm_out_file
13114 in WPA mode, nor perform debug machinery initialization.
13115 (finalize): Do not unlink asm_out_file in WPA mode.
13116
9bfc434b
RG
131172011-04-08 Richard Guenther <rguenther@suse.de>
13118
13119 * gimple.h (gimple_call_fntype): New function.
13120 (gimple_call_return_type): Use it.
13121 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13122 * gimple-low.c (gimple_check_call_args): Likewise.
13123 * gimple.c (gimple_call_flags): Likewise.
13124 (gimple_call_arg_flags): Likewise.
13125 (gimple_call_return_flags): Likewise.
13126 * tree-cfg.c (verify_gimple_call): Likewise.
13127 (do_warn_unused_result): Likewise.
13128 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13129 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13130
7c1f0b40
DM
131312011-04-08 Dmitry Melnik <dm@ispras.ru>
13132
13133 PR rtl-optimization/48235
13134 * sel-sched.c (code_motion_process_successors): Recompute the last
13135 insn in basic block if control flow changed.
13136 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13137 Update condition for ilist_remove.
13138
ea4d630f
AM
131392011-04-08 Alexander Monakov <amonakov@ispras.ru>
13140
13141 PR rtl-optimization/48302
13142 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13143 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13144 it to record added preheader blocks.
13145 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13146 on to sel_add_loop_preheaders.
13147 (sel_region_init): Move call to setup_current_loop_nest after
13148 sel_init_bbs.
13149
07643d76
AM
131502011-04-08 Alexander Monakov <amonakov@ispras.ru>
13151
13152 PR target/48273
13153 * cfgloop.h (loop_has_exit_edges): New helper.
13154 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13155 non-clonable.
13156 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13157 that have no exit edges.
13158
1f3b2b4e
AM
131592011-04-08 Alexander Monakov <amonakov@ispras.ru>
13160
13161 PR rtl-optimization/48442
13162 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13163 all callers. Adjust assert.
13164
554f1948
JJ
131652011-04-08 Jakub Jelinek <jakub@redhat.com>
13166
13167 PR tree-optimization/48377
13168 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13169 is_packed to true even for types with smaller TYPE_ALIGN than
13170 TYPE_SIZE.
13171
ddf72388
RG
131722011-04-08 Richard Guenther <rguenther@suse.de>
13173
13174 PR bootstrap/48513
13175 * doc/tm.texi: Re-generate.
13176
0c27e2d8
WG
131772011-04-08 Wei Guozhi <carrot@google.com>
13178
13179 PR target/47855
13180 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13181 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13182 * config/arm/arm.md (*push_multi): Change the length computation to
13183 call a C function.
13184
07c5f94e
AS
131852011-04-08 Anatoly Sokolov <aesok@post.ru>
13186
13187 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13188 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13189 * doc/tm.texi: Regenerate.
13190 * system.h (ASM_OUTPUT_BSS): Poison.
13191 * varasm.c (asm_output_bss): Remove function.
13192 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 13193
07c5f94e
AS
13194 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13195 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13196 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13197 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13198 Likewise.
13199 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13200 Likewise.
13201 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13202 Likewise.
13203 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13204
5f2c36e1
JM
132052011-04-07 Joseph Myers <joseph@codesourcery.com>
13206
13207 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13208 EnumValue lines.
13209
39e7722b
JM
132102011-04-07 Joseph Myers <joseph@codesourcery.com>
13211
13212 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13213 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13214 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13215 OPT_mcpu32.
13216 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13217 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13218 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13219 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13220 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13221 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13222 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13223 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13224 options. Don't map other m68k options manually. Don't handle
13225 old-style options as canonical.
13226 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 13227 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 13228
cf103ca4
EB
132292011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13230
13231 * basic-block.h (force_nonfallthru): Move to...
13232 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13233 (force_nonfallthru): ...here.
13234 * cfghooks.c (force_nonfallthru): New function.
13235 * cfgrtl.c (force_nonfallthru): Rename into...
13236 (rtl_force_nonfallthru): ...this.
13237 (commit_one_edge_insertion): Do not set AUX field.
13238 (commit_edge_insertions): Do not discover new basic blocks.
13239 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13240 (cfg_layout_rtl_cfg_hooks): Likewise.
13241 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13242 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13243 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13244
14431f58
AS
132452011-04-07 Anatoly Sokolov <aesok@post.ru>
13246
13247 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13248 Remove macros.
13249
3729983c
UB
132502011-04-07 Uros Bizjak <ubizjak@gmail.com>
13251
13252 * config/i386/sse.md: Update copyright year.
13253 (avxcvtvecmode): Remove.
13254 (sse_movhlps): Merge with *avx_movhlps.
13255 (sse_movlhps): Merge with *avx_movlhps.
13256 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13257 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13258 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13259 (sse_loadhps): Merge with *avx_loadhps.
13260 (sse_storelps): Merge with *avx_storelps.
13261 (sse_loadlps): Merge with *avx_loadlps.
13262 (sse_movss): Merge with *avx_movss.
13263 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13264 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13265 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13266 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13267 (vec_set<mode>_0): Ditto.
13268 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13269 (sse4_1_insertps): Merge with *avx_insertps.
13270 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13271 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13272 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13273 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13274 (sse2_storehpd): Merge with *avx_storehpd.
13275 (sse2_loadhpd): Merge with *avx_loadhpd.
13276 (sse2_loadlpd): Merge with *avx_loadlpd.
13277 (sse2_movsd): Merge with *avx_movsd.
13278 (*vec_concatv2df): Merge with *vec_concatv2df.
13279
4e626909
JJ
132802011-04-07 Jakub Jelinek <jakub@redhat.com>
13281
13282 PR debug/48343
13283 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 13284 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
13285 (try_combine): Add last_combined_insn parameter, pass it instead of
13286 i3 to propagate_for_debug.
13287
3729983c 132882011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
13289
13290 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13291 to handle MDR <-> data register transfers.
13292 (movhi_internal): Likewise.
13293
20c03367
AM
132942011-04-07 Alan Modra <amodra@gmail.com>
13295
13296 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13297 previous stack info.
13298
bf22920b
TV
132992011-04-07 Tom de Vries <tom@codesourcery.com>
13300
13301 PR target/43920
13302 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13303 flow_find_cross_jump. Swap variables to implement backward replacement.
13304 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13305
823918ae
TV
133062011-04-07 Tom de Vries <tom@codesourcery.com>
13307
13308 PR target/43920
13309 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
13310 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13311 and bb2.
13312 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13313 src1 or src2. Redirect edges to the last basic block. Update
13314 frequency and count on multiple basic blocks in case of fallthru.
823918ae 13315
472c95f5
TV
133162011-04-07 Tom de Vries <tom@codesourcery.com>
13317
13318 PR target/43920
13319 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13320 function.
3729983c
UB
13321 (old_insns_match_p): Change return type. Replace return false/true
13322 with return dir_none/dir_both. Use can_replace_by.
13323 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13324 direction from dir_p. Register replacement direction in dir, last_dir
13325 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
13326 merge_dir. Return replacement direction in dir_p.
13327 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13328 return type of old_insns_match_p.
13329 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13330 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13331 flow_find_cross_jump.
13332 * basic-block.h (enum replace_direction): New type.
13333 (flow_find_cross_jump): Add parameter to declaration.
13334
a95d4000
UB
133352011-04-06 Uros Bizjak <ubizjak@gmail.com>
13336
13337 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13338 (AVXMODEDCVTPS2DQ): Ditto.
13339 (VEC_FLOAT_MODE): Ditto.
13340 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13341 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13342 (<any_logic:code><mode>3): Use VF mode iterator.
13343 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13344 Use VF mode iterator.
13345 (copysign<mode>3): Use VF mode iterator.
13346 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13347 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13348 (*<any_logic:code><MODEF:mode>3): Merge with
13349 *avx_<any_logic:code><MODEF:mode>3.
13350 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13351 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13352 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13353 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13354 (sse2_cvtdq2ps): Use %v modifier.
13355 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13356 (avx_cvtps2dq<avxmodesuffix>): Remove.
13357 (sse2_cvtps2dq): Use %v modifier.
13358 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13359 (avx_cvttps2dq<avxmodesuffix>): Remove.
13360 (sse2_cvttps2dq): Use %v modifier.
13361 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13362 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13363 (sse2_cvtsd2siq): Fix insn template.
13364 (sse2_cvtsd2siq_2): Ditto.
13365 (sse2_cvttsd2siq): Ditto.
13366 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13367 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13368
ad01c437
JM
133692011-04-06 Joseph Myers <joseph@codesourcery.com>
13370
13371 * gcov-io.c: Use GCC Runtime Library Exception.
13372
fe846284
JJ
133732011-04-06 Jakub Jelinek <jakub@redhat.com>
13374
13375 PR debug/48466
13376 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13377 as base_reg whatever register reg has been eliminated to, instead
13378 of hardcoding STACK_POINTER_REGNUM.
13379
acce4e77
JM
133802011-04-06 Joseph Myers <joseph@codesourcery.com>
13381
13382 * doc/tm.texi.in: Document C target hooks as separate from general
13383 target hooks.
13384 * doc/tm.texi: Regenerate.
13385 * genhooks.c (struct hook_desc): Add docname field.
13386 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13387 docname field.
13388 (hook_array): Include c-target.def.
13389 (emit_documentation): Use docname field in output.
13390 (emit_init_macros): Take docname argument. Only emit definitions
13391 for hooks matching docname.
13392 (main): Expect additional arguments in all cases. Pass argument
13393 to emit_init_macros.
13394 * target.def: Move initial macro definitions and comments to
13395 target-hooks-macros.h.
13396 (gcc_targetcm): Move to c-family/c-target.def.
13397 * target.h (targetcm): Move declaration to c-family/c-target.h.
13398 * targhooks.c (default_handle_c_option): Move to
13399 c-family/c-opts.c.
13400 * targhooks.h (default_handle_c_option): Move declaration to
13401 c-family/c-common.h.
13402 * target-hooks-macros.h: New file.
13403 * config.gcc (target_has_targetcm): Define and use to add to
13404 c_target_objs and cxx_target_objs.
13405 * config/default-c.c: New file.
13406 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13407 of target.h and target-def.h.
13408 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13409 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13410 darwin_check_cfstring_format_arg): Make static.
13411 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13412 TARGET_STRING_OBJECT_REF_TYPE_P,
13413 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13414 * config/darwin-protos.h (darwin_objc_construct_string,
13415 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13416 declare.
13417 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13418 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 13419 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
13420 * config/t-darwin (darwin-c.o): Update dependencies.
13421 * system.h (TARGET_HAS_TARGETCM): Poison.
13422 * Makefile.in (TARGET_H): Update.
13423 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13424 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13425 (default-c.o): New target.
13426 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 13427 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
13428 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13429 c-target.def.
13430 (build/genhooks.o): Update dependencies.
13431
275b4baa 134322011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 13433
275b4baa
RG
13434 * ipa-inline.c (enum inlining_mode): Remove.
13435 (cgraph_flatten): Use some other token.
13436 (cgraph_edge_early_inlinable_p): New function, split out from ...
13437 (cgraph_perform_always_inlining): New function, split out from ...
13438 (cgraph_decide_inlining_incrementally): ... here.
13439 (cgraph_mark_inline_edge): Adjust.
13440 (cgraph_early_inlining): Re-structure.
13441 (pass_early_inline): Require SSA form.
13442
f15b8bdf 134432011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
13444 Julian Brown <julian@codesourcery.com>
13445 Mark Shinwell <shinwell@codesourcery.com>
13446
13447 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13448 LO_REGS only for Thumb-1.
13449 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13450 be used in short instructions when optimising for size on Thumb-2.
13451
516426da
EB
134522011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13453
13454 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13455 associated with user returns to be preserved.
13456
96621ebf
TG
134572011-04-06 Tristan Gingold <gingold@adacore.com>
13458
f15b8bdf
EB
13459 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13460 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
13461 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13462 if XCOFF_DEBUGGING_INFO.
13463
07c0852e
UB
134642011-04-06 Uros Bizjak <ubizjak@gmail.com>
13465
13466 * config/i386/i386.md (attribute isa): New.
13467 (attribute enabled): New.
13468 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13469 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13470 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13471 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13472 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13473 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13474 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13475 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13476
13477 * config/i386/sse.md (VF): New mode iterator.
13478 (VF1): Ditto.
13479 (VF2): Ditto.
13480 (VF_128): Ditto.
13481 (SSEMODEF4): Remove.
13482 (attribute sse): Handle V8SF and V4DF modes.
13483 (<absneg:code><mode>2): Use VF mode iterator.
13484 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13485 mode iterator.
13486 (<plusminus_insn><mode>3): Use VF mode iterator.
13487 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13488 Use VF mode iterator.
13489 (<sse>_vm<plusminus_insn><mode>3): Merge with
13490 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13491 (mul<mode>3): Use VF mode iterator.
13492 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13493 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13494 mode iterator.
13495 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13496 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13497 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13498 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13499 mode iterator.
13500 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13501 Use VF1 mode iterator.
13502 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13503 (sqrt<VF2:mode>2): New expander.
13504 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13505 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13506 and sqrtv2df2. Use VF mode iterator.
13507 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13508 mode iterator.
13509 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13510 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13511 Use VF1 mode iterator.
13512 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13513 (<smaxmin:code><mode>3): Use VF mode iterator.
13514 (*<smaxmin:code><mode>3_finite): Merge with
13515 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13516 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13517 (<sse>_vm<smaxmin:code><mode>2): Merge with
13518 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13519 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13520 mode iterator.
13521 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13522 mode iterator.
13523 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13524 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13525 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13526 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13527 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13528 VF mode iterator.
13529 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13530 Use VF_128 mode iterator.
13531 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13532 mode iterator.
13533 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13534 VF_128 mode iterator.
13535 (vcond<mode>): Use VF mode iterator.
13536 * config/i386/predicates.md (sse_comparison_operator): Merge with
13537 avx_comparison_float_operator. Do not declare as special_predicate.
13538 * config/i386/i386.c (struct builtin_description): Update for renamed
13539 compare patterns.
13540 (ix86_expand_args_builtin): Ditto.
13541 (ix86_expand_sse_compare_mask): Ditto.
13542
ff5d142c
RG
135432011-04-06 Richard Guenther <rguenther@suse.de>
13544
13545 * tree-inline.c (estimate_num_insns): For calls simply account
13546 for all passed arguments and a used return value.
13547
d7d1d041 135482011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 13549
d7d1d041
RG
13550 PR tree-optimization/47663
13551 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13552 call_stmt_time fields.
13553 (cgraph_edge_inlinable_p): Declare.
13554 (cgraph_edge_recursive_p): New inline function.
13555 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13556 (cgraph_clone_edge): Copy it.
13557 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13558 Account for call stmt time.
13559 (cgraph_estimate_time_after_inlining): Take edge argument.
13560 (cgraph_estimate_edge_growth): Account call stmt size.
13561 (cgraph_estimate_size_after_inlining): Take edge argument.
13562 (cgraph_mark_inline_edge): Adjust.
13563 (cgraph_check_inline_limits): Likewise.
13564 (cgraph_recursive_inlining_p): Remove.
13565 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13566 (cgraph_decide_recursive_inlining): Take edge argument and
13567 adjust.
13568 (cgraph_decide_inlining_of_small_functions): Do not avoid
13569 diags for recursive inlining here.
13570 (cgraph_flatten): Adjust.
13571 (cgraph_decide_inlining_incrementally): Likewise.
13572 (estimate_function_body_sizes): Remove call cost handling.
13573 (compute_inline_parameters): Initialize caller edge call costs.
13574 (cgraph_estimate_edge_growth): New function.
13575 (cgraph_estimate_growth): Use it.
13576 (cgraph_edge_badness): Likewise.
13577 (cgraph_check_inline_limits): Take an edge argument.
13578 (cgraph_decide_inlining_of_small_functions): Adjust.
13579 (cgraph_decide_inlining): Likewise.
13580 * tree-inline.c (estimate_num_insns): Only account for call
13581 return value if it is used.
13582 (expand_call_inline): Avoid diagnostics on recursive inline
13583 functions here.
13584 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13585 (input_edge): Input edge call costs.
13586
2feb95f7
RO
135872011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13588
13589 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13590
26fbd9c2
JW
135912011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13592
13593 * doc/invoke.texi (Spec Files): Fix typo.
13594
694dc0ca
EB
135952011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13596
13597 * profile.c (branch_prob): Move declaration of local variable. Remove
13598 obsolete ??? comment. Expand the location explicitly instead of using
13599 the LOCATION_FILE and LOCATION_LINE macros.
13600
4925d0d5
WG
136012011-04-06 Wei Guozhi <carrot@google.com>
13602
13603 PR target/47855
13604 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13605 (arm_cond_branch): Likewise.
13606 (arm_cond_branch_reversed): Likewise.
13607 (arm_jump): Likewise.
13608 (push_multi): Likewise.
13609 * config/arm/constraints.md (Py): New constraint.
13610
f55dfa2f
NF
136112011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13612
13613 PR bootstrap/48471
13614 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13615 Move these...
13616 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13617 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13618 #ifdef DBX_DEBUGGING_INFO.
13619
fca96842
BS
136202011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13621
13622 PR bootstrap/48403
13623 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13624 if old and new states differ.
13625
30b83e38
JM
136262011-04-05 Joseph Myers <joseph@codesourcery.com>
13627
13628 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13629 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13630 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13631 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13632 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13633 mcfv4e): Use Alias.
13634 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13635 ColdFire options to -mcpu= options.
13636
277a9aa5
JL
136372011-04-05 Jeff Law <law@redhat.com>
13638
13639 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13640 check if BB is a successor of LOOP->header and return
13641 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13642
c1e2610e
SB
136432011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13644
13645 * cprop.c (struct reg_use): Remove.
13646 (reg_use_table): Make an array of RTX.
13647 (find_used_regs, constprop_register, local_cprop_pass,
13648 bypass_block): Simplify users of reg_use_table.
13649 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13650 on one of the uses found by find_used_regs.
13651
e532f586
NF
136522011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13653
13654 PR bootstrap/48469
13655 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13656 declaration.
13657
3fb7c055
NF
136582011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13659
13660 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13661 as an rtx.
13662 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13663
b71b43d9
SB
136642011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13665
13666 PR middle-end/48441
13667 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13668
b405b274
NF
136692011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13670
13671 * combine.c: Include obstack.h.
13672 (struct insn_link): Define.
13673 (uid_log_links): Adjust type.
13674 (FOR_EACH_LOG_LINK): New macro.
13675 (insn_link_obstack): Declare.
13676 (alloc_insn_link): Define.
13677 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
13678 type of link variables.
13679 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13680 (try_combine, record_promoted_values, distribute_notes): Likewise.
13681 (distribute_links): Likewise. Tweak prototype.
13682 (clear_log_links): Delete.
13683 (adjust_for_new_dest): Call alloc_insn_link.
13684 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13685
6409abe3
NF
136862011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13687
13688 * gcse.c (modify_mem_list): Convert to an array of VECs.
13689 (canon_modify_mem_list, compute_transp): Tweak formatting.
13690 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
13691 (load_killed_in_block_p): Likewise.
13692 (record_last_mem_set_info): Likewise.
13693 (clear_modify_mem_tables): Likewise.
13694
170d8157
TV
136952011-04-05 Tom de Vries <tom@codesourcery.com>
13696
13697 PR middle-end/48461
13698 * function.c (emit_use_return_register_into_block): Only define if
13699 HAVE_return.
13700
c5911a55
EB
137012011-04-05 Eric Botcazou <ebotcazou@adacore.com>
13702
13703 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13704
abd016e6
JM
137052011-04-05 Joseph Myers <joseph@codesourcery.com>
13706
13707 * config/rx/rx-opts.h: New.
13708 * config/rx/rx.c (rx_cpu_type): Remove.
13709 (rx_handle_option): Don't assert that global structures are in
13710 use. Access variables via opts pointer. Defer most handling of
13711 OPT_mint_register_. Use error_at.
13712 (rx_option_override): Handle deferred OPT_mint_register_ here.
13713 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13714 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13715 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13716 (rx_cpu_types): New Enum and EnumValue entries.
13717 (mint-register=): Use Defer and use Var accordingly.
13718
1ed13f83
NF
137192011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13720
13721 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13722 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13723 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13724 Move these...
13725 (debug_free_queue, debug_nesting, symbol_queue_index):
13726 ...and these...
13727 * dbxout.c: ...to here. Make static.
13728
6ce1edcf
NF
137292011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13730
13731 * gcse.c (modify_pair): Define. Define a VEC of it.
13732 (canon_modify_mem_list): Convert to an array of VECs.
13733 (free_insn_expr_list_list): Delete.
13734 (clear_modify_mem_tables): Call VEC_free instead.
13735 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13736 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13737 (canon_list_insert, compute_transp): Likewise.
13738
c201ac94
TV
137392011-04-05 Tom de Vries <tom@codesourcery.com>
13740
13741 PR target/43920
13742 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
13743 for size.
13744
4c029f40
TV
137452011-04-05 Tom de Vries <tom@codesourcery.com>
13746
13747 PR target/43920
13748 * function.c (emit_use_return_register_into_block): New function.
13749 (thread_prologue_and_epilogue_insns): Use
13750 emit_use_return_register_into_block.
13751
2a562b0a
TV
137522011-04-05 Tom de Vries <tom@codesourcery.com>
13753
13754 PR target/43920
13755 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
13756 insn.
13757
0248bceb
TV
137582011-04-05 Tom de Vries <tom@codesourcery.com>
13759
13760 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
13761
ffa94123
YZ
137622011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
13763
798dd0ba
UB
13764 * config/arm/arm.md (define_constants for unspec): Replace with
13765 define_c_enum.
13766 (define_constants for unspecv): Replace with define_c_enum.
13767 * config/arm/neon.md (define_constants for unspec): Replace with
13768 define_c_enum.
ffa94123 13769
3b8f9b46
RH
137702011-04-04 Richard Henderson <rth@redhat.com>
13771
720cf80f 13772 PR bootstrap/48400
3b8f9b46
RH
13773 * dwarf2out.c (output_line_info): Always emit line info from
13774 at least one section.
13775 (dwarf2out_init): Create text_section_line_info here ...
13776 (set_cur_line_info_table): ... not here.
13777
720cf80f 137782011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
13779
13780 PR target/48380
13781 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 13782 not called.
e5b0e1ca 13783
720cf80f 13784 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 13785
196565d4
SB
137862011-04-04 Steven Bosscher <steven@gcc.gnu.org>
13787
b77f9eab
SB
13788 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
13789 (expr_equiv_p): Remove.
13790 (insert_set_in_table): Look at <dest, src> pair instead of expr.
13791 (hash_scan_set): Update call to insert_set_in_table.
13792 (dump_hash_table): Dump <dest, src> pair.
13793 (lookup_set): Simplify. Lookup <dest, src> pair.
13794 (compute_transp): Remove, fold heavily simplified code into...
13795 (compute_local_properties): ...here. Expect COMP and TRANSP
13796 unconditionally.
13797 (find_avail_set): Take set directly from struct expr.
13798 (find_bypass-set): Likewise.
13799 (bypass_block): Likewise.
13800 (cprop_insn): Likewise. Remove redundant INSN_P test.
13801
384d7a55
SB
13802 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
13803 checks on form of COND from find_implicit_sets to here.
13804 (find_implicit_sets): Cleanup control flow. Split critical edges
13805 if it exposes implicit sets. Allocate/resize implicit_sets as
13806 necessary.
13807 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
13808 changed something. Run df_analyze after find_implicit_sets if any
13809 edges were split. Do not allocate implicit_sets here.
13810
3084ce69
SB
13811 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
13812 (gcse_obstack): Renamed to cprop_obstack.
13813 (GNEW, GNEWVEC, GNEWVAR): Remove.
13814 (gmalloc): Remove.
13815 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
13816 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
13817 (gcse_alloc): Likewise, and rename to cprop_alloc.
13818 (alloc_gcse_men, free_gcse_mem): Remove.
13819 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
13820 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
13821 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
13822
196565d4
SB
13823 * cprop.c (oprs_not_set_p): Remove.
13824 (mark_set, mark_clobber): Remove.
13825 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
13826 (reg_not_set_p): New function.
13827 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
13828 (cprop_insn): Likewise.
13829 (cprop_jump): Use FOR_EACH_EDGE.
13830
9b69cf83
BS
138312011-04-04 Bernd Schmidt <bernds@codesourcery.com>
13832
13833 PR bootstrap/48403
13834 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
13835 (rank_for_schedule): Use scheduled_insns vector instead of
13836 last_scheduled_insn.
13837 (ok_for_early_queue_removal): Likewise.
13838 (queue_to_ready): Search forward in nonscheduled_insns_begin if
13839 we have a dbg_cnt.
13840 (choose_ready): Likewise.
13841 (commit_schedule): Use VEC_iterate.
13842 (schedule_block): Initialize nonscheduled_insns_begin. If we have
13843 a dbg_cnt, use it and ensure the first insn is in the ready list.
13844 (haifa_sched_init): Allocate scheduled_insns.
13845 (sched_extend_ready_list): Don't allocate it; reserve space.
13846 (haifa_sched_finish): Free it.
13847
24f48c2f
JM
138482011-04-04 Joseph Myers <joseph@codesourcery.com>
13849
13850 * optc-gen.awk: Always remove type from Variable entry before
13851 recording in var_seen.
13852
8effe856
EB
138532011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13854
13855 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
13856 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
13857 call to tidy_fallthru_edges.
13858
413519ae
JM
138592011-04-04 Joseph Myers <joseph@codesourcery.com>
13860
13861 * doc/options.texi (ToLower): Document.
3729983c 13862 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
13863 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
13864 * opts.h (cl_option): Add cl_tolower field.
13865 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
13866 arguments with lowercase strings.
13867 * config/rx/rx.opt (mcpu=): Add ToLower.
13868 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
13869 argument.
13870
7d34a1b0
RS
138712011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13872
13873 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
13874
c30e7434
RS
138752011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13876
13877 * config/vax/vax.c: Include reload.h.
13878
112a861d
AS
138792011-04-04 Anatoly Sokolov <aesok@post.ru>
13880
13881 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
13882 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13883 (sparc_preferred_reload_class): New function.
13884
e8c6bb74
JJ
138852011-04-04 Jakub Jelinek <jakub@redhat.com>
13886
2aeaa366 13887 PR debug/48401
e8c6bb74
JJ
13888 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13889 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
13890
2c081caf
NF
138912011-04-03 Nathan Froyd <froydnj@codesourcery.com>
13892
13893 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
13894 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
13895
53802f27
AS
138962011-04-03 Anatoly Sokolov <aesok@post.ru>
13897
13898 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
13899 (ASM_OUTPUT_ALIGNED_BSS): Define.
13900
e89964e3
MM
139012011-04-03 Michael Matz <matz@suse.de>
13902
13903 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
13904 and next_slot members.
13905 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
13906 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
13907 (lto_streamer_cache_append): Declare.
13908 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
13909 unsigned index, remove offset parameter, ensure that we append
13910 or update existing entries.
13911 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
13912 parameter, update next_slot for append.
13913 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
13914 parameter.
13915 (lto_streamer_cache_insert_at): Likewise.
13916 (lto_streamer_cache_append): New function.
13917 (lto_streamer_cache_lookup): Use unsigned index.
13918 (lto_streamer_cache_get): Likewise.
13919 (lto_record_common_node): Don't test tree_node_can_be_shared.
13920 (preload_common_node): Adjust call to lto_streamer_cache_insert.
13921 (lto_streamer_cache_delete): Don't free offsets member.
13922 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
13923 (lto_output_string_with_length): Use lto_output_data_stream.
13924 (lto_output_tree_header): Remove ix parameter, don't write it.
13925 (lto_output_builtin_tree): Likewise.
13926 (lto_write_tree): Adjust callers to above, don't track and write
13927 offset, write unsigned index.
13928 (output_unreferenced_globals): Don't emit all global vars.
13929 (write_global_references): Use unsigned indices.
13930 (lto_output_decl_state_refs): Likewise.
13931 (write_symbol): Likewise.
13932 * lto-streamer-in.c (lto_input_chain): Move earlier.
13933 (input_function): Use unsigned index.
13934 (input_alias_pairs): Don't read and then ignore all global vars.
13935 (lto_materialize_tree): Remove ix_p parameter, don't read index,
13936 don't pass it back, use lto_streamer_cache_append.
13937 (lto_register_var_decl_in_symtab): Use unsigned index.
13938 (lto_register_function_decl_in_symtab): Likewise.
13939 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
13940 index.
13941 (lto_get_builtin_tree): Don't read index, use
13942 lto_streamer_cache_append.
13943 (lto_read_tree): Adjust call to lto_materialize_tree.
13944
13945 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
13946 don't use function calls in arguments to MIN.
13947
13948 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
13949 twice.
13950
13951 * gimple.c (gimple_type_leader_entry): Mark deletable.
13952
b9a5b5b2
AM
139532011-04-03 Alan Modra <amodra@gmail.com>
13954
13955 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
13956
ac6a641b
MM
139572011-04-03 Michael Matz <matz@suse.de>
13958
13959 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
13960 an integer.
13961 * tree.h (tree_decl_non_common.vindex): Adjust comment.
13962
0038d4e0
MM
139632011-04-03 Michael Matz <matz@suse.de>
13964
e9c18386 13965 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
13966 * gimple-fold.c (canonicalize_constructor_val): Accept being called
13967 without function context.
13968 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
13969 current_function_decl and cfun.
13970
91f2fae8
MM
139712011-04-03 Michael Matz <matz@suse.de>
13972
13973 * tree.c (decl_init_priority_insert): Don't create entry for
13974 default priority.
13975 (decl_fini_priority_insert): Ditto.
13976 (fields_compatible_p, find_compatible_field): Remove.
13977 * tree.h (fields_compatible_p, find_compatible_field): Remove.
13978 * gimple.c (gimple_compare_field_offset): Adjust block comment.
13979
da29e070
EB
139802011-04-03 Eric Botcazou <ebotcazou@adacore.com>
13981
13982 * combine.c (try_combine): Remove useless local variable.
13983
4979c28b 139842011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 13985 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
13986
13987 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
13988 non-variable offsets and compare the remaining bases of the two
13989 accesses instead of looking for exact same data-ref.
13990
b4ddcaee
KT
139912011-04-02 Kai Tietz <ktietz@redhat.com>
13992
f90298e1
KT
13993 PR target/48416
13994 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
13995
b4ddcaee
KT
13996 * i386.c (ix86_is_msabi_thiscall): New helper function.
13997 (ix86_is_type_thiscall): New helper function.
13998 (ix86_comp_type_attributes): Handle thiscall for method-functions
13999 special.
14000 (init_cumulative_args): Likewise.
14001 (find_drap_reg): Likewise.
14002 (ix86_static_chain): Likewise.
14003 (x86_this_parameter): Likewise.
14004 (x86_output_mi_thunk): Likewise.
14005
2a9d769a 140062011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
14007 Nicolas Setton <setton@adacore.com>
14008 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
14009
14010 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14011 (add_gnat_descriptive_type_attribute): New function.
14012 (gen_array_type_die): Call it.
14013 (gen_enumeration_type_die): Likewise.
14014 (gen_struct_or_union_type_die): Likewise.
14015 (modified_type_die): Likewise.
14016 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14017 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14018 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14019
15a03a11
JJ
140202011-04-01 Jakub Jelinek <jakub@redhat.com>
14021
14022 PR bootstrap/48148
14023 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14024 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14025
14026 Revert:
14027 2011-03-17 Richard Guenther <rguenther@suse.de>
14028
14029 PR bootstrap/48148
14030 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14031 origin for decls in other ltrans units.
14032 (input_varpool_node): Likewise.
14033
19228b93
JJ
140342011-04-01 Jakub Jelinek <jakub@redhat.com>
14035
14036 PR middle-end/48335
14037 * expr.c (expand_assignment): Handle all possibilities
14038 if TO_RTX is CONCAT.
e9c18386 14039 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
14040 (store_split_bit_field): If SUBREG_REG (op0) or
14041 op0 itself has smaller mode than word, return it
14042 for offset 0 and const0_rtx for out-of-bounds stores.
14043 If word is const0_rtx, skip it.
14044
88cb339e
N
140452011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14046
14047 * config/h8300/h8300.c (print_operand_address): Rename to...
14048 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14049 Call h8300_print_operand and h8300_print_operand_address instead of
14050 print_operand and print_operand_address. Declare.
14051 (print_operand): Renake to...
14052 (h8300_print_operand): ...this. Make static. Adjust comments.
14053 Call h8300_print_operand instead of print_operand. Declare.
14054 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14055 (h8300_register_move_cost): Likewise.
14056 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14057 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14058 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14059 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14060 * config/h8300/h8300-protos.h (print_operand): Delete.
14061 (print_operand_address): Delete.
14062
756d6ee9
RH
140632011-04-01 Richard Henderson <rth@redhat.com>
14064
14065 PR 48400
14066 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14067 in strict mode before dwarf4. Re-order tests to early out
14068 before switching sections.
14069
ceaaaeab
NF
140702011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14071
14072 * config/h8300/constraints.md: New file.
14073 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14074 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14075 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14076 * config/h8300/predicates.md (bit_operand): Likewise.
14077 (incdec_operand): Use satisfies_constraint_M and
14078 satisfies_constraint_O. Don't use C code block.
14079 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14080 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14081 (compute_mov_length): Use satisfies_constraint_G.
14082 (fix_bit_operand): Use satisfies_constraint_U.
14083 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14084 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14085 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14086 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14087 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14088 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14089 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14090 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14091 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14092 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14093 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14094 (EXTRA_MEMORY_CONSTRAINT): Delete.
14095
08ae38e0
AP
140962011-04-01 Andrew Pinski <pinskia@gmail.com>
14097 Michael Meissner <meissner@linux.vnet.ibm.com>
14098
14099 PR target/48262
14100 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14101 operands, as per the specifications.
14102
14103 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14104 (vec_extract_evenv4sf): Ditto.
14105 (vec_extract_evenv8hi): Ditto.
14106 (vec_extract_evenv16qi): Ditto.
14107 (vec_extract_oddv4si): Ditto.
14108
bdb0b0f6
MW
141092011-03-31 Mark Wielaard <mjw@redhat.com>
14110
14111 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14112 high_pc attribute if the CU has no associated code. Only output
14113 DW_AT_entry_pc for CU if not generating strict dwarf and
14114 dwarf_version < 4.
14115
722279e4
BS
141162011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14117
14118 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14119 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14120 out of ...
14121 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14122 * final.c (final_start_function): Call the new function rather
14123 than using a NULL argument for dwarf2out_frame_debug.
14124
c5dd277d
BS
14125 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14126 that contains the prologue.
14127
ec4efea9
BS
14128 * haifa-sched.c (queue_insn): New arg REASON. All callers
14129 changed. Print it in debugging output.
14130
2a6a0d80
BS
14131 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14132
86014d07
BS
14133 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14134 Split most of the code into...
14135 (begin_move_insn): ... here. New function.
14136 (ebb_sched_info): Add a pointer to it.
14137 * haifa-sched.c (scheduled_insns): New static variable.
14138 (sched_extend_ready_list): Allocate it.
14139 (schedule_block): Use it to record the order of scheduled insns.
14140 Perform RTL changes to move insns only after all scheduling
14141 decisions have been made.
14142 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14143 begin_move_insn field.
14144 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14145 * sched-int.h (struct haifa_sched_info): Remove second argument
14146 from begin_schedule_ready hook. Add new member begin_move_insn.
14147 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14148 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14149
9d701248
BS
14150 * haifa-sched.c (prune_ready_list): New function, broken out of
14151 schedule_block.
14152 (schedule_block): Use it.
14153
1ca1dad5
UW
141542011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14155
14156 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14157
49568e45
KT
141582011-04-01 Kai Tietz <ktietz@redhat.com>
14159
14160 * config.gcc (*-*-mingw*): Allow as option the
14161 posix threading model.
07c0852e 14162 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
14163 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14164 definition.
14165 (CPP_SPEC): Add pthread/no-pthread handling.
14166 (LIB_SPEC): Likewise.
14167 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14168 (LIB_SPEC): Likewise.
14169 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14170 flag to pass -pthread option for shared libgcc build.
14171 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14172 for shared libgcc build.
14173 * config/i386/t-mingw-pthread: New file.
14174 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14175 New define to enable use of library pthread by default.
14176 * config/i386/mingw.opt (pthread): New driver option.
14177 (no-pthread): New driver option.
e9c18386 14178 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
14179 * config/i386/mingw-w64.opt: Likewise.
14180
748f7574 141812011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
14182
14183 * c-decl.c (grokdeclarator): Fix formatting.
14184
f04713ee
RS
141852011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14186
14187 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14188 instead of n_operands.
14189 (set_storage_via_setmem): Likewise.
14190 * optabs.c (maybe_gen_insn): Likewise.
14191 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14192 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14193 (mips_expand_builtin_direct): Likewise.
14194 * config/spu/spu.c (expand_builtin_args): Likewise.
14195
b29387ee
RS
141962011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14197
14198 * recog.h (insn_data_d): Add n_generator_args.
14199 * genoutput.c (data): Likewise.
14200 (output_insn_data): Print it.
14201 (max_opno, num_dups): Delete.
14202 (scan_operands): Just fill in "d->operand[...]".
14203 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14204
e792559a
RS
142052011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14206
14207 * gensupport.h (pattern_stats): New structure.
14208 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14209 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14210 (max_operand_1, max_operand_vec): Delete.
14211 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14212
e8110d6f
NF
142132011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14214
14215 * emit-rtl.c (emit_pattern_after_setloc): New function.
14216 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14217 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14218 (emit_pattern_after): New function.
14219 (emit_insn_after, emit_jump_insn_after): Call it.
14220 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14221 (emit_pattern_before_setloc): New function.
14222 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14223 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14224 Likewise.
14225 (emit_pattern_before): New function.
14226 (emit_insn_before, emit_jump_insn_before): Call it.
14227 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14228
576f85f1
RH
142292011-03-31 Richard Henderson <rth@redhat.com>
14230
14231 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14232 (dw_separate_line_info_entry): Remove.
14233 (enum dw_line_info_opcode): New.
14234 (dw_line_info_entry): Use it.
14235 (dw_line_info_table, dw_line_info_table_p): New.
14236 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14237 (line_info_table, line_info_label_num): Remove.
14238 (line_info_table_in_use): Remove.
14239 (separate_line_info_table): Remove.
14240 (separate_line_info_table_allocated): Remove.
14241 (separate_line_info_table_in_use): Remove.
14242 (LINE_INFO_TABLE_INCREMENT): Remove.
14243 (line_info_label_num): New.
14244 (cur_line_info_table): New.
14245 (text_section_line_info, cold_text_section_line_info): New.
14246 (separate_line_info): New.
14247 (SEPARATE_LINE_CODE_LABEL): Remove.
14248 (print_dwarf_line_table): Remove.
14249 (debug_dwarf): Don't dump it.
14250 (output_one_line_info_table): New.
14251 (output_line_info): Use it.
14252 (new_line_info_table): New.
14253 (set_cur_line_info_table): New.
14254 (dwarf2out_switch_text_section): Use it.
14255 (dwarf2out_begin_function): Likewise.
14256 (push_dw_line_info_entry): New.
14257 (dwarf2out_source_line): Rewrite for new line info tables.
14258 (dwarf2out_init): Remove dead initailizations.
14259
300d83d9
JM
142602011-03-31 Joseph Myers <joseph@codesourcery.com>
14261
14262 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14263 various flags.
14264 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14265 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14266 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14267 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14268 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14269 * opt-functions.awk (flag_init, switch_bit_fields): New.
14270 (switch_flags): Don't handle flags moved to bit-fields. Don't
14271 generate CL_MISSING_OK or CL_SAVE.
14272 * optc-gen.awk: Update to generate bit-field output as well as
14273 flags field.
14274 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14275 bit-field instead of CL_REJECT_DRIVER flag.
14276 * opts-common.c (generate_canonical_option,
14277 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14278 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14279 instead of CL_REJECT_NEGATIVE flag.
14280 * toplev.c (print_switch_values): Use cl_report bit-field instead
14281 of CL_REPORT flag.
14282
d4d73ce2
EB
142832011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14284
14285 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14286 a zero minimum index only if it is redundant.
14287
b8faca75
VM
142882011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14289
14290 PR rtl-optimization/48381
14291 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14292 instead of ira_class_hard_reg_index for calculating conflicting
14293 hard registers.
14294
7d11cebe
SB
142952011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14296
14297 * cprop.c: Clean up hash table building.
14298 (reg_avail_info): Remove.
14299 (oprs_available_p): Remove.
14300 (record_last_reg_set_info): Remove.
14301 (record_last_set_info): Remove.
14302 (reg_available_p): New function.
14303 (gcse_constant_p): Do not treat unfolded conditions as constants.
14304 (make_set_regs_unavailable): New function.
14305 (hash_scan_set): Simplify with new reg_available_p.
14306 (compute_hash_table_work): Traverse insns stream only once.
14307 Do not compute reg_avail_info. Traverse insns in reverse order.
14308 Record implicit sets after recording explicit sets from the block.
14309
98faf84f
MM
143102011-03-31 Michael Matz <matz@suse.de>
14311
e9c18386 14312 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 14313
f52d97da
AS
143142011-03-31 Anatoly Sokolov <aesok@post.ru>
14315
14316 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14317 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14318 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14319 (h8300_mode_dependent_address_p): New function.
14320 (h8300_get_index): Make static.
14321
e16b6fd0
JL
143222011-03-31 Jeff Law <law@redhat.com>
14323
10c51983
JL
14324 * reload1.c (elimination_effects): Fix typo in recent change.
14325
e9c18386 14326 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
14327 typo potentially leading to null pointer dereference.
14328
14329 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14330 (setup_save_areas): Corresponding changes to avoid useless
14331 assignments.
14332
14333 * jump.c (reversed_comparison_code_parts): Avoid successive return
14334 statements when REVERSE_CONDITION is defined.
14335
14336 * expr.c (expand_assignment): Avoid useless assignments.
14337 (expand_expr_real_1): Likewise.
14338 (expand_expr_real_2): Avoid useless statements.
14339
14340 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14341
14342 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14343
14344 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14345 statements.
14346
14347 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14348
eb1eb914
JM
143492011-03-31 Joseph Myers <joseph@codesourcery.com>
14350
14351 PR target/47109
14352 * doc/tm.texi.in (TARGET_VERSION): Remove.
14353 * doc/tm.texi: Regenerate.
14354 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14355 * collect2.c (main): Don't use TARGET_VERSION.
14356 * mips-tdump.c (main): Don't use TARGET_VERSION.
14357 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 14358 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
14359 * config/rs6000/vxworksae.h: Remove.
14360 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14361 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14362 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14363 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14364 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14365 * config/arm/arm.h (TARGET_VERSION): Remove.
14366 * config/arm/coff.h (TARGET_VERSION): Remove.
14367 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14368 * config/arm/elf.h (TARGET_VERSION): Remove.
14369 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14370 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14371 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14372 * config/arm/pe.h (TARGET_VERSION): Remove.
14373 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14374 * config/arm/semi.h (TARGET_VERSION): Remove.
14375 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14376 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14377 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14378 * config/avr/avr.h (TARGET_VERSION): Remove.
14379 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14380 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14381 * config/frv/frv.h (TARGET_VERSION): Remove.
14382 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14383 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14384 * config/i386/darwin.h (TARGET_VERSION): Remove.
14385 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14386 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14387 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14388 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14389 * config/i386/gnu.h (TARGET_VERSION): Remove.
14390 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14391 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14392 * config/i386/linux.h (TARGET_VERSION): Remove.
14393 * config/i386/linux64.h (TARGET_VERSION): Remove.
14394 * config/i386/lynx.h (TARGET_VERSION): Remove.
14395 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14396 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14397 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14398 * config/i386/netware.h (TARGET_VERSION): Remove.
14399 * config/i386/nto.h (TARGET_VERSION): Remove.
14400 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14401 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14402 * config/ia64/elf.h (TARGET_VERSION): Remove.
14403 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14404 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14405 * config/ia64/linux.h (TARGET_VERSION): Remove.
14406 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14407 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14408 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14409 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14410 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14411 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14412 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14413 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14414 * config/m68k/linux.h (TARGET_VERSION): Remove.
14415 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14416 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14417 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14418 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14419 * config/mep/mep.h (TARGET_VERSION): Remove.
14420 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14421 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14422 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14423 * config/mips/linux.h (TARGET_VERSION): Remove.
14424 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14425 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14426 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14427 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14428 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14429 * config/pa/pa.h (TARGET_VERSION): Remove.
14430 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14431 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14432 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14433 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14434 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14435 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14436 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14437 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14438 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14439 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14440 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14441 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14442 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14443 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14444 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14445 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14446 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14447 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14448 * config/s390/linux.h (TARGET_VERSION): Remove.
14449 * config/s390/s390.h (TARGET_VERSION): Remove.
14450 * config/s390/tpf.h (TARGET_VERSION): Remove.
14451 * config/score/score.h (TARGET_VERSION): Remove.
14452 * config/sh/linux.h (TARGET_VERSION): Remove.
14453 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14454 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14455 * config/sh/sh.h (TARGET_VERSION): Remove.
14456 * config/sh/sh64.h (TARGET_VERSION): Remove.
14457 * config/sh/superh.h (TARGET_VERSION): Remove.
14458 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14459 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14460 * config/sparc/linux.h (TARGET_VERSION): Remove.
14461 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14462 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14463 TARGET_NAME32, TARGET_NAME): Remove.
14464 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14465 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14466 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14467 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14468 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14469 * config/spu/spu.h (TARGET_VERSION): Remove.
14470 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14471 * config/v850/v850.h (TARGET_VERSION): Remove.
14472 * config/vax/linux.h (TARGET_VERSION): Remove.
14473 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14474 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14475 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14476
ace31bca
EB
144772011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14478
14479 PR target/48142
14480 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14481 frame-related from frame-unrelated adjustments to the stack pointer.
14482
76f9db36
JJ
144832011-03-31 Jakub Jelinek <jakub@redhat.com>
14484
14485 * common.opt (fdebug-types-section): Move earlier.
14486 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14487
b7826465
AT
144882011-03-31 Andreas Tobler <andreast@fgznet.ch>
14489
14490 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14491 var.
14492
1290e54c
NF
144932011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14494
14495 * tree.h (CASE_CHAIN): Define.
14496 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14497 (gimple_redirect_edge_and_branch): Likewise.
14498
bddc98e1
VM
144992011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14500
14501 PR middle-end/48367
14502 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14503 calculation.
14504
c865e437
JL
145052011-03-30 Jeff Law <law@redhat.com>
14506
b3750213 14507 * PR bootstrap/48371
c865e437
JL
14508 * reload1.c (reload): Fix botch in last change.
14509
14510 * reload.h (struct reload): Fix typo introduced in last change.
14511
2cdf9574
JM
145122011-03-30 Joseph Myers <joseph@codesourcery.com>
14513
14514 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14515 Undocumented. Remove help text.
14516 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14517 -mhard-float.
14518
666a21a2
JM
145192011-03-30 Joseph Myers <joseph@codesourcery.com>
14520
14521 * doc/options.texi (NegativeAlias): Document.
14522 (Alias): Mention NegativeAlias.
14523 * opt-functions.awk: Handle NegativeAlias.
e9c18386 14524 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
14525 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14526 * opts.h (CL_NEGATIVE_ALIAS): Define.
14527 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14528 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14529 OPT_mspe_.
14530 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14531 Alias entries.
14532 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14533 mno-spe and mno-isel instead of mspe=no and -misel=no.
14534
0fa4e351
MW
145352011-03-29 Mark Wielaard <mjw@redhat.com>
14536
14537 * common.opt (fdebug-types-section): New flag.
14538 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14539 * dwarf2out.c (use_debug_types): New define.
14540 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14541 (print_die): Guard output of type unit signatures using
14542 use_debug_types.
14543 (build_abbrev_table): Replace assert of dwarf_version >= 4
14544 with assert on use_debug_types.
14545 (size_of_die): Likewise.
14546 (unmark_dies): Likewise.
14547 (value_format): Decide AT_ref_external form on use_debug_types.
14548 (output_die): Replace dwarf_version version check guard with
14549 use_debug_types where appropriate.
14550 (modified_type_die): Likewise.
14551 (gen_reference_type_die): Likewise.
14552 (dwarf2out_start_source_file): Likewise.
14553 (dwarf2out_end_source_file): Likewise.
14554 (prune_unused_types_walk_attribs): Likewise.
14555 (dwarf2out_finish): Likewise.
14556
4648deb4
VM
145572011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14558
14559 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14560
4f431835
RS
145612011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14562
14563 PR rtl-optimization/48332
14564 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14565 mode of input operand N and modeN to its actual mode.
14566
f2034d06
JL
145672011-03-30 Jeff Law <law@redhat.com>
14568
14569 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14570 define accessor macro.
14571 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14572 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14573 (reg_equiv_init): Likewise.
14574 (reg_equivs_size): New variable.
14575 (reg_equiv_init_size): Remove.
14576 (allocate_initial_values): Move prototype to here from....
14577 * integrate.h (allocate_initial_values): Remove prototype.
14578 * integrate.c: Include reload.h.
14579 (allocate_initial_values): Corresponding changes.
14580 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14581 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14582 (update_equiv_regs): Corresponding changes.
14583 (ira): Corresponding changes.
14584 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14585 (push_secondary_reload): Corresponding changes.
14586 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14587 (make_memloc, find_reloads_address): Corresponding changes.
14588 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14589 (find_reloads_address_1): Corresponding changes.
14590 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14591 (refers_to_regno_for_reload_p): Corresponding changes.
14592 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14593 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14594 * reload1.c: Include ggc.h.
14595 (grow_reg_equivs): New function.
14596 (replace_pseudos_in, reload): Corresponding changes.
14597 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14598 (eliminate_regs_1, elimination_effects): Corresponding changes.
14599 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14600 (delete_output_reload): Likewise.
14601 * caller-save.c (mark_referenced_regs): Corresponding changes.
14602 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14603 * frv/predicates.md (frv_load_operand): Corresponding changes.
14604 * microblaze/microblaze.c (double_memory_operand): Corresponding
14605 changes.
14606 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14607 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 14608 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
14609 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14610 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14611 changes.
14612 * pa/pa.c (emit_move_sequence): Corresponding changes.
14613 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14614
159b81b0
RS
146152011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14616
14617 PR target/47551
14618 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14619 structure modes. Don't check neon_vector_mem_operand for
14620 vector or structure modes.
14621
a6217191
RS
146222011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14623 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14624
14625 PR target/43590
14626 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14627 operand 1 and reshuffle the operands to match.
14628 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14629
bd837408
CS
146302011-03-30 Christian Schüler <cschueler@gmx.de>
14631
6955d771 14632 PR driver/48208
bd837408 14633 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 14634
6955d771 14635 PR driver/48260
bd837408
CS
14636 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14637 handler function.
14638 * config/darwin.opt: Added '-arch' option.
14639
e9c0470a
NC
146402011-03-30 Nick Clifton <nickc@redhat.com>
14641
14642 * config/rx/rx.md: Add peepholes and patterns to combine
14643 extending loads and simple arithmetic instructions.
14644 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
14645 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14646 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 14647 modes to use pre-decrement and post-increment addressing.
e9c18386 14648 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 14649 addresses.
e9c18386
UB
14650 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14651 (rx_memory_move_cost): Adjust cost of stores.
14652 (rx_adjust_insn_length): New function.
e9c0470a 14653
8a87e7ab
JJ
146542011-03-30 Jakub Jelinek <jakub@redhat.com>
14655
14656 PR c/48305
14657 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14658 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14659 matching arg00/arg01 types.
14660
12486e03
EB
146612011-03-30 Eric Botcazou <ebotcazou@adacore.com>
14662
14663 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14664 last_location to UNKNOWN_LOCATION.
14665
0b99eef6
L
146662011-03-30 H.J. Lu <hongjiu.lu@intel.com>
14667
14668 PR target/48349
14669 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14670 FLOAT_SSE_REGS.
14671
023592aa
JM
146722011-03-30 Joseph Myers <joseph@codesourcery.com>
14673 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14674
14675 PR bootstrap/48337
14676 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14677 Init(PROCESSOR_V7).
14678 (sparc_cpu): Likewise.
14679 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14680 PROCESSOR_V7.
14681
ad3b266b
VM
146822011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14683
14684 PR target/48336
14685 PR middle-end/48342
14686 PR rtl-optimization/48345
14687 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14688 hard regs for given mode from profitable regs when doing secondary
14689 allocation.
14690
633c9126
JL
146912011-03-29 Jeff Law <law@redhat.com>
14692
14693 PR bootstrap/48327
14694 * tree-ssa-threadupdate.c (struct redirection_data): Remove
14695 do_not_duplicate field.
14696 (lookup_redirection_data): Corresponding changes.
14697 (create_duplicates): Always create a template block.
14698 (redirect_edges): Remove code which reused the original block
14699 when it was going to become unreachable code.
14700 (thread_block): Don't set do_not_duplicate field.
14701
eb50f63a
JM
147022011-03-29 Joseph Myers <joseph@codesourcery.com>
14703
14704 * lto-opts.c (register_user_option_p, lto_register_user_option):
14705 Make type argument unsigned.
14706 * lto-streamer.h (lto_register_user_option): Make type argument
14707 unsigned.
14708 * opth-gen.awk: Make CL_* macros unsigned.
14709 * opts-common.c (find_opt): Make lang_mask argument unsigned.
14710 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14711 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14712 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14713 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14714 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14715 (find_opt): Make lang_mask argument unsigned.
14716
76763a6d
VM
147172011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14718
14719 PR rtl-optimization/48331
14720 PR rtl-optimization/48334
14721 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14722 for any used algorithm.
14723
5c82436e
VM
147242011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14725
14726 * ira-conflicts.c (build_object_conflicts): Add unused attribute
14727 to parent_max.
14728
7a81008b
UB
147292011-03-29 Uros Bizjak <ubizjak@gmail.com>
14730
14731 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14732 (alpha_option_override): Don't set alpha_sr_alias_set.
14733 (emit_frame_store_1): Use gen_frame_mem rather than calling
14734 set_mem_alias_set.
14735 (alpha_expand_epilogue): Ditto.
14736
86c8d1f6
IR
147372011-03-29 Ira Rosen <ira.rosen@linaro.org>
14738
14739 PR tree-optimization/48290
14740 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
14741 vectorization, check that relevant phis in the basic block after
14742 the inner loop are really inner loop's exit phis.
14743
0d12220f
RS
147442011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
14745
e8cf17e7 14746 PR debug/48190
0d12220f
RS
14747 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
14748 (cached_dw_loc_list_def): New structure.
14749 (cached_dw_loc_list): New typedef.
14750 (cached_dw_loc_list_table): New variable.
14751 (cached_dw_loc_list_table_hash): New function.
14752 (cached_dw_loc_list_table_eq): Likewise.
14753 (add_location_or_const_value_attribute): Take a bool cache_p.
14754 Cache the list when the parameter is true.
14755 (gen_formal_parameter_die): Update caller.
14756 (gen_variable_die): Likewise.
14757 (dwarf2out_finish): Likewise.
14758 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
14759 while generating debug info for the decl.
14760 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
14761 (dwarf2out_init): Initialize cached_dw_loc_list_table.
14762 (resolve_addr): Cache the result of resolving a chain of
14763 location lists.
14764
1756cb66
VM
147652011-03-28 Vladimir Makarov <vmakarov@redhat.com>
14766
14767 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
14768 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 14769
1756cb66
VM
14770 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
14771 after regstat_init_n_sets_and_refs.
14772
14773 * ira.c: Add more comments at the top.
14774 (setup_stack_reg_pressure_class, setup_pressure_classes):
14775 Add comments how we compute the register pressure classes.
14776 (setup_allocno_and_important_classes): Add more comments.
14777 (setup_class_translate_array, reorder_important_classes)
14778 (setup_reg_class_relations): Add comments.
14779
14780 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
14781 start of the file.
14782
14783 * ira-color.c: Add 2011 to the Copyright line.
14784 (assign_hard_reg): Add more comments.
14785 (improve_allocation): Ditto.
14786
14787 * ira-costs.c: Add 2011 to the Copyright line.
14788 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
14789 comments.
14790 (setup_regno_cost_classes_by_mode): Ditto.
14791
14792 Initial patches from ira-improv branch:
14793
14794 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14795
f60c2554 14796 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
14797 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
14798 (ira_create_allocno): Remove initialization of
14799 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
14800 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
14801 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14802 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
14803 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
14804 Initialize ALLOCNO_ADD_DATA.
14805 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
14806 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
14807 ALLOCNO_REG.
14808 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
14809 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
14810
14811 * ira.c (ira_reallocate): Remove.
14812 (setup_pressure_classes): Call
14813 ira_init_register_move_cost_if_necessary. Use
14814 ira_register_move_cost instead of ira_get_register_move_cost.
14815 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
14816 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
14817
14818 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
14819 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14820 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
14821 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
14822 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
14823 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
14824 Fix formatting.
7a81008b 14825 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
14826 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14827 (struct allocno_color_data): New.
14828 (allocno_color_data_t): New typedef.
14829 (allocno_color_data): New definition.
14830 (ALLOCNO_COLOR_DATA): New macro.
14831 (struct object_color_data): New.
14832 (object_color_data_t): New typedef.
14833 (object_color_data): New definition.
14834 (OBJECT_COLOR_DATA): New macro.
14835 (update_copy_costs, calculate_allocno_spill_cost): Call
14836 ira_init_register_move_cost_if_necessary. Use
14837 ira_register_move_cost instead of ira_get_register_move_cost.
14838 (move_spill_restore, update_curr_costs): Ditto.
14839 (allocno_spill_priority): Make it inline.
7a81008b 14840 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
14841 (struct coalesce_data, coalesce_data_t): New.
14842 (allocno_coalesce_data): New definition.
14843 (ALLOCNO_COALESCE_DATA): New macro.
14844 (merge_allocnos, coalesced_allocno_conflict_p): Use
14845 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
14846 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
14847 (coalesce_allocnos): Ditto.
14848 (setup_coalesced_allocno_costs_and_nums): Ditto.
14849 (collect_spilled_coalesced_allocnos): Ditto.
14850 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
14851 (setup_slot_coalesced_allocno_live_ranges): Ditto.
14852 (coalesce_spill_slots): Ditto.
14853 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
14854 free allocno_coalesce_data.
14855
14856 * ira-conflicts.c: Fix formatting.
14857 (process_regs_for_copy): Call
14858 ira_init_register_move_cost_if_necessary. Use
14859 ira_register_move_cost instead of ira_get_register_move_cost.
14860 (build_object_conflicts): Optimize.
14861
14862 * ira-costs.c (record_reg_classes): Optimize. Call
14863 ira_init_register_move_cost_if_necessary. Use
14864 ira_register_move_cost, ira_may_move_in_cost, and
14865 ira_may_move_out_cost instead of ira_get_register_move_cost and
14866 ira_get_may_move_cost.
14867 (record_address_regs): Ditto.
14868 (scan_one_insn): Optimize.
14869 (find_costs_and_classes): Optimize.
14870 (process_bb_node_for_hard_reg_moves): Call
14871 ira_init_register_move_cost_if_necessary. Use
14872 ira_register_move_cost instead of ira_get_register_move_cost.
14873
14874 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
14875 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
14876 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
14877 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
14878 definitions.
14879 (ira_initiate_emit_data, ira_finish_emit_data)
14880 (create_new_allocno): New functions.
7a81008b 14881 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
14882 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
14883 Use ira_register_move_cost instead of ira_get_register_move_cost.
14884
14885 * ira-int.h: Fix some comments.
7a81008b
UB
14886 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
14887 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
14888 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
14889 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
14890 add_data.
14891 (struct ira_allocno): Make mode and aclass a bitfield. Move other
14892 bitfield after mode. Make hard_regno a short int. Make
14893 hard_regno short. Remove first_coalesced_allocno and
14894 next_coalesced_allocno. Move mem_optimized_dest_p,
14895 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
14896 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
14897 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
14898 temp, colorable_p. Add new member add_data.
14899 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
14900 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
14901 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
14902 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
14903 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
14904 (ALLOCNO_ADD_DATA): New macro.
14905 (ira_emit_data_t): New typedef.
14906 (struct ira_emit_data): New. Move mem_optimized_dest_p,
14907 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
14908 from struct ira_allocno.
14909 (ALLOCNO_EMIT_DATA): New macro.
14910 (ira_allocno_emit_data, allocno_emit_reg): New.
14911 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 14912 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
14913 (OBJECT_ADD_DATA): New macro.
14914 (ira_reallocate): Remove.
14915 (ira_initiate_emit_data, ira_finish_emit_data): New.
14916 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
14917 (ira_init_register_move_cost_if_necessary): New.
14918 (ira_object_conflict_iter_next): Merge into
14919 ira_object_conflict_iter_cond.
7a81008b 14920 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 14921
f60c2554 14922 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
14923 ira_init_register_move_cost_if_necessary. Use
14924 ira_register_move_cost instead of ira_get_register_move_cost.
14925
14926 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14927
14928 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
14929
14930 * ira-costs.c: Fix formatting.
14931 (cost_classes, cost_classes_num): Remove.
14932 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
14933 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
14934 (cost_classes_del, cost_classes_htab): New.
14935 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
14936 (initiate_regno_cost_classes, setup_cost_classes): New.
14937 (setup_regno_cost_classes_by_aclass): New.
7a81008b 14938 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
14939 (record_reg_classes): Use regno_cost_classes instead of
14940 cost_classes. Move checking opposite operand up.
14941 (record_address_regs): Use regno_cost_classes
14942 instead of cost_classes.
14943 (scan_one_insn): Ditto. Use always general register.
14944 (print_allocno_costs): Use regno_cost_classes instead of
14945 cost_classes.
14946 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
14947 (find_costs_and_classes): Set up cost classes for each registers.
14948 Use also their mode for this. Use regno_cost_classes instead of
14949 cost_classes.
14950 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
14951 cost_classes.
14952 (free_ira_costs, ira_init_costs): Don't use cost_classes.
14953 (ira_costs, ira_set_pseudo_classes): Call
14954 initiate_regno_cost_classes and finish_regno_cost_classes.
14955
14956 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
14957
14958 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
14959
14960 * target.def (ira_cover_classes): Remove.
14961
7a81008b 14962 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
14963
14964 * doc/tm.texi.in: Ditto.
14965
14966 * ira-conflicts.c: Remove mentioning cover classes from the file.
14967 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 14968 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
14969
14970 * targhooks.c (default_ira_cover_classes): Remove.
14971
14972 * targhooks.h (default_ira_cover_classes): Ditto.
14973
14974 * haifa-sched.c: Remove mentioning cover classes from the file.
14975 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
14976 ira_pressure_classes and ira_pressure_classes_num instead of
14977 ira_reg_class_cover_size and ira_reg_class_cover. Use
14978 sched_regno_pressure_class instead of sched_regno_cover_class.
14979 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
14980 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14981
14982 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
14983 classes from the file.
14984 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
14985 (struct object_hard_regs, struct object_hard_regs_node): New.
14986 (struct ira_object): New members profitable_hard_regs,
14987 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
14988 (struct ira_allocno): Rename cover_class to aclass. Rename
14989 cover_class_cost and updated_cover_class_cost to class_cost and
14990 updated_class_cost. Remove splay_removed_p and
14991 left_conflict_size. Add new members colorable_p.
14992 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
14993 (ALLOCNO_COLORABLE_P): New macro.
14994 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
14995 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
14996 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
14997 (OBJECT_...): Rename parameter C to O.
14998 (OBJECT_PROFITABLE_HARD_REGS): New macro.
14999 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15000 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15001 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15002 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15003 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15004 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15005 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15006 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15007 x_ira_reg_class_subunion.
15008 (ira_max_memory_move_cost, ira_max_register_move_cost)
15009 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15010 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15011 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 15012 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
15013 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15014 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15015 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15016 (ira_tune_allocno_costs_and_cover_classes): Rename to
15017 ira_tune_allocno_costs.
15018 (ira_debug_hard_regs_forest): New.
15019 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15020 (ira_object_conflict_iter_next): Fix comments.
7a81008b 15021 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
15022 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15023 cover_class to aclass.
15024 (ira_allocate_and_accumulate_costs): Ditto.
15025 (ira_allocate_and_set_or_copy_costs): Ditto.
15026
15027 * opts.c (decode_options): Remove ira_cover_class check.
15028
15029 * ira-color.c: Remove mentioning cover classes from the file. Use
15030 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15031 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15032 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15033 (splay-tree.h): Remove include.
15034 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15035 before copy_freq_compare_func.
15036 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15037 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15038 New definitions.
15039 (hard_regs_roots, hard_regs_node_vec): Ditto.
15040 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15041 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15042 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15043 (create_new_object_hard_regs_node): Ditto.
15044 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 15045 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
15046 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15047 Ditto.
15048 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15049 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15050 (remove_unused_object_hard_regs_nodes): Ditto.
15051 (enumerate_object_hard_regs_nodes): Ditto.
15052 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15053 (object_hard_regs_subnode_t): Ditto.
15054 (struct object_hard_regs_subnode): Ditto.
15055 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15056 (setup_object_hard_regs_subnode_index): Ditto.
15057 (get_object_hard_regs_subnodes_num): Ditto.
15058 (form_object_hard_regs_nodes_forest): Ditto.
15059 (finish_object_hard_regs_nodes_tree): Ditto.
15060 (finish_object_hard_regs_nodes_forest): Ditto.
15061 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 15062 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
15063 (pseudos_have_intersected_live_ranges_p): Rename to
15064 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15065 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15066 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15067 (update_copy_costs): Remove assert. Skip cost update if the hard
15068 reg does not belong the class.
15069 (assign_hard_reg): Process only profitable hard regs.
15070 (uncolorable_allocnos_num): Make it scalar.
15071 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15072 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15073 and ira_reg_class_max_nregs.
15074 (bucket_allocno_compare_func): Check frequency first.
15075 (sort_bucket): Add compare function as a parameter.
15076 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15077 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15078 (push_allocno_to_stack): Rewrite for checking new allocno
15079 colorability.
7a81008b 15080 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
15081 (push_only_colorable): Pass new parameter to sort_bucket.
15082 (push_allocno_to_spill): Remove.
15083 (allocno_spill_priority_compare): Make it inline and rewrite.
15084 (splay_tree_allocate, splay_tree_free): Remove.
15085 (allocno_spill_sort_compare): New function.
15086 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15087 build and use splay tree. Choose first allocno in uncolorable
15088 allocno bucket to spill. Remove setting spill cost.
15089 (all_conflicting_hard_regs): Remove.
15090 (setup_allocno_available_regs_num): Check only profitable hard
15091 regs. Print info about hard regs nodes.
15092 (setup_allocno_left_conflicts_size): Remove.
15093 (put_allocno_into_bucket): Don't call
7a81008b 15094 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
15095 (improve_allocation): New.
15096 (color_allocnos): Call setup_profitable_hard_regs,
15097 form_object_hard_regs_nodes_forest, improve_allocation,
15098 finish_object_hard_regs_nodes_forest. Setup spill cost.
15099 (print_loop_title): Use pressure classes.
15100 (color_allocnso): Ditto.
15101 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15102 and allocnos_for_spilling.
15103 (ira_sort_regnos_for_alter_reg): Don't setup members
15104 {first,next}_coalesced_allocno.
15105 (color): Remove allocating and freeing removed_splay_allocno_vec.
15106 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15107 prohibited_class_mode_regs.
15108
15109 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15110 formatting.
15111 (update_allocno_pressure_excess_length): Use pressure classes.
15112 (inc_register_pressure, dec_register_pressure): Check for pressure
15113 class.
15114 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15115 pressure class. Use ira_reg_class_nregs instead of
15116 ira_reg_class_max_nregs.
15117 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15118 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15119 (single_reg_class): Use ira_reg_class_nregs instead of
15120 ira_reg_class_max_nregs.
15121 (process_bb_node_lives): Use pressure classes.
15122
15123 * ira-emit.c: Remove mentioning cover classes from the file. Use
15124 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15125 (change_loop): Use pressure classes.
15126 (modify_move_list): Call ira_set_allocno_class instead of
15127 ira_set_allocno_cover_class.
15128
15129 * ira-build.c: Remove mentioning cover classes from the file. Use
15130 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15131 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15132 ALLOCNO_UPDATED_CLASS_COST instead of
15133 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15134 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15135 (ira_create_allocno): Remove initialization of
15136 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15137 ALLOCNO_COLORABLE_P.
15138 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15139 Update conflict regs for the objects.
15140 (create_cap_allocno): Remove assert. Don't propagate
15141 ALLOCNO_AVAILABLE_REGS_NUM.
15142 (ira_free_allocno_costs): New function.
15143 (finish_allocno): Change a part of code into call of
15144 ira_free_allocno_costs.
15145 (low_pressure_loop_node_p): Use pressure classes.
15146 (object_range_compare_func): Don't compare classes.
15147 (setup_min_max_conflict_allocno_ids): Ditto.
15148
15149 * loop-invariant.c: Remove mentioning cover classes from the file.
15150 Use ira_pressure_classes and ira_pressure_classes_num instead of
15151 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
15152 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15153 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15154 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
15155 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15156 STACK_REG_COVER_CLASS.
15157 (get_regno_cover_class): Rename to get_regno_pressure_class.
15158 (move_loop_invariants): Initialize and finalize regstat.
15159
15160 * ira.c: Remove mentioning cover classes from the file. Add
15161 comments about coloring without cover classes. Use ALLOCNO_CLASS
15162 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15163 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15164 setup_class_subset_and_memory_move_costs.
15165 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15166 (setup_cover_and_important_classes): Rename to
15167 setup_allocno_and_important_classes.
15168 (setup_class_translate_array): New.
15169 (setup_class_translate): Call it for allocno and pressure classes.
15170 (cover_class_order): Rename to allocno_class_order.
15171 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15172 of ira_class_translate.
15173 (reorder_important_classes): Set up ira_important_class_nums.
15174 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15175 (print_class_cover): Rename to print_classes. Add parameter.
15176 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15177 Print pressure classes too.
15178 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15179 setup_reg_subclasses.
7a81008b 15180 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
15181 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15182 (setup_prohibited_class_mode_regs): Use
7a81008b 15183 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
15184 (clarify_prohibited_class_mode_regs): New function.
15185 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15186 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15187 (ira_init_once): Initialize them.
15188 (free_register_move_costs): Process them.
15189 (ira_init): Move calls of find_reg_classes and
15190 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15191 Call clarify_prohibited_class_mode_regs.
15192 (ira_no_alloc_reg): Remove.
15193 (too_high_register_pressure_p): Use pressure classes.
15194
15195 * sched-deps.c: Remove mentioning cover classes from the file.
15196 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15197 ira_pressure_classes and ira_pressure_classes_num instead of
15198 ira_reg_class_cover_size and ira_reg_class_cover.
15199 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15200 sched_regno_pressure_class instead of sched_regno_cover_class.
15201 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15202 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15203
15204 * ira.h: Add 2010 to Copyright.
15205 (ira_no_alloc_reg): Remove external.
15206 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15207 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15208 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15209 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15210 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15211 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15212 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15213 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15214 x_ira_no_alloc_regs.
7a81008b 15215 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
15216 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15217 ira_allocno_classes_num and ira_allocno_classes.
15218 (ira_class_translate): Rename to ira_allocno_class_translate.
15219 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15220 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15221 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15222 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15223 (ira_no_alloc_regs): New.
15224
15225 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15226 classes from the file. Use ALLOCNO_CLASS instead of
15227 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15228 ALLOCNO_COVER_CLASS_COST.
15229 (regno_cover_class): Rename to regno_aclass.
15230 (record_reg_classes): Use ira_reg_class_subunion instead of
15231 ira_reg_class_union.
15232 (record_address_regs): Check overflow.
15233 (scan_one_insn): Ditto.
7a81008b 15234 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
15235 (print_pseudo_costs): Use REG_N_REFS.
15236 (find_costs_and_classes): Use classes intersected with them on the
15237 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15238 ira_reg_class_union. Use ira_allocno_class_translate and
15239 regno_aclass instead of ira_class_translate and regno_cover_class.
15240 Modify code for finding regno_aclass. Setup preferred classes for
15241 the next pass.
15242 (setup_allocno_cover_class_and_costs): Rename to
15243 setup_allocno_class_and_costs. Use regno_aclass instead of
15244 regno_cover_class. Use ira_set_allocno_class instead of
15245 ira_set_allocno_cover_class.
15246 (init_costs, finish_costs): Use regno_aclass instead of
15247 regno_cover_class.
15248 (ira_costs): Use setup_allocno_class_and_costs instead of
15249 setup_allocno_cover_class_and_costs.
15250 (ira_tune_allocno_costs_and_cover_classes): Rename to
15251 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15252 by processing objects. Use ira_reg_class_max_nregs instead of
15253 ira_reg_class_nregs.
15254
15255 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15256
15257 * sched-int.h: Remove mentioning cover classes from the file.
15258 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15259
15260 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15261 classes from the file.
15262 (struct reg_pref): Rename coverclass into allocnoclass.
15263 (reg_cover_class): Rename to reg_allocno_class.
15264
7a81008b 15265 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
15266
15267 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15268
15269 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15270
15271 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15272
15273 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15274
15275 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15276
15277 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15278
15279 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15280
15281 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15282
15283 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15284
15285 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15286 (i386_ira_cover_classes): Ditto.
15287
15288 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15289
15290 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15291
15292 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15293
15294 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15295
15296 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15297
15298 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15299
15300 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15301 (mips_ira_cover_classes): Ditto.
15302
15303 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15304
15305 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15306
15307 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15308
15309 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15310
15311 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15312
15313 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15314 (IRA_COVER_CLASSES_VSX): Ditto.
15315
15316 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15317 (rs6000_ira_cover_classes): Ditto.
15318
15319 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15320
15321 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15322
15323 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15324
15325 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15326
15327 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15328
15329 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15330
15331 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15332
15333 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15334
15335 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15336
15337 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15338
2b80199f
JJ
153392011-03-29 Jakub Jelinek <jakub@redhat.com>
15340
71dae1fe
JJ
15341 PR debug/48253
15342 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15343 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15344 dw_fde_unlikely_section_end_label, cold_in_std_section,
15345 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15346 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15347 fields.
15348 (output_fde): Use dw_fde_second_{begin,end} if second is
15349 true, otherwise dw_fde_{begin,end}.
15350 (output_call_frame_info): Test dw_fde_second_begin != NULL
15351 instead of dw_fde_switched_sections.
15352 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15353 fields, initialize new fields. Initialize in_std_section
15354 unconditionally from the first partition.
15355 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15356 dw_fde_second_begin is non-NULL.
15357 (dwarf2out_switch_text_section): Stop initializing removed
15358 dw_fde_struct fields, initialize new fields, initialize
15359 also dw_fde_end here. Set dw_fde_switch_cfi even when
15360 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15361 (struct var_loc_list_def): Add last_before_switch field.
15362 (arange_table, arange_table_allocated, arange_table_in_use,
15363 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15364 (size_of_aranges): Count !in_std_section and !second_in_std_section
15365 hunks in fdes, instead of looking at arange_table_in_use.
15366 (output_aranges): Add aranges_length argument, don't call
15367 size_of_aranges here. Instead of using aranges_table*
15368 emit ranges for fdes when !in_std_section resp.
15369 !second_in_std_section.
15370 (dw_loc_list): Break ranges crossing section switch.
15371 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 15372 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
15373 (gen_subprogram_die): Don't call add_arange. Use
15374 dw_fde_{begin,end} for first partition and if switched
15375 section dw_fde_second_{begin,end} for the second.
15376 (var_location_switch_text_section_1,
15377 var_location_switch_text_section): New functions.
15378 (dwarf2out_begin_function): Initialize cold_text_section even
15379 when function_section () isn't text_section.
15380 (prune_unused_types): Don't walk arange_table.
15381 (dwarf2out_finish): Don't needlessly test
15382 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15383 If info_section_emitted, call size_of_aranges and if it indicates
15384 non-empty .debug_aranges, call output_aranges with the computed
15385 size. Stop using removed dw_fde_struct fields, use
15386 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15387 for second.
15388
2b80199f
JJ
15389 PR debug/48203
15390 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15391 create ENTRY_VALUE if incoming or address of incoming's MEM
15392 is a hard REG.
15393 * dwarf2out.c (mem_loc_descriptor): Don't emit
15394 DW_OP_GNU_entry_value of DW_OP_fbreg.
15395 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15396 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15397 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15398 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15399 ENTRY_VALUE_EXPs.
15400 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15401 is a REG_P or MEM_P with REG_P address, compute hash directly
15402 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15403 (preserve_only_constants): Don't clear VALUES forwaring
15404 ENTRY_VALUE to some other VALUE.
15405
8a445129
RS
154062011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15407
15408 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15409 instead of GEN_INT.
15410
c82fee88
EB
154112011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15412
15413 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15414 block before expanding the statement.
15415 (expand_gimple_stmt_1): Likewise. Set them here...
15416 (expand_gimple_stmt): ...and not here. Tidy.
15417 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15418 unknown.
15419
e45425ec
SB
154202011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15421
15422 * Makefile.in: New rule for cprop.o.
15423 * gcse.c: Move constant/copy propagation to cprop.c.
15424 (compute_local_properties): Only handle expression tables.
15425 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15426 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15427 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15428 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 15429 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
15430 compute_cprop_data, find_used_regs, try_replace_reg,
15431 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15432 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15433 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15434 find_bypass_set, reg_killed_on_edge, bypass_block,
15435 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15436 execute_rtl_cprop, pass_rtl_cprop): Move to...
15437 * cprop.c: ...here. New file, constant/copy propagation for RTL
15438 moved from gcse.c to here with minor cleanups in duplicated code.
15439
c09d5426
L
154402011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15441
15442 * config/i386/i386.c (flag_opts): Fix a typo in
15443 -mavx256-split-unaligned-store.
15444
9eaa7740
AS
154452011-03-28 Anatoly Sokolov <aesok@post.ru>
15446
15447 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15448 LIBCALL_VALUE): Remove macros.
15449 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15450 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15451 (h8300_function_value, h8300_libcall_value,
15452 h8300_function_value_regno_p): New functions.
15453
dcec2be2
AS
154542011-03-28 Anatoly Sokolov <aesok@post.ru>
15455
15456 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15457
520af9ec
JL
154582011-03-28 Jeff Law <law@redhat.com>
15459
15460 * tree-ssa-threadupdate.c (redirect_edges): Call
15461 create_edge_and_update_destination_phis as needed.
15462 (create_edge_and_update_destination_phis): Accept new BB argument.
15463 All callers updated.
15464 (thread_block): Do not update the profile when threading around
15465 intermediate blocks.
15466 (thread_single_edge): Likewise.
15467 (determine_bb_domination_status): If BB is not a successor of the
15468 loop header, return NONDOMINATING.
15469 (register_jump_thread): Note when we register a jump thread around
15470 an intermediate block.
15471 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15472 (thread_across_edge): Use it.
15473
7450b54f
TG
154742011-03-28 Tristan Gingold <gingold@adacore.com>
15475
15476 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15477 when for_return is 2.
15478
649beb33
JL
154792011-03-28 Jeff Law <law@redhat.com>
15480
15481 * var-tracking.c (canonicalize_values_mark): Delete unused
15482 lhs assignment.
15483 (canonicalize_values_star, set_variable_part): Likewise.
15484 (clobber_variable_part, delete_variable_part): Likewise.
15485
d5b8da97
SB
154862011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15487
15488 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15489
322dd859
MJ
154902011-03-28 Martin Jambor <mjambor@suse.cz>
15491
15492 * tree-inline.c (expand_call_inline): Do not check that destination
15493 node is analyzed.
15494 (optimize_inline_calls): Assert that destination node is analyzed.
15495 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15496 not call tree_lowering_passes.
15497 * cgraph.h (cgraph_analyze_function): Declare.
15498 * cgraphunit.c (cgraph_analyze_function): Make public.
15499
aa53e58b
JM
155002011-03-28 Joseph Myers <joseph@codesourcery.com>
15501
15502 * config/sparc/sparc-opts.h: New.
15503 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15504 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15505 (sparc_option_override): Store processor_type enumeration rather
15506 than string in cpu_default. Remove name and enumeration from
15507 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15508 without using sparc_select. Use target_flags_explicit instead of
15509 fpu_option_set.
15510 * config/sparc/sparc.h (enum processor_type): Move to
15511 sparc-opts.h.
15512 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15513 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15514 HeaderInclude entry.
15515 (mcpu=, mtune=): Use Var and Enum.
15516 (sparc_processor_type): New Enum and EnumValue entries.
15517
dd350eba
RO
155182011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15519 Iain Sandoe <iains@gcc.gnu.org>
15520
15521 PR target/48245
15522 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15523
1b29f05e
EB
155242011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15525
15526 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15527 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15528 Insert new statements at it in lieu of STMT.
15529 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15530 * tree-vect-stmts.c (vectorizable_store): Likewise.
15531 (vectorizable_load): Likewise.
15532
506e6808
UB
155332011-03-28 Uros Bizjak <ubizjak@gmail.com>
15534
15535 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15536 (divtf3): Ditto.
15537 (multf3): Ditto.
15538 (subtf3): Ditto.
15539
2e939ee9
L
155402011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15541
15542 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15543 unaligned 256bit load/store.
15544 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15545 (*avx_movdqu<avxmodesuffix>): Likewise.
15546
5e85ab88
JDA
155472011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15548
15549 PR target/48288
15550 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15551 * config/pa/pa.md (iordi3): Use new predicate in expander.
15552 (iorsi3): Likewise.
15553
47be3d6d
AS
155542011-03-27 Anatoly Sokolov <aesok@post.ru>
15555
506e6808 15556 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 15557 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
15558 * config/mips/mips-protos.h (mips_function_value): Remove.
15559 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
15560 (mips_function_value_1): ... this. Make static. Handle receiving
15561 the function type in 'fn_decl_or_type' argument.
15562 (mips_function_value, mips_libcall_value,
15563 mips_function_value_regno_p): New function.
15564 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15565 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15566
d253656a
L
155672011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15568
15569 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15570 and -mavx256-split-unaligned-store.
15571 (ix86_option_override_internal): Split 32-byte AVX unaligned
15572 load/store by default.
15573 (ix86_avx256_split_vector_move_misalign): New.
15574 (ix86_expand_vector_move_misalign): Use it.
15575
15576 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15577 -mavx256-split-unaligned-store.
15578
15579 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15580 256bit load/store. Generate unaligned store on misaligned memory
15581 operand.
15582 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15583 256bit load/store.
15584 (*avx_movdqu<avxmodesuffix>): Likewise.
15585
15586 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15587 -mavx256-split-unaligned-store.
15588
1ea9206a
RS
155892011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15590
15591 PR target/38598
15592 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15593 Update commentary.
15594
b99ce2a8
RS
155952011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15596
15597 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15598 opno arguments with an expand_operand. Use create_input_operand.
15599 (mips_prepare_builtin_target): Delete.
15600 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15601 functions.
15602 (mips_expand_builtin_direct): Use create_output_operand and
15603 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15604 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15605 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15606
69d52339
IR
156072011-03-27 Ira Rosen <ira.rosen@linaro.org>
15608
15609 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15610 function.
15611 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15612
ba5e9aca
EB
156132011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15614
15615 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15616 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15617 basic blocks and call commit_edge_insertions directly.
15618 (fixup_abnormal_edges): Move from here to...
15619 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15620 on the edges and return whether some have actually been inserted.
15621 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15622 compensation code.
15623
5d369d58
AB
156242011-03-26 Andrey Belevantsev <abel@ispras.ru>
15625
15626 PR rtl-optimization/48144
15627 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15628 (merge_expr_data): ... here.
15629 (av_set_intersect): Rename to av_set_code_motion_filter.
15630 Update all callers. Call merge_history_vect when an expression
15631 is found in both sets.
15632 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15633
f082c000
AM
156342011-03-26 Alan Modra <amodra@gmail.com>
15635
15636 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15637 cmodel medium addresses.
15638 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15639 64-bit gpr loads and stores.
15640 (rs6000_secondary_reload_ppc64): New function.
15641 * config/rs6000/rs6000-protos.h: Declare it.
15642 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15643
8ac5e12e
AM
156442011-03-26 Alan Modra <amodra@gmail.com>
15645
15646 PR target/47487
15647 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15648 GNU Go in traceback table.
15649
c2654ded
RH
156502011-03-25 Richard Henderson <rth@redhat.com>
15651
15652 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15653 if there are exactly 6 operands.
15654 (set_storage_via_setmem): Similarly.
15655
ba78087b
KT
156562011-03-25 Kai Tietz <ktietz@redhat.com>
15657
15658 * collect2.c (write_c_file_stat): Handle backslash
15659 as right-hand directory separator.
15660 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15661 checking just for slash.
15662 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15663 instead of checking for trailing slash.
15664 * gcc.c (record_temp_file): Use filename_cmp instead
15665 of strcmp.
15666 (do_spec_1): Likewise.
15667 (replace_outfile_spec_function): Likewise.
15668 (is_directory): Use filename_ncmp instead of strncmp.
15669 (print_multilib_info): Likewise.
15670 * gcov.c (find_source): Use filename_cmp instead
15671 instead of strcmp.
15672 (make_gcov_file_name): Fix order of slash/backslash
15673 checks.
15674 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15675 (add_standard_paths): Likewise.
15676 * mips-tfile.c (saber_stop): Handle backslash.
15677 * prefix.c (update_path): Use filename_ncmp instead of
15678 strncmp.
15679 * profile.c (output_location): Use filename_cmp instead
15680 of strcmp.
15681 * read-md.c (handle_toplevel_file): Handle backslash.
15682 * tlink.c (frob_extension): Likewise.
15683 * tree-cfg.c (same_line_p): Use filename_cmp instead of
15684 strcmp.
15685 * tree-dump.c (dequeue_and_dump): Handle backslash.
15686 * tree.c (get_file_function_name): Likewise.
15687 * gengtype.c (read_input_list): Likewise.
15688 (get_file_realbasename): Likewise.
15689 (get_output_file_with_visibility): Use filename_cmp
15690 instead of strcmp.
15691
75f6ec9a
RS
156922011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
15693
15694 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15695 case to VFPv1.
15696
6c4e2997
NF
156972011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15698
15699 * fold-const.c (expr_location_or): New function.
15700 (fold_truth_not_expr): Call it.
15701
0edf1bb2
JL
157022011-03-25 Jeff Law <law@redhat.com>
15703
15704 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15705 va_end.
15706 * c-family/c-common.c (def_fn_type): Likewise.
15707 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15708 * emit-rtl.c (gen_rtvec): Likewise.
15709 * lto/lto-lang.c (def_fn_type): Likewise.
15710
fdc2de95
RG
157112011-03-25 Richard Guenther <rguenther@suse.de>
15712
15713 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15714 also generate copies.
15715 (fini_copy_prop): Handle constant values properly.
15716
21385db0
JJ
157172011-03-25 Jakub Jelinek <jakub@redhat.com>
15718
15719 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15720 mode size instead of bitsize with DWARF2_ADDR_SIZE.
15721 (hash_loc_operands, compare_loc_operands): Handle
15722 DW_OP_GNU_entry_value.
15723
6510e8bb
KT
157242011-03-25 Kai Tietz <ktietz@redhat.com>
15725
15726 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15727 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15728 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15729 comment and use macro TARGET_64BIT_MS_ABI instead.
15730 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15731 and change default behavior for 32-bit MS_ABI.
15732 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15733 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15734 32-bit, too.
15735 (ix86_cfun_abi): Likewise.
15736 (ix86_maybe_switch_abi): Adjust comment.
15737 (init_cumulative_args): Check for bit-ness in MS_ABI case.
15738 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15739 instead of checking for SYSV_ABI.
15740 (ix86_nsaved_sseregs): Likewise.
15741 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
15742 to 16 bytes.
15743 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
15744 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
15745 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
15746 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
15747 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
15748
34019e28
RG
157492011-03-25 Richard Guenther <rguenther@suse.de>
15750
15751 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
15752 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15753 (verify_gimple): Remove.
15754 * tree-cfg.c (verify_gimple_call): Merge verification
15755 from verify_stmts.
15756 (verify_gimple_phi): Merge verification from verify_stmts.
15757 (verify_gimple_label): New function.
15758 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
15759 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15760 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
15761 (verify_stmts): Rename to verify_gimple_in_cfg.
15762 (verify_gimple_in_cfg): New function.
15763 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
15764 * tree-ssa.c (verify_ssa): Likewise.
15765 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
15766
605896f5
RG
157672011-03-25 Richard Guenther <rguenther@suse.de>
15768
15769 * passes.c (init_optimization_passes): Add FRE pass after
15770 early SRA.
15771
7baa7c13
BS
157722011-03-25 Bernd Schmidt <bernds@codesourcery.com>
15773 Andrew Stubbs <ams@codesourcery.com>
15774
15775 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
15776 for Cortex-A8.
15777 (arm_movdi_vfp_cortexa8): New pattern.
15778 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
15779 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
15780 instructions when tuning for Cortex-A8. Set attribute "arch".
15781 * config/arm/arm.md: Move include arm-tune.md up a bit.
15782 (define_attr "arch"): Add "onlya8" and "nota8" values.
15783 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
15784
45dbce1b
NF
157852011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15786
4ff08abf 15787 PR bootstrap/48282
45dbce1b
NF
15788 Revert:
15789 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15790
15791 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15792 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15793 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15794 * passes.c (init_optimization_passes): Move
15795 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15796
ac9a30ae
KT
157972011-03-25 Kai Tietz <ktietz@redhat.com>
15798
15799 * c-typeck.c (comptypes_internal): Replace target
15800 hook call of comp_type_attributes by version in tree.c file.
15801 * gimple.c (gimple_types_compatible_p_1): Likewise.
15802 * tree-ssa.c (useless_type_conversion_p): Likewise.
15803 * tree.c (build_type_attribute_qual_variant): Likewise.
15804 (attribute_value_equal): New static helper function.
15805 (comp_type_attributes): New function.
15806 (merge_attributes): Use attribute_value_equal for comparison.
15807 (attribute_list_contained): Likewise.
15808 * tree.h (comp_type_attributes): New prototype.
15809
afdac116
RG
158102011-03-25 Richard Guenther <rguenther@suse.de>
15811
15812 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
15813 of complex types at -O0.
15814 (verify_gimple_assign_binary): Likewise.
15815 (verify_gimple_assign_ternary): Likewise.
15816
ec6165f8
MW
158172011-03-24 Mark Wielaard <mjw@redhat.com>
15818
15819 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
15820 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
15821
2a5ac39a
MW
158222011-03-24 Mark Wielaard <mjw@redhat.com>
15823
15824 PR debug/48041
15825 * dwarf2out.c (output_abbrev_section): Only write table when
15826 abbrev_die_table_in_use > 1.
15827
e533b2a4
RH
158282011-02-24 Richard Henderson <rth@redhat.com>
15829
15830 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
15831 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
15832 (alpha_expand_unaligned_load_words): Use extql.
15833 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
15834 (emit_insxl): Handle all modes for consistency.
15835
0b2a7367
RH
158362011-02-24 Richard Henderson <rth@redhat.com>
15837
15838 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
15839 (alpha_expand_unaligned_load): Likewise.
15840 (alpha_expand_unaligned_store): Likewise.
15841 (alpha_expand_unaligned_load_words): Likewise.
15842 (alpha_expand_unaligned_store_words): Likewise.
15843 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
15844 (alpha_split_lock_test_and_set_12): Likewise.
15845 (print_operand, alpha_fold_builtin_extxx): Likewise.
15846 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
15847 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
15848 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
15849 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
15850 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
15851 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
15852 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
15853 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
15854 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
15855 (extwl, extll, extql): Similarly.
15856 (inswh, inslh, insqh): Similarly.
15857 (mskbl, mskwl, mskll, mskql): Similarly.
15858 (mskwh, msklh, mskqh): Similarly.
15859
315b2bef
RH
158602011-02-24 Richard Henderson <rth@redhat.com>
15861
15862 * config/alpha/alpha.md (attribute isa): Add er, ner.
15863 (attribute enabled): Handle them.
15864 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
15865
67102517
RH
158662011-02-24 Richard Henderson <rth@redhat.com>
15867
15868 * config/alpha/alpha.md (attribute isa): Add vms.
15869 (attribute enabled): Handle it.
15870 (*movsf): Merge *movsf_{nofix,fix,nofp}.
15871 (*movdf): Merge *movdf_{nofix,fix,nofp}.
15872 (*movtf): Rename from *movtf_internal for consistency.
15873 (*movsi): Merge with *movsi_nt_vms.
15874 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
15875 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
15876 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
15877 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
15878
6aba5cb4
RH
158792011-02-24 Richard Henderson <rth@redhat.com>
15880
15881 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
15882 (extendqisi2, extendhisi2): Likewise.
15883 (extendqidi2): Simplify BWX/non-BWX expansions.
15884 (extendhidi2): Similarly.
15885
bdfb351b
RH
158862011-02-24 Richard Henderson <rth@redhat.com>
15887
15888 * config/alpha/alpha.md (attribute isa): New.
15889 (attribute enabled): New.
15890 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
15891 (zero_extendqisi2, zero_extendqidi2): Similarly.
15892 (zero_extendhisi2, zero_extendhidi2): Similarly.
15893 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
15894
6abe71eb
RH
158952011-02-24 Richard Henderson <rth@redhat.com>
15896
15897 * config/alpha/predicates.md (input_operand): Revert last change;
15898 update comment to mention 32-bit VMS rather than Windows.
15899
7114321e
NF
159002011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15901
15902 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15903 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15904 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15905 * passes.c (init_optimization_passes): Move
15906 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15907
c8679567
EB
159082011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15909
15910 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
15911
27173058
UB
159122011-03-24 Uros Bizjak <ubizjak@gmail.com>
15913
15914 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
15915 correctly.
15916
6f0c9f06
JJ
159172011-03-24 Jakub Jelinek <jakub@redhat.com>
15918
15919 PR debug/48204
15920 * simplify-rtx.c (simplify_const_unary_operation): Call
15921 real_convert when changing mode class with FLOAT_EXTEND.
15922
662666e5
NC
159232011-03-24 Nick Clifton <nickc@redhat.com>
15924
15925 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
15926 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15927 * config/rx/rx.c (rx_option_override): Set align_jumps,
15928 align_loops and align_labels if not set by the user.
15929 (rx_align_for_label): New function.
15930 (rx_max_skip_for_label): New function.
15931 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
15932 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
15933 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
15934 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
15935 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
15936
2b99b2b8
RS
159372011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
15938
15939 PR rtl-optimization/48263
15940 * optabs.c (expand_binop_directly): Reinstate convert_modes code
15941 and original commutative_p handling. Use maybe_gen_insn.
15942
ccecd6ea
AK
159432011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15944
15945 * reload.c (find_reloads_subreg_address): Add address_reloaded
15946 parameter and return true there if the full address has been
15947 reloaded.
15948 (find_reloads_toplev): Pass address_reloaded flag.
15949 (find_reloads_address_1): Don't use address_reloaded parameter.
15950
67295642
JL
159512011-03-24 Jeff Law <law@redhat.com>
15952
15953 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
15954 unused variable "ann".
15955 (remove_unused_locals): Likewise.
15956
15957 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
15958 statement.
15959
15960 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
15961 after it is freed.
15962
212aa74f
AK
159632011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15964
15965 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
15966 for invalid symbolic addresses.
15967 (s390_secondary_reload): Don't use s390_check_symref_alignment for
15968 larl operands.
15969
fe784e0d
EB
159702011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15971
15972 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
15973 the argument in calls to fold_truth_not_expr.
15974
63ee8641
NF
159752011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15976
15977 * tree.c (record_node_allocation_statistics): New function.
15978 (make_node_stat, copy_node_stat, build_string): Call it.
15979 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
15980 (build1_stat, build_omp_clause): Likewise.
15981
61be2a1c
RS
159822011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
15983
15984 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
15985 last commit.
15986
a881aaa7
RG
159872011-03-24 Richard Guenther <rguenther@suse.de>
15988
15989 PR tree-optimization/48271
15990 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
15991 blocks that still exist.
15992
dbaa912c
RG
159932011-03-24 Richard Guenther <rguenther@suse.de>
15994
15995 PR tree-optimization/48270
15996 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
15997 not free datarefs before ddrs.
15998
1d60cc55
EB
159992011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16000
16001 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16002 from the address built for a reference with variable offset.
16003
c78dd519
UB
160042011-03-24 Uros Bizjak <ubizjak@gmail.com>
16005
16006 PR target/48237
16007 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16008 alternatives that can be handled with movq or movabsq insn.
16009 (*movdf_internal): Disable for !TARGET_64BIT.
16010 (*movdf_internal_nointeger): Ditto.
16011 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16012
b25b9e8f
NF
160132011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16014
16015 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16016 (FUNCTION_ARG_ADVANCE): Likewise.
16017 * tm.texi.in: Change references to them to hook references.
16018 * tm.texi: Regenerate.
c78dd519 16019 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
16020 (default_function_incoming_arg): Likewise.
16021 (default_function_arg_advance): Likewise.
c78dd519 16022 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
16023 (function_arg_advance): Likewise.
16024 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16025
190b2187
RG
160262011-03-24 Richard Guenther <rguenther@suse.de>
16027
16028 PR middle-end/48269
16029 * tree-object-size.c (addr_object_size): Do not double-account
16030 for MEM_REF offsets.
16031
a183b5c7
DN
160322011-03-24 Diego Novillo <dnovillo@google.com>
16033
16034 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 16035 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
16036 (lto_input_data_block): Move from lto-opts.c. Make extern.
16037 Update all users.
16038 (lto_input_string): Rename from input_string. Make extern.
16039 Update all users.
16040 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16041 output_string_with_length.
16042 Output 0 to indicate a non-NULL string. Update all callers to
16043 not emit 0.
16044 (lto_output_string): Rename from output_string. Make extern.
16045 Update all users.
16046 (lto_output_decl_state_streams): Make extern.
16047 (lto_output_decl_state_refs): Make extern.
16048 * lto-streamer.h (lto_input_string): Declare.
16049 (lto_input_data_block): Declare.
16050 (lto_output_string): Declare.
16051 (lto_output_string_with_length): Declare.
16052 (lto_output_decl_state_streams): Declare.
16053 (lto_output_decl_state_refs): Declare.
16054
cfef45c8
RG
160552011-03-24 Richard Guenther <rguenther@suse.de>
16056
16057 PR tree-optimization/46562
16058 * tree.c (build_invariant_address): New function.
16059 * tree.h (build_invariant_address): Declare.
16060 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16061 a renamed function moved ...
16062 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16063 Take valueization callback parameter.
16064 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16065 * gimple-fold.h: New file.
16066 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16067 (ccp_fold, fold_const_aggregate_ref,
16068 fold_ctor_reference, fold_nonarray_ctor_reference,
16069 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16070 get_base_constructor): Move ...
16071 * gimple-fold.c: ... here.
16072 (gimple_fold_stmt_to_constant_1): New function
16073 split out from ccp_fold. Take a valueization callback parameter.
16074 Valueize all operands.
16075 (gimple_fold_stmt_to_constant): New wrapper function.
16076 (fold_const_aggregate_ref_1): New function split out from
16077 fold_const_aggregate_ref. Take a valueization callback parameter.
16078 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16079 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16080 invariant POINTER_PLUS_EXPRs to invariant form.
16081 (vn_valueize): New function.
16082 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16083 * tree-vrp.c (vrp_valueize): New function.
16084 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16085 to fold statements to constants.
16086 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16087 function declarations.
16088 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16089 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16090
5e0a7e40
RS
160912011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16092
16093 * config/h8300/predicates.md (jump_address_operand): Fix register
16094 mode check.
16095
bfe068c3
IR
160962011-03-24 Ira Rosen <ira.rosen@linaro.org>
16097
16098 * doc/invoke.texi (max-stores-to-sink): Document.
16099 * params.h (MAX_STORES_TO_SINK): Define.
16100 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16101 if either vectorization or if-conversion is disabled.
16102 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16103 tree-vect-data-refs.c vect_equal_offsets.
16104 (dr_equal_offsets_p): New function.
16105 (find_data_references_in_bb): Remove static.
16106 * tree-data-ref.h (find_data_references_in_bb): Declare.
16107 (dr_equal_offsets_p): Likewise.
16108 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16109 (vect_drs_dependent_in_basic_block): Update calls to
16110 vect_equal_offsets.
16111 (vect_check_interleaving): Likewise.
16112 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16113 (cond_if_else_store_replacement): Rename to...
16114 (cond_if_else_store_replacement_1): ... this. Change arguments and
16115 documentation.
16116 (cond_if_else_store_replacement): New function.
16117 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16118 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16119
4908b0bf
CLT
161202011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16121
16122 PR target/46934
16123 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16124 to subtract lower bound instead of GEN_INT().
16125
2be478a2
JW
161262011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16127
16128 PR other/48179
16129 PR other/48221
16130 PR other/48234
16131 * doc/extend.texi (Alignment): Move section to match order in TOC.
16132 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16133 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16134
0c617be4
JL
161352011-03-23 Jeff Law <law@redhat.com>
16136
16137 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16138 before removing the edge.
16139
16140 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16141 it may have been freed by redirect_branch_edge or
16142 redirect_edge_succ_nodup.
16143
58da96fe
RG
161442011-03-23 Richard Guenther <rguenther@suse.de>
16145
c78dd519 16146 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
16147 (check_va_list_escapes): Likewise.
16148 (check_all_va_list_escapes): Likewise.
16149
b8beb4d1
RG
161502011-03-23 Richard Guenther <rguenther@suse.de>
16151
16152 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16153 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16154 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16155 (alias.o): Likewise.
16156 (ipa-type-escape.o): Remove.
16157 (ipa-struct-reorg.o): Likewise.
16158 (GTFILES): Remove ipa-struct-reorg.c.
16159 * alias.c: Do not include ipa-type-escape.h.
16160 * tree-ssa-alias.c: Likewise.
16161 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16162 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16163 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16164 and ipa-type-escape passes.
16165 * tree-pass.h (pass_ipa_type_escape): Remove.
16166 (pass_ipa_struct_reorg): Likewise.
16167 * ipa-struct-reorg.h: Remove.
16168 * ipa-struct-reorg.c: Likewise.
16169 * ipa-type-escape.h: Likewise.
16170 * ipa-type-escape.c: Likewise.
16171 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16172 (--param struct-reorg-cold-struct-ratio): Likewise.
16173 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16174 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16175 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16176
f137aa63
AK
161772011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16178
16179 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16180 cpu attribute value.
16181 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16182 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16183 * config/s390/s390.c (processor_flags_table): New constant array.
16184 (s390_handle_arch_option): Remove.
16185 (s390_handle_option): Remove s390_handle_arch_option invocations
16186 and OPT_mwarn_framesize_ handling.
16187 (s390_option_override): Remove s390_handle_arch_option invocation.
16188 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16189 warnings.
16190 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16191 * config/s390/s390.opt (s390_tune, s390_arch)
16192 (march=): Replace s390_arch_option enum and values with
16193 processor_type. Set variable name to s390_arch. Set
16194 initialization value.
16195 (mtune=): Replace s390_arch_option with processor_type. Set
16196 variable name to s390_tune. Set initialization value.
16197
bf90208f
JB
161982011-03-23 Julian Brown <julian@codesourcery.com>
16199
16200 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16201 accesses which are not naturally aligned.
16202
3460fdf3
RS
162032011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16204
16205 PR target/47553
16206 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16207
a5c7d693
RS
162082011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16209
16210 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16211 parameter from "int" to "enum insn_code".
16212 (expand_operand_type): New enum.
16213 (expand_operand): New structure.
16214 (create_expand_operand): New function.
16215 (create_fixed_operand, create_output_operand): Likewise
16216 (create_input_operand, create_convert_operand_to): Likewise.
16217 (create_convert_operand_from, create_address_operand): Likewise.
16218 (create_integer_operand): Likewise.
16219 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16220 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16221 (expand_insn, expand_jump_insn): Likewise.
16222 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16223 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16224 (expand_movstr, expand_builtin___clear_cache): Likewise.
16225 (expand_builtin_lock_release): Likewise.
16226 * explow.c (allocate_dynamic_stack_space): Likewise.
16227 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16228 and use the default handling in that case.
16229 * expmed.c (check_predicate_volatile_ok): Delete.
16230 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16231 (emit_cstore): Likewise.
16232 * expr.c (emit_block_move_via_movmem): Likewise.
16233 (set_storage_via_setmem, expand_assignment): Likewise.
16234 (emit_storent_insn, try_casesi): Likewise.
16235 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16236 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16237 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16238 (expand_twoval_unop, expand_twoval_binop): Likewise.
16239 (expand_unop_direct, emit_indirect_jump): Likewise.
16240 (emit_conditional_move, vector_compare_rtx): Likewise.
16241 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16242 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16243 (expand_sync_lock_test_and_set): Likewise.
16244 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16245 (emit_unop_insn): Likewise.
16246 (expand_copysign_absneg): Change icode to an insn_code.
16247 (create_convert_operand_from_type): New function.
16248 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16249 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16250 (expand_insn, expand_jump_insn): Likewise.
16251 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16252 than const_int_operand for operand 2.
16253
78fadbab
AK
162542011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16255
16256 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16257 if possible.
16258
5f02387d
NF
162592011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16260
16261 * emit-rtl.c (emit_pattern_before_noloc): New function.
16262 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16263 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16264 (emit_pattern_after_noloc): New function.
16265 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16266 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16267
fdf3e18a
NF
162682011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16269
16270 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16271 (__ffsDI2): Likewise.
16272
42d085c1
RH
162732011-03-22 Richard Henderson <rth@redhat.com>
16274
16275 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16276 of !TARGET_ABI_OPEN_VMS.
16277 (alpha_trampoline_init, alpha_start_function): Likewise.
16278 (alpha_expand_epilogue, alpha_file_start): Likewise.
16279 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16280 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16281 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16282 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16283 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16284
cabbe12a
JM
162852011-03-22 Joseph Myers <joseph@codesourcery.com>
16286
16287 * config/s390/s390-opts.h: New.
16288 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16289 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16290 s390_stack_guard): Remove.
16291 (s390_handle_arch_option): Return void. Take enum
16292 s390_arch_option value instead of string and searching array.
16293 (s390_handle_option): Don't assert that global structures are in
16294 use. Access variables via opts pointer. Use error_at. Don't use
16295 sscanf for -mstack-guard= or -mstack-size=. Update call to
16296 s390_handle_arch_option.
16297 (s390_option_override): Update call to s390_handle_arch_option.
16298 (s390_emit_prologue): Use %d format for s390_stack_size in
16299 diagnostic. Use %wd for HOST_WIDE_INT.
16300 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16301 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16302 * config/s390/s390.opt (config/s390/s390-opts.h): New
16303 HeaderInclude entry.
16304 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16305 s390_arch_flags, s390_warn_framesize): New Variable entries.
16306 (s390_arch_option): New Enum and EnumValue entries.
16307 (march=): Use Enum instead of Var.
16308 (mstack-guard=, mstack-size=): Use UInteger and Var.
16309 (mtune=): Use Enum.
16310
05b12036
JM
163112011-03-22 Joseph Myers <joseph@codesourcery.com>
16312
16313 * config/score/score.c (score_handle_option): Don't assert that
16314 global structures are in use. Access target_flags via opts
16315 pointer. Use value of -march= option to determine target_flags
16316 settings.
16317 * config/score/score.opt (march=): Use Enum.
16318 (score_arch): New Enum and EnumValue entries.
16319
dd51e35a
JM
163202011-03-22 Joseph Myers <joseph@codesourcery.com>
16321
16322 * config/mep/mep.c (option_mtiny_specified): Remove.
16323 (mep_option_override): Move register handling for -mivc2 from
16324 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16325 instead of option_mtiny_specified.
16326 (mep_handle_option): Access target_flags via opts pointer. Don't
16327 assert that global structures are in use. Defer part of -mivc2
16328 handling and move it to mep_option_override.
16329 * config/mep/mep.opt (IVC2): New Mask entry.
16330 (mivc2): Use Var and Defer instead of Mask.
16331
4a8d3d91
JM
163322011-03-22 Joseph Myers <joseph@codesourcery.com>
16333
16334 * config/v850/v850-opts.h: New.
16335 * config/v850/v850.c (small_memory): Replace with
16336 small_memory_physical_max array. Make that array static const.
16337 (v850_handle_memory_option): Take integer value of argument. Take
16338 gcc_options pointer, option text and location. Return void.
16339 Update for changes to small memory structures.
16340 (v850_handle_option): Access target_flags via opts pointer. Don't
16341 assert that global structures are in use. Update calls to
16342 v850_handle_memory_option.
c78dd519
UB
16343 (v850_encode_data_area): Update references to small memory settings.
16344 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
16345 (enum small_memory_type): Move to v850-opts.h.
16346 * config/v850/v850.opt (config/v850/v850-opts.h): New
16347 HeaderInclude entry.
16348 (small_memory_max): New Variable entry.
16349 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16350 (mtda, mzda): Likewise.
16351
117fdbfa
JM
163522011-03-22 Joseph Myers <joseph@codesourcery.com>
16353
16354 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16355 pointer. Don't assert that global structures are in use.
16356
d715091c
JM
163572011-03-22 Joseph Myers <joseph@codesourcery.com>
16358
16359 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16360 via opts pointer. Don't assert that global structures are in use.
16361
1bb721dc
JM
163622011-03-22 Joseph Myers <joseph@codesourcery.com>
16363
16364 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16365 (munix=93): Use Var.
16366 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16367 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16368 * config/pa/pa-opts.h: New.
16369 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16370 (pa_handle_option): Don't assert that global structures are in
16371 use. Access target_flags via opts pointer. Don't handle
16372 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16373 OPT_munix_98 here.
16374 (pa_option_override): Handle deferred OPT_mfixed_range_.
16375
cd8d8754
JM
163762011-03-22 Joseph Myers <joseph@codesourcery.com>
16377
16378 * config/mn10300/mn10300-opts.h: New.
16379 * config/mn10300/mn10300.c (mn10300_processor,
16380 mn10300_tune_string): Remove.
16381 (mn10300_handle_option): Don't assert that global structures are
16382 in use. Access mn10300_processor via opts pointer. Don't handle
16383 OPT_mtune_ here.
16384 * config/mn10300/mn10300.h (enum processor_type): Move to
16385 mn10300-opts.h.
16386 (mn10300_processor): Remove.
16387 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16388 HeaderInclude entry.
16389 (mn10300_processor): New Variable entry.
16390 (mtune=): Use Var.
16391
24e6e6b1
JM
163922011-03-22 Joseph Myers <joseph@codesourcery.com>
16393
16394 * config/microblaze/microblaze.c: Don't include opts.h.
16395 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16396 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16397 (mno-clearbss): Use Var and Warn.
16398
8a784afb
JM
163992011-03-22 Joseph Myers <joseph@codesourcery.com>
16400
16401 * config/m32r/m32r-opts.h: New.
16402 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16403 (m32r_handle_option): Don't assert that global structures are in
16404 use. Access target_flags and m32r_cache_flush_func via opts
16405 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16406 OPT_mno_flush_trap here.
16407 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16408 include of m32r-opts.h.
16409 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16410 HeaderInclude entry.
16411 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16412 (mmodel=): Use Enum and Var.
16413 (m32r_model): New Enum and EnumValue entries.
16414 (mno-flush-trap): Use Var.
16415 (msdata=): Use Enum and Var.
16416 (m32r_sdata): New Enum and EnumValue entries.
16417
bbfc9a8c
JM
164182011-03-22 Joseph Myers <joseph@codesourcery.com>
16419
16420 * config/m32c/m32c.c: Don't include opts.h.
16421 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16422 m32c_handle_option): Remove.
16423 (m32c_option_override): Check global_options_set.x_target_memregs
16424 instead of target_memregs_set.
16425 * config/m32c/m32c.h (target_memregs): Remove.
16426 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16427 variable.
16428
e24b8335
JM
164292011-03-22 Joseph Myers <joseph@codesourcery.com>
16430
16431 * config/iq2000/iq2000-opts.h: New.
16432 * config/iq2000/iq2000.c: Don't include opts.h.
16433 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 16434 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
16435 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16436 HeaderInclude entry.
16437 (iq2000_tune): New Variable entry.
16438 (march=): Add comment. Use Enum.
16439 (iq2000_arch): New Enum and EnumValue entries.
16440 (mcpu=): Use Enum and Var.
16441 (iq2000_tune): New Enum and EnumValue entries.
16442
e6cc0c98
JM
164432011-03-22 Joseph Myers <joseph@codesourcery.com>
16444
16445 * config/ia64/ia64-opts.h: New.
16446 * config/ia64/ia64.c (ia64_tune): Remove.
16447 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16448 here. Use error_at.
16449 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16450 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16451 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16452 HeaderInclude entry.
16453 (ia64_tune): New Variable entry.
16454 (mfixed-range=): Use Defer and Var.
16455 (mtune=): Use Enum and Var.
16456 (ia64_tune): New Enum and EnumValue entries.
16457
db25893c
JM
164582011-03-22 Joseph Myers <joseph@codesourcery.com>
16459
16460 * config/frv/frv-opts.h: New.
16461 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16462 frv-opts.h.
16463 (frv_cpu_type): Remove.
16464 * config/frv/frv.c: Don't include opts.h.
16465 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 16466 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
16467 (frv_cpu_type): New Variable entry.
16468 (frv_cpu): New Enum and EnumValue entries.
16469
6c223f5d
JM
164702011-03-22 Joseph Myers <joseph@codesourcery.com>
16471
16472 * config/cris/cris.c (cris_handle_option): Access target_flags via
16473 opts pointer. Don't assert that global structures are in use.
16474 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16475 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16476
bbd399cf
JM
164772011-03-22 Joseph Myers <joseph@codesourcery.com>
16478
16479 * config/bfin/bfin-opts.h: New.
16480 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16481 bfin_si_revision, bfin_workarounds): Remove.
16482 (bfin_cpus): Make static const.
16483 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16484 not bfin_lib_id_given.
16485 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16486 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 16487 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
16488 * config/bfin/bfin.h: Include bfin-opts.h.
16489 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16490 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16491 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16492 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16493 entries.
16494
5e1b4d5a
JM
164952011-03-22 Joseph Myers <joseph@codesourcery.com>
16496
16497 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16498 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16499 or -msoft-float here.
16500 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16501 -msoft-float and -mhard-float.
c78dd519 16502 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
16503 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16504 msoft-float.
16505 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16506 -msoft-float.
16507 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16508 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16509 not mhard-float.
16510 (LIBGCC_SPEC): Don't handle -msoft-float.
16511 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16512 -mhard-float.
16513 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16514 msoft-float.
16515 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16516 -mfloat-abi=*, not -msoft-float and -mhard-float.
16517 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16518 -msoft-float.
16519 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16520 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16521 mhard-float and msoft-float.
16522 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16523 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16524 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16525 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16526 mhard-float.
16527 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16528 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16529 msoft-float.
16530 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16531 not mhard-float.
16532 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16533 not msoft-float.
16534
800d1de1
RH
165352011-03-22 Richard Henderson <rth@redhat.com>
16536
16537 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16538 TARGET_ABI_WINDOWS_NT.
16539 (alpha_output_function_end_prologue): Likewise.
16540 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16541 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16542 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16543 (trap, *movsi_nt_vms): Likewise.
16544 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16545 (*tablejump_osf_nt_internal): Remove.
16546 * config/alpha/predicates.md (input_operand): Only test Pmode.
16547
c59ddd2b
JM
165482011-03-22 Joseph Myers <joseph@codesourcery.com>
16549
16550 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16551 via opts pointer. Use error_at. Don't assert that global
16552 structures are in use.
16553
1333f97f
JM
165542011-03-22 Joseph Myers <joseph@codesourcery.com>
16555
16556 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16557 (ix86_handle_option): Access ix86_isa_flags and
16558 ix86_isa_flags_explicit via opts pointer. Don't assert that
16559 global structures are in use.
16560 (ix86_function_specific_save, ix86_function_specific_restore):
16561 Update ix86_isa_flags_explicit field name.
c78dd519 16562 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
16563 (ix86_isa_flags_explicit): Rename TargetSave entry to
16564 x_ix86_isa_flags_explicit.
16565
75db85d8
RH
165662011-03-22 Richard Henderson <rth@redhat.com>
16567
16568 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16569 (alpha_option_override, direct_return): Likewise.
16570 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16571 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16572 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16573 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16574 (alpha_expand_epilogue, alpha_end_function): Likewise.
16575 (alpha_init_libfuncs): Likewise.
16576 (struct machine_function): Remove unicosmk members.
16577 (print_operand) ['t']: Remove.
16578 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16579 unicosmk_output_module_name, unicosmk_output_common,
16580 current_section_align, unicosmk_output_text_section_asm_op,
16581 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16582 unicosmk_section_type_flags, unicosmk_unique_section,
16583 unicosmk_asm_named_section, unicosmk_insert_attributes,
16584 unicosmk_output_align, unicosmk_defer_case_vector,
16585 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16586 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16587 unicosmk_output_ssib, unicosmk_add_call_info_word,
16588 unicosmk_extern_head, unicosmk_output_default_externs,
16589 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16590 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16591 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16592 * config/alpha/alpha-protos.h: Update.
16593 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16594 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16595 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16596 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16597 (*mulsi_se, mulvsi3): Likewise.
16598 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16599 (*divmodsi_internal, call, call_value, realign): Likewise.
16600 (moddi3, umoddi3): Likewise; remove duplicate expander.
16601 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16602 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16603 (*movdi_nofix): Remove r/U alternative.
16604 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16605 * config/alpha/constraints.md ("U"): Remove.
16606 * config/alpha/predicates.md (call_operand"): Don't test
16607 TARGET_ABI_UNICOSMK.
16608
96e45421
JM
166092011-03-22 Joseph Myers <joseph@codesourcery.com>
16610
16611 * target.def (handle_option): Take gcc_options and
16612 cl_decoded_option pointers and location_t.
16613 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16614 * doc/tm.texi: Regenerate.
16615 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16616 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16617 * lto-opts.c (lto_reissue_options): Generate option structure for
16618 targetm.handle_option call.
16619 * opts.c (target_handle_option): Update call to
16620 targetm.handle_option. Remove assertions about values now passed
16621 down to hook.
16622 * targhooks.c (default_target_handle_option): New.
16623 * targhooks.h (default_target_handle_option): Declare.
16624 * config/alpha/alpha.c: Include opts.h.
16625 (alpha_handle_option): Update to new hook interface.
16626 * config/arm/arm.c: Include opts.h.
16627 (arm_handle_option): Update to new hook interface.
16628 * config/arm/t-arm (arm.o): Update dependencies.
16629 * config/bfin/bfin.c: Include opts.h.
16630 (bfin_handle_option): Update to new hook interface.
16631 * config/cris/cris.c: Include opts.h.
16632 (cris_handle_option): Update to new hook interface.
16633 * config/frv/frv.c: Include opts.h.
16634 (frv_handle_option): Update to new hook interface.
16635 * config/i386/i386.c: Include opts.h.
16636 (ix86_handle_option): Update to new hook interface.
16637 (ix86_valid_target_attribute_inner_p): Generate option structure
16638 for call to ix86_handle_option.
16639 * config/i386/t-i386 (i386.o): Update dependencies.
16640 * config/ia64/ia64.c: Include opts.h.
16641 (ia64_handle_option): Update to new hook interface.
16642 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16643 * config/iq2000/iq2000.c: Include opts.h.
16644 (iq2000_handle_option): Update to new hook interface.
16645 * config/m32c/m32c.c: Include opts.h.
16646 (m32c_handle_option): Update to new hook interface.
16647 * config/m32r/m32r.c: Include opts.h.
16648 (m32r_handle_option): Update to new hook interface.
16649 * config/m68k/m68k.c: Include opts.h.
16650 (m68k_handle_option): Update to new hook interface.
16651 * config/mep/mep.c: Include opts.h.
16652 (mep_handle_option): Update to new hook interface.
16653 * config/microblaze/microblaze.c: Include opts.h.
16654 (microblaze_handle_option): Update to new hook interface.
16655 * config/mips/mips.c: Include opts.h.
16656 (mips_handle_option): Update to new hook interface.
16657 * config/mn10300/mn10300.c: Include opts.h.
16658 (mn10300_handle_option): Update to new hook interface.
16659 * config/pa/pa.c: Include opts.h.
16660 (pa_handle_option): Update to new hook interface.
16661 * config/pdp11/pdp11.c: Include opts.h.
16662 (pdp11_handle_option): Update to new hook interface.
16663 * config/rs6000/rs6000.c: Include opts.h.
16664 (rs6000_handle_option): Update to new hook interface.
16665 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16666 * config/rx/rx.c: Include opts.h.
16667 (rx_handle_option): Update to new hook interface.
16668 * config/s390/s390.c: Include opts.h.
16669 (s390_handle_option): Update to new hook interface.
16670 * config/score/score.c: Include opts.h.
16671 (score_handle_option): Update to new hook interface.
16672 * config/sh/sh.c: Include opts.h.
16673 (sh_handle_option): Update to new hook interface.
16674 * config/sparc/sparc.c: Include opts.h.
16675 (sparc_handle_option): Update to new hook interface.
16676 * config/v850/v850.c: Include opts.h.
16677 (v850_handle_option): Update to new hook interface.
16678
66017846
JM
166792011-03-22 Joseph Myers <joseph@codesourcery.com>
16680
16681 * gcc.c (driver_unknown_option_callback): Only permit and save
16682 unknown -Wno- options.
16683 (driver_wrong_lang_callback): Save options directly instead of via
16684 driver_unknown_option_callback.
16685
e8b97ccd
EB
166862011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16687
16688 * combine.c (simplify_set): Try harder to find the best CC mode when
16689 simplifying a nested COMPARE on the RHS.
16690
ebb9f8b0
JM
166912011-03-22 Joseph Myers <joseph@codesourcery.com>
16692
16693 * config/alpha/gnu.h: Remove.
16694 * config/arc: Remove directory.
16695 * config/arm/netbsd.h: Remove.
16696 * config/arm/t-pe: Remove.
16697 * config/crx: Remove directory.
16698 * config/i386/netbsd.h: Remove.
16699 * config/m68hc11: Remove directory.
16700 * config/m68k/uclinux-oldabi.h: Remove.
16701 * config/mcore/mcore-pe.h: Remove.
16702 * config/mcore/t-mcore-pe: Remove.
16703 * config/netbsd-aout.h: Remove.
16704 * config/rs6000/gnu.h: Remove.
16705 * config/sh/sh-symbian.h: Remove.
16706 * config/sh/symbian-base.c: Remove.
16707 * config/sh/symbian-c.c: Remove.
16708 * config/sh/symbian-cxx.c: Remove.
16709 * config/sh/symbian-post.h: Remove.
16710 * config/sh/symbian-pre.h: Remove.
16711 * config/sh/t-symbian: Remove.
16712 * config/svr3.h: Remove.
16713 * config/vax/netbsd.h: Remove.
16714 * config.build: Don't handle i[34567]86-*-pe.
16715 * config.gcc: Remove handling of deprecations for most deprecated
16716 targets.
16717 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16718 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16719 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16720 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16721 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16722 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16723 Remove cases.
16724 * config.host: Don't handle i[34567]86-*-pe.
16725 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16726 (ASM_SPEC32): Don't handle -mcall-gnu.
16727 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16728 -mcall-gnu.
16729 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16730 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16731 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16732 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16733 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16734 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16735 conditional on SYMBIAN.
16736 * configure.ac: Don't handle powerpc*-*-gnu*.
16737 * configure: Regenerate.
16738 * doc/extend.texi (interrupt attribute): Don't mention CRX.
16739 * doc/install-old.texi (m6811, m6812): Don't mention.
16740 * doc/install.texi (arc-*-elf*): Don't document multilib option.
16741 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
16742 (m68k-uclinuxoldabi): Don't mention.
16743 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
16744 Remove.
16745 (-mcall-gnu): Remove.
16746 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
16747 families): Remove constraint documentation.
16748
999a7d80
MS
167492011-03-22 Marius Strobl <marius@FreeBSD.org>
16750
16751 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
16752 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
16753 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
16754
45540bcf
MM
167552011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16756
16757 PR target/48226
16758 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
16759 vector when peeking at the next token for vector, don't expand the
16760 keywords.
16761
980a0ff4
GJL
167622011-03-21 Georg-Johann Lay <avr@gjlay.de>
16763
16764 * config/avr/avr-protos.h (expand_epilogue): Change prototype
16765 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
16766 * config/avr/avr.c (init_cumulative_args)
16767 (avr_function_arg_advance): Use it.
16768 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
16769 sibcall epilogues.
16770 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
16771 (avr_function_ok_for_sibcall): ...this new function.
16772 (avr_lookup_function_attribute1): New static Function.
16773 (avr_naked_function_p, interrupt_function_p)
16774 (signal_function_p, avr_OS_task_function_p)
16775 (avr_OS_main_function_p): Use it.
16776 * config/avr/avr.md ("sibcall", "sibcall_value")
16777 ("sibcall_epilogue"): New expander.
16778 ("*call_insn", "*call_value_insn"): New insn.
16779 ("call_insn", "call_value_insn"): Remove
16780 ("call", "call_value", "epilogue"): Change expander to handle
16781 sibling calls.
16782
49168734
NC
167832011-03-21 Nick Clifton <nickc@redhat.com>
16784
16785 * doc/invoke.texi (Overall Options): Move closing brace to end of
16786 options list.
16787 (Optimization Options): Add missing @gol.
16788 (Directory Options): Likewise.
16789 (i386 and x86-64 Options): Likewise.
16790 (RS6000 and PowerPC Options): Likewise.
16791 (i386 and x86-64 Windows Options): Likewise.
16792 (V850 Options): Add text missing from descriptions.
16793
bdfe906f
RH
167942011-03-22 Richard Henderson <rth@redhat.com>
16795
16796 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
16797 (avr_incoming_return_addr_rtx): New.
16798 (emit_push_byte): New.
16799 (expand_prologue): Use it. Remove incorrect dwarf annotation for
16800 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
16801 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
16802 (emit_pop_byte): New.
16803 (expand_epilogue): Use it. Pop frame pointer by bytes.
16804 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
16805 (INCOMING_RETURN_ADDR_RTX): New.
16806 (INCOMING_FRAME_SP_OFFSET): New.
16807 (ARG_POINTER_CFA_OFFSET): New.
16808 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
16809 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
16810 (pophi): Remove.
16811
d090a5aa
RH
16812 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
16813
fdf3e18a
NF
168142011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16815
16816 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16817 (FUNCTION_ARG_ADVANCE): Likewise.
16818 * tm.texi.in: Change references to them to hook references.
16819 * tm.texi: Regenerate.
16820 * targhooks.c (default_function_arg): Eliminate check for target
16821 macro.
16822 (default_function_incoming_arg): Likewise.
16823 (default_function_arg_advance): Likewise.
c78dd519 16824 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
16825 (function_arg_advance): Likewise.
16826 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16827
009d3fcf
NF
168282011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16829
16830 * tree.c (build_call_1): New function.
16831 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
16832
7bec30e1
RG
168332011-03-22 Richard Guenther <rguenther@suse.de>
16834
16835 PR tree-optimization/48228
16836 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
16837 for single-arg PHIs.
16838
0b7e851b
AB
168392011-03-22 Andrey Belevantsev <abel@ispras.ru>
16840
16841 PR rtl-optimization/48143
16842 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
16843 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
16844 sse2_cvtps2pd): Likewise.
16845
d89afca5
AK
168462011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16847
16848 * recog.c (canonicalize_change_group): Use validate_unshare_change.
16849
f471fe72
RG
168502011-03-22 Richard Guenther <rguenther@suse.de>
16851
16852 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
16853 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
16854 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
16855 and REALIGN_LOAD_EXPR.
16856 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
16857 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
16858 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
16859 DOT_PROD_EXPR case ...
16860 (expand_expr_real_2): ... here.
16861 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
16862 and REALIGN_LOAD_EXPR.
16863 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
16864 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
16865 (vect_create_epilog_for_reduction): Likewise.
16866 (vectorizable_reduction): Likewise.
16867 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
16868 * tree-vect-stmts.c (vectorizable_load): Likewise.
16869
f2f81d57
EB
168702011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16871
16872 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
16873
ab081dd6
AK
168742011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16875
16876 * config/s390/s390.c (s390_delegitimize_address): Fix offset
16877 handling for PLTOFF/GOTOFF.
16878
6fd5332b
NC
168792011-03-22 Nick Clifton <nickc@redhat.com>
16880
16881 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
16882 trailing backslash from the end of the macro definition.
16883
01841ac0
AK
168842011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16885
16886 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
16887 and PLT unspecs.
16888
2ef6ce06
RS
168892011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
16890
16891 * expr.h (prepare_operand): Move to...
16892 * optabs.h (prepare_operand): ...here and change the insn code
16893 parameter from "int" to "enum insn_code".
16894 (insn_operand_matches): Declare.
16895 * expr.c (init_expr_target): Use insn_operand_matches.
16896 (compress_float_constant): Likewise.
16897 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
16898 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
16899 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
16900 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
16901 Likewise.
2ef6ce06
RS
16902 (gen_cond_trap): Likewise.
16903 (prepare_operand): Likewise. Change icode to an insn_code.
16904 (insn_operand_matches): New function.
16905 * reload.c (find_reloads_address_1): Use insn_operand_matches.
16906 * reload1.c (gen_reload): Likewise.
16907 * targhooks.c (default_secondary_reload): Likewise.
16908
9e43ad68
UB
169092011-03-21 Uros Bizjak <ubizjak@gmail.com>
16910
9a96da32
UB
16911 * config/alpha/alpha.md (unspec): New define_c_enum.
16912 (unspecv): Ditto.
16913
169142011-03-21 Uros Bizjak <ubizjak@gmail.com>
16915
16916 PR debug/48214
9e43ad68
UB
16917 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
16918 between a call and its CALL_ARG_LOCATION note.
16919
31408f60
EB
169202011-03-21 Eric Botcazou <ebotcazou@adacore.com>
16921
16922 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
16923
169242011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
16925
16926 PR c/42544
16927 PR c/48197
16928 * c-common.c (shorten_compare): If primopN is first sign-extended
16929 to opN and then zero-extended to result type, set primopN to opN.
16930
9dfd55f5
DJ
169312011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
16932
16933 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
16934 for barrier handlers.
16935
f3c33d9d
MM
169362011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16937
16938 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
16939 UNSPEC constants to be in the unspec enumeration, and redefine
16940 all UNSPECV constants to be in the unspecv enumeration, so that
16941 dumps print which unspec/unspec_volatile this is.
16942 * config/rs6000/vector.md (UNSPEC_*): Ditto.
16943 * config/rs6000/paired.md (UNSPEC_*): Ditto.
16944 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
16945 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
16946 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
16947
16948 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
16949 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
16950 UNSPECV_LWSYNC, since these are used as unspec_volatile.
16951 * config/rs6000/sync.md (isync, lwsync): Ditto.
16952
ac43f774
RG
169532011-03-21 Richard Guenther <rguenther@suse.de>
16954
16955 * params.def (lto-min-partition): Fix typo.
16956
411cdbd8
RG
169572011-03-21 Richard Guenther <rguenther@suse.de>
16958
16959 PR c/47939
16960 * c-decl.c (grokdeclarator): Drop to the main variant only
16961 for array types. Drop flag_gen_aux_info check.
16962
1cd9e416
RG
169632011-03-21 Richard Guenther <rguenther@suse.de>
16964
16965 PR translation/47911
16966 * params.def (lto-partitions): Fix typo.
16967 (lto-min-partition): Fix wording.
16968
ada5ad67
AT
169692011-03-21 Andreas Tobler <andreast@fgznet.ch>
16970
16971 * config/rs6000/t-freebsd: Remove duplication from file.
16972
f9613c9a
RG
169732011-03-21 Richard Guenther <rguenther@suse.de>
16974
16975 PR middle-end/47661
16976 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
16977
9bfbc1eb
RG
169782011-03-21 Richard Guenther <rguenther@suse.de>
16979
16980 PR lto/48210
16981 * params.def (lto-partitions): Require at least 1 partition.
16982
a2268084
RO
169832011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16984
16985 * gthr-solaris.h: Remove.
16986 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
16987 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
16988 (LIB_SPEC): Likewise.
16989 * config/sol2.opt (threads): Remove.
9e43ad68 16990 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
16991 (sparc*-*-solaris2*): Likewise.
16992 * configure.ac (enable_threads): Enable solaris support.
16993 * configure: Regenerate.
9e43ad68 16994 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
16995 * doc/install.texi (Configuration, --enable-threads=lib): Remove
16996 solaris.
16997
c43d9a1b
RO
169982011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16999
17000 * config.gcc: Obsolete *-*-solaris2.8*.
17001 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17002
084239f4
RO
170032011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17004
17005 PR bootstrap/48135
17006 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17007 reference. Solaris 8 perl works.
17008
64cadbe7
RO
170092011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17010
17011 PR bootstrap/48135
17012 * doc/install.texi (Prerequisites): Move jar etc. up.
17013 Explain support library version requirements.
17014
eb975109
RO
170152011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17016
17017 PR bootstrap/48135
17018 * doc/install.texi (Prerequisites): Move Perl to build
17019 requirements. Always necessary on Solaris 2 with Sun ld.
17020
8a509ffd
RO
170212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17022
17023 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17024 binutils 2.21.
17025 (Specific, i?86-*-solaris2.[89]): Likewise.
17026 (Specific, i?86-*-solaris2.10): Likewise.
17027 (Specific, mips-sgi-irix6): Likewise.
17028 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17029 Update for binutils 2.21.
17030
8fbc58a1
RO
170312011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17032
17033 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17034 Allow -fuse-linker-plugin for non-default plugin linker.
17035 * configure: Regenerate.
17036
7e84ad0b
NP
170372011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17038
17039 PR bootstrap/48167
17040 * gengtype.c (files_rules): Added rule for cp/parser.h.
17041
2f36e14b
JJ
170422011-03-21 Jakub Jelinek <jakub@redhat.com>
17043
17044 PR target/48213
17045 * config/s390/s390.c (s390_delegitimize_address): Don't call
17046 lowpart_subreg if orig_x has BLKmode.
17047
62d784f7
KT
170482011-03-21 Kai Tietz <ktietz@redhat.com>
17049
17050 PR target/12171
9e43ad68
UB
17051 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17052 * tree.h (attribute_spec): Add new member affects_type_identity.
17053 * attribs.c (empty_attribute_table): Adjust attribute_spec
17054 initializers.
62d784f7
KT
17055 * config/alpha/alpha.c: Likewise.
17056 * config/arc/arc.c: Likewise.
17057 * config/arm/arm.c: Likewise.
17058 * config/avr/avr.c: Likewise.
17059 * config/bfin/bfin.c: Likewise.
17060 * config/crx/crx.c: Likewise.
17061 * config/darwin.h: Likewise.
17062 * config/h8300/h8300.c: Likewise.
17063 * config/i386/cygming.h: Likewise.
17064 * config/i386/i386.c: Likewise.
17065 * config/ia64/ia64.c: Likewise.
17066 * config/m32c/m32c.c: Likewise.
17067 * config/m32r/m32r.c: Likewise.
17068 * config/m68hc11/m68hc11.c: Likewise.
17069 * config/m68k/m68k.c: Likewise.
17070 * config/mcore/mcore.c: Likewise.
17071 * config/mep/mep.c: Likewise.
17072 * config/microblaze/microblaze.c: Likewise.
17073 * config/mips/mips.c: Likewise.
17074 * config/rs6000/rs6000.c: Likewise.
17075 * config/rx/rx.c: Likewise.
17076 * config/sh/sh.c: Likewise.
17077 * config/sol2.h: Likewise.
17078 * config/sparc/sparc.c: Likewise.
17079 * config/spu/spu.c: Likewise.
17080 * config/stormy16/stormy16.c: Likewise.
17081 * config/v850/v850.c: Likewise.
17082
54833ec0
CLT
170832011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17084
17085 * simplify-rtx.c (simplify_binary_operation_1): Handle
17086 (xor (and A B) C) case when B and C are both constants.
17087
14a41392
MX
170882011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17089
17090 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17091
806c3492
EB
170922011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17093
17094 PR bootstrap/48168
17095 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17096
65e0a0f3
JJ
170972011-03-20 Jakub Jelinek <jakub@redhat.com>
17098
17099 PR rtl-optimization/48156
17100 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17101 assume df and df_lr are not NULL.
17102
b6a75dda
RR
171032011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17104
17105 PR debug/48023
17106 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17107 between a call and its CALL_ARG_LOCATION note.
17108
5969b52d
KK
171092011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17110
17111 PR debug/48178
17112 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17113 between a call and its corresponding CALL_ARG_LOCATION note.
17114
f773c2bd
AS
171152011-03-19 Anatoly Sokolov <aesok@post.ru>
17116
17117 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17118 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17119 * haifa-sched.c (setup_ref_regs): Ditto.
17120 * caller-save.c (add_used_regs_1): Ditto.
17121 * dse.c (look_for_hardregs): Ditto.
17122 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17123 * sched-rgn.c (check_live_1): Ditto.
17124
8bf872f9
JM
171252011-03-18 Joseph Myers <joseph@codesourcery.com>
17126
17127 * c-decl.c (diagnose_mismatched_decls): Give an error for
17128 redefining a typedef with variably modified type.
17129
ff8e2159
JM
171302011-03-18 Joseph Myers <joseph@codesourcery.com>
17131
17132 * c-decl.c (grokfield): Don't allow typedefs for structures or
17133 unions with no tag by default.
17134 * doc/extend.texi (Unnamed Fields): Update.
17135
16cc4440
UB
171362011-03-18 Uros Bizjak <ubizjak@gmail.com>
17137
17138 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17139 Rewrite using indirect functions.
17140 (lwp_slwpcb): Ditto.
17141 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17142 (avx_vinsertf128<mode>): Ditto.
17143
e101e12e
AK
171442011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17145
17146 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17147 unspecs.
17148
4627c7fb
AK
171492011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17150
17151 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 17152 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 17153
2d36b47f
MK
171542011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17155
17156 PR rtl-optimization/48170
17157 * gcse.c (hoist_code): Remove bogus asserts.
17158
2a3d7659
JL
171592011-03-18 Georg-Johann Lay <avr@gjlay.de>
17160
17161 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17162 computation for prologue/epilogue.
17163
34c3ef05
RO
171642011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17165
17166 * Makefile.in (check-consistency): Remove.
17167
81f2b976
JJ
171682011-03-18 Jakub Jelinek <jakub@redhat.com>
17169
17170 PR debug/48176
17171 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17172 arange_table_in_use is 0, but either text_section_used or
17173 cold_text_section_used is true. Don't call it if
17174 !info_section_emitted.
17175
68fd7765
AS
171762011-03-18 Anatoly Sokolov <aesok@post.ru>
17177
17178 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17179 FUNCTION_VALUE_REGNO_P): Remove.
17180 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17181 Remove.
17182 * config/avr/avr.c (avr_ret_register): Make static inline.
17183 (avr_function_value_regno_p): New function.
17184 (avr_libcall_value): Make static. Add 'func' argument.
17185 (avr_function_value): Make static. Rename 'func' argument to
17186 'fn_decl_or_type', forward it to avr_libcall_value. Call
17187 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 17188 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 17189
b4ef8aac
JM
171902011-03-18 Jason Merrill <jason@redhat.com>
17191
17192 PR c++/23372
17193 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17194
09a52fc3
RG
171952011-03-18 Richard Guenther <rguenther@suse.de>
17196
17197 * doc/install.texi (--enable-gold): Remove.
17198 (--with-plugin-ld): Document.
17199 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17200
2a3d7659 172012011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
17202
17203 PR middle-end/47790
17204 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17205 again after expansion changes.
17206
2abbb0fe
CLT
172072011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17208
17209 * combine.c (try_combine): Do simplification only call of
17210 subst() on i2 even when i1 is present. Update comments.
17211
2efd0aa6
KK
172122011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17213
17214 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17215 and UNSPEC_PCREL_SYMOFF.
17216
30a49b23
AK
172172011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17218
17219 * config/s390/s390.md: Use define_c_enum for the unspec constant
17220 definitions.
17221
419e1853
JJ
172222011-03-18 Richard Henderson <rth@redhat.com>
17223 Jakub Jelinek <jakub@redhat.com>
17224
17225 PR bootstrap/48161
17226 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17227 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17228
37875856
L
172292011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17230
17231 PR middle-end/47725
17232 * combine.c (cant_combine_insn_p): Don't check zero/sign
17233 extended hard registers.
17234
76069764
L
172352011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17236
17237 PR middle-end/47725
17238 * combine.c (cant_combine_insn_p): Check zero/sign extended
17239 hard registers.
17240
24da2019
AS
172412011-03-17 Anatoly Sokolov <aesok@post.ru>
17242
17243 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17244 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17245 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17246 Change return type to bool.
17247 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17248
a82ff31f
JJ
172492011-03-17 Jakub Jelinek <jakub@redhat.com>
17250
8b29c87a
JJ
17251 PR debug/48163
17252 * var-tracking.c (prepare_call_arguments): If CALL target
17253 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17254 pc instead of looking it up using cselib_lookup and use
17255 Pmode for it if x has VOIDmode.
17256 * dwarf2out.c (gen_subprogram_die): If also both first and
17257 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17258
a82ff31f
JJ
17259 PR debug/48163
17260 * function.c (assign_parms): For data.passed_pointer parms
17261 use MEM of data.entry_parm instead of data.entry_parm itself
17262 as DECL_INCOMING_RTL.
17263 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17264 also when passed and declared mode is the same, DECL_RTL
17265 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17266 a MEM too.
17267
82ce305c
JL
172682011-03-16 Jeff Law <law@redhat.com>
17269
17270 PR rtl-optimization/37273
17271 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17272 handle them like argument loads from stack slots. Do not double
17273 count memory for memory constants and argument loads from stack slots.
17274
fe58e02b
L
172752011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17276
17277 PR debug/48160
17278 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17279
6fc4dbc7
L
172802011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17281
17282 PR target/48171
17283 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17284
db3ed0b3
JJ
172852011-03-17 Jakub Jelinek <jakub@redhat.com>
17286
8054a389
JJ
17287 PR bootstrap/48153
17288 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17289 if dwarf_strict.
17290 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17291 Clear call_arg_locations and call_arg_loc_last always.
17292
db3ed0b3
JJ
17293 PR middle-end/48152
17294 * var-tracking.c (prepare_call_arguments): If argument needs to be
17295 passed by reference, adjust argtype and mode.
17296
1bce4ff3
RG
172972011-03-17 Richard Guenther <rguenther@suse.de>
17298
17299 PR middle-end/48134
17300 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17301 a value make sure to fold the statement.
17302
7c71147d
CLT
173032011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17304
17305 PR target/43872
17306 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17307 return condition with !cfun->calls_alloca.
17308
0e1ee172
RG
173092011-03-17 Richard Guenther <rguenther@suse.de>
17310
17311 PR bootstrap/48148
17312 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17313 origin for decls in other ltrans units.
17314 (input_varpool_node): Likewise.
17315
f8bce518
RG
173162011-03-17 Richard Guenther <rguenther@suse.de>
17317
17318 PR middle-end/48165
17319 * tree-object-size.c (compute_object_offset): Properly return
17320 the offset operand of MEM_REFs as sizetype.
17321
1b6fa860
JJ
173222011-03-17 Jakub Jelinek <jakub@redhat.com>
17323
dabd47e7
JJ
17324 PR rtl-optimization/48141
17325 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17326 * dse.c: Include params.h.
17327 (active_local_stores_len): New variable.
17328 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17329 to NULL.
17330 (record_store, check_mem_read_rtx): Decrease it when removing
17331 from the chain.
17332 (scan_insn): Likewise. Increase it when adding to chain, if it
17333 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17334 set active_local_stores to NULL before the addition.
17335 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17336
1b6fa860
JJ
17337 PR rtl-optimization/48141
17338 * dse.c (record_store): If no positions are needed in an insn
17339 that cannot be deleted, at least unchain it from active_local_stores.
17340
7b5cb7d6
DS
173412011-03-16 Dodji Seketeli <dodji@redhat.com>
17342
17343 PR debug/47510
17344 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17345 (lookup_type_die_strip_naming_typedef): ... here.
17346 (get_context_die): Use it.
17347 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17348 the anonymous struct named by the naming typedef.
17349
585e9d9d
L
173502011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17351
17352 PR target/48154
17353 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17354 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17355
6261ab0e
JL
173562011-03-16 Jeff Law <law@redhat.com>
17357
17358 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 17359 check for operands of conditional. Allow type to be a pointer.
6261ab0e 17360
0b0081ec
RG
173612011-03-16 Richard Guenther <rguenther@suse.de>
17362
17363 PR tree-optimization/48149
17364 * fold-const.c (fold_binary_loc): Fold
17365 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17366
64a3d647
RG
173672011-03-16 Richard Guenther <rguenther@suse.de>
17368
17369 PR tree-optimization/26134
17370 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17371 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17372 (non_rewritable_mem_ref_base): Handle complex type component
17373 accesses, constrain offsets for vector and complex extracts
17374 more properly.
17375
ef13324e
RG
173762011-03-16 Richard Guenther <rguenther@suse.de>
17377
17378 PR tree-optimization/48146
17379 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17380 operands avoiding the need for renaming.
17381
f0eddb90
RG
173822011-03-16 Richard Guenther <rguenther@suse.de>
17383
17384 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17385 constant folding. Move MEM_REF canonicalization first.
17386 Rely on fold_const_aggregate_ref for initializer folding.
17387 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17388
e42348b8
JJ
173892011-03-16 Jakub Jelinek <jakub@redhat.com>
17390
29f10e71
JJ
17391 PR middle-end/48136
17392 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17393 arg0/arg1 or their arguments are always fold converted to matching
17394 types.
17395
e42348b8
JJ
17396 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17397 to nargs.
17398
55b46574
RO
173992011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17400
17401 PR lto/46944
17402 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17403 Handle in-tree gold.
17404 (ld_vers): Extract binutils version for gold.
17405 (gcc_cv_ld_hidden): Handle gold here.
17406 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17407 * configure: Regenerate.
17408 * config.in: Regenerate.
17409 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17410 -fuse-linker-plugin otherwise.
17411 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17412 (LINK_COMMAND_SPEC): Use it.
17413 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17414
2b1c5433
JJ
174152011-03-16 Jakub Jelinek <jakub@redhat.com>
17416
c2969d8e
JJ
17417 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17418 * calls.c: Remove debug.h include.
17419 (emit_call_1): Don't call virtual_call_token debug hook.
17420 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17421 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17422 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17423 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17424 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17425 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17426 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17427 dwarf2out_virtual_call): Remove.
17428 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17429 copy_call_info and virtual_call hooks.
17430 (dwarf2out_init): Don't initialize vcall_insn_table,
17431 debug_dcall_section and debug_vcall_section.
17432 (prune_unused_types): Don't mark nodes from dcall_table.
17433 (dwarf2out_finish): Don't output dcall or vcall tables.
17434 * final.c (final_scan_insn): Don't call direct_call or
17435 virtual_call debug hooks.
17436 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17437 virtual_call_token, copy_call_info and virtual_call hooks.
17438 (debug_nothing_uid): Remove prototype.
17439 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17440 copy_call_info and virtual_call hooks.
17441 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17442 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17443 * debug.c (do_nothing_debug_hooks): Likewise.
17444 (debug_nothing_uid): Remove.
17445 * doc/invoke.texi (-fenable-icf-debug): Remove.
17446 * common.opt (-fenable-icf-debug): Likewise.
17447
325f5379
JJ
17448 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17449 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17450 call's MEM. Handle functions returning aggregate through a hidden
17451 first pointer. For virtual calls add clobbered pc to call arguments
17452 chain.
17453 * dwarf2out.c (gen_subprogram_die): Emit
17454 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17455 can't be emitted.
17456
a58a8e4b
JJ
17457 PR debug/45882
17458 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17459 * rtl.h (ENTRY_VALUE_EXP): Define.
17460 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17461 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17462 * print-rtl.c (print_rtx): Likewise.
17463 * gengtype.c (adjust_field_rtx_def): Likewise.
17464 * var-tracking.c (vt_add_function_parameter): Adjust
17465 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17466 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17467 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17468 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17469 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17470
2b1c5433
JJ
17471 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17472 Call var_location debug hook even on CALL_INSNs.
17473 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17474 * rtl.def (ENTRY_VALUE): New.
17475 * dwarf2out.c: Include cfglayout.h.
17476 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17477 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17478 (struct call_arg_loc_node): New type.
17479 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17480 tail_call_site_count): New variables.
17481 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17482 DW_TAG_GNU_call_site_parameter.
17483 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17484 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17485 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17486 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17487 and DW_AT_GNU_all_source_call_sites.
17488 (mem_loc_descriptor): Handle ENTRY_VALUE.
17489 (add_src_coords_attributes): Don't add enything if
17490 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17491 (dwarf2out_abstract_function): Save and clear call_arg_location,
17492 call_site_count and tail_call_site_count around dwarf2out_decl call.
17493 (gen_call_site_die): New function.
17494 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17495 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17496 (dwarf2out_function_decl): Clear call_arg_locations,
17497 call_arg_loc_last, set call_site_count and tail_call_site_count
17498 to -1 and free block_map.
17499 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17500 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17501 followed by any real instructions.
17502 (dwarf2out_begin_function): Set call_site_count and
17503 tail_call_site_count to 0.
17504 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17505 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17506 attempt to force a DIE for it and worst case remove the attribute.
17507 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17508 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17509 the decl itself.
17510 * var-tracking.c: Include tm_p.h.
17511 (vt_stack_adjustments): For calls call note_register_arguments.
17512 (argument_reg_set): New variable.
17513 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17514 ensure the VALUE is resolved.
17515 (call_arguments): New variable.
17516 (prepare_call_arguments): New function.
17517 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17518 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17519 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17520 always use the best expression.
17521 (vt_expand_loc): Add ignore_cur_loc argument.
17522 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17523 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17524 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17525 note for all calls.
17526 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17527 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17528 argument. Don't call cselib_preserve_only_values and
17529 cselib_reset_table.
17530 (note_register_arguments): New function.
17531 (vt_initialize): Compute argument_reg_set. Call
17532 vt_add_function_parameters before processing basic blocks instead of
17533 afterwards. For calls call prepare_call_arguments before calling
17534 cselib_process_insn.
17535 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17536 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17537 (var-tracking.o): Depend on $(TM_P_H).
17538 * cfglayout.h (insn_scope): New prototype.
17539 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17540 * cfglayout.c (insn_scope): No longer static.
17541 * insn-notes.def (CALL_ARG_LOCATION): New.
17542 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17543 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17544 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17545 nothing for DECL_EXTERNAL BLOCK_VARS.
17546
9ef13bd0
AM
175472011-03-16 Alan Modra <amodra@gmail.com>
17548
17549 PR target/45844
17550 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17551 create invalid offset address for vsx splat insn.
17552 * config/rs6000/predicates.md (splat_input_operand): New.
17553 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17554
56b67510
XDL
175552011-03-15 Xinliang David Li <davidxl@google.com>
17556
17557 PR c/47837
17558 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17559 (normalize_preds): New function.
17560 (is_use_properly_guarded): Normalize def predicates.
17561
80fffdef
RR
175622011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17563
732f37c6 17564 PR target/46788
80fffdef
RR
17565 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17566 in the output template.
17567
930672ad
RG
175682011-03-15 Richard Guenther <rguenther@suse.de>
17569
17570 PR middle-end/47650
17571 * tree-pretty-print.c (dump_function_declaration): Properly
17572 dump unprototyped and varargs function types.
17573
c7ee7b45
RG
175742011-03-15 Richard Guenther <rguenther@suse.de>
17575
17576 PR tree-optimization/13954
17577 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17578 and friends.
17579
b2ad5e37
RG
175802011-03-15 Richard Guenther <rguenther@suse.de>
17581
17582 PR tree-optimization/48037
17583 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17584 selects into BIT_FIELD_REFs.
17585 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17586 vector select.
17587
7ee93d4e
JJ
175882011-03-15 Jakub Jelinek <jakub@redhat.com>
17589
17590 PR tree-optimization/48129
17591 * builtins.c (fold_builtin_snprintf): Convert to type of
17592 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17593 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17594
e106efc7
RG
175952011-03-15 Richard Guenther <rguenther@suse.de>
17596
17597 PR tree-optimization/41490
17598 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17599 value but with VUSE.
17600 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17601 return statements.
17602 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17603 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17604 * tree-tailcall.c (find_tail_calls): Ignore returns.
17605
17dea42f
RG
176062011-03-15 Richard Guenther <rguenther@suse.de>
17607
17608 PR middle-end/48031
17609 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17610 or variable-indexed array accesses when in gimple form.
17611
01c77a60
RG
176122011-03-15 Richard Guenther <rguenther@suse.de>
17613
16cc4440 17614 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 17615
77b0791e
AM
176162011-03-15 Alan Modra <amodra@gmail.com>
17617
17618 PR target/48032
17619 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17620 presume symbol_refs without a symbol_ref_decl are suitably
17621 aligned, nor other trees we may see here. Handle anchor symbols.
17622 (legitimate_constant_pool_address_p): Comment. Add mode param.
17623 Check cmodel=medium addresses. Adjust all calls.
17624 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17625 creating cmodel=medium optimized access to locals.
17626 * config/rs6000/constraints.md (R): Pass QImode to
17627 legitimate_constant_pool_address_p.
17628 * config/rs6000/predicates.md (input_operand): Pass mode to
17629 legitimate_constant_pool_address_p.
17630 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17631 Update prototype.
17632
35f61ba4
MM
176332011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17634
17635 PR target/48053
17636 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17637 64-bit constants being loaded into registers other than GPRs such
17638 as loading 0 into a VSX register.
17639
07332e6d
RO
176402011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17641
16cc4440 17642 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 17643
de888d90
JJ
176442011-03-14 Jakub Jelinek <jakub@redhat.com>
17645
ba3ceb2d
JJ
17646 PR middle-end/47917
17647 * builtins.c (fold_builtin_snprintf): New function.
17648 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17649 (fold_builtin_4): Likewise.
17650
2e64f8b8
JJ
17651 PR middle-end/38878
17652 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17653 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17654 and C - X == X also strip nops from +/-/p+ operand.
17655 When optimizing -X == C, fold C to arg0's type.
17656
de888d90
JJ
17657 PR debug/47946
17658 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17659 emit it as add_AT_int instead of add_AT_unsigned.
17660
176612011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
17662
17663 * unwind-dw2.c: Include sys/sdt.h if it exists.
17664 (_Unwind_DebugHook): Use STAP_PROBE2.
17665 * config.in, configure: Rebuild.
17666 * configure.ac: Check for sys/sdt.h.
17667
d34abfd2
UB
176682011-03-14 Uros Bizjak <ubizjak@gmail.com>
17669
17670 * config/i386/i386.md (ROUND_FLOOR): New constant.
17671 (ROUND_CEIL): Ditto.
17672 (ROUND_TRUNC): Ditto.
17673 (ROUND_MXCSR): Ditto.
17674 (ROUND_NO_EXC): Ditto.
17675 (rint<mode>2): Use new defines instead of numerical constants.
17676 (floor<mode>2): Ditto.
17677 (ceil<mode>2): Ditto.
17678 (btrunc<mode>2): Ditto.
17679 * config/i386/i386-builtin-types.def: Define ROUND function type
17680 aliases.
17681 * config/i386/i386.c (enum ix86_builtins): Add
17682 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17683 (struct builtin_description): Add
17684 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17685 (ix86_expand_sse_round): New static function.
17686 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17687 function types.
17688 (ix86_builtin_vectorized_function): Handle
17689 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17690
87f9e23d
TT
176912011-03-14 Tom Tromey <tromey@redhat.com>
17692
17693 * c-parser.c (c_parser_asm_string_literal): Clear
17694 warn_overlength_strings.
17695
b3ab9ea2
TT
176962011-03-14 Tom Tromey <tromey@redhat.com>
17697
17698 * c-parser.c (disable_extension_diagnostics): Save
17699 warn_overlength_strings.
17700 (restore_extension_diagnostics): Restore warn_overlength_strings.
17701
6bd73dd8
JJ
177022011-03-14 Jakub Jelinek <jakub@redhat.com>
17703
17704 * BASE-VER: Change to 4.7.0.
17705
7f4d6e1b
RG
177062011-03-14 Richard Guenther <rguenther@suse.de>
17707
17708 PR middle-end/48098
17709 * tree.c (build_vector_from_val): Adjust assert to requirements
17710 and reality.
17711
c6104ef1
JJ
177122011-03-14 Jakub Jelinek <jakub@redhat.com>
17713
17714 PR bootstrap/48102
d34abfd2 17715 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 17716
dfa95e19
AT
177172011-03-14 Andreas Tobler <andreast@fgznet.ch>
17718
f60c2554 17719 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
17720 terms of target_flags_explicit. Adjust copyright year.
17721
17722 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17723 * config/rs6000/t-freebsd: New file. Add override for
17724 LIB2FUNCS_EXTRA.
17725
bb322018
CD
177262011-03-13 Chris Demetriou <cgd@google.com>
17727
17728 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17729 (-fno-diagnostics-show-option): this, to reflect current default.
17730 (-Werror=): Update text about -fno-diagnostics-show-option.
17731
12b1c80b
PB
177322011-03-12 Peter Bergner <bergner@vnet.ibm.com>
17733
17734 PR target/48053
17735 * config/rs6000/predicates.md (easy_vector_constant_add_self,
17736 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17737 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17738 mode is not V2DImode or V2DFmode.
17739 (vspltis_constant): Do not handle V2DImode and V2DFmode.
17740 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
17741 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17742 registers to 0.
17743 (movdi_internal64): Likewise.
17744
57d598f7
SP
177452011-03-12 Sebastian Pop <sebastian.pop@amd.com>
17746
17747 PR tree-optimization/47127
17748 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
17749 parameter.
17750 (set_cloog_options): Same.
17751 (scop_to_clast): Same.
17752 (print_clast_stmt): Do not call cloog_state_malloc and
17753 cloog_state_free.
17754 (print_generated_program): Same.
17755 (gloog): Same.
17756 * graphite-clast-to-gimple.h (cloog_state): Declared.
17757 (scop_to_clast): Adjust declaration.
17758 * graphite.c (cloog_state): Defined here.
17759 (graphite_initialize): Call cloog_state_malloc.
17760 (graphite_finalize): Call cloog_state_free.
17761
f231b5ff
JM
177622011-03-11 Jason Merrill <jason@redhat.com>
17763
17764 * attribs.c (lookup_attribute_spec): Take const_tree.
17765 * tree.h: Adjust.
17766
6a4e2bd5
JM
177672011-03-11 Joseph Myers <joseph@codesourcery.com>
17768
17769 * config/sparc/sparc.c (sparc_option_override): Use
17770 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
17771
a758fd67
RG
177722011-03-11 Richard Guenther <rguenther@suse.de>
17773
17774 PR tree-optimization/48067
17775 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
17776 multiplication result will be only used once on the target
17777 stmt.
17778
03dfda54
RG
177792011-03-11 Richard Guenther <rguenther@suse.de>
17780
17781 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
17782
5f11a50a
RG
177832011-03-11 Richard Guenther <rguenther@suse.de>
17784
17785 PR lto/48073
17786 * tree.c (find_decls_types_r): Do not walk types only reachable
17787 from IDENTIFIER_NODEs.
17788
4074f163
JJ
177892011-03-11 Jakub Jelinek <jakub@redhat.com>
17790
17791 PR middle-end/48044
17792 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
17793 all vnode->force_output nodes as needed.
17794
30f7cdcd
JM
177952011-03-11 Jason Merrill <jason@redhat.com>
17796
17797 PR c++/48069
17798 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
17799 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
17800
62ecfeb8
MJ
178012011-03-11 Martin Jambor <mjambor@suse.cz>
17802
17803 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
17804 cgraph_node.
17805
e89e03ab
JJ
178062011-03-11 Jakub Jelinek <jakub@redhat.com>
17807
17808 PR tree-optimization/48063
17809 * ipa-inline.c (cgraph_decide_inlining): Don't try to
17810 inline functions called once if !tree_can_inline_p (node->callers).
17811
efbe978b 178122011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 17813
efbe978b
EB
17814 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
17815 extra_objs.
9d6193a7
CL
17816 * config/score/score3.c: Delete.
17817 * config/score/score3.h: Delete.
17818 * config/score/mul-div.S: Delete.
17819 * config/score/sfp-machine.h: Add new file.
17820 * config/score/constraints.md: Add new file.
17821 * config/score/t-score-softfp: Add new file.
efbe978b 17822 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
17823 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
17824 (score7_extra_constraint): Delete.
efbe978b 17825 (score7_option_override): Remove unused code.
9d6193a7
CL
17826 * config/score/score.c: Remove score3 and score5 define and code.
17827 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 17828 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
17829 * config/score/score.opt: Remove score3 and score5 options.
17830
5de27cca
JDA
178312011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17832
17833 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
17834 when _HPUX_SOURCE is defined.
17835 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
17836
18d92053
JM
178372011-03-10 Jason Merrill <jason@redhat.com>
17838
17839 PR c++/48029
17840 * stor-layout.c (layout_type): Don't set structural equality
17841 on arrays of incomplete type.
17842 * tree.c (type_hash_eq): Handle comparing them properly.
17843
67a2f76d
JJ
178442011-03-10 Jakub Jelinek <jakub@redhat.com>
17845
17846 PR debug/48043
18d92053 17847 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
17848 result mode matches original rtl mode.
17849
d845b2f9
NC
178502011-03-10 Nick Clifton <nickc@redhat.com>
17851
17852 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 17853 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 17854
db7ec035
JJ
178552011-03-09 Jakub Jelinek <jakub@redhat.com>
17856
17857 PR rtl-optimization/47866
17858 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
17859 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
17860 if target wasn't scalar.
17861 * function.c (assign_stack_temp_for_type): Assert that neither
17862 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
17863 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
17864 macro.
17865 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
17866
5d304e47
AK
178672011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17868
17869 * config/s390/s390-protos.h (s390_label_align): New prototype.
17870 * config/s390/s390.c (s390_label_align): New function.
17871 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
17872
93b826f0
MM
178732011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17874
17875 PR target/47755
17876 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
17877 V2DI/V2DF constants. Only all 0's or all 1's are easy.
17878 (output_vec_const_move): Ditto.
17879
ef78aed6
AS
178802011-03-08 Anatoly Sokolov <aesok@post.ru>
17881
17882 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
17883 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
17884 * config/mips/mips.c (mips_preferred_reload_class): Make static.
17885 Change 'rclass' argument and result type to reg_class_t.
17886 (TARGET_PREFERRED_RELOAD_CLASS): Define.
17887
5f892aa0
GJL
178882011-03-08 Georg-Johann Lay <avr@gjlay.de>
17889
9e43ad68
UB
17890 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17891 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
17892 (TARGET_MEMORY_MOVE_COST): Define.
17893 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 17894
32bd2409
JJ
178952011-03-08 Jakub Jelinek <jakub@redhat.com>
17896
530a4800
JJ
17897 PR debug/47881
17898 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
17899 removed anything.
17900
32bd2409
JJ
17901 PR tree-optimization/48022
17902 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
17903 for EQ/NE_EXPR.
17904
c7148991
JJ
179052011-03-07 Jakub Jelinek <jakub@redhat.com>
17906
17907 PR debug/47991
17908 * var-tracking.c (find_use_val): Return NULL for
17909 cui->sets && cui->store_p BLKmode MEMs.
17910
43070a6e
AS
179112011-03-07 Anatoly Sokolov <aesok@post.ru>
17912
17913 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
17914 Remove.
17915 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
17916 xstormy16_print_operand_address): Remove.
17917 * config/stormy16/stormy16.c (xstormy16_print_operand,
17918 xstormy16_print_operand_address): Make static.
17919 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17920
efbe978b 179212011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
17922
17923 PR target/47862
17924 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17925 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
17926 before definition.
17927
cec8ac0b
ZD
179282011-03-07 Zdenek Dvorak <ook@ucw.cz>
17929
17930 PR bootstrap/48000
17931 * cfgloopmanip.c (fix_bb_placements): Return immediately
17932 if FROM is BASE_LOOP's header.
17933
59527282
PW
179342011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
17935
17936 * gimplify.c (gimplify_function_tree): Fix building calls
17937 to __builtin_return_address.
17938
617718f7
AM
179392011-03-07 Alan Modra <amodra@gmail.com>
17940
17941 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
17942 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
17943 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
17944 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
17945 return_mode args.
17946 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
17947 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
17948 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
17949 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
17950 * config/rs6000/rs6000.c
17951 (rs6000_elf_end_indicate_exec_stack): Rename to..
17952 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
17953 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
17954 (rs6000_file_start): ..here.
17955 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
17956 file scope variables.
17957 (call_ABI_of_interest): New function.
17958 (init_cumulative_args): Set above vars when function return value
17959 is a float, vector, or small struct.
17960 (rs6000_function_arg_advance_1): Likewise for function args.
17961 (rs6000_va_start): Set rs6000_passes_float if variable arg function
17962 references float args.
17963
38528d50
MX
179642011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
17965
17966 * doc/cfg.texi: Remove "See" before @ref.
17967 * doc/invoke.texi: Likewise.
17968
f42cf4f4
JM
179692011-03-05 Jason Merrill <jason@redhat.com>
17970
17971 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
17972
804a304d
AG
179732011-03-05 Anthony Green <green@moxielogic.com>
17974
17975 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
17976
634ee309
ZD
179772011-03-05 Zdenek Dvorak <ook@ucw.cz>
17978
17979 PR rtl-optimization/47899
17980 * cfgloopmanip.c (fix_bb_placements): Fix first argument
17981 to flow_loop_nested_p when moving the loop upward.
17982
6fe471c8
RE
179832011-03-05 Richard Earnshaw <rearnsha@arm.com>
17984
17985 PR target/47719
17986 * arm.md (movhi_insn_arch4): Accept any immediate constant.
17987
cc58ceee
JJ
179882011-03-05 Jakub Jelinek <jakub@redhat.com>
17989
17990 PR tree-optimization/47967
17991 * ipa-cp.c (build_const_val): Return NULL instead of creating
17992 VIEW_CONVERT_EXPR for mismatching sizes.
17993 (ipcp_create_replace_map): Return NULL if build_const_val failed.
17994 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
17995 give up on versioning.
17996
ea868305
AM
179972011-03-05 Alan Modra <amodra@gmail.com>
17998
17999 PR target/47986
18000 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18001 full cmodel medium/large lo_sum + high addresses.
18002
bc6ce334
AK
180032011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18004
18005 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18006 pool references in UNSPEC_LTREL_OFFSET.
18007
87e7b310
JH
180082011-03-04 Jan Hubicka <jh@suse.cz>
18009
18010 PR lto/47497
18011 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18012 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
18013 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18014 Add node pointers.
87e7b310
JH
18015 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18016 cgraph_add_thunk): Add node pointers.
18017 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18018 associated to right node.
18019 (input_node): Update use of cgraph_same_body_alias
18020 and cgraph_add_thunk.
18021
d9c64246
CF
180222011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18023
18024 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
18025 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18026 modes when the flag -mprefer-avx128 is on.
d9c64246 18027
08707076
RS
180282011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18029
18030 * dwarf2out.c (compare_loc_operands): Fix address handling.
18031
52517c81
AM
180322011-03-04 Alan Modra <amodra@gmail.com>
18033
18034 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18035
b147c5b9
RG
180362011-03-04 Richard Guenther <rguenther@suse.de>
18037
18038 PR middle-end/47968
18039 * expmed.c (extract_bit_field_1): Prefer vector modes that
18040 vec_extract patterns can handle.
18041
8750672f
RG
180422011-03-04 Richard Guenther <rguenther@suse.de>
18043
18044 PR middle-end/47975
18045 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18046
9eac0f2a
RH
180472011-03-04 Richard Henderson <rth@redhat.com>
18048
18049 * explow.c (emit_stack_save): Remove 'after' parameter.
18050 (emit_stack_restore): Likewise.
18051 * expr.h: Update to match.
18052 * builtins.c, calls.c, stmt.c: Likewise.
18053 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18054 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18055 * function.c (expand_function_end): Insert the emit_stack_save
18056 sequence before parm_birth_insn instead of after.
18057
dfee1406
UB
180582011-03-03 Uros Bizjak <ubizjak@gmail.com>
18059
18060 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18061 (ssse3_pmaddubsw128): Ditto.
18062 (ssse3_pmaddubsw): Ditto.
18063
f1d4c3de
SE
180642011-03-03 Steve Ellcey <sje@cup.hp.com>
18065
18066 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18067
71f3a3f5
JJ
180682011-03-03 Jakub Jelinek <jakub@redhat.com>
18069
423ed416
JJ
18070 PR c/47963
18071 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18072 on TYPE_SIZE_UNIT if it is a DECL.
18073
71f3a3f5
JJ
18074 PR debug/47283
18075 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18076 first operand is not is_gimple_mem_ref_addr, try to fold it.
18077 If the operand still isn't is_gimple_mem_ref_addr, clear
18078 MEM_EXPR on op0.
18079
4b1a5c0d
RG
180802011-03-03 Richard Guenther <rguenther@suse.de>
18081
18082 PR middle-end/47283
18083 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18084 match comment.
18085 (refs_may_alias_p_1): For release branches return true if
18086 we are confused by our input.
18087
b46616fd
AK
180882011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18089
18090 * config/s390/s390.c (s390_function_value): Rename to ...
18091 (s390_function_and_libcall_value): ... this.
18092 (s390_function_value): New function.
18093 (s390_libcall_value): New function.
dfee1406 18094 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
18095 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18096 target macro definitions.
18097 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18098
46d8fabb
JM
180992011-03-02 Joseph Myers <joseph@codesourcery.com>
18100
18101 * config/i386/freebsd64.h (CC1_SPEC): Define.
18102 * config/i386/linux64.h (CC1_SPEC): Define.
18103 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18104
6b1ce545
AS
181052011-03-02 Anatoly Sokolov <aesok@post.ru>
18106
18107 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18108 Remove.
18109 * config/stormy16/stormy16.c: Include reload.h.
18110 (xstormy16_memory_move_cost): New function.
18111 (TARGET_MEMORY_MOVE_COST): Define.
18112
34161e98
RS
181132011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18114
18115 PR rtl-optimization/47925
18116 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18117 with side effects. Remove the more-specific check for volatile asms.
18118
f60a97cf
AM
181192011-03-02 Alan Modra <amodra@gmail.com>
18120
18121 PR target/47935
18122 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18123 toc relative addresses for valid offsets.
18124
f2ca11ca
RG
181252011-03-01 Richard Guenther <rguenther@suse.de>
18126
18127 PR tree-optimization/47890
18128 * tree-vect-loop.c (get_initial_def_for_induction): Set
18129 related stmt properly.
18130
7a00d9ea
RG
181312011-03-01 Richard Guenther <rguenther@suse.de>
18132
18133 PR lto/47924
18134 * lto-streamer.c (lto_record_common_node): Also register
18135 the canonical type.
18136
06c7edcc
RG
181372011-03-01 Richard Guenther <rguenther@suse.de>
18138
18139 PR lto/46911
18140 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18141 Do not stream DECL_ABSTRACT_ORIGIN.
18142 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18143 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18144 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18145 Do not stream DECL_ABSTRACT_ORIGIN.
18146 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18147 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18148
998871e9
AS
181492011-02-28 Anatoly Sokolov <aesok@post.ru>
18150
18151 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18152 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 18153 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
18154 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18155 Add 'outgoing' argument.
18156 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18157 function.
18158 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18159 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18160
94369251
KT
181612011-02-28 Kai Tietz <kai.tietz@onevision.com>
18162
18163 PR debug/28047
18164 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18165 (lookup_filename): Likewise.
b2e2ea67 18166 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 18167
80a832cd
JJ
181682011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18169 Jakub Jelinek <jakub@redhat.com>
18170
18171 PR middle-end/47893
18172 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18173 (assign_stack_local_1): Change last argument type to int.
18174 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18175 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 18176 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
18177 (assign_stack_local): Adjust caller.
18178 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18179 of assign_stack_local, pass 0 as last argument.
18180 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18181 callers.
18182
1b500976
JJ
181832011-02-28 Jakub Jelinek <jakub@redhat.com>
18184
f61c6f34
JJ
18185 PR debug/47283
18186 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18187 Use target address_mode and pointer_mode hooks instead of hardcoded
18188 Pmode and ptr_mode. Handle some simple cases of extending if
18189 POINTERS_EXTEND_UNSIGNED < 0.
18190 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18191 Call convert_debug_memory_address.
18192 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18193 convert_debug_memory_address.
18194
1b500976
JJ
18195 PR middle-end/46790
18196 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18197 * configure: Regenerated.
18198 * config.in: Regenerated.
18199 * varasm.c (default_function_section): Return NULL
b2e2ea67 18200 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 18201
2f2935b6
MJ
182022011-02-28 Martin Jambor <mjambor@suse.cz>
18203
18204 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18205 the description to match the printed values.
18206
474086eb
RG
182072011-02-28 Richard Guenther <rguenther@suse.de>
18208
18209 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18210 of the copied scope tree.
18211
15bf6f3a
RW
182122011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18213
18214 * doc/extend.texi (Function Attributes): Avoid deeply (and
18215 wrongly) nested tables.
18216
f6b439c9
JJ
182172011-02-27 Jakub Jelinek <jakub@redhat.com>
18218
18219 PR middle-end/47903
18220 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18221 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18222 r isn't op0 nor op1.
18223
1d8ca2c7
GJL
182242011-02-23 Georg-Johann Lay <avr@gjlay.de>
18225
18226 * config/avr/avr.md: Remove magic comment for emacs.
18227
593fca4b
GJL
182282011-02-23 Georg-Johann Lay <avr@gjlay.de>
18229
18230 PR target/45261
18231 * config/avr/avr.c (avr_option_override): Use error on bad options.
18232 (avr_help): New function.
18233 (TARGET_HELP): Define.
18234
6609216e
GJL
182352011-02-22 Georg-Johann Lay <avr@gjlay.de>
18236
18237 PR target/42240
18238 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18239 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18240
03d458af
GP
182412011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18242
18243 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18244 (ARM Options): Ditto.
18245 (i386 and x86-64 Options): Ditto.
18246 (RX Options): Ditto.
18247 (SPARC Options): Ditto.
18248
1c379b78
TC
182492011-02-26 Tijl Coosemans <tijl@coosemans.org>
18250
18251 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18252 FreeBSD 6 and later. Generally use cpu generic.
18253
d5ed058c 182542011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 18255
d5ed058c
GP
18256 * doc/cpp.texi: Update copyright years.
18257
509d65dd 182582011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 18259
509d65dd 18260 PR target/46898
308d39cd
SB
18261 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18262
509d65dd 182632011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 18264
509d65dd 18265 PR target/46898
308d39cd
SB
18266 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18267 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18268 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18269 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 18270 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
18271 (gen_int_relational): Move declarations to start of function.
18272
822ba6d7
EB
182732011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18274
18275 PR tree-optimization/45470
18276 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18277 can throw internally only.
18278 * tree-vect-stmts.c (vectorizable_call): Likewise.
18279
ef795fc2
AS
182802011-02-24 Anatoly Sokolov <aesok@post.ru>
18281
18282 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18283 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18284 * config/stormy16/stormy16-protos.h
18285 (xstormy16_preferred_reload_class): Remove.
18286 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18287 static. Change 'rclass' argument and return type to reg_class_t.
18288 (TARGET_PREFERRED_RELOAD_CLASS,
18289 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18290
1c3277ee
RG
182912011-02-24 Richard Guenther <rguenther@suse.de>
18292
18293 * lto-streamer-in.c (input_bb): Do not find referenced vars
18294 in debug statements.
18295
67e18edb
JM
182962011-02-23 Jason Merrill <jason@redhat.com>
18297
18298 * common.opt (fabi-version): Document v5 and v6.
18299
b14fad9d
RG
183002011-02-23 Richard Guenther <rguenther@suse.de>
18301
18302 PR tree-optimization/47849
18303 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18304
7fcf46f5
JZ
183052011-02-23 Jie Zhang <jie@codesourcery.com>
18306
18307 * opts-common.c (decode_cmdline_option): Print empty string
18308 argument as "" in decoded->orig_option_with_args_text.
18309 * gcc.c (execute): Print empty string argument as ""
18310 in the verbose output.
18311 (do_spec_1): Keep empty string argument.
18312
f85b70fd
NF
183132011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18314
18315 * config.gcc: Declare score-* and crx-* obsolete.
18316
b152a615
JZ
183172011-02-23 Jie Zhang <jie@codesourcery.com>
18318
18319 PR rtl-optimization/47763
18320 * web.c (web_main): Ignore naked clobber when replacing register.
18321
bb6e77bc
AS
183222011-02-22 Anatoly Sokolov <aesok@post.ru>
18323
18324 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18325 Remove.
18326
68bf6491
SP
183272011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18328
18329 PR doc/47848
18330 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18331
88ee1fc7
MS
183322011-02-22 Mike Stump <mikestump@comcast.net>
18333
18334 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18335 assembler.
18336 * configure: Regenerate.
18337
6042d1dd
CLT
183382011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18339
18340 PR rtl-optimization/46002
18341 * ira-color.c (update_copy_costs): Change class intersection
18342 test to reg_class_contents[] test of 'hard_regno'.
18343
7de97f9e
JM
183442011-02-21 Joseph Myers <joseph@codesourcery.com>
18345
18346 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18347 than Driver option.
18348 * config/hpux11.opt (mt): Likewise.
18349 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18350 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18351 * config/vax/elf.opt (mno-asm-pic): Likewise.
18352 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18353
d1d46f9f
MS
183542011-02-21 Mike Stump <mikestump@comcast.net>
18355
18356 PR target/47822
18357 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18358 tree so we can get save the type.
18359 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18360 for CFString instead of trying to use past the end of the builtins.
18361 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18362 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18363 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18364 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18365 Rename to darwin_builtin_cfstring.
18366 (darwin_init_cfstring_builtins): Return the built type.
18367
23e0d930
UB
183682011-02-21 Uros Bizjak <ubizjak@gmail.com>
18369
18370 PR target/47840
18371 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18372 (_mm256_insert_epi64): Use _mm_insert_epi64.
18373
192997cf
AS
183742011-02-21 Anatoly Sokolov <aesok@post.ru>
18375
18376 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18377 * config/stormy16/stormy16-protos.h
18378 (xstormy16_mode_dependent_address_p): Remove.
18379 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18380 Make static. Change return type to bool. Change argument type to
18381 const_rtx. Remove dead code.
18382 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18383
e292d003
RG
183842011-02-21 Richard Guenther <rguenther@suse.de>
18385
18386 PR lto/47820
18387 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18388 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18389 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18390 TUs context.
23e0d930 18391 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
18392 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18393
77f846e9
RG
183942011-02-20 Richard Guenther <rguenther@suse.de>
18395
18396 PR lto/47822
18397 * tree.c (free_lang_data_in_decl): Clean builtins from
18398 the TU decl BLOCK_VARS.
23e0d930 18399
b2cddfc8
AO
184002011-02-19 Alexandre Oliva <aoliva@redhat.com>
18401
18402 PR debug/47620
18403 PR debug/47630
18404 * haifa-sched.c (fix_tick_ready): Skip tick computation
18405 for debug insns.
18406
becf4c11
RG
184072011-02-19 Richard Guenther <rguenther@suse.de>
18408
18409 PR lto/47647
18410 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18411 Remove lazy BLOCK_VARS streaming.
18412 (lto_input_ts_block_tree_pointers): Likewise.
18413 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18414
27f98305
JM
184152011-02-19 Joseph Myers <joseph@codesourcery.com>
18416
18417 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18418
064bf3f4
JM
184192011-02-19 Joseph Myers <joseph@codesourcery.com>
18420
18421 * config/i386/biarch32.h, config/i386/mach.h,
18422 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18423
9215ddc3
JJ
184242011-02-19 Jakub Jelinek <jakub@redhat.com>
18425
18426 PR target/47800
18427 * config/i386/i386.md (peephole2 for shift and plus): Use
18428 operands[1] original mode in the first insn.
18429
8b021004
MS
184302011-02-18 Mike Stump <mikestump@comcast.net>
18431
65ded153 18432 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 18433
f84ae14c
JH
184342011-02-18 Jan Hubicka <jh@suse.cz>
18435
18436 PR middle-end/47788
65ded153
EB
18437 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18438 to zero when the function is not inlinable at all.
f84ae14c 18439
eddabc80
JDA
184402011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18441
18442 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18443 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18444 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18445 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18446 * config/pa/t-pa64: Likewise.
18447 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18448
ca3da783
JJ
184492011-02-18 Jakub Jelinek <jakub@redhat.com>
18450
18451 PR driver/47787
18452 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18453
430aa868
JDA
184542011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18455
18456 PR target/47792
18457 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18458
4bf7ff7e
AS
184592011-02-18 Anatoly Sokolov <aesok@post.ru>
18460
18461 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18462 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18463 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18464 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18465 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18466 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18467 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18468 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18469 m32r_legitimate_address_p): New functions.
18470 * config/m32r/constraints.md (constraint "S"): Don't use
18471 STORE_PREINC_PREDEC_P.
18472 (constraint "U"): Don't use LOAD_POSTINC_P.
18473
7efcf910
CLT
184742011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18475
18476 PR rtl-optimization/46178
18477 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18478 compute ira_hard_regno_cover_class[].
18479
237d6259
RG
184802011-02-18 Richard Guenther <rguenther@suse.de>
18481
18482 PR lto/47798
18483 * lto-streamer.h (lto_global_var_decls): Declare.
18484 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18485 statics for global var processing.
18486
12d80acc
RG
184872011-02-18 Richard Guenther <rguenther@suse.de>
18488
18489 PR tree-optimization/47737
18490 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18491 edge dominance check.
18492
abfea58d
JJ
184932011-02-18 Jakub Jelinek <jakub@redhat.com>
18494
18495 PR debug/47780
18496 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18497 avoid invalid rtx sharing.
18498
f73c8882
GP
184992011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18500
18501 * doc/cpp.texi (Obsolete Features): Add background on the
18502 origin of assertions.
18503
d764a8e6
IS
185042011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18505
18506 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 18507 objc_abi == 2.
d764a8e6
IS
18508 * config/darwin.c (output_objc_section_asm_op): Added support for
18509 ABI v1 and v2.
18510 (is_objc_metadata): New.
18511 (darwin_objc2_section): New.
18512 (darwin_objc1_section): New.
18513 (machopic_select_section): Added support for ABI v1 and v2.
18514 (darwin_emit_objc_zeroed): New.
18515 (darwin_output_aligned_bss): Detect objc metadata and treat it
18516 appropriately.
18517 (darwin_asm_output_aligned_decl_common): Same.
18518 (darwin_asm_output_aligned_decl_local): Same.
18519 * config/darwin-sections.def: Updated for ABI v1 and v2.
18520 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18521 compiling Objective-C code for the NeXT runtime, default to using
18522 ABI version 0 for 32-bit, and version 2 for 64-bit.
18523
0a8134ca
JM
185242011-02-17 Joseph Myers <joseph@codesourcery.com>
18525
18526 * common.opt (optimize_fast): New Variable.
18527 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18528 instead of local variable ofast.
18529
0a256240
NP
185302011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18531
18532 * doc/invoke.texi (fobjc-abi-version): Documented.
18533 (fobjc-nilcheck): Documented.
18534 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18535 version.
18536
fa381cb2
JM
185372011-02-17 Joseph Myers <joseph@codesourcery.com>
18538
18539 PR driver/47390
18540 * common.opt (export-dynamic): New Driver option.
18541 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18542
5437eaa6
JM
185432011-02-17 Joseph Myers <joseph@codesourcery.com>
18544
18545 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18546
bb7e6d55
AO
185472011-02-17 Alexandre Oliva <aoliva@redhat.com>
18548 Jan Hubicka <jh@suse.cz>
18549
18550 PR debug/47106
18551 PR debug/47402
18552 * cfgexpand.c (account_used_vars_for_block): Remove.
18553 (estimated_stack_frame_size): Use referenced vars.
18554 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18555 that were referenced in the original function. Test src_fn
18556 rather than cfun. Drop redundant get_var_ann.
18557 (setup_one_parameter): Drop redundant get_var_ann.
18558 (declare_return_variable): Likewise.
18559 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18560 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18561 * ipa-inline.c (compute_inline_parameters): Do not compute
18562 disregard_inline_limits here.
bb7e6d55
AO
18563 (compute_inlinable_for_current, pass_inlinable): New.
18564 (pass_inline_parameters): Require PROP_referenced_vars.
18565 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 18566 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
18567 (cgraph_analyze_function): Set .disregard_inline_limits.
18568 * tree-sra.c (convert_callers): Compute inliner parameters
18569 only for functions already in SSA form.
18570
f181a8a7
JM
185712011-02-17 Joseph Myers <joseph@codesourcery.com>
18572
18573 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18574 -mlittle-endian-data.
18575
c6869789
JM
185762011-02-17 Joseph Myers <joseph@codesourcery.com>
18577
18578 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18579 -mno-fpu, not -fpu and -no-fpu.
18580 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18581 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18582
fbf4bfd3
UB
185832011-02-17 Uros Bizjak <ubizjak@gmail.com>
18584
18585 PR target/43653
18586 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18587 input reload with PLUS RTX.
18588
70be5dc7
JM
185892011-02-16 Joseph Myers <joseph@codesourcery.com>
18590
18591 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18592 of InverseVar(MDMX).
18593
30b1646e
JM
185942011-02-16 Joseph Myers <joseph@codesourcery.com>
18595
18596 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18597 --m4-340.
18598
ab7b71e9
JM
185992011-02-16 Joseph Myers <joseph@codesourcery.com>
18600
18601 * config/mn10300/mn10300.opt (mno-crt0): New.
18602
466f3f08
JM
186032011-02-16 Joseph Myers <joseph@codesourcery.com>
18604
18605 * config/m68k/uclinux.opt (static-libc): New Driver option.
18606
8226cd7b
JM
186072011-02-16 Joseph Myers <joseph@codesourcery.com>
18608
18609 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18610
45cab1d7
JM
186112011-02-16 Joseph Myers <joseph@codesourcery.com>
18612
18613 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18614 %{muser-extend-enabled}.
18615
65aab64f
RG
186162011-02-16 Richard Guenther <rguenther@suse.de>
18617
18618 PR tree-optimization/47738
18619 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18620 the TODO from tree_predictive_commoning.
18621
fc2fa4fb
JL
186222011-02-15 Jeff Law <law@redhat.com>
18623
18624 Revert
18625 2011-01-25 Jeff Law <law@redhat.com>
18626
18627 PR rtl-optimization/37273
18628 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18629 handle them like argument loads from stack slots. Do not double
18630 count memory for memory constants and argument loads from stack slots.
18631
4e380b8e
L
186322011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18633
18634 PR middle-end/47725
18635 * combine.c (cant_combine_insn_p): Revert the last change.
18636
e3a69bb4
MM
186372011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18638
18639 PR target/47755
18640 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18641 mode for vector constants. Remove code that checks for TImode.
18642
de650422
AO
186432011-02-15 Alexandre Oliva <aoliva@redhat.com>
18644
18645 PR debug/47106
18646 PR debug/47402
18647 * cgraph.h (compute_inline_parameters): Return void.
18648 * ipa-inline.c (compute_inline_parameters): Adjust.
18649
30925d94
AO
186502011-02-15 Alexandre Oliva <aoliva@redhat.com>
18651
18652 PR debug/47106
18653 PR debug/47402
18654 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18655 rather than decl.
18656 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18657 * ipa-inline.c (compute_inline_parameters): Adjust.
18658
1b9a784a
AO
186592011-02-15 Alexandre Oliva <aoliva@redhat.com>
18660
18661 PR debug/47106
18662 PR debug/47402
18663 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18664 Adjust all users. Pass FN to...
18665 * tree-flow-inline.h (first_referenced_var): ... this. Add
18666 fn argument.
18667 * ipa-struct-reorg.c: Adjust.
18668 * tree-dfa.c: Adjust.
18669 * tree-into-ssa.c: Adjust.
18670 * tree-sra.c: Adjust.
18671 * tree-ssa-alias.c: Adjust.
18672 * tree-ssa-live.c: Adjust.
18673 * tree-ssa.c: Adjust.
18674 * tree-ssanames.c: Adjust.
18675 * tree-tailcall.c: Adjust.
18676
27c6b086
AO
186772011-02-15 Alexandre Oliva <aoliva@redhat.com>
18678
18679 PR debug/47106
18680 PR debug/47402
18681 * tree-flow.h (referenced_var_lookup): Add fn parameter.
18682 Adjust all callers.
18683 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18684 * tree-flow-inline.h: Adjust.
18685 * gimple-pretty-print.c: Adjust.
18686 * tree-into-ssa.c: Adjust.
18687 * tree-ssa.c: Adjust.
18688 * cfgexpand.c: Adjust.
18689
679e8183
NF
186902011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18691
fbf4bfd3
UB
18692 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18693 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18694 (EXTRA_CONSTRAINT): Delete.
18695 * config/iq2000/constraints.md: New file.
18696 * config/iq2000/iq2000.md: Include it.
679e8183
NF
18697 (define_insn ""): Delete.
18698 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18699 unsupported constraint letters from patterns.
18700 (call_value, call_value_internal1): Likewise.
18701 (call_value_multiple_internal1): Likewise.
18702
a45d420a
NC
187032011-02-15 Nick Clifton <nickc@redhat.com>
18704
18705 * config/mn10300/mn10300.c: Include tm-constrs.h.
18706 (struct liw_data): New data structure describing an LIW candidate
18707 instruction.
18708 (extract_bundle): Use struct liw_data. Allow small integer
18709 operands for some instructions.
18710 (check_liw_constraints): Use struct liw_data. Remove swapped
18711 parameter. Add comments describing the checks. Fix bug when
18712 assigning the source of liw1 to the source of liw2.
18713 (liw_candidate): Delete. Code moved into extract_bundle.
18714 (mn10300_bundle_liw): Use struct liw_data. Check constraints
18715 before swapping.
18716 * config/mn10300/predicates.md (liw_operand): New predicate.
18717 Allows registers and small integer constants.
18718 * config/mn10300/constraints.md (O): New constraint. Accetps
18719 integers in the range -8 to +7 inclusive.
18720 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18721 for moving a small integer into a register. Give this alternative
18722 LIW attributes.
18723 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18724 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18725 using the J,K,L and M constraints,
18726 (liw): Remove SI mode on second operands to allow for HI and QI
18727 mode values.
18728 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
18729 instruction.
18730
8a73faf1
L
187312011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18732
18733 PR middle-end/47725
18734 * combine.c (cant_combine_insn_p): Check zero/sign extended
18735 hard registers.
18736
48feba28
RG
187372011-02-15 Richard Guenther <rguenther@suse.de>
18738
18739 PR tree-optimization/47743
18740 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
18741 for a non-type-compatible VN lookup bail out.
18742
ad1c1eeb
NF
187432011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18744
18745 * config/fr30/constraints.md: New file.
18746 * config/fr30/fr30.md: Include it.
18747 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
18748 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18749 (EXTRA_CONSTRAINT): Delete.
18750
49ac143d
NF
187512011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18752
18753 * config/frv/constraints.md: New file.
18754 * config/frv/predicates.md: Include it.
18755 * config/frv/frv.c (reg_class_from_letter): Delete.
18756 (frv_option_override): Don't initialize it.
18757 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
18758 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
18759 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
18760 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18761 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
18762 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18763 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
18764 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
18765 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
18766 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
18767 (REG_CLASS_FROM_CONSTRAINT): Delete.
18768
c95f9494
JJ
187692011-02-15 Jakub Jelinek <jakub@redhat.com>
18770
18771 PR middle-end/47581
18772 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
18773 if frame size is 0 in a leaf function.
18774
13aed611
RO
187752011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18776
18777 PR pch/14940
18778 * config/alpha/host-osf.c: New file.
18779 * config/alpha/x-osf: New file.
18780 * config.host (alpha*-dec-osf*): Use it.
18781
b09c3081
AS
187822011-02-14 Anatoly Sokolov <aesok@post.ru>
18783
18784 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18785 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
18786 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
18787 (rx_mode_dependent_address_p): ...this. Make static. Change argument
18788 type to const_rtx.
18789 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18790
d634083b
NF
187912011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18792
18793 * config/stormy16/constraints.md: New file.
18794 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
18795 Use satisfies_constraint_Q and satisfies_constraint_R.
18796 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
18797 Delete.
18798 (xstormy16_legitiamte_address_p): Declare.
18799 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
18800 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18801 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 18802 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
18803 Un-staticize.
18804 (xstormy16_extra_constraint_p): Delete.
18805
c7dd803e
EB
188062011-02-14 Eric Botcazou <ebotcazou@adacore.com>
18807
18808 PR tree-optimization/46494
18809 * loop-unroll.c (split_edge_and_insert): Adjust comment.
18810 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
18811 (pass_rtl_loop_done): Add TODO_verify_flow.
18812 * fwprop.c (pass_rtl_fwprop): Likewise.
18813 * modulo-sched.c (pass_sms): Likewise.
18814 * tree-ssa-dom.c (pass_dominator): Likewise.
18815 * tree-ssa-loop-ch.c (pass_ch): Likewise.
18816 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
18817 (pass_tree_loop_done): Likewise.
18818 * tree-ssa-pre.c (execute_pre): Likewise.
18819 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18820 * tree-ssa-sink.c (pass_sink_code): Likewise.
18821 * tree-vrp.c (pass_vrp): Likewise.
18822
c6150df6
NF
188232011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18824
c7dd803e
EB
18825 * config/v850/constraints.md: New file.
18826 * config/v850/v850.md: Include it.
18827 * config/v850/predicates.md (reg_or_0_operand): Use
18828 satisfies_constraint_G.
18829 (special_symbolref_operand): Use satisfies_constraint_K.
18830 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
18831 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
18832 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
18833 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18834 (EXTRA_CONSTRAINT): Delete.
18835 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
18836 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
18837 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 18838
30dd1ea3
AS
188392011-02-14 Anatoly Sokolov <aesok@post.ru>
18840
18841 PR target/47696
18842 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
18843 description.
18844
944f4bb3
NF
188452011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18846
18847 * config/mcore/constraints.md: New file.
18848 * config/mcore/mcore.md: Include it.
18849 * config/mcore/mcore.c (reg_class_from_letter): Delete.
18850 * config/mcore/mcore.h (reg_class_from_letter): Delete.
18851 (REG_CLASS_FROM_LETTER): Delete.
18852 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
18853 insn_const_int_ok_for_constraint.
18854 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
18855 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
18856 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18857 (EXTRA_CONSTRAINT): Delete.
18858
ad56a54c
RO
188592011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18860
18861 PR ada/41929
18862 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
18863 (IS_SIGHANDLER): Define.
18864 (sparc64_is_sighandler): New function, split off from
18865 sparc64_fallback_frame_state.
18866 (sparc_is_sighandler): New function, split off from
18867 sparc_fallback_frame_state.
18868 (sparc64_fallback_frame_state): Merge with ...
18869 (sparc_fallback_frame_state): ... this into ...
18870 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
18871 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
18872 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
18873 stack instead of hardcoded offsets.
ad56a54c 18874
fbf4bfd3 188752011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
18876
18877 PR target/45808
18878 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
18879
029c8f3e
RW
188802011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18881
18882 * configure: Regenerate.
18883
a016dc83
JM
188842011-02-12 Joseph Myers <joseph@codesourcery.com>
18885
18886 PR driver/45731
18887 * gcc.c (asm_options): Correct spec matching --target-help.
18888
8957a0ec
MJ
188892011-02-12 Martin Jambor <mjambor@suse.cz>
18890
18891 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
18892 to gimple call error.
18893
6ef828bc
MS
188942011-02-12 Mike Stump <mikestump@comcast.net>
18895
18896 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
18897 comments in backslash regions.
18898
a4015be5
MS
188992011-02-12 Mike Stump <mikestump@comcast.net>
18900 Jakub Jelinek <jakub@redhat.com>
18901 Iain Sandoe <iains@gcc.gnu.org>
18902
18903 PR target/47324
18904 * dwarf2out.c (output_cfa_loc): When required, apply the
18905 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
18906 (output_loc_sequence): Likewise.
18907 (output_loc_operands_raw): Likewise.
18908 (output_loc_sequence_raw): Likewise.
18909 (output_cfa_loc): Likewise.
18910 (output_loc_list): Suppress register number adjustment when
18911 calling output_loc_sequence()
18912 (output_die): Likewise.
18913
5378dda2
AS
189142011-02-12 Anatoly Sokolov <aesok@post.ru>
18915
18916 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18917 Remove macros.
18918 * config/xtensa/xtensa.c (xtensa_register_move_cost,
18919 xtensa_memory_move_cost): New functions.
18920 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
18921
f3d533d3
AO
189222011-02-12 Alexandre Oliva <aoliva@redhat.com>
18923
18924 PR lto/47225
18925 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
18926 in the current directory.
18927 * configure: Rebuilt.
18928
9d53403c
IS
189292011-02-12 Iain Sandoe <iains@gcc.gnu.org>
18930
18931 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 18932 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
18933 correct indents of the preceding block.
18934
a350a6c8
IS
189352011-02-12 Iain Sandoe <iains@gcc.gnu.org>
18936
18937 * gcc.c (driver_handle_option): Concatenate the argument to -F with
18938 the switch.
18939
bab79a40
JM
189402011-02-11 Joseph Myers <joseph@codesourcery.com>
18941
18942 * common.opt (nostartfiles): New Driver option.
18943
1bbc6693
XDL
189442011-02-11 Xinliang David Li <davidxl@google.com>
18945
18946 PR tree-optimization/47707
18947 * tree-chrec.c (convert_affine_scev): Keep type precision.
18948
1da7d8c0
EB
189492011-02-11 Eric Botcazou <ebotcazou@adacore.com>
18950
18951 PR tree-optimization/47420
18952 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
18953
189542011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
18955
18956 PR rtl-optimization/47614
18957 * rtl.h (check_for_inc_dec): Declare.
18958 * dse.c (check_for_inc_dec): Externalize...
18959 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
18960 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
18961
4df47bca
JM
189622011-02-11 Joseph Myers <joseph@codesourcery.com>
18963
18964 PR driver/47678
18965 * gcc.c (main): Do not compile inputs if there were errors in
18966 option handling.
18967 * opts-common.c (read_cmdline_option): Check for wrong language
18968 after other error checks.
18969
61502ca8
NF
189702011-02-11 Nathan Froyd <froydnj@codesourcery.com>
18971
18972 * cgraph.c: Fix comment typos.
18973 * cgraph.h: Likewise.
18974 * cgraphunit.c: Likewise.
18975 * ipa-cp.c: Likewise.
18976 * ipa-inline.c: Likewise.
18977 * ipa-prop.c: Likewise.
18978 * ipa-pure-const.c: Likewise.
18979 * ipa-ref.c: Likewise.
18980 * ipa-reference.c: Likewise.
18981
b63f974e
JJ
189822011-02-11 Jakub Jelinek <jakub@redhat.com>
18983
d50c5e0c
JJ
18984 PR debug/47684
18985 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 18986
6dd2a13c
RO
189872011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18988
18989 PR testsuite/47400
18990 * doc/sourcebuild.texi (Require Support): Document
18991 dg-require-ascii-locale.
18992
4a087ccf
MX
189932011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
18994
18995 * doc/lto.texi (Write summary): Fix missing parentheses.
18996
a4403164
DD
189972011-02-10 DJ Delorie <dj@redhat.com>
18998
18999 * config/m32c/m32c.c (m32c_option_override): Disable
19000 -fcombine-stack-adjustments until flag value tracking and compare
19001 optimization can be rewritten.
19002
4fac45bd
PB
190032011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19004
19005 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19006 PROCESSOR_POWER7.
19007 (PROCESSOR_DEFAULT64): Likewise.
19008
72602cd1
RH
190092011-02-10 Richard Henderson <rth@redhat.com>
19010
19011 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19012 change from 2011-02-03.
19013 * config/rx/rx.c (flags_from_code): Likewise.
19014 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19015 is valid, n/pz otherwise.
19016 (rx_select_cc_mode): Return CCmode if Y is not zero.
19017
ea57f573
RG
190182011-02-10 Richard Guenther <rguenther@suse.de>
19019
ea4c3e65 19020 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 19021
92b1d23b
RG
190222011-02-10 Richard Guenther <rguenther@suse.de>
19023
19024 PR tree-optimization/47677
19025 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19026
525a2d06
JJ
190272011-02-10 Jakub Jelinek <jakub@redhat.com>
19028
19029 PR target/47665
19030 * combine.c (make_compound_operation): Only change shifts into
19031 multiplication for SCALAR_INT_MODE_P.
19032
06c969bd
JZ
190332011-02-10 Jie Zhang <jie@codesourcery.com>
19034
19035 PR testsuite/47622
19036 Revert
19037 2011-02-05 Jie Zhang <jie@codesourcery.com>
19038 PR debug/42631
19039 * web.c (entry_register): Don't clobber the number of the
19040 first uninitialized reference in used[].
19041
282ec48e
RG
190422011-02-09 Richard Guenther <rguenther@suse.de>
19043
19044 PR tree-optimization/47664
19045 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19046 all edges again.
19047
df98c3e8
DE
190482011-02-09 David Edelsohn <dje.gcc@gmail.com>
19049
d0f21cd6
DE
19050 PR target/46481
19051 PR target/47032
df98c3e8
DE
19052 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19053 PROCESSOR_POWER7.
19054 (PROCESSOR_DEFAULT64): Same.
19055 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19056
67b6839f
RO
190572011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19058
19059 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19060
4fd73214
MJ
190612011-02-09 Martin Jambor <mjambor@suse.cz>
19062
19063 PR middle-end/45505
19064 * tree-sra.c (struct access): New flags grp_scalar_read and
19065 grp_scalar_write. Changed description of assignment read and write
19066 flags.
19067 (dump_access): Dump new flags, reorder all of them.
19068 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19069 to detect multiple scalar reads.
19070 (analyze_access_subtree): Use the new scalar read write flags instead
19071 of the old flags. Adjusted comments.
19072
91140cd3
DD
190732011-02-08 DJ Delorie <dj@redhat.com>
19074
19075 PR target/47548
19076 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19077 patterns.
19078
4254bbfe
JM
190792011-02-08 Joseph Myers <joseph@codesourcery.com>
19080
19081 * config/m68k/uclinux.opt: New.
19082 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19083
f1fda84e
JM
190842011-02-08 Joseph Myers <joseph@codesourcery.com>
19085
19086 * config/cris/elf.opt (sim): New Driver option.
19087
4933ae74
JM
190882011-02-08 Joseph Myers <joseph@codesourcery.com>
19089
19090 * config/xtensa/elf.opt: New.
19091 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19092
4ad70280
JM
190932011-02-08 Joseph Myers <joseph@codesourcery.com>
19094
19095 * config/vax/elf.opt: New.
19096 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19097
20893707
JM
190982011-02-08 Joseph Myers <joseph@codesourcery.com>
19099
19100 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19101
b8e7038e
JM
191022011-02-08 Joseph Myers <joseph@codesourcery.com>
19103
19104 * config/gnu-user.opt: New.
19105 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19106 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19107 *-*-uclinux*): Use gnu-user.opt.
19108
e1c5225a
TS
191092011-02-08 Thomas Schwinge <thomas@schwinge.name>
19110
19111 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19112 * config/i386/gnu.h (CPP_SPEC): Likewise.
19113
5e46b0c6
ILT
191142011-02-08 Ian Lance Taylor <iant@google.com>
19115
19116 * common.opt (fcx-limited-range): Add SetByCombined flag.
19117 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19118 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19119 (fassociative-math, freciprocal-math): Likewise.
19120 (funsafe-math-optimizations): Likewise.
19121 * opth-gen.awk: Handle SetByCombined.
19122 * optc-gen.awk: Likewise.
ea4c3e65 19123 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
19124 (set_unsafe_math_optimizations_flags): Likewise.
19125 * doc/options.texi (Option properties): Document SetByCombined.
19126
32243d46
JM
191272011-02-08 Joseph Myers <joseph@codesourcery.com>
19128
19129 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19130 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19131 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19132 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19133 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19134
479c1fb3
SP
191352011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19136
19137 PR tree-optimization/46834
19138 PR tree-optimization/46994
19139 PR tree-optimization/46995
19140 * graphite-sese-to-poly.c (used_outside_reduction): New.
19141 (detect_commutative_reduction): Call used_outside_reduction.
19142 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19143 translate_scalar_reduction_to_array only when at least one
19144 loop-phi/close-phi tuple has been detected.
19145
3865a06f
RG
191462011-02-08 Richard Guenther <rguenther@suse.de>
19147
19148 PR middle-end/47639
19149 * tree-vect-generic.c (expand_vector_operations_1): Update
19150 stmts here ...
19151 (expand_vector_operations): ... not here. Cleanup EH info
19152 and the CFG if required.
19153
62902f3f
RG
191542011-02-08 Richard Guenther <rguenther@suse.de>
19155
19156 PR tree-optimization/47641
19157 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19158 require type compatibility.
19159
0efb9d64
AK
191602011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19161
19162 * gimple-low.c (lower_function_body): Don't remove the location of
19163 the return statement here.
19164 (lower_gimple_return): Do it here instead but only if the return
19165 statement is actually used twice.
19166
034b8ae4
RG
191672011-02-08 Richard Guenther <rguenther@suse.de>
19168
19169 PR tree-optimization/47632
19170 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19171 unused up_to_stmt parameter, return whether cfg-cleanup is
19172 necessary, remove EH info properly.
19173 (forward_propagate_into_gimple_cond): Adjust caller.
19174 (forward_propagate_into_cond): Likewise.
19175 (forward_propagate_comparison): Likewise.
19176 (tree_ssa_forward_propagate_single_use_vars): Make
19177 forward_propagate_comparison case similar to the two others.
19178
298362c8
NC
191792011-02-08 Nick Clifton <nickc@redhat.com>
19180
19181 * config/mn10300/mn10300.opt (mliw): New command line option.
19182 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19183 (liw_bundling): New automaton.
19184 (liw): New attribute.
19185 (liw_op): New attribute.
19186 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19187 (movsi_internal): Add LIW attributes.
19188 (andsi3): Likewise.
19189 (iorsi3): Likewise.
19190 (xorsi3): Likewise.
19191 (addsi3): Separate register and immediate alternatives.
19192 Add LIW attributes.
19193 (subsi3): Likewise.
19194 (cmpsi): Likewise.
19195 (aslsi3): Likewise.
19196 (lshrsi3): Likewise.
19197 (ashrsi3): Likewise.
19198 (liw): New pattern.
19199 * config/mn10300/mn10300.c (liw_op_names): New
19200 (mn10300_print_operand): Handle 'W' operand descriptor.
19201 (extract_bundle): New function.
19202 (check_liw_constraints): New function.
19203 (liw_candidate): New function.
19204 (mn10300_bundle_liw): New function.
19205 (mn10300_reorg): New function.
19206 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19207 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19208 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19209 __LIW__ or __NO_LIW__.
19210 * doc/invoke.texi: Describe the -mliw command line option.
19211
90488014
JDA
192122011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19213
19214 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19215 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19216 pthread_mutex_unlock): Remove.
19217 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19218 * config/pa/t-pa64: Likewise.
19219 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19220 shared libc if not linking against libpthread.
19221 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19222
689ff841
IS
192232011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19224
19225 PR target/47558
19226 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19227 on 10.6 and later to ensure that we always use the unwinder from
19228 the system. Only add -no_compact_unwind when tarteting darwin
19229 10.6 or later.
19230
821014aa
SE
192312011-02-07 Steve Ellcey <sje@cup.hp.com>
19232
19233 PR target/46997
19234 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19235 (vec_interleave_lowv2sf): Ditto.
19236 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19237 (vec_extract_oddv2sf): Ditto.
19238
41cf94fb
MS
192392011-02-07 Mike Stump <mikestump@comcast.net>
19240
62dea57d 19241 PR target/42333
41cf94fb
MS
19242 Add __ieee_divdc3 entry point.
19243 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19244 entry point.
19245 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19246 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19247 * config/darwin.c (darwin_rename_builtins): Add.
19248 * config/darwin-protos.h (darwin_rename_builtins): Add.
19249
ee09a3dd
MM
192502011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19251
19252 PR target/47636
19253 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19254 for the condition.
19255
83296cd0
MS
192562011-02-07 Mike Stump <mikestump@comcast.net>
19257
ea4c3e65 19258 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 19259
0f4e946f
DC
192602011-02-07 Denis Chertykov <chertykov@gmail.com>
19261
19262 PR target/47534
19263 * config/avr/libgcc.S (exit): Move .endfunc
19264
1ec87690
RG
192652011-02-07 Richard Guenther <rguenther@suse.de>
19266
19267 PR tree-optimization/47615
19268 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19269 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19270 (run_scc_vn): Initialize it.
19271 (visit_reference_op_load): Use it.
19272 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19273
b46ae6da
UW
192742011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19275
19276 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19277 DImode trapping arithmetic libfuncs.
19278
c0aae19c
RG
192792011-02-07 Richard Guenther <rguenther@suse.de>
19280
19281 PR tree-optimization/47621
19282 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19283 two duplicates ...
19284 (execute_update_addresses_taken): ... here. Make it more
19285 conservative in what we accept.
19286
295d926b
JM
192872011-02-06 Joseph Myers <joseph@codesourcery.com>
19288
19289 * config/sparc/freebsd.h (ASM_SPEC): Define.
19290 * config/sparc/vxworks.h (ASM_SPEC): Define.
19291
bdeb2471
JM
192922011-02-06 Joseph Myers <joseph@codesourcery.com>
19293
19294 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19295
d5d3781a
SB
192962011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19297
19298 * doc/invoke.texi: Remove reference to compiler internals from
19299 user documentation.
19300
19301 * reg-notes.def: Remove REG_VALUE_PROFILE.
19302 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19303
c42c09fc
JJ
193042011-02-05 Jakub Jelinek <jakub@redhat.com>
19305
19306 PR middle-end/47610
19307 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 19308 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 19309
beea2755
JZ
193102011-02-05 Jie Zhang <jie@codesourcery.com>
19311
19312 PR debug/42631
19313 * web.c (entry_register): Don't clobber the number of the
19314 first uninitialized reference in used[].
19315
a130584a
SP
193162011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19317
19318 PR tree-optimization/46194
19319 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19320 (build_classic_dist_vector_1): Do not represent classic distance
19321 vectors when the access functions are variating in different loops.
19322
962101ac
JM
193232011-02-04 Joseph Myers <joseph@codesourcery.com>
19324
19325 * config/mips/iris6.opt: New.
19326 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19327
55eaaa5b
RH
193282011-02-04 Richard Henderson <rth@redhat.com>
19329 Steve Ellcey <sje@cup.hp.com>
19330
19331 PR target/46997
19332 * config/ia64/predicates.md (mux1_brcst_element): New.
19333 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19334 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19335 (ia64_unpack_sign): New.
19336 (ia64_expand_unpack): Rewrite using new routines.
19337 (ia64_expand_widen_sum): Ditto.
19338 (ia64_expand_dot_prod_v8qi): Ditto.
19339 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19340 routines, add endian check.
19341 (pmpy2_even): Rename from pmpy2_r, add endian check.
19342 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19343 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19344 (vec_widen_smult_hi_v4hi): Ditto.
19345 (vec_widen_umult_lo_v4hi): Ditto.
19346 (vec_widen_umult_hi_v4hi): Ditto.
19347 (mulv2si3): Change endian checks.
19348 (sdot_prodv4hi): Rewrite with new calls.
19349 (udot_prodv4hi): New.
19350 (vec_pack_ssat_v4hi): Add endian check.
19351 (vec_pack_usat_v4hi): Ditto.
19352 (vec_pack_ssat_v2si): Ditto.
19353 (max1_even): Rename from max1_r, add endian check.
19354 (max1_odd): Rename from max1_l, add endian check.
19355 (*mux1_rev): Format change.
19356 (*mux1_mix): Ditto.
19357 (*mux1_shuf): Ditto.
19358 (*mux1_alt): Ditto.
19359 (*mux1_brcst_v8qi): Use new predicate.
19360 (vec_extract_evenv8qi): Remove endian check.
19361 (vec_extract_oddv8qi): Ditto.
19362 (vec_interleave_lowv4hi): Format change.
19363 (vec_interleave_highv4hi): Ditto.
19364 (mix2_even): Rename from mix2_r, add endian check.
19365 (mix2_odd): Rename from mux2_l, add endian check.
19366 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19367 (vec_extract_evenodd_helper): Format change.
19368 (vec_extract_evenv4hi): Remove endian check.
19369 (vec_extract_oddv4hi): Remove endian check.
19370 (vec_interleave_lowv2si): Format change.
19371 (vec_interleave_highv2si): Format change.
19372 (vec_initv2si): Remove endian check.
19373 (vecinit_v2si): Add endian check.
19374 (reduc_splus_v2sf): Add endian check.
19375 (reduc_smax_v2sf): Ditto.
19376 (reduc_smin_v2sf): Ditto.
19377 (vec_initv2sf): Remove endian check.
19378 (fpack): Add endian check.
19379 (fswap): Add endian check.
19380 (vec_interleave_highv2sf): Add endian check.
19381 (vec_interleave_lowv2sf): Add endian check.
19382 (fmix_lr): Add endian check.
19383 (vec_setv2sf): Format change.
19384 (*vec_extractv2sf_0_be): Use shift to extract operand.
19385 (*vec_extractv2sf_1_be): New.
19386 (vec_pack_trunc_v4hi): Add endian check.
19387 (vec_pack_trunc_v2si): Format change.
19388
dcde5957
JJ
193892011-02-04 Jakub Jelinek <jakub@redhat.com>
19390
19391 PR inline-asm/23200
19392 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 19393 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
19394 (stmt_is_replaceable_p): New function.
19395 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19396 callers.
19397 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19398 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19399 SSA_NAME_DEF_STMT.
19400 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19401
a64a8e5a
JM
194022011-02-04 Joseph Myers <joseph@codesourcery.com>
19403
19404 * config/rs6000/xilinx.opt: New.
19405 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19406
4da2ed2f
JM
194072011-02-04 Joseph Myers <joseph@codesourcery.com>
19408
19409 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19410
a6e508f9
AS
194112011-02-03 Anatoly Sokolov <aesok@post.ru>
19412
19413 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19414 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19415 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19416 secondary_reload_info, xtensa_secondary_reload): Remove.
19417 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19418 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19419 (xtensa_preferred_reload_class): Make static. Change return and
19420 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19421 Use CONST_DOUBLE_P predicate.
19422 (xtensa_preferred_output_reload_class): New function.
19423 (xtensa_secondary_reload): Make static.
19424
82dc0de3
JM
194252011-02-03 Joseph Myers <joseph@codesourcery.com>
19426
19427 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19428 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19429 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19430
7fece979
JJ
194312011-02-03 Jakub Jelinek <jakub@redhat.com>
19432
19433 PR middle-end/31490
19434 * output.h (SECTION_RELRO): Define.
19435 (SECTION_MACH_DEP): Adjust.
19436 (get_variable_section): New prototype.
19437 * varpool.c (varpool_finalize_named_section_flags): New function.
19438 (varpool_assemble_pending_decls): Call it.
19439 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19440 * cgraphunit.c (cgraph_output_in_order): Call
19441 varpool_finalize_named_section_flags.
19442 * varasm.c (get_section): Allow section flags conflicts between
19443 relro and read-only sections if the section hasn't been declared yet.
19444 Set SECTION_OVERRIDE after diagnosing section type conflict.
19445 (get_variable_section): No longer static.
19446 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19447 readonly sections that need relocations.
19448 (decl_readonly_section_1): New function.
19449 (decl_readonly_section): Use it.
19450
19451 Revert:
509d65dd 19452 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
19453 Steve Ellcey <sje@cup.hp.com>
19454
19455 PR middle-end/31490
19456 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19457 if section attribute used.
19458
d18d5478
JJ
194592011-02-03 Jakub Jelinek <jakub@redhat.com>
19460
19461 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19462 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19463 (darwin_init_sections): Remove assertion.
19464
6479ed4b
NC
194652011-02-03 Nick Clifton <nickc@redhat.com>
19466
19467 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19468 lt and ge.
38be4072 19469 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
19470 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19471 instead of "n" and "pz".
19472 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19473 CC_FLAG_S.
19474
89843f5d
JJ
194752011-02-03 Jakub Jelinek <jakub@redhat.com>
19476
65450d64
JJ
19477 PR target/47312
19478 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19479 fma, expand FMA_EXPR as fma{,f,l} call.
19480
7d58701c
JJ
19481 PR lto/47274
19482 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19483 copy them into a unsigned char variable and pass address of it to
19484 lto_output_data_stream.
19485
89843f5d
JJ
19486 PR target/47564
19487 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19488 around backend_init_target and lang_dependent_init_target calls.
19489 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19490 (verify_cgraph_node): Don't call set_cfun here. Use
19491 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19492 Set error_found for incorrectly represented calls to thunks.
19493
4deef538
AO
194942011-02-03 Alexandre Oliva <aoliva@redhat.com>
19495
19496 PR debug/43092
19497 PR rtl-optimization/43494
19498 * rtl.h (for_each_inc_dec_fn): New type.
19499 (for_each_inc_dec): Declare.
19500 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19501 (for_each_inc_dec_find_inc_dec): New fn.
19502 (for_each_inc_dec_find_mem): New fn.
19503 (for_each_inc_dec): New fn.
19504 * dse.c (struct insn_size): Remove.
19505 (replace_inc_dec, replace_inc_dec_mem): Remove.
19506 (emit_inc_dec_insn_before): New fn.
19507 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19508 (canon_address): Pass mem modes to cselib_lookup.
19509 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19510 (cselib_lookup_from_insn): Likewise.
19511 (cselib_subst_to_values): Likewise.
19512 * cselib.c (find_slot_memmode): New var.
19513 (cselib_find_slot): New fn. Use it instead of
19514 htab_find_slot_with_hash everywhere.
19515 (entry_and_rtx_equal_p): Use find_slot_memmode.
19516 (autoinc_split): New fn.
19517 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19518 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19519 Deal with autoinc. Special-case recursion into MEMs.
19520 (cselib_hash_rtx): Likewise.
19521 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19522 address and MEM modes.
19523 (cselib_subst_to_values): Add memmode, pass it on.
19524 Deal with autoinc.
19525 (cselib_lookup): Add memmode argument, pass it on.
19526 (cselib_lookup_from_insn): Add memmode.
19527 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19528 (struct cselib_record_autoinc_data): New.
19529 (cselib_record_autoinc_cb): New fn.
19530 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19531 mode to cselib_lookup. Reset autoinced REGs here instead of...
19532 (cselib_process_insn): ... here.
19533 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19534 to cselib_lookup.
19535 (add_uses): Likewise, also to cselib_subst_to_values.
19536 (add_stores): Likewise.
19537 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19538 cselib_subst_to_values.
19539 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19540 * gcse.c (do_local_cprop): Adjusted.
19541 * postreload.c (reload_cse_simplify_set): Adjusted.
19542 (reload_cse_simplify_operands): Adjusted.
19543 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19544
1551d44a
AO
195452011-02-03 Alexandre Oliva <aoliva@redhat.com>
19546
19547 PR tree-optimization/45122
19548 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19549 unsafe assumptions when there's more than one loop exit.
19550
c9485473
MM
195512011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19552
19553 PR target/47272
19554 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19555 Document using vector double with the load/store builtins, and
19556 that the load/store builtins always use Altivec instructions.
19557
19558 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19559 to use altivec memory instructions, even on VSX.
19560 (vector_altivec_store_<mode>): Ditto.
19561
19562 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19563 function.
19564
19565 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19566 V2DF, V2DI support to load/store overloaded builtins.
19567
19568 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19569 altivec load/store builtins for V2DF/V2DI types.
19570
19571 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19572 set avoid indexed addresses on power6 if -maltivec.
19573 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19574 vector_altivec_load/vector_altivec_store builtins.
19575 (altivec_expand_st_builtin): Ditto.
19576 (altivec_expand_builtin): Add VSX memory builtins.
19577 (rs6000_init_builtins): Add V2DI types to internal types.
19578 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19579 load/store builtins.
19580 (rs6000_address_for_altivec): Insure memory address is appropriate
19581 for Altivec.
19582
19583 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19584 vec_vsx_ld and vec_vsx_st.
19585 (vsx_store_<mode>): Ditto.
19586
19587 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19588 variables to hold long long types for VSX vector memory builtins.
19589 (RS6000_BTI_unsigned_long_long): Ditto.
19590 (long_long_integer_type_internal_node): Ditti.
19591 (long_long_unsigned_type_internal_node): Ditti.
19592
19593 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19594 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19595 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19596
19597 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19598 short cuts.
19599 (vec_vsx_st): Ditto.
19600
b24d1acf
JM
196012011-02-02 Joseph Myers <joseph@codesourcery.com>
19602
19603 * config/pa/pa-hpux10.opt: New.
19604 * config/hpux11.opt (pthread): New Driver option.
19605 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19606 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19607
aa18dd0f
JM
196082011-02-02 Joseph Myers <joseph@codesourcery.com>
19609
19610 * config/ia64/vms.opt: New.
19611 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19612
28fc3eee
MM
196132011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19614
19615 PR target/47580
19616 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19617 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19618 generator functions.
19619 (vsx_floatuns<VSi><mode>2): Ditto.
19620 (vsx_fix_trunc<mode><VSi>2): Ditto.
19621 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19622
b5838b1f
JM
196232011-02-02 Joseph Myers <joseph@codesourcery.com>
19624
19625 * config/i386/djgpp.opt (posix): New Driver option.
19626
0db8fa89
GP
196272011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19628
19629 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19630 Move to the unsupported targets list.
19631
9cd4f22a
PB
196322011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19633
19634 PR rtl-optimization/47525
19635 * df-scan.c: Update copyright years.
19636 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19637 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19638
9ed8059c
RO
196392011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19640
19641 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19642 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19643 (ASM_OUTPUT_ASCII): Remove.
19644 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19645
2a737389
JL
196462011-02-02 Jeff Law <law@redhat.com>
19647
19648 PR middle-end/47543
19649 * reload.c (find_reloads_address): Handle reg+d address where both
19650 components are invalid by reloading the entire address.
19651
9dac82c4
SP
196522011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19653 Richard Guenther <rguenther@suse.de>
19654
19655 PR tree-optimization/40979
19656 PR bootstrap/47044
19657 * passes.c (init_optimization_passes): After LIM call copy_prop
19658 and DCE to clean up.
19659 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19660
14dd9aab
SP
196612011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19662
19663 PR tree-optimization/47576
19664 PR tree-optimization/47555
19665 * doc/invoke.texi (scev-max-expr-complexity): Documented.
19666 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19667 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19668 * tree-scalar-evolution.c (follow_ssa_edge): Use
19669 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19670
5cbf5c20
RG
196712011-02-02 Richard Guenther <rguenther@suse.de>
19672
19673 PR tree-optimization/47566
19674 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19675
83d70792
AO
196762011-02-02 Alexandre Oliva <aoliva@redhat.com>
19677
e829c321
AO
19678 PR debug/47106
19679 PR debug/47402
19680 * tree-inline.c (declare_return_variable): Remove unused caller
19681 variable.
19682
83d70792
AO
19683 PR debug/47106
19684 PR debug/47402
19685 * tree-flow-inline.h (clear_is_used, is_used_p): New.
19686 * cfgexpand.c (account_used_vars_for_block): Use them.
19687 * tree-nrv.c (tree_nrv): Likewise.
19688 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19689 (dump_scope_block): Likewise.
19690 (remove_unused_locals): Likewise.
19691
aaa2ac93
AO
19692 PR debug/47106
19693 PR debug/47402
19694 * tree-inline.c (declare_return_variable): Add result decl to
19695 local decls only once.
19696 * gimple-low.c (record_vars_into): Mark newly-created variables
19697 as referenced.
19698
a59d15cf
AO
196992011-02-02 Alexandre Oliva <aoliva@redhat.com>
19700
19701 PR debug/47498
19702 PR debug/47501
19703 PR debug/45136
19704 PR debug/45130
19705 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19706 debug insns.
19707 (no_real_insns_p, schedule_block, set_priorities): Drop special
19708 treatment of boundary debug insns.
38be4072 19709 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
19710 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19711 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19712 (BOUNDARY_DEBUG_INSN_P): Likewise.
19713 (SCHEDULE_DEBUG_INSN_P): Likewise.
19714 * sched-rgn.c (init_ready_list): Drop special treatment of
19715 boundary debug insns.
19716 * final.c (rest_of_clean_state): Clear notes' BB.
19717
6fc2f091
JM
197182011-02-01 Joseph Myers <joseph@codesourcery.com>
19719
19720 * config/openbsd.opt (assert=): New Driver option.
19721
fc523387
JM
197222011-02-01 Joseph Myers <joseph@codesourcery.com>
19723
19724 * config/i386/nto.opt: New.
19725 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19726
6d9821e5
JM
197272011-02-01 Joseph Myers <joseph@codesourcery.com>
19728
19729 * config/i386/netware.opt: New.
19730 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19731
cef932d4
JM
197322011-02-01 Joseph Myers <joseph@codesourcery.com>
19733
19734 * config/interix.opt (posix): New Driver option.
19735
22843acd
DD
197362011-02-01 DJ Delorie <dj@redhat.com>
19737
56490b74
DD
19738 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19739
22843acd
DD
19740 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
19741 class for A0/A1.
19742
199c8f2f
SP
197432011-02-01 Sebastian Pop <sebastian.pop@amd.com>
19744
19745 PR tree-optimization/47561
19746 * toplev.c (process_options): Print the Graphite flags. Add
19747 flag_loop_flatten to the list of options requiring Graphite.
19748
926bcf22
JM
197492011-02-01 Joseph Myers <joseph@codesourcery.com>
19750
19751 * config/i386/cygming.opt (posix): New Driver option.
19752
59793c51
JM
197532011-02-01 Joseph Myers <joseph@codesourcery.com>
19754
19755 * config/arm/vxworks.opt: New.
19756 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
19757
183c38a4
JM
197582011-02-01 Joseph Myers <joseph@codesourcery.com>
19759
19760 * config/alpha/elf.opt: New.
19761 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
19762 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
19763
9939e416
RG
197642011-02-01 Richard Guenther <rguenther@suse.de>
19765
19766 PR tree-optimization/47559
19767 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
19768 store-motion on references that can throw.
19769
4a3c9687
BS
197702011-02-01 Bernd Schmidt <bernds@codesourcery.com>
19771
19772 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
19773 * tree-pass.h (TDF_CSELIB): New macro.
19774 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
19775 cselib_lookup): Check for it rather than for TDF_DETAILS.
19776
dd3b31fb
L
197772011-02-01 H.J. Lu <hongjiu.lu@intel.com>
19778
19779 PR driver/47547
19780 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
19781 is HOST_BIT_BUCKET.
19782
19783 * opts.c (finish_options): Don't add x_aux_base_name if it is
19784 HOST_BIT_BUCKET.
19785
34c1de79
RG
197862011-02-01 Richard Guenther <rguenther@suse.de>
19787
19788 PR tree-optimization/47555
19789 Revert
19790 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
19791
19792 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19793
dd2804d2
SB
197942011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
19795
19796 PR gcc/46692
19797 * config/lm32/t-lm32: Add multilib for all CPU options.
19798
3fd3b156
RG
197992011-02-01 Richard Guenther <rguenther@suse.de>
19800
19801 PR tree-optimization/47541
19802 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19803 sure to have a field at offset zero.
19804
f16072b6
JM
198052011-01-31 Joseph Myers <joseph@codesourcery.com>
19806
19807 * config/arc/arc.opt (EB, EL): New Driver options.
19808
6456cf2e
JM
198092011-01-31 Joseph Myers <joseph@codesourcery.com>
19810
19811 * config/alpha/osf5.opt: New.
19812 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
19813
cdde6ab4
JM
198142011-01-31 Joseph Myers <joseph@codesourcery.com>
19815
19816 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
19817
7633415c
SP
198182011-01-31 Sebastian Pop <sebastian.pop@amd.com>
19819
19820 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
19821 -floop-interchange.
19822 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
19823 is an alias of -floop-interchange and that it requires the
19824 Graphite infrastructure.
19825 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
19826 flag_loop_interchange based on the value of flag_tree_loop_linear.
19827
0425d6f5
JJ
198282011-01-31 Jakub Jelinek <jakub@redhat.com>
19829 Richard Guenther <rguenther@suse.de>
19830
19831 PR tree-optimization/47538
19832 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
19833 type instead of r1type, except for comparisons. For right
19834 shifts and comparisons punt if there are mismatches in
19835 sizetype vs. non-sizetype types.
19836
500b16c3
RO
198372011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19838
19839 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19840 avx_runtime.
19841
e279edb0
RO
198422011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19843
19844 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
19845 version number.
19846 * configure: Regenerate.
19847
c6092243
RO
198482011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19849
19850 * configure.ac (gcc_cv_ld_static_option): Define.
19851 (gcc_cv_ld_dynamic_option): Define.
19852 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
19853 instead.
19854 (HAVE_LD_STATIC_DYNAMIC): Update message.
19855 (LD_STATIC_OPTION): Define.
19856 (LD_DYNAMIC_OPTION): Define.
19857 * configure: Regenerate.
19858 * config.in: Regenerate.
19859 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
19860 HAVE_LD_STATIC_DYNAMIC]: Use them.
19861
d7862be3
NC
198622011-01-31 Nick Clifton <nickc@redhat.com>
19863
19864 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
19865 registers inside interrupt handlers if the handler is not a leaf
19866 function.
19867
ba4ec0e0
NC
198682011-01-31 Nick Clifton <nickc@redhat.com>
19869
19870 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
19871 reg_renumber returning an INVALID_REGNUM.
19872
29a63921
AO
198732011-01-31 Alexandre Oliva <aoliva@redhat.com>
19874
19875 PR libgcj/44341
19876 * doc/install.texi: Document host options discarded when cross
19877 configuring target libraries.
19878
ef591d3f
AO
198792011-01-31 Alexandre Oliva <aoliva@redhat.com>
19880
19881 Reverted:
19882 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
19883 PR debug/45136
19884 PR debug/45130
19885 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19886 debug insns.
19887 (no_real_insns_p, schedule_block, set_priorities): Drop special
19888 treatment of boundary debug insns.
38be4072 19889 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
19890 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19891 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19892 (BOUNDARY_DEBUG_INSN_P): Likewise.
19893 (SCHEDULE_DEBUG_INSN_P): Likewise.
19894 * sched-rgn.c (init_ready_list): Drop special treatment of
19895 boundary debug insns.
19896 * final.c (rest_of_clean-state): Clear notes' BB.
19897
61052244
AM
198982011-01-31 Alan Modra <amodra@gmail.com>
19899
19900 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
19901 toc relative expressions as we do in print_operand_address.
19902
c4c8962b
KH
199032011-01-30 Kazu Hirata <kazu@codesourcery.com>
19904
19905 * doc/extend.texi: Follow spelling conventions.
19906 * doc/invoke.texi: Fix a typo.
19907
e543b94c
JM
199082011-01-30 Joseph Myers <joseph@codesourcery.com>
19909
19910 * config/hpux11.opt: New.
19911 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
19912 ia64*-*-hpux*): Use hpux11.opt.
19913
509d65dd 199142011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
19915
19916 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
19917 to tmake_file.
19918
7be03a0e
GP
199192011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19920
19921 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
19922 support sites.
19923
419d1d37
GP
199242011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19925
b596ed64
GP
19926 * doc/install.texi (Binaries): Remove outdated reference for
19927 Motorola 68HC11/68HC12 downloads.
19928
199292011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 19930
419d1d37
GP
19931 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
19932 Drepper's paper.
19933
4406d0e9
JW
199342011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
19935
19936 PR bootstrap/47147
19937 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
19938 used by NetBSD.
19939
38be4072 199402011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
19941
19942 * value-prof.c (check_counter): Corrected error message.
19943
0cd98787
JZ
199442011-01-29 Jie Zhang <jie@codesourcery.com>
19945
19946 * config/arm/arm.c (arm_legitimize_reload_address): New.
19947 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19948 arm_legitimize_reload_address.
38be4072 19949 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 19950
9b798ac5
ILT
199512011-01-28 Ian Lance Taylor <iant@google.com>
19952
19953 * godump.c (go_define): Ignore macros whose definitions include
19954 two adjacent operands.
19955
591e29d9
JJ
199562011-01-28 Jakub Jelinek <jakub@redhat.com>
19957
19958 PR target/42894
19959 * varasm.c (force_const_mem): Store copy of x in desc->constant
19960 instead of x itself.
19961 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
19962 itself into REG_EQUAL note.
19963
62dcc44a
JM
199642011-01-28 Joseph Myers <joseph@codesourcery.com>
19965
19966 * config/freebsd.opt (posix, rdynamic): New Driver options.
19967
c9f58b9a
RO
199682011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19969
19970 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
19971 -Bstatic/-Bdynamic.
19972 * configure: Regenerate.
19973
5f02b9db
JM
199742011-01-27 Joseph Myers <joseph@codesourcery.com>
19975
19976 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
19977 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
19978
5df97412
AS
199792011-01-27 Anatoly Sokolov <aesok@post.ru>
19980
19981 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
19982 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
19983 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19984 (s390_preferred_reload_class): Make static. Change return and
19985 'rclass' argument type to reg_class_t.
19986
779d4b91
JH
199872011-01-27 Jan Hubicka <jh@suse.cz>
19988
19989 PR middle-end/46949
19990 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
19991 (process_function_and_variable_attributes): Check defined weakrefs.
19992
e80b21ed
MJ
199932011-01-27 Martin Jambor <mjambor@suse.cz>
19994
19995 PR tree-optimization/47228
19996 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
19997 build_ref_for_offset.
19998
6dcc4f31
UW
199992011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20000
20001 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20002
509d65dd 200032011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
20004
20005 PR rtl-optimization/46856
20006 * postreload.c (reload_combine_recognize_const_pattern): Do not
20007 separate cc0 setter and user on cc0 targets.
20008
04af8788
NP
200092011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20010
20011 PR c/43082
20012 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20013 passed a VOID_TYPE expression, immediately emit an error and
20014 return error_mark_node.
20015
f7a60085
JL
200162011-01-26 Jeff Law <law@redhat.com>
20017
20018 PR rtl-optimization/47464
20019 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20020 rather than may_trap_p as needed.
20021
5c2917ec
DD
200222011-01-26 DJ Delorie <dj@redhat.com>
20023
20024 PR rtl-optimization/46878
20025 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20026 setter/user dependency as well.
20027
bef16e87
EB
200282011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20029
20030 PR rtl-optimization/44469
20031 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20032 after removing trivially dead basic blocks.
20033
c75d884b
JM
200342011-01-26 Joseph Myers <joseph@codesourcery.com>
20035
20036 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20037 * config/frv/frv.h (LINK_SPEC): Likewise.
20038 * config/i386/netware.h (LINK_SPEC): Likewise.
20039 * config/m68k/linux.h (ASM_SPEC): Likewise.
20040 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20041 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20042 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20043 * config/sparc/linux.h (ASM_SPEC): Likewise.
20044 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20045 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20046
d3153553
JM
200472011-01-26 Joseph Myers <joseph@codesourcery.com>
20048
20049 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20050 * config/frv/frv.h (ASM_SPEC): Likewise.
20051 * config/m68k/linux.h (ASM_SPEC): Likewise.
20052 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20053 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20054 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20055 * config/sparc/linux.h (ASM_SPEC): Likewise.
20056 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20057 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20058
b89b1e9d
JM
200592011-01-26 Joseph Myers <joseph@codesourcery.com>
20060
20061 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20062 * config/frv/frv.h (LINK_SPEC): Likewise.
20063 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20064
12eb1a9c
JM
200652011-01-26 Joseph Myers <joseph@codesourcery.com>
20066
20067 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20068 * config/frv/frv.h (ASM_SPEC): Likewise.
20069 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20070 * config/m68k/linux.h (ASM_SPEC): Likewise.
20071 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20072 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20073 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20074 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20075 * config/sparc/linux.h (ASM_SPEC): Likewise.
20076 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20077 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20078 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20079
e435f098
SE
200802011-01-26 Steve Ellcey <sje@cup.hp.com>
20081
20082 PR target/46997
20083 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20084 (*mux2): Ditto.
20085 (vec_extract_evenodd_help): Ditto.
20086 (vec_extract_evenv4hi): Ditto.
20087 (vec_extract_oddv4hi): Ditto.
20088 (vec_interleave_lowv2si): Ditto.
20089 (vec_interleave_highv2si): Ditto.
20090 (vec_extract_evenv2si): Ditto.
20091 (vec_extract_oddv2si: Ditto.
20092 (vec_pack_trunc_v2si): Ditto.
20093
34f0eee0
JH
200942011-01-22 Jan Hubicka <jh@suse.cz>
20095
20096 PR target/47237
20097 * cgraph.h (cgraph_local_info): New field can_change_signature.
20098 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20099 signature can change.
20100 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20101 can change.
20102 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20103 (cgraph_function_versioning): We can not change signature of functions
20104 that don't allow that.
20105 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20106 (lto_input_node): Likewise.
38be4072
UB
20107 * ipa-inline.c (compute_inline_parameters): Compute
20108 local.can_change_signature.
34f0eee0 20109 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
20110 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20111 functions that can not change signature.
34f0eee0 20112 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
20113 init_cumulative_args): Do not use local calling conventions
20114 for functions that can not change signature.
34f0eee0 20115
980ca891
JH
201162011-01-22 Jan Hubicka <jh@suse.cz>
20117
20118 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20119
768e3c60
RG
201202011-01-26 Richard Guenther <rguenther@suse.de>
20121
20122 PR tree-optimization/47190
61052244
AM
20123 * cgraphunit.c (process_common_attributes): New function.
20124 (process_function_and_variable_attributes): Use it.
768e3c60 20125
21d6a1c7
RG
201262011-01-26 Richard Guenther <rguenther@suse.de>
20127
20128 PR lto/47423
20129 * cgraphbuild.c (record_eh_tables): Record reference to personality
20130 function.
20131
48bb58b1
AO
201322011-01-26 Alexandre Oliva <aoliva@redhat.com>
20133
20134 PR debug/45454
20135 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20136 non-debug insns from moving up.
20137
58c741a6
DK
201382011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20139
20140 PR target/40125
20141 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20142 t-dlldir{,-x} fragment for build and add it to tmake_file.
20143 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20144 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20145 * config/i386/t-dlldir: New file.
20146 (SHLIB_DLLDIR): Define.
20147 * config/i386/t-dlldir-x: New file.
20148 (SHLIB_DLLDIR): Define.
20149 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20150 (SHLIB_INSTALL): Use it.
20151
bff99262
CLT
201522011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20153
20154 PR target/47246
20155 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20156 lower bound of the allowed Thumb-2 coprocessor load/store
20157 index range to -256. Add explaining comment.
20158
82c03907
ILT
201592011-01-25 Ian Lance Taylor <iant@google.com>
20160
20161 * godump.c (go_define): Improve lexing of macro expansion to only
20162 accept expressions which match Go spec.
20163
47ea1edf
DK
201642011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20165
d4dba752 20166 PR c++/43601
47ea1edf
DK
20167 * tree.c (handle_dll_attribute): Handle it.
20168 * doc/extend.texi (@item dllexport): Mention it.
20169 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20170
744f0946
ILT
201712011-01-25 Ian Lance Taylor <iant@google.com>
20172
20173 PR tree-optimization/26854
20174 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20175 (decl_jump_unsafe): Move higher in file, with no other change.
20176 (bind): Set has_jump_unsafe_decl if appropriate.
20177 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20178 (check_earlier_gotos): Likewise.
20179 (c_check_switch_jump_warnings): Likewise.
20180
5734f2b3
JW
201812011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20182
20183 * doc/invoke.texi (Warning Options): Add missing hyphen.
20184 (-fprofile-dir): Minor grammatical fixes.
20185 (-fbranch-probabilities): Likewise.
20186
9bdbdcef
AO
201872011-01-25 Alexandre Oliva <aoliva@redhat.com>
20188
20189 PR debug/45136
20190 PR debug/45130
20191 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20192 debug insns.
20193 (no_real_insns_p, schedule_block, set_priorities): Drop special
20194 treatment of boundary debug insns.
38be4072 20195 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
20196 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20197 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20198 (BOUNDARY_DEBUG_INSN_P): Likewise.
20199 (SCHEDULE_DEBUG_INSN_P): Likewise.
20200 * sched-rgn.c (init_ready_list): Drop special treatment of
20201 boundary debug insns.
20202 * final.c (rest_of_clean-state): Clear notes' BB.
20203
b305e3da
SP
202042011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20205
20206 * Makefile.in (LAMBDA_H): Removed.
20207 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20208 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20209 lambda-trans.o, and tree-loop-linear.o.
20210 (lto-symtab.o): Remove dependence on LAMBDA_H.
20211 (tree-loop-linear.o): Remove rule.
20212 (lambda-mat.o): Same.
20213 (lambda-trans.o): Same.
20214 (lambda-code.o): Same.
20215 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20216 (tree-vect-slp.o): Same.
20217 * hwint.h (gcd): Moved here.
20218 (least_common_multiple): Same.
20219 * lambda-code.c: Removed.
20220 * lambda-mat.c: Removed.
20221 * lambda-trans.c: Removed.
20222 * lambda.h: Removed.
20223 * tree-loop-linear.c: Removed.
20224 * lto-symtab.c: Do not include lambda.h.
20225 * omega.c (gcd): Removed.
20226 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20227 * tree-data-ref.c (print_lambda_vector): Moved here.
20228 (lambda_vector_copy): Same.
20229 (lambda_matrix_copy): Same.
20230 (lambda_matrix_id): Same.
20231 (lambda_vector_first_nz): Same.
20232 (lambda_matrix_row_add): Same.
20233 (lambda_matrix_row_exchange): Same.
20234 (lambda_vector_mult_const): Same.
20235 (lambda_vector_negate): Same.
20236 (lambda_matrix_row_negate): Same.
20237 (lambda_vector_equal): Same.
20238 (lambda_matrix_right_hermite): Same.
20239 * tree-data-ref.h: Do not include lambda.h.
20240 (lambda_vector): Moved here.
20241 (lambda_matrix): Same.
20242 (dependence_level): Same.
20243 (lambda_transform_legal_p): Removed declaration.
20244 (lambda_collect_parameters): Same.
20245 (lambda_compute_access_matrices): Same.
20246 (lambda_vector_gcd): Same.
20247 (lambda_vector_new): Same.
20248 (lambda_vector_clear): Same.
20249 (lambda_vector_lexico_pos): Same.
20250 (lambda_vector_zerop): Same.
20251 (lambda_matrix_new): Same.
20252 * tree-flow.h (least_common_multiple): Removed declaration.
20253 * tree-parloops.c (lambda_trans_matrix): Moved here.
20254 (LTM_MATRIX): Same.
20255 (LTM_ROWSIZE): Same.
20256 (LTM_COLSIZE): Same.
20257 (LTM_DENOMINATOR): Same.
20258 (lambda_trans_matrix_new): Same.
20259 (lambda_matrix_vector_mult): Same.
20260 (lambda_transform_legal_p): Same.
20261 * tree-pass.h (pass_linear_transform): Removed declaration.
20262 * tree-ssa-loop.c (tree_linear_transform): Removed.
20263 (gate_tree_linear_transform): Removed.
20264 (pass_linear_transform): Removed.
20265 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20266 flag_loop_interchange.
20267
6bdfdb96
JJ
202682011-01-25 Jakub Jelinek <jakub@redhat.com>
20269
20270 PR tree-optimization/47265
20271 PR tree-optimization/47443
20272 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20273 if name still has some uses.
20274
e4cba915
MJ
202752011-01-25 Martin Jambor <mjambor@suse.cz>
20276
20277 PR tree-optimization/47382
20278 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20279 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20280
509d65dd 202812011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
20282
20283 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20284 sjlj_except_unwind_info.
20285
194313e2
RG
202862011-01-25 Richard Guenther <rguenther@suse.de>
20287
20288 PR tree-optimization/47426
20289 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20290 visible functions results escape.
20291
147a0bcf
JJ
202922011-01-25 Jakub Jelinek <jakub@redhat.com>
20293
20294 PR target/45701
20295 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20296 (arm_get_frame_offsets): Use it.
20297
db963b52
SP
202982011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20299 Jakub Jelinek <jakub@redhat.com>
20300
20301 PR tree-optimization/47271
20302 * tree-if-conv.c (bb_postdominates_preds): New.
20303 (if_convertible_bb_p): Call bb_postdominates_preds.
20304 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20305 (predicate_scalar_phi): Call bb_postdominates_preds.
20306
bcddd3b9
NC
203072011-01-25 Nick Clifton <nickc@redhat.com>
20308
20309 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20310 * config/rx/rx.c (rx_function_value): Likewise.
20311 (rx_promote_function_mode): Likewise.
20312 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20313 in order to make it legitimate.
38be4072
UB
20314 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20315 make sure that the first operand is the same as the result register.
bcddd3b9
NC
20316 (addsi3_unspec): Delete.
20317 (subdi3): Do not accept immediate operands.
20318 (subdi3_internal): Likewise.
20319
7e6cb022
JL
203202011-01-25 Jeff Law <law@redhat.com>
20321
20322 PR rtl-optimization/37273
20323 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20324 handle them like argument loads from stack slots. Do not double
20325 count memory for memory constants and argument loads from stack slots.
20326
9ffa621e
JJ
203272011-01-25 Jakub Jelinek <jakub@redhat.com>
20328
20329 PR tree-optimization/47427
20330 PR tree-optimization/47428
20331 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20332 coalesce if the new root var would be TREE_READONLY.
20333
5bd6e652
RG
203342011-01-25 Richard Guenther <rguenther@suse.de>
20335
20336 PR middle-end/47414
20337 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20338 correct type for TBAA.
20339
7c48ea69
SP
203402011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20341
20342 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20343 (close_phi_written_to_memory): Call for_each_index with
20344 dr_indices_valid_in_loop.
20345
38013f25
SP
203462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20347
20348 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20349 when it is initialized.
20350
5c640e29
SP
203512011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20352
20353 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20354 call to graphite_find_data_references_in_stmt.
20355 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20356 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20357 call to graphite_find_data_references_in_stmt.
20358 (analyze_drs_in_stmts): Same.
20359 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20360 in which the scalar analysis of indices is performed.
20361 (create_data_ref): Same. Update call to dr_analyze_indices.
20362 (find_data_references_in_stmt): Update call to create_data_ref.
20363 (graphite_find_data_references_in_stmt): Same.
20364 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20365 declaration.
20366 (create_data_ref): Same.
20367 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20368 call to create_data_ref.
20369
ac53c069
SP
203702011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20371
20372 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 20373 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 20374
3d17df15
SP
203752011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20376
20377 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20378 VAR_DECL, PARM_DECL, and RESULT_DECL.
20379
c513da01
SP
203802011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20381
20382 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20383 in a reduction PBB.
20384 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20385 that have already been marked as PBB_IS_REDUCTION.
20386
3a292d59
SP
203872011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20388
20389 * graphite-scop-detection.c (same_close_phi_node): New.
20390 (remove_duplicate_close_phi): New.
20391 (make_close_phi_nodes_unique): New.
20392 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20393
ba858447
SP
203942011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20395
20396 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20397 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20398 of both data references to be the same.
20399
8d865c56
SP
204002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20401
38be4072
UB
20402 * graphite-dependences.c (build_lexicographical_constraint): Remove
20403 the gdim parameter.
20404 (build_lexicographical_constraint): Adjust call to
20405 ppl_powerset_is_empty.
8d865c56
SP
20406 (dependence_polyhedron): Same.
20407 (graphite_legal_transform_dr): Same.
20408 (graphite_carried_dependence_level_k): Same.
38be4072
UB
20409 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20410 parameter.
8d865c56
SP
20411 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20412
50034a36
SP
204132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20414
20415 * graphite-sese-to-poly.c
20416 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20417 (close_phi_written_to_memory): New.
20418 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20419 and unshare_expr.
20420
0deada9e
SP
204212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20422
20423 * doc/install.texi: Update the expected version number of PPL to 0.11.
20424 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20425 #if PPL_VERSION_MINOR < 11.
20426
d7d3d6af
SP
204272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20428
20429 * graphite-dependences.c: Include graphite-cloog-util.h.
20430 (new_poly_ddr): Inlined into dependence_polyhedron.
20431 (free_poly_ddr): Moved close by new_poly_ddr.
20432 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20433 Early return NULL when ppl_powerset_is_empty returns true.
20434 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20435 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20436 (graphite_legal_transform_dr): Call new_poly_ddr.
20437 (graphite_carried_dependence_level_k): Same.
20438 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20439 (dot_transformed_deps_stmt_1): Removed.
20440 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20441 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20442 (dot_deps_1): Call dot_deps_2.
20443 * Makefile.in (graphite-dependences.o): Add missing dependence on
20444 graphite-cloog-util.h.
20445
28c5db57
SP
204462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20447
20448 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20449 (build_lexicographical_constraint): Same.
20450 (dependence_polyhedron_1): Same.
20451 (graphite_legal_transform_dr): Same.
20452 (graphite_carried_dependence_level_k): Same.
20453 * graphite-ppl.c (ppl_powerset_is_empty): New.
20454 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20455 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20456
5168d98f
SP
204572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20458
20459 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20460 the "a followed by b" relation and document it.
20461
4a40293a
SP
204622011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20463
20464 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20465 iteration when the bag of constraints is empty.
20466
271fb6fa
SP
204672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20468
20469 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20470
92d23680
SP
204712011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20472
20473 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20474 nest and two loop depths as parameters.
20475 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20476 lst_perfect_nestify.
20477
2f51deff
SP
204782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20479
20480 * graphite-dependences.c (print_pddr): Call
20481 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20482
07f3593c
SP
204832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20484
20485 * graphite-ppl.c (debug_gmp_value): New.
20486 * graphite-ppl.h (debug_gmp_value): Declared.
20487
3fae6099
TG
204882011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20489
20490 * doc/install.texi: Document availability of cloog-0.16.
20491
1c3ba85b
SP
204922011-01-25 Vladimir Kargov <kargov@gmail.com>
20493
20494 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20495 invalid postdominance info.
20496
e8ba94fc
JH
204972011-01-24 Jan Hubicka <jh@suse.cz>
20498
20499 PR c/21659
20500 * doc/extend.texi (weak pragma): Drop claim that it must
20501 appear before definition.
20502 * varasm.c (merge_weak, declare_weak): Only sanity check
20503 that DECL is not output at a time it is declared weak.
20504
2b6e2d13
KZ
205052011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20506
20507 * machmode.def: Fixed comments.
1c3ba85b 20508
9841210f
KT
205092011-01-24 Kai Tietz <kai.tietz@onevision.com>
20510
20511 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20512
205132011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
20514
20515 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 20516 WORDS_BIG_ENDIAN.
e046112d 20517
a6c5070a
L
205182011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20519
20520 PR target/46519
20521 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20522 (block_info): Add scanned and prev.
20523 (move_or_delete_vzeroupper_2): Return if the basic block
20524 has been scanned and the upper 128bit state is unchanged
20525 from the last scan.
20526 (move_or_delete_vzeroupper_1): Return true if the exit
20527 state is changed.
20528 (move_or_delete_vzeroupper): Visit basic blocks using the
20529 work-list based algorithm based on vt_find_locations in
20530 var-tracking.c.
20531
20532 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20533
a40d79d7
NC
205342011-01-24 Nick Clifton <nickc@redhat.com>
20535
20536 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20537 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20538 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20539 then define __v850e1__.
20540 * doc/invoke.texi: Document -mv850es.
20541
440eb8de
RH
205422011-01-24 Richard Henderson <rth@redhat.com>
20543
20544 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20545 compound unordered comparisons.
20546 * config/rx/rx.c (rx_split_fp_compare): Remove.
20547 * config/rx/rx-protos.h: Update.
20548 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20549 (cbranchsf4): Don't call rx_split_fp_compare.
20550 (*cbranchsf4): Use rx_split_cbranch.
20551 (*cmpsf): Don't accept "i" constraint.
20552 (*conditional_branch): Only valid after reload.
20553 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20554
3ff79f99
MM
205552011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20556
20557 PR target/47385
20558 * config/rs6000/altivec.md (vector constant splitters): Add
20559 support for creating vector single precision constants if -mvsx is
20560 used and we would create the constant using Altivec primitives.
20561
ff3d9d08
BS
205622011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20563 Richard Sandiford <rdsandiford@googlemail.com>
20564
20565 PR rtl-optimization/47166
20566 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20567 mechanism for PRE_MODIFY and POST_MODIFY.
20568 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20569 reloadreg.
20570
7fcaf152
AS
205712011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20572
8788adb6 20573 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 20574
d09b58c4
JH
205752011-01-22 Jan Hubicka <jh@suse.cz>
20576
20577 PR lto/47333
20578 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20579
e8ff8c5a
JH
205802011-01-22 Jan Hubicka <jh@suse.cz>
20581
20582 PR tree-optimization/43884
20583 PR lto/44334
8788adb6 20584 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
20585 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20586
ccaed3ba
AS
205872011-01-22 Anatoly Sokolov <aesok@post.ru>
20588
20589 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20590 * config/s390/s390.c (s390_register_move_cost,
20591 s390_memory_move_cost): New.
20592 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20593
0cecee06
UW
205942011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20595
20596 PR middle-end/47401
20597 * except.c (sjlj_assign_call_site_values): Move setting the
20598 crtl->uses_eh_lsda flag to ...
20599 (sjlj_mark_call_sites): ... here.
20600 (sjlj_emit_function_enter): Support NULL dispatch label.
20601 (sjlj_build_landing_pads): In a function with no landing pads
20602 that still has must-not-throw regions, generate code to register
20603 a personality function with empty LSDA.
20604
e692f276
RH
206052011-01-21 Richard Henderson <rth@redhat.com>
20606
1b7ae0b7
RH
20607 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20608
3843787f
RH
20609 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20610
e692f276
RH
20611 * compare-elim.c: New file.
20612 * Makefile.in (OBJS-common): Add it.
20613 (compare-elim.o): New.
20614 * common.opt (fcompare-elim): New.
20615 * opts.c (default_options_table): Add OPT_fcompare_elim.
20616 * tree-pass.h (pass_compare_elim_after_reload): New.
20617 * passes.c (init_optimization_passes): Add it.
20618 * recog.h: Protect against re-inclusion.
20619 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20620 * doc/invoke.texi (-fcompare-elim): Document it.
20621 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20622 * doc/tm.texi: Rebuild.
20623
9a7c2050
NC
206242011-01-22 Nick Clifton <nickc@redhat.com>
20625
20626 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20627 rx_split_fp_compare.
20628
15ba5696
NC
206292011-01-22 Nick Clifton <nickc@redhat.com>
20630
20631 * config/rx/rx.md (UNSPEC_CONST): New.
20632 (deallocate_and_return): Wrap the amount popped off the stack in
20633 an UNSPEC_CONST in order to stop it being rejected by
20634 -mmax-constant-size.
20635 (pop_and_return): Add a "(return)" rtx.
20636 (call): Drop the immediate operand.
20637 (call_internal): Likewise.
20638 (call_value): Likewise.
20639 (call_value_internal): Likewise.
20640 (sibcall_internal): Likewise.
20641 (sibcall_value_internal): Likewise.
20642 (sibcall): Likewise. Generate an explicit call using
20643 sibcall_internal.
20644 (sibcall_value): Likewise.
20645 (mov<>): FAIL if a constant operand is not legitimate.
20646 (addsi3_unpsec): New pattern.
9a7c2050 20647
38be4072 20648 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
20649 (ok_for_max_constant): New function.
20650 (gen_safe_add): New function.
20651 (rx_expand_prologue): Use gen_safe_add.
20652 (rx_expand_epilogue): Likewise.
20653 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20654 UNSPEC CONSTs.
20655
caaf13d3
JL
206562011-01-21 Jeff Law <law@redhat.com>
20657
20658 PR tree-optimization/47053
20659 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20660 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20661 statements are deleted.
20662 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
20663 is nonempty, then purge dead edges and cleanup the CFG.
20664
12c30f2f
AO
206652011-01-21 Alexandre Oliva <aoliva@redhat.com>
20666
20667 PR debug/47402
20668 Temporarily revert:
20669 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20670 PR debug/47106
20671 * tree-dfa.c (create_var_ann): Mark variable as used.
20672
7360d2ac
JJ
206732011-01-21 Jakub Jelinek <jakub@redhat.com>
20674
aaa52a96
JJ
20675 PR middle-end/45566
20676 * except.c (convert_to_eh_region_ranges): Emit queued no-region
20677 notes from other section in hot/cold partitioning even if
20678 last_action is -3. Increment call_site_base.
20679
7360d2ac
JJ
20680 PR rtl-optimization/47366
20681 * fwprop.c (forward_propagate_into): Return bool. If
20682 any changes are made, -fnon-call-exceptions is used and
20683 REG_EH_REGION note is present, call purge_dead_edges
20684 and return true if it purged anything.
20685 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20686 any EH edges were purged.
20687
e90b336f
JL
206882011-01-21 Jeff Law <law@redhat.com>
20689
20690 PR rtl-optimization/41619
20691 * caller-save.c (setup_save_areas): Break out code to determine
20692 which hard regs are live across calls by examining the reload chains
20693 so that it is always used.
20694 Eliminate code which checked REG_N_CALLS_CROSSED.
20695
3ffe07e1
JJ
206962011-01-21 Jakub Jelinek <jakub@redhat.com>
20697
20698 PR tree-optimization/47355
20699 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20700 NOP has non-debug uses beyond PHIs in new_bb.
20701
1c7d0b34
AO
207022011-01-21 Alexandre Oliva <aoliva@redhat.com>
20703
20704 PR debug/47106
20705 * cfgexpand.c (account_used_vars_for_block): Only account vars
20706 that are annotated as used.
20707 (estimated_stack_frame_size): Don't set TREE_USED.
20708 * tree-dfa.c (create_var_ann): Mark variable as used.
20709
f99cc488
RG
207102011-01-21 Richard Guenther <rguenther@suse.de>
20711
20712 PR middle-end/47395
20713 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20714
3bc27de7
RG
207152011-01-21 Richard Guenther <rguenther@suse.de>
20716
20717 PR tree-optimization/47365
20718 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20719 (vn_reference_lookup_pieces): Adjust.
20720 (vn_reference_lookup): Likewise.
20721 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20722 (vn_reference_lookup_3): Only look through kills if in
20723 VN_WALKREWRITE mode.
20724 (vn_reference_lookup_pieces): Adjust.
20725 (vn_reference_lookup): Likewise.
20726 (visit_reference_op_load): Likewise.
20727 (visit_reference_op_store): Likewise.
20728 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20729 (compute_avail): Likewise.
20730 (eliminate): Likewise.
20731
d8debb1d
JJ
207322011-01-21 Jakub Jelinek <jakub@redhat.com>
20733
20734 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20735 DECL_IGNORED_P non-reg vars if they are used.
20736
3a2df831
JJ
20737 PR tree-optimization/47391
20738 * varpool.c (const_value_known_p): Return false if
20739 decl is volatile.
20740
1dd584a2
KT
207412011-01-21 Kai Tietz <kai.tietz@onevision.com>
20742
20743 PR bootstrap/47215
20744 * config/i386/i386.c (ix86_local_alignment): Handle
20745 case for va_list_type_node is nil.
20746 (ix86_canonical_va_list_type): Likewise.
20747
7f9f095e
AM
207482011-01-21 Alan Modra <amodra@gmail.com>
20749
20750 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
20751 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
20752
837b01f6
RR
207532011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20754
20755 * config/arm/arm.md (define_attr type): Rename f_load
20756 and f_store to f_fpa_load and f_fpa_store. Update.
20757 (write_conflict): Deal with rename fallout.
20758 (*push_fp_multi): Likewise.
20759 * config/arm/fpa.md (f_load): Use f_fpa_load.
20760 (f_store): Use f_fpa_store.
20761 (*movsf_fpa): Likewise.
20762 (*movdf_fpa): Likewise.
20763 (*movxf_fpa): Likewise.
20764 (*thumb2_movsf_fpa): Likewise.
20765 (*thumb2_movdf_fpa): Likewise.
20766 (*thumb2_movxf_fpa): Likewise.
20767 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
20768 f_loadd and f_stored.
20769 (*thumb2_movdi_vfp): Likewise.
20770 (*thumb2_movsf_vfp): Fix attribute to f_loads.
20771 (*thumb2_movsi_vfp): Likewise.
20772 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
20773 Use f_loads instead of f_load.
20774 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
20775
a1a79768
AS
207762011-01-20 Anatoly Sokolov <aesok@post.ru>
20777
20778 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20779 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
20780 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20781 (xtensa_mode_dependent_address_p): New function.
20782 (constantpool_address_p): Make static. Change return type to bool.
20783 Change argument type to const_rtx. Use CONST_INT_P predicate.
20784
427f6cec
AO
207852011-01-20 Alexandre Oliva <aoliva@redhat.com>
20786
20787 PR debug/46583
20788 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
20789
583ac69c
JJ
207902011-01-20 Jakub Jelinek <jakub@redhat.com>
20791
20792 PR debug/47283
20793 * cfgexpand.c (expand_debug_expr): Instead of generating
20794 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
20795 etc. handling.
20796
93e452ed
RG
207972011-01-20 Richard Guenther <rguenther@suse.de>
20798
20799 PR middle-end/47370
20800 * tree-inline.c (remap_gimple_op_r): Recurse manually for
20801 the pointer operand of MEM_REFs.
20802
28fc44f3
JJ
208032011-01-20 Jakub Jelinek <jakub@redhat.com>
20804
20805 PR tree-optimization/46130
20806 * ipa-split.c (consider_split): If return_bb contains non-virtual
20807 PHIs other than for retval or if split_function would not adjust it,
20808 refuse to split.
20809
ddd268f2
RG
208102011-01-20 Richard Guenther <rguenther@suse.de>
20811
20812 PR tree-optimization/47167
20813 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
20814 Revert previous change, only avoid enumeral type changes.
20815
882020aa
MS
208162011-01-19 Mike Stump <mikestump@comcast.net>
20817
20818 * doc/tm.texi.in (BRANCH_COST): Englishify.
20819 * doc/tm.texi (BRANCH_COST): Likewise.
20820
7edb6247
DS
208212011-01-19 Dodji Seketeli <dodji@redhat.com>
20822
20823 PR c++/47291
20824 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
20825 (gen_scheduled_generic_parms_dies): New functions.
20826 (gen_struct_or_union_type_die): Schedule template parameters DIEs
20827 generation for the end of CU compilation.
20828 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 20829
23d5ed5d
AO
208302011-01-19 Alexandre Oliva <aoliva@redhat.com>
20831
20832 PR debug/46240
20833 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
20834 debug bind stmt on merge edges.
20835
37d6a488
AO
208362011-01-19 Alexandre Oliva <aoliva@redhat.com>
20837
20838 PR debug/47079
20839 PR debug/46724
20840 * function.c (instantiate_expr): Instantiate incoming rtl of
20841 implicit arguments, and recurse on VALUE_EXPRs.
20842 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
20843 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
20844
689f2c82
AO
208452011-01-19 Alexandre Oliva <aoliva@redhat.com>
20846
20847 * c-parser.c (c_parser_for_statement): Initialize
20848 collection_expression.
20849
03029de4
JM
208502011-01-19 Joseph Myers <joseph@codesourcery.com>
20851
20852 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
20853
3e03217e
JM
208542011-01-19 Joseph Myers <joseph@codesourcery.com>
20855
20856 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
20857 (LINK_SHLIB_SPEC): Don't use %(link_path).
20858 (SUBTARGET_EXTRA_SPECS): Remove link_path.
20859
5bbe9b3f
JM
208602011-01-19 Joseph Myers <joseph@codesourcery.com>
20861
20862 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
20863 (NO_SHARED_LIB_SUPPORT): Remove.
20864 (LINK_SHLIB_SPEC): Remove one conditional definition.
20865
368e0b39
JM
208662011-01-19 Joseph Myers <joseph@codesourcery.com>
20867
20868 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
20869 %{call_shared}.
20870 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
20871 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
20872 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
20873 %{call_shared} and conditionals on these options not being passed.
20874 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
20875 %{call_shared}.
20876
ed7656f6
JJ
208772011-01-19 Jakub Jelinek <jakub@redhat.com>
20878
68457901
JJ
20879 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
20880 simplify.
20881
ed7656f6
JJ
20882 * ipa-split.c: Spelling fixes.
20883
e0d1958f
RH
208842011-01-19 Richard Henderson <rth@redhat.com>
20885
20886 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
20887 (*mulsi3): Likewise.
20888
27098b6b
RH
20889 * longlong.h [__mn10300__] (count_leading_zeros): New.
20890 [__mn10300__] (umul_ppmm, smul_ppmm): New.
20891 [__mn10300__] (add_ssaaaa, subddmmss): New.
20892 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
20893 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
20894
d6be7c36
UW
208952011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20896
20897 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
20898
b1efde2a
RH
208992011-01-19 Richard Henderson <rth@redhat.com>
20900
44217823
RH
20901 * config/mn10300/mn10300.md (addsi3_flags): New.
20902 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
20903 (subsi3_flags, subc_internal, subdi3): New.
20904 (subdi3_internal, *subdi3_degenerate): New.
20905 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
20906
37a185d7
RH
20907 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
20908 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
20909 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
20910 * config/mn10300/mn10300-protos.h: Update.
20911 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
20912 (return_ret): Likewise. Rename from return_internal_regs.
20913 (return_internal): Remove.
20914
040c5757
RH
20915 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
20916 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
20917 (mn10300_legitimate_constant_p): Likewise.
20918 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
20919 (mn10300_frame_size): New.
20920 (mn10300_expand_prologue): Use it.
20921 (mn10300_expand_epilogue): Likewise.
20922 (mn10300_initial_offset): Likewise.
20923 * config/mn10300/mn10300-protos.h: Update.
20924 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
20925 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
20926 (prologue, epilogue, return_internal): Tidy output code.
20927 (mn10300_store_multiple_operation, return): Likewise.
20928 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
20929 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
20930 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
20931 (load_pic, am33_load_pic): New.
20932 (mn10300_load_pic0, mn10300_load_pic1): New.
20933
bad41521
RH
20934 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
20935 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
20936 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
20937 (cc_flags_for_mode, cc_flags_for_code): New.
20938 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
20939 overflow flag is not valid. Validate that the flags we need
20940 for the comparison are valid.
20941 (mn10300_output_cmp): Remove.
20942 (mn10300_output_add): New.
20943 (mn10300_select_cc_mode): Use cc_flags_for_code.
20944 (mn10300_split_cbranch): New.
20945 (mn10300_match_ccmode): New.
20946 (mn10300_split_and_operand_count): New.
20947 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
20948 to the function.
20949 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
20950 (addsi3): ... here. Use mn10300_output_add.
20951 (*addsi3_flags): New.
20952 (*am33_subsi3, *mn10300_subsi3): Merge...
20953 (subsi3): ... here. Use attribute isa.
20954 (*subsi3_flags): New.
20955 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
20956 when possible.
20957 (*am33_andsi3, *mn10300_andsi3): Merge...
20958 (andsi3): ... here.
20959 (*andsi3_flags): New.
20960 (andsi3 splitters): New.
20961 (*am33_iorsi3, *mn10300_iorsi3): Merge...
20962 (iorsi3): ... here.
20963 (*iorsi3_flags): New.
20964 (*am33_xorsi3, *mn10300_xorsi3): Merge...
20965 (xorsi3): ... here.
20966 (*xorsi3_flags): New.
20967 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
20968 (one_cmplsi2): ... here.
20969 (*one_cmplsi2_flags): New.
20970 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
20971 instead of "dax" in constraints. Use mn10300_split_cbranch.
20972 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
20973 use matching constraints to eliminate a self-comparison.
20974 (*integer_conditional_branch): Rename from integer_conditional_branch.
20975 Use int_mode_flags to match CC_REG.
20976 (*cbranchsi4_btst, *btstsi): New.
20977 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
20978 mn10300_split_cbranch.
20979 (*am33_cmpsf): Rename from am33_cmpsf.
20980 (*float_conditional_branch): Rename from float_conditional_branch.
20981 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
20982 (zero_extendqisi2): ... here.
20983 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
20984 (zero_extendhisi2): ... here.
20985 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
20986 (extendqisi2): ... here.
20987 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
20988 (extendhisi2): ... here.
20989 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
20990 (ashlsi3): ... here.
20991 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
20992 (lshrsi3): ... here.
20993 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
20994 (ashrsi3): ... here.
20995 (consecutive add peephole): Remove.
20996 * config/mn10300/predicates.md (label_ref_operand): New.
20997 (int_mode_flags): New.
20998 (CCZN_comparison_operator): New.
20999
9efb4993
RH
21000 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21001 (throughput_42_latency_43): New reservation.
21002 (mulsidi3, umulsidi3): New expanders.
21003 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21004 the MDR register to allocation; separately allocate the low and
21005 high parts of the DImode result.
21006 (umulsidi3_internal): Similarly.
21007 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21008 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21009 (udivsi3, umodsi3): Remove.
21010 (udivmodsi4, divmodsi4): New expanders.
21011 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21012 (*divmodsi4): Simiarly.
21013 (ext_internal): New.
21014
c25a21f5
RH
21015 * config/mn10300/constraints.md ("z"): New constraint.
21016 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21017 (FIXED_REGISTERS): Don't fix MDR.
21018 (CALL_USED_REGSITERS): Reformat nicely.
21019 (REG_ALLOC_ORDER): Add MDR.
21020 (enum regclass): Add MDR_REGS.
21021 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21022 (IRA_COVER_CLASSES): Add MDR_REGS.
21023 (REGNO_REG_CLASS): Handle MDR_REG.
21024 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21025 (mn10300_register_move_cost): Likewise.
21026 * config/mn10300/mn10300.md (MDR_REG): New.
21027 (*movsi_internal): Handle moves to/from MDR_REGS.
21028
36846b26
RH
21029 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21030 POST_MODIFY.
21031 (mn10300_secondary_reload): Tidy combination reload classes.
21032 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21033 addresses for AM33. Allow symbolic offsets for reg+imm.
21034 (mn10300_regno_in_class_p): New.
21035 (mn10300_legitimize_reload_address): New.
21036 * config/mn10300/mn10300.h (enum reg_class): Remove
21037 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21038 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21039 SP_OR_GENERAL_REGS.
21040 (REG_CLASS_NAMES): Update to match.
21041 (REG_CLASS_CONTENTS): Likewise.
21042 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21043 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21044 (REGNO_IN_RANGE_P): Remove.
21045 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21046 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21047 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21048 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21049 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21050 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21051 (REGNO_GENERAL_P): New.
21052 (HAVE_POST_MODIFY_DISP): New.
21053 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21054 (LEGITIMIZE_RELOAD_ADDRESS): New.
21055 * config/mn10300/mn10300-protos.h: Update.
21056
8b119bb6
RH
21057 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21058 DATA_REGS for AM33 stack-pointer destination.
21059 (mn10300_preferred_output_reload_class): Likewise.
21060 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21061 into a form appropriate for ...
21062 (TARGET_SECONDARY_RELOAD): New.
21063 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21064 * config/mn10300/mn10300-protos.h: Update.
21065 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21066 reload_insi; use the "A" constraint for the scratch; handle AM33
21067 moves of sp to non-address registers.
21068
b1efde2a
RH
21069 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21070 (*movqi_internal): ... here.
21071 (*am33_movhi, *mn10300_movhi): Merge into...
21072 (*movhi_internal): ... here.
21073 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21074 as the source/destination of moves from/to SP.
21075 (movsf): Only allow for AM33-2.
1c3ba85b 21076 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
21077 any integer constant constraint. Only allow for AM33-2. Tidy
21078 all of the alternative outputs.
21079 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21080 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21081 for MN103.
21082 (udivsi3, umodsi3): New patterns for MN103 only.
21083
b899fd78
JR
210842011-01-19 Joern Rennecke <amylaar@spamcop.net>
21085
21086 * doc/tm.texi.in: Spell out that a lack of register class unions
21087 can lead to ICEs.
21088 * doc/tm.texi: Regenerate.
21089
afaaa67d
JJ
210902011-01-19 Jakub Jelinek <jakub@redhat.com>
21091
2e0642cd
JJ
21092 PR rtl-optimization/47337
21093 * dce.c (check_argument_store): New function.
21094 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21095
afaaa67d
JJ
21096 PR tree-optimization/47290
21097 * tree-eh.c (infinite_empty_loop_p): New function.
21098 (cleanup_empty_eh): Use it.
21099
d2cd871f
SE
211002011-01-18 Steve Ellcey <sje@cup.hp.com>
21101
21102 PR target/46997
21103 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21104 (a64_expand_widen_sum): Ditto.
21105 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21106 (vec_extract_evenodd_help): Ditto.
21107 (vec_extract_evenv4hi): Ditto.
21108 (vec_extract_oddv4hi): Ditto.
21109 (vec_extract_evenv2si): Ditto.
21110 (vec_extract_oddv2si): Ditto.
21111 (vec_extract_evenv2sf): Ditto.
21112 (vec_extract_oddv2sf): Ditto.
21113 (vec_pack_trunc_v4hi: Ditto.
21114 (vec_pack_trunc_v2si): Ditto.
21115 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21116 (vec_interleave_highv8qi): Ditto.
21117 (mix1_r): Ditto.
21118 (vec_extract_oddv8qi): Ditto.
21119 (vec_interleave_lowv4hi): Ditto.
21120 (vec_interleave_highv4hi): Ditto.
21121 (vec_interleave_lowv2si): Ditto.
21122 (vec_interleave_highv2si): Ditto.
21123
41a1208a
JDA
211242011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21125
21126 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21127 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21128 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21129 (pa_c_mode_for_suffix): New.
21130 (TARGET_EXPAND_BUILTIN): Define.
21131 (TARGET_C_MODE_FOR_SUFFIX): Define.
21132 (pa_builtins): Define.
21133 (pa_init_builtins): Register __float128 type and init new support
21134 builtins.
21135 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21136 * config/pa/quadlib.c (_U_Qfcopysign): New.
21137
1ecad98e
EB
211382011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21139
21140 PR middle-end/46894
21141 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21142 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21143 are defined.
21144
d4f2460a
UW
211452011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21146
21147 PR tree-optimization/47179
21148 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21149 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21150
4994da65
RG
211512011-01-18 Richard Guenther <rguenther@suse.de>
21152
21153 PR rtl-optimization/47216
21154 * emit-rtl.c: Include tree-flow.h.
21155 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21156 of replicating it with different semantics.
21157 * Makefile.in (emit-rtl.o): Adjust.
21158
1eb458d1
RR
211592011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21160
38be4072 21161 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 21162 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 21163
e7ef91dc
JJ
211642011-01-18 Jakub Jelinek <jakub@redhat.com>
21165
21166 PR rtl-optimization/47299
21167 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 21168 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
21169 * expmed.c (expand_widening_mult): Don't try to optimize constant
21170 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21171 before using it.
21172
535b7874
RW
211732011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21174
21175 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21176 spacing after 'e.g.', typos, comma, hyphenation.
21177
27bf36f3
RH
211782011-01-17 Richard Henderson <rth@redhat.com>
21179
8a5b5449
RH
21180 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21181 (rx_restricted_mem_operand): New.
21182 (rx_shift_operand): Use register_operand.
21183 (rx_source_operand, rx_compare_operand): Likewise.
21184 * config/rx/rx.md (addsi3_flags): New expander.
21185 (adddi3): Rewrite as expander.
21186 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21187 (subsi3_flags): New expander.
21188 (subdi3): Rewrite as expander.
21189 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21190
784f69be
RH
21191 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21192 (rx_init_builtins): Remove sat builtin.
21193 (rx_expand_builtin): Likewise.
21194 * config/rx/rx.md (ssaddsi3): New.
21195 (*sat): Rename from sat. Represent the CC_REG input.
21196
f033541c
RH
21197 * config/rx/predicates.md (rshift_operator): New.
21198 * config/rx/rx.c (rx_expand_insv): Remove.
21199 * config/rx/rx-protos.h: Update.
21200 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21201 operand to the canonical position.
21202 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21203 (*bitclr, *bitclr_in_memory): Similarly.
21204 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21205 (insv): Retain the zero_extract in the expansion.
21206
34fee389
RH
21207 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21208 (bswaphi2, bitinvert, revw): Likewise.
21209
265c835f
RH
21210 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21211 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21212 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21213 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21214 (bitset, bitset_in_memory): Likewise.
21215 (bitinvert, bitinvert_in_memory): Likewise.
21216 (bitclr, bitclr_in_memory): Likewise.
21217 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21218 (rx_strend, rx_cmpstrn): Likewise.
21219 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21220 (bitop peep2 patterns): Remove.
21221
b4d83be3
RH
21222 * config/rx/rx.c (rx_match_ccmode): New.
21223 * config/rx/rx-protos.h: Update.
21224 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21225 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21226 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21227 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21228 (fix_truncsfsi2, floatsisf2): Likewise.
21229 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21230 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21231 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21232 (*subsi3_flags, *xorsi3_flags): New.
21233
d0acb939
RH
21234 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21235
c06fc3d9
RH
21236 * config/rx/rx.c (rx_print_operand): Remove workaround for
21237 unsplit comparison operations.
21238
2882702b
RH
21239 * config/rx/rx.md (movsicc): Split after reload.
21240 (*movsicc): Merge *movsieq and *movsine via match_operator.
21241 (*stcc): New pattern.
21242
6f7310f2
RH
21243 * config/rx/rx.c (rx_float_compare_mode): Remove.
21244 * config/rx/rx.h (rx_float_compare_mode): Remove.
21245 * config/rx/rx.md (cstoresi4): Split after reload.
21246 (*sccc): New pattern.
21247
e963cb1a
RH
21248 * config/rx/predicates.md (label_ref_operand): New.
21249 (rx_z_comparison_operator): New.
21250 (rx_zs_comparison_operator): New.
21251 (rx_fp_comparison_operator): New.
21252 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21253 Validate that the flags are set properly for the comparison.
21254 (rx_gen_cond_branch_template): Remove.
21255 (rx_cc_modes_compatible): Remove.
21256 (mode_from_flags): New.
21257 (flags_from_code): Rename from flags_needed_for_conditional.
21258 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21259 (rx_select_cc_mode): Likewise.
21260 (rx_split_fp_compare): New.
21261 (rx_split_cbranch): New.
21262 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21263 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21264 (*cbranchsf4): Similarly.
21265 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21266 match_operator and rx_split_cbranch.
21267 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21268 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21269 (*cmpsi): Rename from cmpsi.
21270 (*tstsi): Rename from tstsi.
21271 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21272 (*conditional_branch): Rename from conditional_branch.
21273 (*reveresed_conditional_branch): Remove.
21274 (b<code>): Remove expander.
21275 * config/rx/rx-protos.h: Update.
21276
af530bb4
RH
21277 * config/rx/rx.c (rx_compare_redundant): Remove.
21278 * config/rx/rx.md (cmpsi): Don't use it.
21279 * config/rx/rx-protos.h: Update.
21280
27bf36f3
RH
21281 * config/rx/rx-modes.def (CC_F): New mode.
21282 * config/rx/rx.c (rx_select_cc_mode): New.
21283 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21284 * config/rx/rx-protos.h: Update.
21285
d7fde127
RH
212862011-01-17 Richard Henderson <rth@redhat.com>
21287
21288 * except.c (dump_eh_tree): Fix stray ; after for statement.
21289
6ff38230
RG
212902011-01-17 Richard Guenther <rguenther@suse.de>
21291
21292 PR tree-optimization/47313
21293 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21294 handling before copying the body. Properly deal with
21295 by-reference result in SSA form.
21296
114ce554
ILT
212972011-01-17 Ian Lance Taylor <iant@google.com>
21298
bf5cd92b 21299 PR target/47219
114ce554
ILT
21300 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21301 (struct_value_alias_set): Don't define.
21302 (sparc_option_override): Don't set sparc_sr_alias_set and
21303 struct_value_alias_set.
21304 (save_or_restore_regs): Use gen_frame_mem rather than calling
21305 set_mem_alias_set.
21306 (sparc_struct_value_rtx): Likewise.
21307
98c6d93c
L
213082011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21309
21310 PR target/47318
7a81008b 21311 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
21312 (_mm_maskstore_pd): Likewise.
21313 (_mm_maskload_ps): Likewise.
21314 (_mm_maskstore_ps): Likewise.
21315 (_mm256_maskload_pd): Change mask to __m256i.
21316 (_mm256_maskstore_pd): Likewise.
21317 (_mm256_maskload_ps): Likewise.
21318 (_mm256_maskstore_ps): Likewise.
21319
21320 * config/i386/i386-builtin-types.def: Updated.
21321 (ix86_expand_special_args_builtin): Likewise.
21322
21323 * config/i386/i386.c (bdesc_special_args): Update
21324 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21325 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21326 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21327 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21328
21329 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21330 Use <avxpermvecmode> on mask register.
21331 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21332
b9361af2 213332011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
21334 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21335 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
21336
21337 PR target/46655
21338 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21339 if <= USHRT_MAX in 32-bit mode.
21340
b7ae9eb5
RW
213412011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21342
21343 * doc/install.texi (Configuration, Specific): Wrap long
21344 lines in examples. Allow line wrapping in long options
21345 and URLs where beneficial for PDF output.
21346
4377fad9
RS
213472011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21348
21349 * config/mips/mips.c (mips_classify_symbol): Don't return
21350 SYMBOL_PC_RELATIVE for nonlocal labels.
21351
55959ffa 213522011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 21353
55959ffa
EB
21354 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21355
213562011-01-15 Jan Hubicka <jh@suse.cz>
21357
21358 PR tree-optimization/47276
be46831f
JH
21359 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21360 declarations as needed.
21361
05842ff5
MJ
213622011-01-15 Martin Jambor <mjambor@suse.cz>
21363
21364 * common.opt (fdevirtualize): New flag.
21365 * doc/invoke.texi (Option Summary): Document it.
21366 * opts.c (default_options_table): Add devirtualize flag.
21367 * ipa-prop.c (detect_type_change): Return immediately if
21368 devirtualize flag is not set.
21369 (detect_type_change_ssa): Likewise.
21370 (compute_known_type_jump_func): Likewise.
21371 (ipa_analyze_virtual_call_uses): Likewise.
21372
f65cf2b7
MJ
213732011-01-14 Martin Jambor <mjambor@suse.cz>
21374
21375 PR tree-optimization/45934
21376 PR tree-optimization/46302
21377 * ipa-prop.c (type_change_info): New type.
21378 (stmt_may_be_vtbl_ptr_store): New function.
21379 (check_stmt_for_type_change): Likewise.
21380 (detect_type_change): Likewise.
21381 (detect_type_change_ssa): Likewise.
21382 (compute_complex_assign_jump_func): Check for dynamic type change.
21383 (compute_complex_ancestor_jump_func): Likewise.
21384 (compute_known_type_jump_func): Likewise.
21385 (compute_scalar_jump_functions): Likewise.
21386 (ipa_analyze_virtual_call_uses): Likewise.
21387 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21388
eb5bb0fd
JM
213892011-01-14 Joseph Myers <joseph@codesourcery.com>
21390
21391 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21392 * config/i386/i386.opt (msse5): New Alias.
21393
f2060fbe
JM
213942011-01-14 Joseph Myers <joseph@codesourcery.com>
21395
21396 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21397 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21398 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21399 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21400
3a7b4385
JM
214012011-01-14 Joseph Myers <joseph@codesourcery.com>
21402
21403 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21404 -mcpu options.
21405 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21406 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21407 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21408 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21409 Likewise.
21410 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21411
a7b778f8
JM
214122011-01-14 Joseph Myers <joseph@codesourcery.com>
21413
38be4072 21414 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 21415
a7edae0a
MS
214162011-01-14 Mike Stump <mikestump@comcast.net>
21417
21418 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21419 * config/fr30/fr30.md: Likweise
21420 (movsi_push): Likewise.
21421 (movsi_pop): Likewise.
21422 (enter_func): Likewise.
21423 * config/moxie/moxie.md (movsi_push): Likewise.
21424 (movsi_pop): Likewise.
21425
cbabf03f
JM
214262011-01-14 Joseph Myers <joseph@codesourcery.com>
21427
21428 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21429 %{no_archive} %{exact_version}.
21430 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21431 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21432 %{no_archive} %{exact_version}.
21433 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21434 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21435 * config/mips/vxworks.h: Likewise.
21436
438da41a
JM
214372011-01-14 Joseph Myers <joseph@codesourcery.com>
21438
38be4072 21439 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 21440
da290a42
JM
214412011-01-14 Joseph Myers <joseph@codesourcery.com>
21442
21443 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21444 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21445
8989d00e
JM
214462011-01-14 Joseph Myers <joseph@codesourcery.com>
21447
21448 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21449 -nodefaultlib.
21450
a3010a69
JM
214512011-01-14 Joseph Myers <joseph@codesourcery.com>
21452
21453 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21454 for mcpu not cpu.
21455 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21456 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21457 not cpu.
21458 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21459 Don't handle -shlib.
21460
e7f2f537
JM
214612011-01-14 Joseph Myers <joseph@codesourcery.com>
21462
21463 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21464 (CC1_SPEC): Don't handle -profile.
21465
34830bfd
JM
214662011-01-14 Joseph Myers <joseph@codesourcery.com>
21467
21468 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21469 * config/mips/mips.h (CC1_SPEC): Likewise.
21470
b2d36e74
JM
214712011-01-14 Joseph Myers <joseph@codesourcery.com>
21472
21473 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21474 * config/mips/mips.h (CC1_SPEC): Likewise.
21475
dabadc52
JM
214762011-01-14 Joseph Myers <joseph@codesourcery.com>
21477
21478 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21479 * config/m32r/linux.h (LINK_SPEC): Likewise.
21480 * config/mips/linux.h (LINK_SPEC): Likewise.
21481 * config/mips/linux64.h (LINK_SPEC): Likewise.
21482 * config/sparc/linux.h (LINK_SPEC): Likewise.
21483 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21484 LINK_SPEC): Likewise.
21485 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21486
43ee6785
JM
214872011-01-14 Joseph Myers <joseph@codesourcery.com>
21488
21489 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21490 %{version:-v}.
21491 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21492
45e79dfd
JM
214932011-01-14 Joseph Myers <joseph@codesourcery.com>
21494
21495 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21496 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21497
37e9e71d
JM
214982011-01-14 Joseph Myers <joseph@codesourcery.com>
21499
21500 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21501
bb127cd8
RO
215022011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21503
21504 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21505 supports -Bstatic/-Bdynamic.
21506 * configure: Regenerate.
21507
89a012ea 215082011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 21509 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
21510
21511 PR target/46037
21512 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21513 when checking debug_info_level. Test write_symbols instead of
21514 debug_hooks->var_location when setting flag_var_tracking_uninit.
21515
7352c013
RG
215162011-01-14 Richard Guenther <rguenther@suse.de>
21517
21518 PR tree-optimization/47179
21519 * target.def (ref_may_alias_errno): New target hook.
21520 * targhooks.h (default_ref_may_alias_errno): Declare.
21521 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21522 (default_ref_may_alias_errno): New function.
21523 * target.h (struct ao_ref_s): Declare.
21524 * tree-ssa-alias.c: Include target.h.
21525 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21526 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21527 (targhooks.o): Likewise.
21528 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21529 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21530
9a6c9288
RG
215312011-01-14 Richard Guenther <rguenther@suse.de>
21532
21533 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21534
0fdb0d27
RG
215352011-01-14 Richard Guenther <rguenther@suse.de>
21536
21537 PR tree-optimization/47280
21538 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21539 return CFG changes.
21540 (tree_ssa_forward_propagate_single_use_vars): Deal with
21541 CFG changes from associate_plusminus.
21542
8f66db3b
RG
215432011-01-14 Richard Guenther <rguenther@suse.de>
21544
21545 PR middle-end/47281
21546 Revert
21547 2011-01-11 Richard Guenther <rguenther@suse.de>
21548
280d9630
EB
21549 PR tree-optimization/46076
21550 * tree-ssa.c (useless_type_conversion_p): Conversions from
21551 unprototyped to empty argument list function types are useless.
8f66db3b 21552
6c0c92e6
RG
215532011-01-14 Richard Guenther <rguenther@suse.de>
21554
21555 PR tree-optimization/47286
280d9630 21556 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 21557
db09f943
MJ
215582011-01-14 Martin Jambor <mjambor@suse.cz>
21559
21560 PR middle-end/46823
21561 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21562
dde8a3a4
AS
215632011-01-13 Anatoly Sokolov <aesok@post.ru>
21564
21565 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21566 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21567 * config/xtensa/xtensa.c (xtensa_libcall_value,
21568 xtensa_function_value_regno_p): New functions.
21569 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21570
a2b63a20
KT
215712011-01-13 Kai Tietz <kai.tietz@onevision.com>
21572
21573 PR c++/47213
21574 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21575 PE specific hook.
21576 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21577 New function prototype.
21578 * config/i386/winnt.c (i386_pe_assemble_visibility):
21579 Warn only if attribute was specified by user.
21580
b41f0b34
MM
215812011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21582
21583 PR target/47251
21584 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21585 floating point.
21586 (floatunsdidf2_fcfidu): Ditto.
21587
3f3c098d
AK
215882011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21589
21590 * config/s390/s390.c (print_operand_address): Replace 'error' with
21591 'output_operand_lossage'.
21592 (print_operand): Likewise.
21593
29fa95ed
JL
215942011-01-13 Jeff Law <law@redhat.com>
21595
280d9630 21596 PR rtl-optimization/39077
29fa95ed
JL
21597 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21598 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21599 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21600 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21601 * gcse.c (prune_insertions_deletions): New function.
21602 (compute_pre_data): Use it.
21603
71d12276
DS
216042011-01-13 Dodji Seketeli <dodji@redhat.com>
21605
21606 PR debug/PR46973
21607 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21608 static function.
61052244 21609 (prune_unused_types_mark): Use it.
71d12276 21610
9b0f04e7
AB
216112011-01-13 Andrey Belevantsev <abel@ispras.ru>
21612
21613 PR rtl-optimization/45352
1c3ba85b 21614 * sel-sched.c: Update copyright years.
9b0f04e7 21615 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 21616 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 21617
d6a3e264
RH
216182011-01-12 Richard Henderson <rth@redhat.com>
21619
a49b692a
RH
21620 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21621 (TARGET_MD_ASM_CLOBBERS): New.
21622
126b1483
RH
21623 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21624 (TARGET_DELEGITIMIZE_ADDRESS): New.
21625
f3d9d2e0
RH
21626 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21627 (clzsi2, *bsch): New patterns.
21628
d84760c9
RH
21629 * config/mn10300/mn10300.md (INT): New mode iterator.
21630 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21631
ec815d65
RH
21632 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21633 flag_split_wide_types.
21634
d6a3e264
RH
21635 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21636 (mn10300_trampoline_init): Rewrite without a template, an immediate
21637 load and a direct branch.
21638 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21639
0f8ab434
AS
216402011-01-12 Anatoly Sokolov <aesok@post.ru>
21641
21642 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21643 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21644 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21645 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21646
d8a24b65
KT
216472011-01-12 Kai Tietz <kai.tietz@onevision.com>
21648
21649 PR debug/47209
21650 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21651 of type.
21652
56e22cab
JH
216532011-01-12 Jan Hubicka <jh@suse.cz>
21654
21655 PR driver/47244
21656 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21657 (PLUGIN_COND_CLOSE): New macro.
21658 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21659
4b18b3c2
RG
216602011-01-12 Richard Guenther <rguenther@suse.de>
21661
21662 PR lto/47259
21663 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21664 register variables in a MEM_REF.
21665
8e38461c
JM
216662011-01-12 Joseph Myers <joseph@codesourcery.com>
21667
21668 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21669 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21670 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21671 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21672 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21673 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21674 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21675 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21676 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21677 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21678 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21679 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21680 * config/gnu-user.h: New. Copied from linux.h.
21681 (LINUX_TARGET_STARTFILE_SPEC): Rename to
21682 GNU_USER_TARGET_STARTFILE_SPEC.
21683 (LINUX_TARGET_ENDFILE_SPEC): Rename to
21684 GNU_USER_TARGET_ENDFILE_SPEC.
21685 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21686 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21687 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21688 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21689 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21690 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21691 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21692 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21693 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21694 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21695 * config/arm/linux-eabi.h (CC1_SPEC): Use
21696 GNU_USER_TARGET_CC1_SPEC.
21697 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21698 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21699 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21700 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21701 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21702 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21703 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21704 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21705
a570fc16
RG
217062011-01-12 Richard Guenther <rguenther@suse.de>
21707
21708 PR other/46946
21709 * doc/invoke.texi (ffast-math): Document it is turned on
21710 with -Ofast.
21711
b0223c3e
JH
217122011-01-12 Jan Hubicka <jh@suse.cz>
21713
21714 PR tree-optimization/47233
ca1e00b3
EB
21715 * opts.c (common_handle_option): Disable ipa-reference with profile
21716 feedback.
b0223c3e 21717
1c3ba85b 217182011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
21719
21720 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
21721 error message.
21722
d853ee42
NP
217232011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21724
21725 * c-parser.c (c_lex_one_token): Updated and reindented some
21726 comments. No changes in code.
21727
4053a5a0
ILT
217282011-01-11 Ian Lance Taylor <iant@google.com>
21729
21730 * godump.c (go_output_var): Don't output the variable if there is
21731 already a type with the same name.
21732
fa3e04d2
ILT
217332011-01-11 Ian Lance Taylor <iant@google.com>
21734
21735 * godump.c (go_format_type): Don't generate float80.
21736
885fe07c
RH
217372011-01-11 Richard Henderson <rth@redhat.com>
21738
72d6e3c5
RH
21739 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21740 declaration. Rewrite for both speed and size.
21741 (mn10300_address_cost_1): Remove.
21742 (mn10300_register_move_cost): New.
21743 (mn10300_memory_move_cost): New.
21744 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
21745 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
21746 extensions, shifts, BSWAP, CLZ.
21747 (mn10300_wide_const_load_uses_clr): Remove.
21748 (TARGET_REGISTER_MOVE_COST): New.
21749 (TARGET_MEMORY_MOVE_COST): New.
21750 * config/mn10300/mn10300-protos.h: Update.
21751 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
21752
df37c023
RH
21753 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
21754 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
21755 * config/mn10300/mn10300-protos.h: Update.
21756 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
21757 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
21758 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
21759 (*test_int_bitfield, *test_byte_bitfield): Remove.
21760 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 21761 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 21762
85a337b5
RH
21763 * config/mn10300/constraints.md ("c"): Rename from "A".
21764 ("A", "D"): New constraint letters.
21765 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
21766 (fmssf4, fnmasf4, fnmssf4): Likewise.
21767
a5c727e3
RH
21768 * config/mn10300/mn10300.md (isa): New attribute.
21769 (enabled): New attribute.
21770
0d9e23f4
RH
21771 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
21772 (abssf2, negsf2): Define only for hardware fp.
21773 (sqrtsf2): Reformat.
21774 (addsf3, subsf3, mulsf3): Merge expander and insn.
21775
c157b3f0
RH
21776 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
21777 (DEBUGGER_AUTO_OFFSET): Remove.
21778 (DEBUGGER_ARG_OFFSET): Remove.
21779
cc909bba
RH
21780 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
21781 Emit register stores with the same offsets as the hardware.
21782 (mn10300_store_multiple_operation): Don't check that the register
21783 save offsets are monotonic.
21784 * config/mn10300/mn10300-protos.h: Update.
21785
e3b5c2f3
RH
21786 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
21787
885fe07c
RH
21788 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
21789 in terms of the value on the stack, not the MDR register.
21790
6e701822
JH
217912011-01-11 Jan Hubicka <jh@suse.cz>
21792
21793 PR lto/45721
21794 PR lto/45375
21795 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
21796 (symbol_alias_set_destroy, symbol_alias_set_contains,
21797 propagate_aliases_backward): Declare.
21798 * lto-streamer-out.c (struct sets): New sturcture.
21799 (trivally_defined_alias): New function.
21800 (output_alias_pair_p): Rewrite.
21801 (output_unreferenced_globals): Fix output of alias pairs.
21802 (produce_symtab): Likewise.
21803 * ipa.c (function_and_variable_visibility): Set weak alias destination
21804 as needed in lto.
21805 * varasm.c (symbol_alias_set_t): Remove.
21806 (symbol_alias_set_destroy): Export.
21807 (propagate_aliases_forward, propagate_aliases_backward): New functions
21808 based on ...
21809 (compute_visible_aliases): ... this one; remove.
21810 (trivially_visible_alias): New
21811 (trivially_defined_alias): New.
21812 (remove_unreachable_alias_pairs): Rewrite.
21813 (finish_aliases_1): Reorganize code checking if alias is defined.
21814 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
21815 in LTO mode.
21816
1b248907
RG
218172011-01-11 Richard Guenther <rguenther@suse.de>
21818
21819 PR tree-optimization/46076
21820 * tree-ssa.c (useless_type_conversion_p): Conversions from
21821 unprototyped to empty argument list function types are useless.
21822
b1923f0a
RG
218232011-01-11 Richard Guenther <rguenther@suse.de>
21824
21825 PR middle-end/45235
21826 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
21827 volatile MEMs as MEM_READONLY_P.
21828
e98965af
RG
218292011-01-11 Richard Guenther <rguenther@suse.de>
21830
21831 PR tree-optimization/47239
21832 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
21833
9f9ca914
JL
218342011-01-11 Jeff Law <law@redhat.com>
21835
1ee3ea05 21836 PR tree-optimization/47086
9f9ca914
JL
21837 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
21838 IVs from statements that might throw.
21839
345fdcb7
JH
218402011-01-10 Jan Hubicka <jh@suse.cz>
21841
21842 PR lto/45375
21843 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
21844
c459c97b
JH
218452011-01-10 Jan Hubicka <jh@suse.cz>
21846
21847 PR lto/45375
21848 * profile.c (read_profile_edge_counts): Ignore profile inconistency
21849 when correcting profile.
21850
06c9eb51
JH
218512011-01-10 Jan Hubicka <jh@suse.cz>
21852
21853 PR lto/46083
21854 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
21855 DECL_FINI_PRIORITY.
21856 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
21857 Restore DECL_FINI_PRIORITY.
21858
ae9fd815
RW
218592011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21860
21861 * doc/gimple.texi: Fix quoting of multi-word return values in
21862 @deftypefn statements. Ensure presence of return value. Wrap
21863 overlong @deftypefn lines.
21864 (is_gimple_operand, is_gimple_min_invariant_address): Remove
21865 descriptions of removed functions.
21866 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
21867 of multi-word return value in @deftypefn statement.
21868
0ecb4a7c
RW
218692011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21870
21871 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
21872 (Conditional Expressions, Logical Operators)
21873 (Statement and operand traversals): Do not indent smallexample
21874 code. Fix duplicate function argument in example.
21875
2e5e346d
JL
218762011-01-10 Jeff Law <law@redhat.com>
21877
1ee3ea05 21878 PR tree-optimization/47141
2e5e346d
JL
21879 * ipa-split.c (split_function): Handle case where we are
21880 returning a value and the return block has a virtual operand phi.
21881
cf9712cc
JH
218822011-01-10 Jan Hubicka <jh@suse.cz>
21883
1c3ba85b 21884 PR tree-optimization/47234
cf9712cc
JH
21885 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
21886 (pass_feedback_split_functions): Declare.
21887 * passes.c (init_optimization_passes): Add ipa-split as subpass of
21888 tree-profile.
21889 * ipa-split.c (gate_split_functions): Update comments; disable
21890 split-functions for profile_arc_flag and branch_probabilities.
21891 (gate_feedback_split_functions): New function.
21892 (execute_feedback_split_functions): New function.
21893 (pass_feedback_split_functions): New global var.
21894
94cd932c
L
218952011-01-10 H.J. Lu <hongjiu.lu@intel.com>
21896
21897 PR lto/46760
21898 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
21899 calling gimple_call_set_cannot_inline.
21900
fbbfcaf1
IS
219012011-01-10 Iain Sandoe <iains@gcc.gnu.org>
21902
21903 * config/darwin-sections.def: Remove unused section.
21904
d06865bf
DK
219052011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
21906
21907 PR c++/47218
21908 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
21909
96bbfbac
NP
219102011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
21911
21912 PR objc/47232
21913 * c-parser.c (c_parser_declaration_or_fndef): Improved
21914 error message.
21915
1ba6516f
KT
219162011-01-09 Kai Tietz <kai.tietz@onevision.com>
21917
21918 * config/i386/winnt.c (i386_pe_start_function): Make sure
21919 to switch back to function's section.
21920
0c5d770e
IS
219212011-01-09 Iain Sandoe <iains@gcc.gnu.org>
21922
21923 PR gcc/46902
21924 PR testsuite/46912
21925 * plugin.c: Move include of dlfcn.h from here...
21926 * system.h: ... to here.
21927
219282011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
21929
21930 * doc/cpp.texi (C++ Named Operators): Fix markup for header
21931 file name.
21932 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
21933 two extra empty pages in PDF output.
21934
046608a3
NP
219352011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
21936
21937 PR objc/47078
21938 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
21939 for error recovery purposes behave as if it was not specified so
21940 that the default type is usd.
21941
8cb114b9
JH
219422011-01-07 Jan Hubicka <jh@suse.cz>
21943
21944 PR tree-optmization/46469
21945 * ipa.c (function_and_variable_visibility): Clear needed flags on
21946 nodes with external decls; handle weakrefs merging correctly.
21947
b294a75e
JM
219482011-01-07 Joseph Myers <joseph@codesourcery.com>
21949
21950 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
21951 not false.
21952
96bdf9b4
JH
219532011-01-07 Jan Hubicka <jh@suse.cz>
21954
f60c2554 21955 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
21956 and no longer claim that gold is required for linker plugin.
21957 * configure: Regenerate.
21958 * gcc.c (PLUGIN_COND): New macro.
21959 (LINK_COMMAND_SPEC): Use it.
21960 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
21961 * config.in (HAVE_LTO_PLUGIN): New.
21962 * configure.ac (--with-lto-plugin): New parameter; autodetect
21963 HAVE_LTO_PLUGIN.
21964
17afc0fe
JH
219652011-01-07 Jan Hubicka <jh@suse.cz>
21966
21967 PR tree-optimization/46367
21968 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
21969 when we can update original.
21970 (cgraph_mark_inline_edge): Sanity check.
21971 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
21972
d4c48c0f
UW
219732011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21974
21975 * config/spu/spu.h (ASM_COMMENT_START): Define.
21976
96f5b137
L
219772011-01-07 H.J. Lu <hongjiu.lu@intel.com>
21978
21979 PR driver/42445
21980 * gcc.c (%>S): New.
21981 (SWITCH_KEEP_FOR_GCC): Likewise.
21982 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
21983 (do_spec_1): Handle "%>".
21984
21985 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
21986
c6a8f6de
JJ
219872011-01-07 Jakub Jelinek <jakub@redhat.com>
21988
c21bbd7a
JJ
21989 PR target/47201
21990 * config/i386/i386.c (ix86_delegitimize_address): If
21991 simplify_gen_subreg fails, return orig_x.
21992
c6a8f6de
JJ
21993 PR bootstrap/47187
21994 * value-prof.c (gimple_stringop_fixed_value): Handle
21995 lhs of the call properly.
21996
fe95fbf9
JH
219972011-01-07 Jan Hubicka <jh@suse.cz>
21998
21999 PR lto/45375
22000 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22001
14d11d40
IS
220022011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22003
72e961c8
EB
22004 * target.def (function_switched_text_sections): New hook.
22005 * doc/tm.texi: Regenerated.
22006 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 22007 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
22008 (final_scan_insn): Call function_switched_text_sections when a
22009 mid-function section change occurs.
14d11d40 22010 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
22011 * config/darwin-protos.h (darwin_function_switched_text_sections):
22012 Likewise.
14d11d40 22013 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 22014 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 22015
0b764288
IS
220162011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22017
22018 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22019 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22020 the secondary code fragment when outputting for DWARF == 2.
22021
2ac6bb04
AS
220222011-01-07 Anatoly Sokolov <aesok@post.ru>
22023
22024 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22025 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22026 Remove.
22027 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22028 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22029
9f82de11
EB
220302011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22031
22032 PR debug/46704
280d9630
EB
22033 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22034 when it is not empty.
9f82de11
EB
22035
220362011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 22037
1ed72abf 22038 Bobcat Enablement
14b52538 22039 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 22040 (case ${target}): Add btver1.
14b52538 22041 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 22042 -march=native recognize btver1 processors.
14b52538 22043 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 22044 btver1 def_and_undef
14b52538 22045 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
22046 btver1 cost table.
22047 (m_BTVER1): New definition.
22048 (m_AMD_MULTIPLE): Includes m_BTVER1.
22049 (initial_ix86_tune_features): Add btver1 tune.
22050 (processor_target_table): Add btver1 entry.
22051 (static const char *const cpu_names): Add btver1 entry.
22052 (software_prefetching_beneficial_p): Add btver1.
22053 (ix86_option_override_internal): Add btver1 instruction sets.
22054 (ix86_issue_rate): Add btver1.
22055 (ix86_adjust_cost): Add btver1.
14b52538 22056 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
22057 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22058 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
22059 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22060
e1a973d8
RO
220612011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22062
22063 PR target/43309
22064 * config/i386/i386.c (legitimize_tls_address)
22065 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22066 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22067 (tls_initial_exec_64_sun): New pattern.
22068
c73f67c5
GP
220692011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22070
22071 * doc/invoke.texi (Overall Options): Improve wording and markup
22072 of the description of -wrapper.
22073
bc4c6f9c
JM
220742011-01-06 Joseph Myers <joseph@codesourcery.com>
22075
22076 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22077 rdynamic, threads): New Driver options.
22078
adb75db0
RO
220792011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22080
22081 PR target/38118
22082 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22083 if coming from .tdata.
22084 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22085
402c1cb4
JH
220862011-01-06 Jan Hubicka <jh@suse.cz>
22087
22088 PR lto/47188
22089 * collect2.c (main): Do not enable LTOmode when plugin is active.
22090
a4da6485
RO
220912011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22092
22093 PR other/45915
22094 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22095 --version output if supported.
22096 * configure: Regenerate.
22097
028dbdf4
JM
220982011-01-06 Joseph Myers <joseph@codesourcery.com>
22099
22100 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22101 Driver options.
22102
dfe776dd
JJ
221032011-01-06 Jakub Jelinek <jakub@redhat.com>
22104
22105 PR c/47150
22106 * c-convert.c (convert): When converting a complex expression
22107 other than COMPLEX_EXPR to a different complex type, ensure
22108 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22109 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22110 when converting COMPLEX_TYPE.
22111
210dedfe
IR
221122011-01-06 Ira Rosen <irar@il.ibm.com>
22113
22114 PR tree-optimization/47139
22115 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22116 only the last reduction value is used outside the loop. Update
22117 documentation.
22118
cd33a412
JM
221192011-01-05 Joseph Myers <joseph@codesourcery.com>
22120
22121 * config/rtems.opt: New.
22122 * config.gcc (*-*-rtems*): Use rtems.opt.
22123
819edd94
CF
221242011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22125
22126 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22127 processors do not support 3DNow instructions.
22128
dc242c4a
UW
221292011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22130
22131 * config/spu/spu.c (spu_option_override): Set parameter
22132 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22133
be286227
JH
221342011-01-05 Jan Hubicka <jh@suse.cz>
22135
22136 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22137 at the command line.
22138
644e637f
MJ
221392011-01-05 Martin Jambor <mjambor@suse.cz>
22140
22141 PR lto/47162
22142 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22143 deltas on streamed outgoing edges.
22144 (output_node_opt_summary): Output info for outgoing edges only when
22145 the node is in new parameter set.
22146 (output_cgraph_opt_summary): New parameter set, passed to the two
22147 aforementioned functions. Update its forward declaration and its
22148 callee too.
22149
7bd11157
TT
221502011-01-05 Tom Tromey <tromey@redhat.com>
22151
22152 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22153 operator to c_finish_omp_atomic.
22154 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22155 (build_unary_op): Update.
22156 (build_modify_expr): Update.
22157 (build_asm_expr): Update.
22158
f626b979
UW
221592011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22160
22161 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22162 newly inserted insns.
22163 (pad_bb): Likewise.
22164 (spu_emit_branch_hint): Likewise.
22165 (insert_hbrp_for_ilb_runout): Likewise.
22166 (spu_machine_dependent_reorg): Call df_finish_pass after
22167 schedule_insns returns.
22168
4c825c02
UW
221692011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22170
22171 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22172
5e9fba51
EB
221732011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22174
22175 PR tree-optimization/47005
22176 * tree-sra.c (struct access): Add 'non_addressable' bit.
22177 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22178 (decide_one_param_reduction): Return 0 if the parameter is passed by
22179 reference and one of the accesses in the group is non_addressable.
22180
3ebb5ca6
EB
221812011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22182
22183 PR tree-optimization/47056
22184 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22185 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22186 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22187
d5d4d14e
EB
221882011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22189
22190 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22191 initializer. Skip view conversions from aggregate types.
22192
d996ef70
KT
221932011-01-04 Kai Tietz <kai.tietz@onevision.com>
22194
22195 PR bootstrap/47055
22196 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22197
509d65dd 221982011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
22199
22200 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22201 obvious typo.
22202
55c623b5
UW
222032011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22204
22205 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22206 on empty epilogue sequences.
22207
b98d6b35
JM
222082011-01-04 Joseph Myers <joseph@codesourcery.com>
22209
22210 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22211 non-static): New Driver options.
22212
a0d43bac
JZ
222132011-01-04 Jie Zhang <jie@codesourcery.com>
22214
22215 PR driver/47137
22216 * gcc.c (default_compilers[]): Set combinable field to 0
22217 for all assembly languages.
22218
2b18eb32
MX
222192011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22220
22221 * config/mips/loongson3a.md: New file.
22222 * config/mips/mips.md: Include loongson3a.md.
22223 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22224 TUNE_LOONGSON_3A.
22225
42a48c4f
EB
222262011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22227
22228 PR middle-end/47017
22229 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22230 instead of convert_memory_address_addr_space on the base expression.
22231
9c1732c4
UW
222322011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22233
22234 * config/spu/spu.c (spu_option_override): Update error text
22235 for bad -march= / -mtune= values.
22236
aa474365
UW
222372011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22238
22239 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22240 if branch-hint optimization will be performed.
22241
9766135b
JJ
222422011-01-03 Jakub Jelinek <jakub@redhat.com>
22243
371556ee
JJ
22244 PR tree-optimization/47148
22245 * ipa-split.c (split_function): Convert arguments to
22246 DECL_ARG_TYPE if possible.
22247
1ac12fa2
JJ
22248 PR tree-optimization/47155
22249 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22250 when computing uns.
22251
9766135b
JJ
22252 PR rtl-optimization/47157
22253 * combine.c (try_combine): If undobuf.other_insn becomes
22254 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22255 and set *new_direct_jump_p too.
22256
f4a2e571
SP
222572011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22258
22259 PR tree-optimization/47021
22260 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22261
9f8e43c0
JJ
222622011-01-03 Jakub Jelinek <jakub@redhat.com>
22263
22264 * gcc.c (process_command): Update copyright notice dates.
22265 * gcov.c (print_version): Likewise.
22266 * gcov-dump.c (print_version): Likewise.
22267 * mips-tfile.c (main): Likewise.
22268 * mips-tdump.c (main): Likewise.
22269
1a2e38f3
MJ
222702011-01-03 Martin Jambor <mjambor@suse.cz>
22271
22272 PR tree-optimization/46801
22273 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22274 aggregate fields start at byte boundary instead of the bit-field flag.
22275
56b721c5
L
222762011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22277
22278 PR driver/47137
22279 * gcc.c (main): Revert revision 168407.
22280
839d549b
MJ
222812011-01-03 Martin Jambor <mjambor@suse.cz>
22282
22283 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22284
4ce99a20 222852011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
22286
22287 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22288 vector optab to expand vector/scalar shift, update gimple to vector.
22289
76df0ae6
MJ
222902011-01-03 Martin Jambor <mjambor@suse.cz>
22291
22292 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22293 a thunk.
22294
ce47fda3
MJ
222952011-01-03 Martin Jambor <mjambor@suse.cz>
22296
22297 PR tree-optimization/46984
22298 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22299 HOST_WIDE_INT.
22300 (cgraph_create_indirect_edge): Fixed line length.
22301 (cgraph_indirect_call_info): Declare.
22302 (cgraph_make_edge_direct) Update declaration.
22303 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22304 (cgraph_create_indirect_edge): Use it.
22305 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22306 callees.
22307 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22308 the new thunk_delta representation.
22309 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22310 HOST_WIDE_INT.
22311 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22312 (ipa_read_indirect_edge_info): Likewise.
22313 * lto-cgraph.c (output_edge_opt_summary): New function.
22314 (output_node_opt_summary): Call it on all outgoing edges.
22315 (input_edge_opt_summary): New function.
22316 (input_node_opt_summary): Call it on all outgoing edges.
22317
1e67fa1f
L
223182011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22319
22320 PR driver/47137
22321 * gcc.c (main): Don't check have_o when settting combine_inputs.
22322
6656b2ac
EB
223232011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22324
22325 * regrename.c: Add general comment describing the pass.
22326 (struct du_head): Remove 'length' field.
22327 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22328 (regrename_optimize): Do not sort chains. Rework comments, add others.
22329 Force renaming to the preferred class (if any) in the first pass and do
22330 not consider registers that belong to it in the second pass.
22331 (create_new_chain): Do not set 'length' field.
22332 (scan_rtx_reg): Likewise.
22333
bc470c24
JJ
223342011-01-02 Jakub Jelinek <jakub@redhat.com>
22335
4e996296
JJ
22336 PR tree-optimization/47140
22337 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22338 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22339 to bit_value_binop.
22340
bc470c24 22341 PR rtl-optimization/47028
6656b2ac
EB
22342 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22343 parm_birth_insn instead of at the beginning of first bb.
bc470c24 22344
5af62fcd 223452011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
22346
22347 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22348 Remove the word "see" before "@pxref".
22349 * doc/rtl.texi: Remove the word "see" before "@pxref".
22350
0e20c89f
JH
223512011-01-01 Jan Hubicka <jh@suse.cz>
22352
6656b2ac
EB
22353 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22354 memory.
0e20c89f 22355
220e83ca
KT
223562011-01-01 Kai Tietz <kai.tietz@onevision.com>
22357
22358 PR target/38662
6656b2ac 22359 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 22360
ad41bd84 22361\f
797103eb 22362Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
22363
22364Copying and distribution of this file, with or without modification,
22365are permitted in any medium without royalty provided the copyright
22366notice and this notice are preserved.